|
| | Panel (wxWindow *parent, const wxString &name="Panel", long style=wxTAB_TRAVERSAL) |
| | Constructor.
|
| virtual | ~Panel () |
| | Destructor.
|
| wxPanel * | GetPanel () override |
| | Get the main panel widget.
|
| wxString | GetTitle () const override |
| | Get the display title for this panel.
|
| wxString | GetPanelType () const override |
| | Get a unique identifier for this panel type.
|
| void | Initialize () override |
| | Initialize the panel after construction Called once after the panel is created and configured.
|
| void | Refresh () override |
| | Called when the panel should refresh its display This should update the panel's content to reflect current state.
|
| void | OnActivated () override |
| | Called when the panel becomes visible/active.
|
| void | OnDeactivated () override |
| | Called when the panel becomes hidden/inactive.
|
| void | Cleanup () override |
| | Called when the panel is about to be destroyed Use this for cleanup operations.
|
| bool | IsValid () const override |
| | Check if the panel is in a valid state.
|
| wxString | SerializeState () const override |
| | Serialize the panel's current state to a string.
|
| void | DeserializeState (const wxString &state) override |
| | Restore the panel's state from serialized data.
|
| bool | HasUnsavedChanges () const override |
| | Check if this panel has unsaved changes.
|
| bool | Save () override |
| | Save the panel's data (if applicable)
|
| bool | SupportsOperation (const wxString &operation) const override |
| | Check if this panel supports the given operation.
|
| bool | ExecuteOperation (const wxString &operation, const wxString ¶meter="") override |
| | Execute a named operation on this panel.
|
| wxString | GetName () const override |
| void | SetName (const wxString &name) override |
| void | SetTitle (const wxString &title) |
| void | SetPanelType (const wxString &type) |
| virtual | ~IPanel ()=default |
|
| virtual void | CreateLayout () |
| | Create the panel's UI layout Called during initialization.
|
| virtual void | ApplyTheme () |
| | Apply current theme to the panel Called when theme changes.
|
| virtual void | UpdateContent () |
| | Update panel content Called during refresh.
|
| virtual void | HandleActivation () |
| | Handle panel activation Called when panel becomes active.
|
| virtual void | HandleDeactivation () |
| | Handle panel deactivation Called when panel becomes inactive.
|
| virtual bool | ValidateState () const |
| | Validate panel state Override to provide custom validation logic.
|
| void | MarkChanged () |
| | Mark panel as having unsaved changes.
|
| void | MarkSaved () |
| | Mark panel as saved (no unsaved changes)
|
| wxSizer * | GetMainSizer () const |
| | Get the main sizer for layout management.
|
| void | SetMainSizer (wxSizer *sizer) |
| | Set the main sizer (takes ownership)
|
| virtual void | OnPanelSize (wxSizeEvent &event) |
| virtual void | OnPanelPaint (wxPaintEvent &event) |
| virtual void | OnPanelRightClick (wxContextMenuEvent &event) |
Base implementation of IPanel interface.
This class provides a concrete implementation of the IPanel interface with common functionality that can be inherited by specific panel types. It handles basic panel lifecycle, theming, and state management.
Definition at line 28 of file Panel.h.