Shared base class for property editors (wxPanel, ITab).
More...
#include <PropertiesTabBase.h>
|
| | PropertiesTabBase (wxWindow *parent) |
| virtual | ~PropertiesTabBase ()=default |
| wxWindow * | GetWidget () override |
| | Returns the wxWidgets window used as the tab content.
|
| wxString | GetTitle () const override |
| | Returns the display title of the tab.
|
| void | SetSelectedNode (EmberCore::ITreeNode *node) |
| | Sets the node whose properties are displayed.
|
| void | ClearSelection () |
| | Clears the current selection.
|
| void | SetSelectionHighlightColor (const wxColour &color) |
| | Sets the highlight color for the selected node.
|
| virtual | ~ITab ()=default |
| virtual wxString | GetTabType () const =0 |
| | Returns the tab type identifier.
|
| virtual wxBitmap | GetIcon () const |
| | Returns the tab icon bitmap; defaults to null.
|
| virtual void | Initialize () |
| | Called once when the tab is first created.
|
| virtual void | Refresh () |
| | Refreshes the tab content.
|
| virtual void | OnActivated () |
| | Called when the tab becomes active.
|
| virtual void | OnDeactivated () |
| | Called when the tab becomes inactive.
|
| virtual void | OnClosed () |
| | Called when the tab is closed.
|
| virtual bool | IsValid () const |
| | Returns true if the tab is in a valid state.
|
| virtual bool | CanClose () const |
| | Returns true if the tab can be closed.
|
| virtual bool | CanMove () const |
| | Returns true if the tab can be moved/reordered.
|
| virtual wxString | SerializeState () const |
| | Serializes tab state to a string for persistence.
|
| virtual void | DeserializeState (const wxString &state) |
| | Restores tab state from a serialized string.
|
| virtual bool | HasUnsavedChanges () const |
| | Returns true if the tab has unsaved changes.
|
| virtual bool | Save () |
| | Saves the tab content; returns true on success.
|
| virtual bool | SupportsOperation (const wxString &operation) const |
| | Returns true if the tab supports the given operation.
|
| virtual bool | ExecuteOperation (const wxString &operation, const wxString ¶meter="") |
| | Executes an operation with optional parameter; returns true on success.
|
|
| void | InitLayout () |
| | Initializes the tab layout (stack, placeholder, content panels).
|
| void | SetupPropertyGrid (wxPanel *parent) |
| | Creates and configures the property grid in the given parent.
|
| void | AddBasicNodeInfo () |
| | Adds basic node info (name, type) to the property grid.
|
| virtual void | CreateContentLayout (wxPanel *contentPanel)=0 |
| | Pure virtual: subclasses create their content layout in contentPanel.
|
| virtual void | PopulateProperties ()=0 |
| | Pure virtual: subclasses populate the property grid from m_selectedNode.
|
| virtual wxString | GetPlaceholderText () const |
| | Returns placeholder text when no node is selected.
|
| virtual void | OnNodeCleared () |
| | Called when selection is cleared; subclasses may override.
|
Shared base class for property editors (wxPanel, ITab).
Definition at line 12 of file PropertiesTabBase.h.
◆ PropertiesTabBase()
| EmberUI::PropertiesTabBase::PropertiesTabBase |
( |
wxWindow * | parent | ) |
|
|
explicit |
◆ ~PropertiesTabBase()
| virtual EmberUI::PropertiesTabBase::~PropertiesTabBase |
( |
| ) |
|
|
virtualdefault |
◆ AddBasicNodeInfo()
| void EmberUI::PropertiesTabBase::AddBasicNodeInfo |
( |
| ) |
|
|
protected |
◆ ClearSelection()
| void EmberUI::PropertiesTabBase::ClearSelection |
( |
| ) |
|
◆ CreateContentLayout()
| virtual void EmberUI::PropertiesTabBase::CreateContentLayout |
( |
wxPanel * | contentPanel | ) |
|
|
protectedpure virtual |
◆ GetPlaceholderText()
| wxString EmberUI::PropertiesTabBase::GetPlaceholderText |
( |
| ) |
const |
|
protectedvirtual |
◆ GetTitle()
| wxString EmberUI::PropertiesTabBase::GetTitle |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetWidget()
| wxWindow * EmberUI::PropertiesTabBase::GetWidget |
( |
| ) |
|
|
inlineoverridevirtual |
◆ InitLayout()
| void EmberUI::PropertiesTabBase::InitLayout |
( |
| ) |
|
|
protected |
Initializes the tab layout (stack, placeholder, content panels).
Definition at line 15 of file PropertiesTabBase.cpp.
◆ OnNodeCleared()
| void EmberUI::PropertiesTabBase::OnNodeCleared |
( |
| ) |
|
|
protectedvirtual |
◆ PopulateProperties()
| virtual void EmberUI::PropertiesTabBase::PopulateProperties |
( |
| ) |
|
|
protectedpure virtual |
◆ SetSelectedNode()
◆ SetSelectionHighlightColor()
| void EmberUI::PropertiesTabBase::SetSelectionHighlightColor |
( |
const wxColour & | color | ) |
|
◆ SetupPropertyGrid()
| void EmberUI::PropertiesTabBase::SetupPropertyGrid |
( |
wxPanel * | parent | ) |
|
|
protected |
◆ kBgColor
| const wxColour EmberUI::PropertiesTabBase::kBgColor |
|
staticprotected |
◆ kCaptionBgColor
| const wxColour EmberUI::PropertiesTabBase::kCaptionBgColor |
|
staticprotected |
◆ kCellBgColor
| const wxColour EmberUI::PropertiesTabBase::kCellBgColor |
|
staticprotected |
◆ kLineColor
| const wxColour EmberUI::PropertiesTabBase::kLineColor |
|
staticprotected |
◆ kTextColor
| const wxColour EmberUI::PropertiesTabBase::kTextColor |
|
staticprotected |
◆ m_contentPanel
| wxPanel* EmberUI::PropertiesTabBase::m_contentPanel |
|
protected |
◆ m_placeholderPanel
| wxPanel* EmberUI::PropertiesTabBase::m_placeholderPanel |
|
protected |
◆ m_propertyGrid
| wxPropertyGrid* EmberUI::PropertiesTabBase::m_propertyGrid |
|
protected |
◆ m_selectedNode
◆ m_selectionHighlight
| wxColour EmberUI::PropertiesTabBase::m_selectionHighlight |
|
protected |
◆ m_stack
| wxSimplebook* EmberUI::PropertiesTabBase::m_stack |
|
protected |
The documentation for this class was generated from the following files: