67 virtual bool IsValid()
const {
return true; }
91 virtual bool Save() {
return true; }
106 virtual bool ExecuteOperation(
const wxString &operation,
const wxString ¶meter =
"") {
return false; }
std::unique_ptr< IPanel > IPanelPtr
Smart pointer type for IPanel instances.
Abstract interface for all panels in the Ember application.
virtual bool SupportsOperation(const wxString &operation) const
Check if this panel supports the given operation.
virtual wxPanel * GetPanel()=0
Get the main panel widget.
virtual wxString GetPanelType() const =0
Get a unique identifier for this panel type.
virtual void DeserializeState(const wxString &state)
Restore the panel's state from serialized data.
virtual bool ExecuteOperation(const wxString &operation, const wxString ¶meter="")
Execute a named operation on this panel.
virtual bool IsValid() const
Check if the panel is in a valid state.
virtual bool HasUnsavedChanges() const
Check if this panel has unsaved changes.
virtual void Refresh()
Called when the panel should refresh its display This should update the panel's content to reflect cu...
virtual void Initialize()
Initialize the panel after construction Called once after the panel is created and configured.
virtual bool Save()
Save the panel's data (if applicable)
virtual wxString SerializeState() const
Serialize the panel's current state to a string.
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 ~IPanel()=default
virtual wxString GetTitle() const =0
Get the display title for this panel.