![]() |
Ember
|
Left sidebar panel specialized for left-side functionality. More...
#include <LeftSidePanel.h>
Public Member Functions | |
| LeftSidePanel (wxWindow *parent, MainFrame *mainFrame=nullptr) | |
| virtual | ~LeftSidePanel () |
| wxString | GetTitle () const override |
| Get the display title for this panel. | |
| wxString | GetPanelType () const override |
| Get a unique identifier for this panel type. | |
| void | ApplyPreferences () override |
| Apply preferences to the side panel Virtual to allow derived classes to use their specific settings. | |
| void | SaveState () override |
| Save the current state (last active tab, etc.) Virtual to allow derived classes to use their specific settings. | |
| void | RestoreState () override |
| Restore state from preferences Virtual to allow derived classes to use their specific settings. | |
| Public Member Functions inherited from SidePanel | |
| SidePanel (wxWindow *parent, MainFrame *mainFrame=nullptr, const wxString &panelName="Side Panel", EmberForge::PanelType panelType=EmberForge::PanelType::LeftPanel, EmberForge::PanelDescriptor *parentDescriptor=nullptr) | |
| virtual | ~SidePanel () |
| void | FinishSetup () |
| Complete panel setup after construction. | |
| int | AddTab (ITabPtr tab) |
| Add a tab to this panel. | |
| ITabPtr | RemoveTab (int index) |
| Remove a tab by index. | |
| ITab * | GetTab (int index) const |
| Get a tab by index. | |
| size_t | GetTabCount () const |
| Get the number of tabs. | |
| bool | SetActiveTab (int index) |
| Set the active tab by index. | |
| ITab * | GetActiveTab () const |
| Get the currently active tab. | |
| EmberForge::CustomAuiNotebook * | GetNotebook () const |
| Get the notebook widget for direct access. | |
| bool | HasTabWithName (const wxString &tabName) const |
| Check if this panel has a tab with the given name. | |
| void | ResetToDefaultTab (EmberForge::TabType defaultTabType) |
| Reset the panel to a single default tab Closes all tabs and creates only the specified default tab. | |
| void | ResetToDefaultTabs (const std::vector< EmberForge::TabType > &defaultTabTypes) |
| Reset the panel to multiple default tabs Closes all tabs and creates the specified default tabs. | |
| void | ClearAllTabs () |
| Clear all tabs from the panel Removes all tabs without creating any new ones. | |
| void | SetTabBarButtonsEnabled (bool enabled) |
| Enable or disable the tab bar buttons (+ and menu) | |
| bool | AreTabBarButtonsEnabled () const |
| Check if tab bar buttons are enabled. | |
| void | ToggleTabBarButtons () |
| Toggle tab bar buttons visibility. | |
| void | SetPanelName (const wxString &name) |
| Set the panel name (for split panels) | |
| const EmberForge::PanelDescriptor & | GetPanelDescriptor () const |
| Get the panel descriptor for this panel. | |
| void | SetPanelDescriptor (const EmberForge::PanelDescriptor &descriptor) |
| Update the panel descriptor (used when creating split panels) | |
| Public Member Functions inherited from Panel | |
| Panel (wxWindow *parent, const wxString &name="Panel", long style=wxTAB_TRAVERSAL) | |
| Constructor. | |
| virtual | ~Panel () |
| Destructor. | |
| wxPanel * | GetPanel () override |
| Get the main panel widget. | |
| void | Initialize () override |
| Initialize the panel after construction Called once after the panel is created and configured. | |
| void | Refresh () override |
| Called when the panel should refresh its display This should update the panel's content to reflect current state. | |
| void | OnActivated () override |
| Called when the panel becomes visible/active. | |
| void | OnDeactivated () override |
| Called when the panel becomes hidden/inactive. | |
| void | Cleanup () override |
| Called when the panel is about to be destroyed Use this for cleanup operations. | |
| bool | IsValid () const override |
| Check if the panel is in a valid state. | |
| wxString | SerializeState () const override |
| Serialize the panel's current state to a string. | |
| void | DeserializeState (const wxString &state) override |
| Restore the panel's state from serialized data. | |
| bool | HasUnsavedChanges () const override |
| Check if this panel has unsaved changes. | |
| bool | Save () override |
| Save the panel's data (if applicable) | |
| bool | SupportsOperation (const wxString &operation) const override |
| Check if this panel supports the given operation. | |
| bool | ExecuteOperation (const wxString &operation, const wxString ¶meter="") override |
| Execute a named operation on this panel. | |
| wxString | GetName () const override |
| void | SetName (const wxString &name) override |
| void | SetTitle (const wxString &title) |
| void | SetPanelType (const wxString &type) |
| Public Member Functions inherited from IPanel | |
| virtual | ~IPanel ()=default |
Protected Member Functions | |
| bool | GetRememberLastTab () const override |
| const std::vector< std::string > & | GetLastOpenTabs () const override |
| std::string | GetLastActiveTab () const override |
| std::string | GetDefaultActiveTab () const override |
| void | OnPanelSpecificSetup () override |
| void | OnAddTabButtonClicked (wxCommandEvent &event) override |
| std::vector< EmberForge::TabType > | GetSupportedTabTypes () const override |
| Protected Member Functions inherited from SidePanel | |
| void | CreateLayout () override |
| Create the panel's UI layout Called during initialization. | |
| virtual void | CreateNotebook () |
| virtual void | SetupEventHandlers () |
| void | RestoreAndEnsureTabs () |
| void | DoCreateLayout () |
| void | DoCreateNotebook () |
| void | DoSetupEventHandlers () |
| void | OnTabChanged (wxAuiNotebookEvent &event) |
| void | OnTabClosed (wxAuiNotebookEvent &event) |
| void | OnAddTabButtonClickedInternal (wxCommandEvent &event) |
| virtual void | OnMenuButtonClicked (wxCommandEvent &event) |
| void | OnHidePanelClicked (wxCommandEvent &event) |
| void | OnPanelPreferencesClicked (wxCommandEvent &event) |
| void | OnTabBarAddButtonClicked (wxCommandEvent &event) |
| void | OnTabBarMenuButtonClicked (wxCommandEvent &event) |
| void | CreateAndAddTab (EmberForge::TabType tabType) |
| void | ShowTabCreationMenu () |
| Protected Member Functions inherited from Panel | |
| virtual void | ApplyTheme () |
| Apply current theme to the panel Called when theme changes. | |
| virtual void | UpdateContent () |
| Update panel content Called during refresh. | |
| virtual void | HandleActivation () |
| Handle panel activation Called when panel becomes active. | |
| virtual void | HandleDeactivation () |
| Handle panel deactivation Called when panel becomes inactive. | |
| virtual bool | ValidateState () const |
| Validate panel state Override to provide custom validation logic. | |
| void | MarkChanged () |
| Mark panel as having unsaved changes. | |
| void | MarkSaved () |
| Mark panel as saved (no unsaved changes) | |
| wxSizer * | GetMainSizer () const |
| Get the main sizer for layout management. | |
| void | SetMainSizer (wxSizer *sizer) |
| Set the main sizer (takes ownership) | |
| virtual void | OnPanelSize (wxSizeEvent &event) |
| virtual void | OnPanelPaint (wxPaintEvent &event) |
| virtual void | OnPanelRightClick (wxContextMenuEvent &event) |
Private Types | |
| enum | { ID_LEFT_PANEL_BASE = ID_BASE_LAST + 100 , ID_ADD_SCENE_HIERARCHY_TAB , ID_ADD_PROPERTIES_TAB } |
Private Member Functions | |
| void | OnAddSceneHierarchyTab (wxCommandEvent &event) |
| void | OnAddPropertiesTab (wxCommandEvent &event) |
| wxDECLARE_EVENT_TABLE () | |
Additional Inherited Members | |
| Protected Types inherited from SidePanel | |
| enum | BaseEventIDs { ID_BASE_NOTEBOOK = wxID_HIGHEST + 1000 , ID_BASE_HIDE_PANEL_MENU_ITEM , ID_BASE_PREFERENCES_MENU_ITEM , ID_BASE_ADD_TAB_BUTTON , ID_BASE_MENU_BUTTON , ID_BASE_LAST } |
| Protected Attributes inherited from SidePanel | |
| MainFrame * | m_mainFrame |
| EmberForge::CustomAuiNotebook * | m_notebook |
| std::vector< ITabPtr > | m_tabs |
| int | m_activeTabIndex |
| wxString | m_panelName |
| bool | m_tabBarButtonsEnabled |
| bool | m_isInitializing |
| EmberForge::PanelDescriptor | m_descriptor |
Left sidebar panel specialized for left-side functionality.
This panel contains tabs like Scene Hierarchy and potentially other tabs that can be moved between different panel containers. Now inherits from SidePanel for shared backend functionality while maintaining the ability to specialize left-side specific behavior.
Definition at line 25 of file LeftSidePanel.h.
|
private |
| Enumerator | |
|---|---|
| ID_LEFT_PANEL_BASE | |
| ID_ADD_SCENE_HIERARCHY_TAB | |
| ID_ADD_PROPERTIES_TAB | |
Definition at line 59 of file LeftSidePanel.h.
| LeftSidePanel::LeftSidePanel | ( | wxWindow * | parent, |
| MainFrame * | mainFrame = nullptr ) |
|
virtual |
Definition at line 18 of file LeftSidePanel.cpp.
|
overridevirtual |
Apply preferences to the side panel Virtual to allow derived classes to use their specific settings.
Reimplemented from SidePanel.
Definition at line 68 of file LeftSidePanel.cpp.
|
overrideprotectedvirtual |
Implements SidePanel.
Definition at line 36 of file LeftSidePanel.cpp.
|
overrideprotectedvirtual |
Implements SidePanel.
Definition at line 31 of file LeftSidePanel.cpp.
|
overrideprotectedvirtual |
Implements SidePanel.
Definition at line 26 of file LeftSidePanel.cpp.
|
inlineoverridevirtual |
Get a unique identifier for this panel type.
Implements SidePanel.
Definition at line 32 of file LeftSidePanel.h.
|
overrideprotectedvirtual |
Implements SidePanel.
Definition at line 21 of file LeftSidePanel.cpp.
|
overrideprotectedvirtual |
Reimplemented from SidePanel.
Definition at line 53 of file LeftSidePanel.cpp.
|
inlineoverridevirtual |
Get the display title for this panel.
Implements SidePanel.
Definition at line 31 of file LeftSidePanel.h.
|
private |
Definition at line 63 of file LeftSidePanel.cpp.
|
private |
Definition at line 58 of file LeftSidePanel.cpp.
|
overrideprotectedvirtual |
Reimplemented from SidePanel.
Definition at line 48 of file LeftSidePanel.cpp.
|
overrideprotectedvirtual |
Reimplemented from SidePanel.
Definition at line 42 of file LeftSidePanel.cpp.
|
overridevirtual |
Restore state from preferences Virtual to allow derived classes to use their specific settings.
Reimplemented from SidePanel.
Definition at line 136 of file LeftSidePanel.cpp.
|
overridevirtual |
Save the current state (last active tab, etc.) Virtual to allow derived classes to use their specific settings.
Reimplemented from SidePanel.
Definition at line 90 of file LeftSidePanel.cpp.
|
private |