![]() |
VR-Forces Developer's Guide
|
Menu item that toggles the visibility of the background status bar.
Subclasses DtCheckedItem. Its menu ID string is "DtStatusBarItem". Displays "Hide Status Bar" when the bar is visible and "Show Status Bar" when it is hidden.

Public Slots | |
| void | slot_onStatusBarVisibilityChanged () |
Public Member Functions | |
| DtStatusBarItem (DtDe &de) | |
| ~DtStatusBarItem () override | |
| QAction * | createAction (DtDe &de, QWidget *parent) override |
Public Member Functions inherited from makVrv::DtCheckedItem | |
| DtCheckedItem (DtDe &de, const std::string &className) | |
| virtual | ~DtCheckedItem () |
| virtual void | on_settingChanged (bool value) |
| void | updateValue () |
Public Member Functions inherited from makVrv::DtMenuItem | |
| DtMenuItem (const std::string &menuItemIdName) | |
| virtual | ~DtMenuItem () |
| virtual const std::string & | menuItemIdName () const |
Protected Member Functions | |
| void | setValue (bool value) override |
| bool | getValue () const override |
Protected Member Functions inherited from makVrv::DtCheckedItem | |
| virtual void | on_postInitialize () |
| virtual void | on_triggered () |
Protected Attributes | |
| DtQtDeMainWindow * | myMainWindow |
Protected Attributes inherited from makVrv::DtCheckedItem | |
| bool | myState |
| QString | myOnText |
| QString | myOffText |
| QString | myToolTip |
| DtQIconConfigurations | myIconConfigurations |
| QAction * | myAction |
| DtDe & | myDe |
Protected Attributes inherited from makVrv::DtMenuItem | |
| std::string | myMenuIdName |
Additional Inherited Members | |
Protected Slots inherited from makVrv::DtMenuItem | |
| virtual void | on_checkStateChanged (bool) |
| virtual void | on_aboutToShow () |
| makVrv::DtStatusBarItem::DtStatusBarItem | ( | DtDe & | de | ) |
Constructs the status bar toggle menu item.
| de | The owning display engine; used to obtain the main window. |
|
override |
Destructor.
Creates the toggle action and connects to the main window's visibility signal.
Overridden to obtain a pointer to the main window and connect slot_onStatusBarVisibilityChanged() to signal_statusBarVisibilityChanged().
| de | The owning display engine. |
| parent | The parent widget for the action. |
Reimplemented from makVrv::DtCheckedItem.
|
slot |
Connected to signal_statusBarVisibilityChanged; calls updateValue() to refresh the checked state and menu label.
|
overrideprotectedvirtual |
Sets the status bar visibility when the menu item is triggered.
| value | True to show the status bar; false to hide it. |
Implements makVrv::DtCheckedItem.
|
overrideprotectedvirtual |
Returns whether the background status bar is currently visible.
Implements makVrv::DtCheckedItem.
|
protected |