FlightGear next
|
XML-configured Windows menu bar. More...
#include <FGWindowsMenuBar.hxx>
Inherits FGMenuBar.
Classes | |
class | WindowsMenuBarPrivate |
Public Member Functions | |
FGWindowsMenuBar () | |
Constructor. | |
~FGWindowsMenuBar () override=default | |
void | init () override |
Initialize the menu bar from $FG_ROOT/gui/menubar.xml. | |
void | show () override |
Make the menu bar visible. | |
void | hide () override |
Make the menu bar invisible. | |
bool | isVisible () const override |
Test whether the menu bar is visible. | |
void | setHideIfOverlapsWindow (bool hide) override |
Request the menubar to be hidden if its display overlays the main window content. | |
bool | getHideIfOverlapsWindow () const override |
std::vector< SGBindingList > | getItemBindings () const |
![]() | |
FGMenuBar () | |
virtual | ~FGMenuBar () |
Destructor. | |
virtual void | postinit () |
Additional Inherited Members | |
![]() | |
static std::string | getLocalizedLabel (SGPropertyNode *node) |
Read a menu label from the menu's property tree. | |
XML-configured Windows menu bar.
This class creates a menu bar from a tree of XML properties. These properties are not part of the main FlightGear property tree, but are read from a separate file ($FG_ROOT/gui/menubar.xml).
Definition at line 22 of file FGWindowsMenuBar.hxx.
FGWindowsMenuBar::FGWindowsMenuBar | ( | ) |
Constructor.
Definition at line 105 of file FGWindowsMenuBar.cxx.
|
overridedefault |
|
overridevirtual |
Implements FGMenuBar.
Definition at line 196 of file FGWindowsMenuBar.cxx.
std::vector< SGBindingList > FGWindowsMenuBar::getItemBindings | ( | ) | const |
Definition at line 201 of file FGWindowsMenuBar.cxx.
|
overridevirtual |
Make the menu bar invisible.
Implements FGMenuBar.
Definition at line 172 of file FGWindowsMenuBar.cxx.
|
overridevirtual |
Initialize the menu bar from $FG_ROOT/gui/menubar.xml.
Implements FGMenuBar.
Definition at line 109 of file FGWindowsMenuBar.cxx.
|
overridevirtual |
Test whether the menu bar is visible.
Implements FGMenuBar.
Definition at line 178 of file FGWindowsMenuBar.cxx.
|
overridevirtual |
Request the menubar to be hidden if its display overlays the main window content.
(Which essentially means the PUI menubar at the moment). This is used to prevent the menubar overlapping the splash-screen during startup.
The state of this flag is independant of the normal menubar visibility, i.e this flag and the normal visibility and AND-ed together inside the code.
Implements FGMenuBar.
Definition at line 183 of file FGWindowsMenuBar.cxx.
|
overridevirtual |
Make the menu bar visible.
Implements FGMenuBar.
Definition at line 166 of file FGWindowsMenuBar.cxx.