28 virtual bool Save() {
return true; }
Interface for scene-based UI components (e.g., views or screens).
virtual bool HasUnsavedChanges() const
Returns true if the scene has unsaved changes.
virtual ~IScene()=default
virtual void OnActivated()
Called when the scene becomes active.
virtual wxString GetSceneType() const =0
Returns the scene type identifier.
virtual bool IsClosable() const
Returns true if the scene can be closed.
virtual void Refresh()
Refreshes the scene content.
virtual wxString GetTitle() const =0
Returns the display title of the scene.
virtual wxPanel * GetPanel()=0
Returns the wxPanel used as the scene content.
virtual bool Save()
Saves the scene content; returns true on success.
virtual void OnDeactivated()
Called when the scene becomes inactive.