Ember
Loading...
Searching...
No Matches
Ember::Monitor::RightSidePanel Class Reference

Right-side tabbed panel containing navigator and properties tabs. More...

#include <RightSidePanel.h>

Inheritance diagram for Ember::Monitor::RightSidePanel:
EmberUI::SidePanel EmberUI::Panel IPanel

Public Member Functions

 RightSidePanel (wxWindow *parent)
 ~RightSidePanel () override=default
wxString GetTitle () const override
 Returns the panel title.
wxString GetPanelType () const override
 Returns the panel type identifier.
void SetupTabs ()
 Creates and configures the navigator and properties tabs.
MonitorNavigatorTabGetNavigatorTab () const
 Returns the navigator tab instance.
PropertiesTabGetPropertiesTab () const
 Returns the properties tab instance.
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.
virtual ~SidePanel ()
virtual int AddTab (ITabPtr tab)
 Adds a tab and returns its index.
virtual ITabPtr RemoveTab (int index)
 Removes the tab at the given index; returns the removed tab.
ITabGetTab (int index) const
 Returns the tab at the given index, or nullptr.
ITabGetActiveTab () const
 Returns the currently active tab, or nullptr.
virtual bool SetActiveTab (int index)
 Sets the active tab by index; returns true on success.
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.
virtual void ClearAllTabs ()
 Removes all tabs.
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 &parameter="") 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

Private Attributes

MonitorNavigatorTabm_navigatorTab = nullptr
PropertiesTabm_propertiesTab = nullptr

Additional Inherited Members

Protected Member Functions inherited from EmberUI::SidePanel
virtual void CreateNotebook ()
 Hook: creates the notebook control. Override to customize.
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.
void CreateLayout () override
 Creates the side panel layout with the notebook.
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.
Protected Attributes inherited from EmberUI::SidePanel
wxAuiNotebook * m_notebook
std::vector< ITabPtrm_tabs
int m_activeTabIndex

Detailed Description

Right-side tabbed panel containing navigator and properties tabs.

Definition at line 12 of file RightSidePanel.h.

Constructor & Destructor Documentation

◆ RightSidePanel()

RightSidePanel::RightSidePanel ( wxWindow * parent)
explicit

Definition at line 8 of file RightSidePanel.cpp.

◆ ~RightSidePanel()

Ember::Monitor::RightSidePanel::~RightSidePanel ( )
overridedefault

Member Function Documentation

◆ GetNavigatorTab()

MonitorNavigatorTab * Ember::Monitor::RightSidePanel::GetNavigatorTab ( ) const
inline

Returns the navigator tab instance.

Definition at line 26 of file RightSidePanel.h.

◆ GetPanelType()

wxString Ember::Monitor::RightSidePanel::GetPanelType ( ) const
inlineoverridevirtual

Returns the panel type identifier.

Reimplemented from EmberUI::Panel.

Definition at line 20 of file RightSidePanel.h.

◆ GetPropertiesTab()

PropertiesTab * Ember::Monitor::RightSidePanel::GetPropertiesTab ( ) const
inline

Returns the properties tab instance.

Definition at line 28 of file RightSidePanel.h.

◆ GetTitle()

wxString Ember::Monitor::RightSidePanel::GetTitle ( ) const
inlineoverridevirtual

Returns the panel title.

Reimplemented from EmberUI::Panel.

Definition at line 18 of file RightSidePanel.h.

◆ SetupTabs()

void RightSidePanel::SetupTabs ( )

Creates and configures the navigator and properties tabs.

Definition at line 10 of file RightSidePanel.cpp.

Member Data Documentation

◆ m_navigatorTab

MonitorNavigatorTab* Ember::Monitor::RightSidePanel::m_navigatorTab = nullptr
private

Definition at line 31 of file RightSidePanel.h.

◆ m_propertiesTab

PropertiesTab* Ember::Monitor::RightSidePanel::m_propertiesTab = nullptr
private

Definition at line 32 of file RightSidePanel.h.


The documentation for this class was generated from the following files: