54 virtual wxBitmap
GetIcon()
const {
return wxNullBitmap; }
88 virtual bool IsValid()
const {
return true; }
124 virtual bool Save() {
return true; }
139 virtual bool ExecuteOperation(
const wxString &operation,
const wxString ¶meter =
"") {
return false; }
std::unique_ptr< ITab > ITabPtr
Smart pointer type for ITab instances.
Abstract interface for individual tabs that can be moved between panels.
virtual void OnDeactivated()
Called when the tab becomes inactive/hidden.
virtual bool CanMove() const
Check if this tab can be moved to other panels.
virtual bool CanClose() const
Check if this tab can be closed by the user.
virtual bool SupportsOperation(const wxString &operation) const
Check if this tab supports the given operation.
virtual bool ExecuteOperation(const wxString &operation, const wxString ¶meter="")
Execute a named operation on this tab.
virtual wxBitmap GetIcon() const
Get an optional icon for this tab.
virtual void DeserializeState(const wxString &state)
Restore the tab's state from serialized data.
virtual wxString GetTitle() const =0
Get the display title for this tab.
virtual wxString SerializeState() const
Serialize the tab's current state to a string.
virtual bool Save()
Save the tab's data (if applicable)
virtual wxWindow * GetWidget()=0
Get the main widget for this tab.
virtual void OnActivated()
Called when the tab becomes the active/visible tab.
virtual void OnClosed()
Called when the tab is about to be closed/removed Use this for cleanup operations.
virtual bool HasUnsavedChanges() const
Check if this tab has unsaved changes.
virtual wxString GetTabType() const =0
Get a unique identifier for this tab type.
virtual void Refresh()
Called when the tab should refresh its display This should update the tab's content to reflect curren...
virtual bool IsValid() const
Check if the tab is in a valid state.
virtual void Initialize()
Initialize the tab after construction Called once after the tab is created and configured.