Ember
Loading...
Searching...
No Matches
IPanel Class Referenceabstract

Abstract interface for all panels in the Ember application. More...

#include <IPanel.h>

Inheritance diagram for IPanel:
Panel MainPanel SidePanel BottomPanel LeftSidePanel RightSidePanel

Public Member Functions

virtual ~IPanel ()=default
virtual wxPanel * GetPanel ()=0
 Get the main panel widget.
virtual wxString GetTitle () const =0
 Get the display title for this panel.
virtual wxString GetPanelType () const =0
 Get a unique identifier for this panel type.
virtual void Initialize ()
 Initialize the panel after construction Called once after the panel is created and configured.
virtual void Refresh ()
 Called when the panel should refresh its display This should update the panel's content to reflect current state.
virtual void OnActivated ()
 Called when the panel becomes visible/active.
virtual void OnDeactivated ()
 Called when the panel becomes hidden/inactive.
virtual void Cleanup ()
 Called when the panel is about to be destroyed Use this for cleanup operations.
virtual bool IsValid () const
 Check if the panel is in a valid state.
virtual wxString SerializeState () const
 Serialize the panel's current state to a string.
virtual void DeserializeState (const wxString &state)
 Restore the panel's state from serialized data.
virtual bool HasUnsavedChanges () const
 Check if this panel has unsaved changes.
virtual bool Save ()
 Save the panel's data (if applicable)
virtual bool SupportsOperation (const wxString &operation) const
 Check if this panel supports the given operation.
virtual bool ExecuteOperation (const wxString &operation, const wxString &parameter="")
 Execute a named operation on this panel.

Detailed Description

Abstract interface for all panels in the Ember application.

This interface provides a common contract for all panels, enabling consistent lifecycle management, theming, state persistence, and polymorphic handling throughout the application.

Definition at line 13 of file IPanel.h.

Constructor & Destructor Documentation

◆ ~IPanel()

virtual IPanel::~IPanel ( )
virtualdefault

Member Function Documentation

◆ Cleanup()

virtual void IPanel::Cleanup ( )
inlinevirtual

Called when the panel is about to be destroyed Use this for cleanup operations.

Reimplemented in Panel.

Definition at line 61 of file IPanel.h.

◆ DeserializeState()

virtual void IPanel::DeserializeState ( const wxString & state)
inlinevirtual

Restore the panel's state from serialized data.

Parameters
stateThe serialized state data

Reimplemented in Panel.

Definition at line 79 of file IPanel.h.

◆ ExecuteOperation()

virtual bool IPanel::ExecuteOperation ( const wxString & operation,
const wxString & parameter = "" )
inlinevirtual

Execute a named operation on this panel.

Parameters
operationThe operation to execute
parameterOptional parameter for the operation
Returns
bool True if the operation was successful

Reimplemented in Panel.

Definition at line 106 of file IPanel.h.

◆ GetPanel()

virtual wxPanel * IPanel::GetPanel ( )
pure virtual

Get the main panel widget.

Returns
wxPanel* The panel widget that can be added to containers

Implemented in Panel.

◆ GetPanelType()

virtual wxString IPanel::GetPanelType ( ) const
pure virtual

Get a unique identifier for this panel type.

Returns
wxString Identifier like "Properties", "SceneHierarchy", etc.

Implemented in BottomPanel, LeftSidePanel, MainPanel, Panel, RightSidePanel, and SidePanel.

◆ GetTitle()

virtual wxString IPanel::GetTitle ( ) const
pure virtual

Get the display title for this panel.

Returns
wxString The title to show in tabs, captions, etc.

Implemented in BottomPanel, LeftSidePanel, MainPanel, Panel, RightSidePanel, and SidePanel.

◆ HasUnsavedChanges()

virtual bool IPanel::HasUnsavedChanges ( ) const
inlinevirtual

Check if this panel has unsaved changes.

Returns
bool True if the panel has been modified

Reimplemented in Panel.

Definition at line 85 of file IPanel.h.

◆ Initialize()

virtual void IPanel::Initialize ( )
inlinevirtual

Initialize the panel after construction Called once after the panel is created and configured.

Reimplemented in Panel.

Definition at line 39 of file IPanel.h.

◆ IsValid()

virtual bool IPanel::IsValid ( ) const
inlinevirtual

Check if the panel is in a valid state.

Returns
bool True if the panel is properly initialized and functional

Reimplemented in Panel.

Definition at line 67 of file IPanel.h.

◆ OnActivated()

virtual void IPanel::OnActivated ( )
inlinevirtual

Called when the panel becomes visible/active.

Reimplemented in Panel.

Definition at line 50 of file IPanel.h.

◆ OnDeactivated()

virtual void IPanel::OnDeactivated ( )
inlinevirtual

Called when the panel becomes hidden/inactive.

Reimplemented in Panel.

Definition at line 55 of file IPanel.h.

◆ Refresh()

virtual void IPanel::Refresh ( )
inlinevirtual

Called when the panel should refresh its display This should update the panel's content to reflect current state.

Reimplemented in Panel.

Definition at line 45 of file IPanel.h.

◆ Save()

virtual bool IPanel::Save ( )
inlinevirtual

Save the panel's data (if applicable)

Returns
bool True if save was successful

Reimplemented in Panel.

Definition at line 91 of file IPanel.h.

◆ SerializeState()

virtual wxString IPanel::SerializeState ( ) const
inlinevirtual

Serialize the panel's current state to a string.

Returns
wxString Serialized state data

Reimplemented in Panel.

Definition at line 73 of file IPanel.h.

◆ SupportsOperation()

virtual bool IPanel::SupportsOperation ( const wxString & operation) const
inlinevirtual

Check if this panel supports the given operation.

Parameters
operationThe operation to check (e.g., "save", "export", "search")
Returns
bool True if the operation is supported

Reimplemented in Panel.

Definition at line 98 of file IPanel.h.


The documentation for this class was generated from the following file:
  • EmberForge/include/Components/IPanel.h