![]() |
Ember
|
Dialog for opening and managing BehaviorTree projects. More...
#include <ProjectManagerDialog.h>
Public Member Functions | |
| ProjectManagerDialog (wxWindow *parent) | |
| ~ProjectManagerDialog () | |
| wxString | GetSelectedProjectPath () const |
| Get the selected project path (after dialog is closed with OK) | |
| bool | HasSelectedProject () const |
| Check if a project was selected. | |
| 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_LIST = 1000 , ID_OPEN , ID_BROWSE , ID_NEW_PROJECT , ID_REMOVE_FROM_RECENT , ID_CLEAR_RECENT } |
Private Member Functions | |
| void | CreateLayout () |
| void | OnProjectSelected (wxListEvent &event) |
| void | OnProjectActivated (wxListEvent &event) |
| void | OnOpen (wxCommandEvent &event) |
| void | OnBrowse (wxCommandEvent &event) |
| void | OnNewProject (wxCommandEvent &event) |
| void | OnRemoveFromRecent (wxCommandEvent &event) |
| void | OnClearRecent (wxCommandEvent &event) |
| void | OnCancel (wxCommandEvent &event) |
| void | LoadRecentProjects () |
| void | UpdateProjectDetails (const wxString &projectPath) |
| void | ClearProjectDetails () |
| void | UpdateButtonStates () |
| wxDECLARE_EVENT_TABLE () | |
Private Attributes | |
| wxListCtrl * | m_projectList |
| wxStaticText * | m_projectNameLabel |
| wxStaticText * | m_projectDescLabel |
| wxStaticText * | m_projectPathLabel |
| wxStaticText * | m_fileCountLabel |
| wxStaticText * | m_lastModifiedLabel |
| wxButton * | m_openBtn |
| wxButton * | m_browseBtn |
| wxButton * | m_newProjectBtn |
| wxButton * | m_removeBtn |
| wxButton * | m_clearBtn |
| wxButton * | m_cancelBtn |
| wxString | m_selectedPath |
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 opening and managing BehaviorTree projects.
This dialog provides an interface for:
Definition at line 24 of file ProjectManagerDialog.h.
|
private |
| Enumerator | |
|---|---|
| ID_PROJECT_LIST | |
| ID_OPEN | |
| ID_BROWSE | |
| ID_NEW_PROJECT | |
| ID_REMOVE_FROM_RECENT | |
| ID_CLEAR_RECENT | |
Definition at line 84 of file ProjectManagerDialog.h.
|
explicit |
| ProjectManagerDialog::~ProjectManagerDialog | ( | ) |
Definition at line 33 of file ProjectManagerDialog.cpp.
|
private |
Definition at line 259 of file ProjectManagerDialog.cpp.
|
private |
Definition at line 35 of file ProjectManagerDialog.cpp.
|
inline |
Get the selected project path (after dialog is closed with OK)
Definition at line 32 of file ProjectManagerDialog.h.
|
inline |
Check if a project was selected.
Definition at line 37 of file ProjectManagerDialog.h.
|
private |
Definition at line 150 of file ProjectManagerDialog.cpp.
|
private |
Definition at line 320 of file ProjectManagerDialog.cpp.
|
private |
Definition at line 406 of file ProjectManagerDialog.cpp.
|
private |
Definition at line 388 of file ProjectManagerDialog.cpp.
|
private |
Definition at line 333 of file ProjectManagerDialog.cpp.
|
private |
Definition at line 297 of file ProjectManagerDialog.cpp.
|
private |
Definition at line 291 of file ProjectManagerDialog.cpp.
|
private |
Definition at line 276 of file ProjectManagerDialog.cpp.
|
private |
Definition at line 374 of file ProjectManagerDialog.cpp.
|
private |
Definition at line 267 of file ProjectManagerDialog.cpp.
|
private |
Definition at line 193 of file ProjectManagerDialog.cpp.
|
private |
|
private |
Definition at line 72 of file ProjectManagerDialog.h.
|
private |
Definition at line 76 of file ProjectManagerDialog.h.
|
private |
Definition at line 75 of file ProjectManagerDialog.h.
|
private |
Definition at line 67 of file ProjectManagerDialog.h.
|
private |
Definition at line 68 of file ProjectManagerDialog.h.
|
private |
Definition at line 73 of file ProjectManagerDialog.h.
|
private |
Definition at line 71 of file ProjectManagerDialog.h.
|
private |
Definition at line 65 of file ProjectManagerDialog.h.
|
private |
Definition at line 61 of file ProjectManagerDialog.h.
|
private |
Definition at line 64 of file ProjectManagerDialog.h.
|
private |
Definition at line 66 of file ProjectManagerDialog.h.
|
private |
Definition at line 74 of file ProjectManagerDialog.h.
|
private |
Definition at line 79 of file ProjectManagerDialog.h.