![]() |
Ember
|
Dialog for creating and configuring BehaviorTree projects. More...
#include <BehaviorTreeProjectDialog.h>
Classes | |
| struct | ClickableItem |
Public Member Functions | |
| BehaviorTreeProjectDialog (wxWindow *parent, std::shared_ptr< EmberCore::BehaviorTreeProject > project=nullptr) | |
| Construct a new dialog for creating/editing a project. | |
| ~BehaviorTreeProjectDialog () | |
| std::shared_ptr< EmberCore::BehaviorTreeProject > | GetProject () const |
| Get the configured project (after dialog is closed with OK) | |
| bool | IsProjectValid () const |
| Check if the project configuration is valid. | |
| Public Member Functions inherited from EmberUI::ScalableDialog | |
| ScalableDialog (wxWindow *parent, wxWindowID id, const wxString &title, const wxSize &logicalSize=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER) | |
| Constructs the dialog with logical size for DPI scaling. | |
| virtual | ~ScalableDialog ()=default |
Private Types | |
| enum | { ID_PROJECT_NAME = 1000 , ID_PROJECT_DESCRIPTION , ID_PARSER_PROFILE , ID_RESOURCE_LIST , ID_ADD_FILES , ID_ADD_FOLDER , ID_REMOVE_FILES , ID_CLEAR_FILES , ID_VALIDATE , ID_REFRESH_PREVIEW , ID_CREATE , ID_SAVE , ID_PULSE_TIMER } |
Private Member Functions | |
| void | CreateLayout () |
| wxPanel * | CreateLeftPanel (wxWindow *parent) |
| wxPanel * | CreateRightPanel (wxWindow *parent) |
| wxPanel * | CreateResourcesTab (wxNotebook *notebook) |
| wxPanel * | CreateValidationTab (wxNotebook *notebook) |
| wxPanel * | CreatePreviewTab (wxNotebook *notebook) |
| wxPanel * | CreateBlackboardTab (wxNotebook *notebook) |
| void | OnProjectNameChanged (wxCommandEvent &event) |
| void | OnDescriptionChanged (wxCommandEvent &event) |
| void | OnProfileSelected (wxCommandEvent &event) |
| void | OnAddFiles (wxCommandEvent &event) |
| void | OnAddFolder (wxCommandEvent &event) |
| void | OnRemoveFiles (wxCommandEvent &event) |
| void | OnClearFiles (wxCommandEvent &event) |
| void | OnResourceSelected (wxListEvent &event) |
| void | OnResourceActivated (wxListEvent &event) |
| void | OnValidate (wxCommandEvent &event) |
| void | OnRefreshPreview (wxCommandEvent &event) |
| void | OnCreate (wxCommandEvent &event) |
| void | OnCancel (wxCommandEvent &event) |
| void | OnSave (wxCommandEvent &event) |
| void | LoadProfileList () |
| void | UpdateResourceList () |
| void | UpdateValidationReport () |
| void | UpdateTreePreview () |
| void | ValidateAndUpdateUI () |
| void | UpdateCreateButtonState () |
| void | GenerateColoredValidationReport (const EmberCore::ProjectValidationReport &report) |
| void | DrawFileStructureDiagram (wxDC &dc) |
| void | DrawBlackboardDiagram (wxDC &dc) |
| void | OnStructurePanelClick (wxMouseEvent &event) |
| void | LoadXMLPreview (const std::string &filepath, int highlightLine=-1) |
| void | LoadTreePreview (const std::string &filepath, const std::string &treeId) |
| void | LoadBlackboardPreview (const std::string &filepath, const std::string &blackboardId) |
| void | OnPreviewFilterChanged (wxCommandEvent &event) |
| void | UpdateBlackboardTab () |
| bool | IsValidProjectName (const wxString &name) const |
| void | OnPulseTimer (wxTimerEvent &event) |
| void | UpdateFieldHighlighting () |
| wxColour | InterpolateColor (const wxColour &color1, const wxColour &color2, float t) |
| wxString | GetResourceStatusIcon (bool valid) const |
| void | SetResourceItemStatus (long item, bool valid, int treeCount) |
| void | PopulateFromProject () |
| wxDECLARE_EVENT_TABLE () | |
Static Private Attributes | |
| static wxString | s_lastUsedDirectory |
Additional Inherited Members | |
| Protected Member Functions inherited from EmberUI::ScalableDialog | |
| int | Scaled (int px) const |
| Scales a logical pixel value to physical pixels. | |
| wxSize | Scaled (const wxSize &size) const |
| Scales a logical size to physical pixels. | |
| int | Margin () const |
| Returns the standard margin in physical pixels. | |
| int | Spacing () const |
| Returns the standard spacing in physical pixels. | |
| int | Padding () const |
| Returns the standard padding in physical pixels. | |
| wxStaticBoxSizer * | CreateGroup (wxWindow *parent, const wxString &title) |
| Creates a grouped section with a title. | |
| wxBoxSizer * | CreateLabeledRow (wxWindow *parent, const wxString &label, wxWindow *control, int logicalLabelWidth=Layout::LABEL_WIDTH) |
| Creates a row with a label and control. | |
Dialog for creating and configuring BehaviorTree projects.
This dialog provides an interface for:
Definition at line 32 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 202 of file BehaviorTreeProjectDialog.h.
|
explicit |
Construct a new dialog for creating/editing a project.
| parent | Parent window |
| project | Existing project to edit (nullptr for new project) |
| BehaviorTreeProjectDialog::~BehaviorTreeProjectDialog | ( | ) |
Definition at line 111 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 545 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 122 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 170 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 355 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 255 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 237 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 312 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 578 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 1420 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 1275 of file BehaviorTreeProjectDialog.cpp.
|
inline |
Get the configured project (after dialog is closed with OK)
Definition at line 46 of file BehaviorTreeProjectDialog.h.
|
private |
|
private |
Definition at line 2395 of file BehaviorTreeProjectDialog.cpp.
|
inline |
Check if the project configuration is valid.
Definition at line 51 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 2349 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 3069 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 841 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 2980 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 2915 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 935 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 1000 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 2347 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 1080 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 2296 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 913 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 1157 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 917 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 908 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 2365 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 1155 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 1064 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 1091 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 1089 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 2342 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 2410 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 1153 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 866 of file BehaviorTreeProjectDialog.cpp.
|
private |
|
private |
Definition at line 572 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 2287 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 2375 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 885 of file BehaviorTreeProjectDialog.cpp.
|
private |
Definition at line 1387 of file BehaviorTreeProjectDialog.cpp.
|
private |
|
private |
Definition at line 1164 of file BehaviorTreeProjectDialog.cpp.
|
private |
|
private |
Definition at line 133 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 134 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 174 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 178 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 136 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 171 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 177 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 148 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 195 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 121 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 120 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 183 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 181 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 194 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 129 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 126 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 119 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 125 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 124 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 193 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 192 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 159 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 135 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 137 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 186 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 132 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 197 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 155 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 157 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 153 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 158 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 154 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 156 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 160 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 141 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 143 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 144 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 145 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 140 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 182 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 142 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 150 of file BehaviorTreeProjectDialog.h.
|
private |
Definition at line 149 of file BehaviorTreeProjectDialog.h.
|
staticprivate |
Definition at line 189 of file BehaviorTreeProjectDialog.h.