72 virtual bool Save() {
return true; }
Abstract interface for different scene types in the MainPanel.
virtual bool HasUnsavedChanges() const
Check if this scene has unsaved changes.
virtual ~IScene()=default
virtual void OnActivated()
Called when this scene becomes the active tab.
virtual wxString GetSceneType() const =0
Get a unique identifier for this scene type.
virtual void Refresh()
Called when the scene should refresh its display.
virtual wxString GetTitle() const =0
Get the display title for this scene.
virtual wxPanel * GetPanel()=0
Get the main panel widget for this scene.
virtual bool Save()
Save the scene (if applicable)
virtual void OnDeactivated()
Called when this scene is no longer the active tab.