![]() |
Ember
|
Bottom dockable panel for logs and output. More...
#include <BottomPanel.h>
Public Member Functions | |
| BottomPanel (wxWindow *parent, MainFrame *mainFrame) | |
| virtual | ~BottomPanel () |
| wxString | GetTitle () const override |
| Returns the panel title. | |
| wxString | GetPanelType () const override |
| Returns the panel type identifier. | |
| wxTextCtrl * | GetLogOutput () const |
| EmberForge::LogPanel * | GetLogPanel () const |
| EmberForge::PerformancePanel * | GetPerformancePanel () const |
| void | ApplyPreferences () override |
| void | SaveState () override |
| void | RestoreState () override |
| 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 () |
| int | AddTab (ITabPtr tab) override |
| Adds a tab and returns its index. | |
| ITabPtr | RemoveTab (int index) override |
| Removes the tab at the given index; returns the removed tab. | |
| bool | SetActiveTab (int index) override |
| Sets the active tab by index; returns true on success. | |
| void | ClearAllTabs () override |
| Removes all tabs. | |
| EmberForge::CustomAuiNotebook * | GetCustomNotebook () const |
| void | ResetToDefaultTab (EmberForge::TabType defaultTabType) |
| void | ResetToDefaultTabs (const std::vector< EmberForge::TabType > &defaultTabTypes) |
| void | SetTabBarButtonsEnabled (bool enabled) |
| bool | AreTabBarButtonsEnabled () const |
| void | ToggleTabBarButtons () |
| void | SetPanelName (const wxString &name) |
| const EmberForge::PanelDescriptor & | GetPanelDescriptor () const |
| void | SetPanelDescriptor (const EmberForge::PanelDescriptor &descriptor) |
| Public Member Functions inherited from EmberUI::SidePanel | |
| SidePanel (wxWindow *parent, const wxString &panelName="Side Panel", bool autoLayout=true) | |
| Constructs the side panel with optional name and auto-layout flag. | |
| ITab * | GetTab (int index) const |
| Returns the tab at the given index, or nullptr. | |
| ITab * | GetActiveTab () const |
| Returns the currently active tab, or nullptr. | |
| size_t | GetTabCount () const |
| Returns the number of tabs. | |
| bool | HasTabWithName (const wxString &name) const |
| Returns true if a tab with the given name exists. | |
| wxAuiNotebook * | GetNotebook () const |
| Returns the underlying wxAuiNotebook. | |
| Public Member Functions inherited from EmberUI::Panel | |
| Panel (wxWindow *parent, const wxString &name="Panel", long style=wxTAB_TRAVERSAL) | |
| Constructs the panel with optional name and style. | |
| virtual | ~Panel () |
| wxPanel * | GetPanel () override |
| Returns this panel as wxPanel pointer. | |
| void | Initialize () override |
| Initializes the panel layout and appearance. | |
| void | Refresh () override |
| Refreshes panel content. | |
| void | OnActivated () override |
| Called when the panel is activated. | |
| void | OnDeactivated () override |
| Called when the panel is deactivated. | |
| void | Cleanup () override |
| Cleans up panel resources. | |
| bool | IsValid () const override |
| Returns true if the panel has been initialized. | |
| wxString | SerializeState () const override |
| Serializes panel state to a string. | |
| void | DeserializeState (const wxString &state) override |
| Restores panel state from a serialized string. | |
| bool | HasUnsavedChanges () const override |
| Returns true if there are unsaved changes. | |
| bool | Save () override |
| Saves panel state; returns true on success. | |
| bool | SupportsOperation (const wxString &operation) const override |
| Returns true if the panel supports the given operation. | |
| bool | ExecuteOperation (const wxString &operation, const wxString ¶meter="") override |
| Executes a named operation with optional parameter. | |
| wxString | GetName () const override |
| Returns the panel name. | |
| void | SetName (const wxString &name) override |
| Sets the panel name. | |
| void | SetTitle (const wxString &title) |
| Sets the panel title. | |
| void | SetPanelType (const wxString &type) |
| Sets the panel type identifier. | |
| 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 |
| Creates the side panel layout with the notebook. | |
| void | CreateNotebook () override |
| Hook: creates the notebook control. Override to customize. | |
| 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 EmberUI::SidePanel | |
| virtual void | OnTabAdded (ITab *tab, int index) |
| Hook: called when a tab is added. | |
| virtual void | OnTabRemoved (ITab *tab, int index) |
| Hook: called when a tab is removed. | |
| virtual void | OnActiveTabChanged (ITab *tab, int index) |
| Hook: called when the active tab changes. | |
| Protected Member Functions inherited from EmberUI::Panel | |
| virtual void | ApplyTheme () |
| Hook: applies theme colors and fonts. Override to customize. | |
| virtual void | UpdateContent () |
| Hook: updates displayed content. Override to refresh data. | |
| virtual void | HandleActivation () |
| Hook: handles panel activation. Override to customize. | |
| virtual void | HandleDeactivation () |
| Hook: handles panel deactivation. Override to customize. | |
| virtual bool | ValidateState () const |
| Hook: validates panel state; returns true if valid. | |
| void | MarkChanged () |
| Marks the panel as having unsaved changes. | |
| void | MarkSaved () |
| Clears the unsaved-changes flag. | |
| wxSizer * | GetMainSizer () const |
| Returns the main sizer for layout. | |
| void | SetMainSizer (wxSizer *sizer) |
| Sets the main sizer. | |
| virtual void | OnPanelSize (wxSizeEvent &event) |
| Hook: handles panel resize events. | |
| virtual void | OnPanelPaint (wxPaintEvent &event) |
| Hook: handles panel paint events. | |
Private Types | |
| enum | { ID_BOTTOM_PANEL_BASE = ID_BASE_LAST + 300 , ID_ADD_LOG_TAB , ID_ADD_PERFORMANCE_TAB , ID_ADD_FILE_EXPLORER_TAB } |
Private Member Functions | |
| void | OnAddLogTab (wxCommandEvent &event) |
| void | OnAddPerformanceTab (wxCommandEvent &event) |
| void | OnAddFileExplorerTab (wxCommandEvent &event) |
| wxDECLARE_EVENT_TABLE () | |
Private Attributes | |
| wxTextCtrl * | m_logOutput |
| EmberForge::LogPanel * | m_logPanel |
| EmberForge::PerformancePanel * | m_performancePanel |
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 |
| wxString | m_panelName |
| bool | m_tabBarButtonsEnabled |
| bool | m_isInitializing |
| EmberForge::PanelDescriptor | m_descriptor |
| Protected Attributes inherited from EmberUI::SidePanel | |
| wxAuiNotebook * | m_notebook |
| std::vector< ITabPtr > | m_tabs |
| int | m_activeTabIndex |
Bottom dockable panel for logs and output.
BottomPanel is the bottom dock area containing:
The panel provides a central location for viewing application output and monitoring system performance.
The panel saves and restores:
Definition at line 45 of file BottomPanel.h.
|
private |
| Enumerator | |
|---|---|
| ID_BOTTOM_PANEL_BASE | |
| ID_ADD_LOG_TAB | |
| ID_ADD_PERFORMANCE_TAB | |
| ID_ADD_FILE_EXPLORER_TAB | |
Definition at line 93 of file BottomPanel.h.
| BottomPanel::BottomPanel | ( | wxWindow * | parent, |
| MainFrame * | mainFrame ) |
|
virtual |
Definition at line 20 of file BottomPanel.cpp.
|
overridevirtual |
Reimplemented from SidePanel.
Definition at line 64 of file BottomPanel.cpp.
|
overrideprotectedvirtual |
Implements SidePanel.
Definition at line 40 of file BottomPanel.cpp.
|
overrideprotectedvirtual |
Implements SidePanel.
Definition at line 35 of file BottomPanel.cpp.
|
overrideprotectedvirtual |
Implements SidePanel.
Definition at line 30 of file BottomPanel.cpp.
|
inline |
Definition at line 55 of file BottomPanel.h.
|
inline |
Definition at line 56 of file BottomPanel.h.
|
inlineoverridevirtual |
Returns the panel type identifier.
Implements SidePanel.
Definition at line 52 of file BottomPanel.h.
|
inline |
Definition at line 57 of file BottomPanel.h.
|
overrideprotectedvirtual |
Implements SidePanel.
Definition at line 25 of file BottomPanel.cpp.
|
overrideprotectedvirtual |
Reimplemented from SidePanel.
Definition at line 53 of file BottomPanel.cpp.
|
inlineoverridevirtual |
|
private |
Definition at line 62 of file BottomPanel.cpp.
|
private |
Definition at line 58 of file BottomPanel.cpp.
|
private |
Definition at line 60 of file BottomPanel.cpp.
|
overrideprotectedvirtual |
Reimplemented from SidePanel.
Definition at line 48 of file BottomPanel.cpp.
|
overrideprotectedvirtual |
Reimplemented from SidePanel.
Definition at line 42 of file BottomPanel.cpp.
|
overridevirtual |
Reimplemented from SidePanel.
Definition at line 140 of file BottomPanel.cpp.
|
overridevirtual |
Reimplemented from SidePanel.
Definition at line 94 of file BottomPanel.cpp.
|
private |
|
private |
Definition at line 83 of file BottomPanel.h.
|
private |
Definition at line 84 of file BottomPanel.h.
|
private |
Definition at line 85 of file BottomPanel.h.