|
VR-Engage
2.3
|
Loads persistentNotification.qml (which contains VREItems.Header and VREItems.Footer). Handles all header QML signals (play, pause, rewind, connection, settings, help, exit) internally and emits Qt signals so the currently visible page can react. Provides a configuration API so pages can set the title, cutout visibility, controls, etc.
#include <vreHeaderFooterUI.h>
Public Slots | |
| virtual void | slot_backClicked () |
| virtual void | runningStateUpdated (bool runState) |
| virtual void | slot_headerVisibilityChanged () |
| virtual void | slot_footerVisibilityChanged () |
| virtual void | slot_connectionClicked () |
| virtual void | slot_playClicked () |
| virtual void | slot_pauseClicked () |
| virtual void | slot_rewindClicked () |
| virtual void | slot_settingsOpened () |
| virtual void | slot_settingsClosed () |
| virtual void | slot_displayEngineConfigClicked () |
| virtual void | slot_weatherAndEnvClicked () |
| virtual void | slot_advancedVisualSettingsClicked () |
| virtual void | slot_aboutClicked () |
| virtual void | slot_soundVolumeChanged (qreal volume) |
| virtual void | slot_soundEnabledChanged (bool enabled) |
| virtual void | slot_exitOpened () |
| virtual void | slot_exitClosed () |
| virtual void | slot_exitAccepted () |
| virtual void | slot_exitRejected () |
| virtual void | slot_helpOpened () |
| virtual void | slot_helpClosed () |
Signals | |
| void | sig_connectionClicked () |
| void | sig_popupOpened () |
| void | sig_popupClosed () |
| void | sig_appModeChanged (const std::string &newAppMode, const std::string &oldAppMode) |
Public Member Functions | |
| DtVreHeaderFooterUI (DtPlayerStationApp &app, const std::string &target_window="") | |
| virtual | ~DtVreHeaderFooterUI () override |
| virtual void | initMain () override |
| virtual void | tick (double dt) override |
| virtual void | setVisibility (bool visible) override |
| virtual void | setPersistent (bool persistent) |
| virtual bool | isPersistent () const |
| virtual void | setMenuTitle (const QString &title) |
| virtual void | setShowCutoutVisible (bool visible) |
| virtual void | setShowCutoutControlsVisible (bool visible) |
| virtual void | setButtonEnabled (const std::string &id, bool enabled) |
| virtual bool | isButtonEnabled (const std::string &id) |
| virtual void | updateCutoutControlsEnabled (bool enabled) |
| virtual void | setShowTopRightControlsVisible (bool visible) |
| virtual bool | isHeaderVisible () |
| virtual void | setHeaderVisibility (bool visible) |
| virtual bool | isFooterVisible () |
| virtual void | setFooterVisibility (bool visible) |
| virtual void | setShowBottomBackButtonVisible (bool visible) |
Public Member Functions inherited from makVre::DtVreBaseUI | |
| DtVreBaseUI (DtPlayerStationApp &app, const std::string &file, const std::string &target_window="") | |
| virtual | ~DtVreBaseUI () override |
| QQuickItem * | root () |
| DtVreHeaderFooterUI * | headerFooterUI () |
| virtual bool | isVisible () |
| virtual void | close () |
| virtual void | open () |
| virtual bool | isMainContentVisible () |
| virtual void | setMainContentVisibility (bool visible) |
| DtVreMessageResult | handleBackButtonClicked (DtVreMessage *msg) |
| DtVreMessageResult | handleEscapeMessage (DtVreMessage *msg) |
Protected Member Functions | |
| virtual void | connectToHeaderFooter () override |
| virtual void | setRunning (bool running) |
| virtual void | closeAllSettingsPages (std::string pageName="") |
| virtual void | updateModalState (bool open) |
| virtual void | appModeUpdated (const std::string &newAppMode, const std::string &oldAppMode) |
| virtual void | registerMessageHandlers () |
| virtual void | deregisterMessageHandlers () |
| virtual DtVreMessageResult | handleApplicationMode (DtVreMessage *msg) |
| virtual DtVreMessageResult | handleSessionPlayState (DtVreMessage *msg) |
| virtual DtVreMessageResult | handleToggleHelp (DtVreMessage *msg) |
| virtual DtVreMessageResult | handleEscape (DtVreMessage *msg) |
Protected Member Functions inherited from makVre::DtVreBaseUI | |
| virtual void | onConnectionClicked () |
| virtual void | onPopupOpened () |
| virtual void | onPopupClosed () |
| virtual void | onAppModeChanged (const std::string &newAppMode, const std::string &oldAppMode) |
Protected Attributes | |
| std::string | myHeaderId |
| std::string | myFooterId |
| bool | myIsPlaying |
| bool | myIsPersistent |
| DtAttributeHandleType< bool > | myHeaderVisibleAttr |
| DtAttributeHandleType< bool > | myFooterVisibleAttr |
Protected Attributes inherited from makVre::DtVreBaseUI | |
| DtPlayerStationApp & | myApp |
| QQuickItem * | myRoot |
| std::string | myTargetWindow |
| std::string | myTargetFile |
| std::string | myMainContentId |
| makVre::DtVreHeaderFooterUI::DtVreHeaderFooterUI | ( | DtPlayerStationApp & | app, |
| const std::string & | target_window = "" ) |
Constructor.
| app | Reference to the player station application |
| target_window | Name of the target window (empty for default) |
|
overridevirtual |
Virtual destructor.
|
overridevirtual |
Initializes header/footer signal connections and initial state.
Implements makVre::DtVreBaseUI.
|
overridevirtual |
Per-frame update (currently empty)
Implements makVre::DtVreBaseUI.
|
overridevirtual |
Animation-based show/hide for the header/footer.
| visible | True triggers slide-in animation, false triggers slide-out |
Reimplemented from makVre::DtVreBaseUI.
|
virtual |
Persistent mode control.
Sets persistent mode
| persistent | When true, header/footer stays visible (no auto-hide timer) |
|
virtual |
Checks persistent mode.
|
virtual |
Header configuration API.
|
virtual |
Header configuration API.
|
virtual |
Header configuration API.
|
virtual |
Header configuration API.
|
virtual |
Header configuration API.
|
virtual |
Header configuration API.
|
virtual |
Header configuration API.
|
virtual |
Header configuration API.
|
virtual |
Header configuration API.
|
virtual |
Footer configuration API.
|
virtual |
Footer configuration API.
|
virtual |
Footer configuration API.
|
signal |
Emitted when the header's connection button is clicked.
Pages connected to this signal should check isVisible() and handle navigation to the connection page (or override the default in DtVreBaseUI).
|
signal |
Emitted when any popup (settings, help, exit) opens.
Pages connected to this signal can hide content panels during popups.
|
signal |
Emitted when any popup (settings, help, exit) closes.
Pages connected to this signal can restore content panels after popups.
|
signal |
Emitted when the application mode changes.
| newAppMode | The new mode identifier (e.g. "admin", "user") |
| oldAppMode | The previous mode identifier |
|
virtualslot |
Header QML signal handlers.
|
virtualslot |
Header QML signal handlers.
|
virtualslot |
Header QML signal handlers.
|
virtualslot |
Header QML signal handlers.
|
virtualslot |
Settings popup lifecycle.
|
virtualslot |
Settings popup lifecycle.
|
virtualslot |
Settings popup lifecycle.
|
virtualslot |
Settings popup lifecycle.
|
virtualslot |
Settings popup lifecycle.
|
virtualslot |
Settings popup lifecycle.
|
virtualslot |
Settings popup lifecycle.
|
virtualslot |
Settings popup lifecycle.
|
virtualslot |
Exit dialog lifecycle.
|
virtualslot |
Exit dialog lifecycle.
|
virtualslot |
Exit dialog lifecycle.
|
virtualslot |
Exit dialog lifecycle.
|
virtualslot |
Help popup lifecycle.
|
virtualslot |
Help popup lifecycle.
|
virtualslot |
Footer back button.
|
virtualslot |
Running state updated from QML.
| runState | True if running, false if paused |
|
virtualslot |
Header/Footer visbility changes.
|
virtualslot |
|
overrideprotectedvirtual |
No-op — this class IS the header/footer, so it does not connect to itself.
Reimplemented from makVre::DtVreBaseUI.
|
protectedvirtual |
Sets the running state on the QML root.
|
protectedvirtual |
Closes VRV settings page collections.
|
protectedvirtual |
Updates the modal state attribute.
References makVre::DtVreBaseUI::open().
|
protectedvirtual |
Updates settings popup admin mode when app mode changes.
|
protectedvirtual |
VRE message handlers.
|
protectedvirtual |
VRE message handlers.
|
protectedvirtual |
VRE message handlers.
|
protectedvirtual |
VRE message handlers.
|
protectedvirtual |
VRE message handlers.
|
protectedvirtual |
VRE message handlers.
|
protected |
Header element object name in QML.
|
protected |
Footer element object name in QML.
|
protected |
Whether the simulation is currently playing.
|
protected |
Whether persistent mode is active.
|
protected |
|
protected |