18 virtual wxBitmap
GetIcon()
const {
return wxNullBitmap; }
32 virtual bool IsValid()
const {
return true; }
36 virtual bool CanMove()
const {
return true; }
46 virtual bool Save() {
return true; }
51 virtual bool ExecuteOperation(
const wxString &operation,
const wxString ¶meter =
"") {
return false; }
std::unique_ptr< ITab > ITabPtr
Interface for tab-based UI components in the application.
virtual void OnDeactivated()
Called when the tab becomes inactive.
virtual bool CanMove() const
Returns true if the tab can be moved/reordered.
virtual bool CanClose() const
Returns true if the tab can be closed.
virtual bool SupportsOperation(const wxString &operation) const
Returns true if the tab supports the given operation.
virtual bool ExecuteOperation(const wxString &operation, const wxString ¶meter="")
Executes an operation with optional parameter; returns true on success.
virtual wxBitmap GetIcon() const
Returns the tab icon bitmap; defaults to null.
virtual void DeserializeState(const wxString &state)
Restores tab state from a serialized string.
virtual wxString GetTitle() const =0
Returns the display title of the tab.
virtual wxString SerializeState() const
Serializes tab state to a string for persistence.
virtual bool Save()
Saves the tab content; returns true on success.
virtual wxWindow * GetWidget()=0
Returns the wxWidgets window used as the tab content.
virtual void OnActivated()
Called when the tab becomes active.
virtual void OnClosed()
Called when the tab is closed.
virtual bool HasUnsavedChanges() const
Returns true if the tab has unsaved changes.
virtual wxString GetTabType() const =0
Returns the tab type identifier.
virtual void Refresh()
Refreshes the tab content.
virtual bool IsValid() const
Returns true if the tab is in a valid state.
virtual void Initialize()
Called once when the tab is first created.