30 virtual bool IsValid()
const {
return true; }
40 virtual bool Save() {
return true; }
45 virtual bool ExecuteOperation(
const wxString &operation,
const wxString ¶meter =
"") {
return false; }
std::unique_ptr< IPanel > IPanelPtr
Interface for panel-based UI components in the application.
virtual bool SupportsOperation(const wxString &operation) const
Returns true if the panel supports the given operation.
virtual wxPanel * GetPanel()=0
Returns the wxPanel used as the panel content.
virtual wxString GetPanelType() const =0
Returns the panel type identifier.
virtual void DeserializeState(const wxString &state)
Restores panel state from a serialized string.
virtual bool ExecuteOperation(const wxString &operation, const wxString ¶meter="")
Executes an operation with optional parameter; returns true on success.
virtual bool IsValid() const
Returns true if the panel is in a valid state.
virtual bool HasUnsavedChanges() const
Returns true if the panel has unsaved changes.
virtual void Refresh()
Refreshes the panel content.
virtual void Initialize()
Called once when the panel is first created.
virtual bool Save()
Saves the panel content; returns true on success.
virtual wxString SerializeState() const
Serializes panel state to a string for persistence.
virtual void OnActivated()
Called when the panel becomes active.
virtual void OnDeactivated()
Called when the panel becomes inactive.
virtual void Cleanup()
Called to release resources when the panel is no longer needed.
virtual ~IPanel()=default
virtual wxString GetTitle() const =0
Returns the display title of the panel.