FlightGear next
|
XML-configured Cocoa menu bar. More...
#include <FGCocoaMenuBar.hxx>
Inherits FGMenuBar.
Public Member Functions | |
FGCocoaMenuBar () | |
Constructor. | |
virtual | ~FGCocoaMenuBar () |
Destructor. | |
virtual void | init () |
Initialize the menu bar from $FG_ROOT/gui/menubar.xml. | |
virtual void | show () |
Make the menu bar visible. | |
virtual void | hide () |
Make the menu bar invisible. | |
virtual bool | isVisible () const |
Test whether the menu bar is visible. | |
void | setHideIfOverlapsWindow (bool hide) override |
This is a no-op on Cocoa - the menubar doesn't overlap the window when its drawn. | |
bool | getHideIfOverlapsWindow () const override |
![]() | |
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 Cocoa 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).
WARNING: because PUI provides no easy way to attach user data to a menu item, all menu item strings must be unique; otherwise, this class will always use the first binding with any given name.
Definition at line 21 of file FGCocoaMenuBar.hxx.
FGCocoaMenuBar::FGCocoaMenuBar | ( | ) |
Constructor.
|
virtual |
Destructor.
|
overridevirtual |
Implements FGMenuBar.
|
virtual |
Make the menu bar invisible.
Implements FGMenuBar.
|
virtual |
Initialize the menu bar from $FG_ROOT/gui/menubar.xml.
Implements FGMenuBar.
|
virtual |
Test whether the menu bar is visible.
Implements FGMenuBar.
|
overridevirtual |
This is a no-op on Cocoa - the menubar doesn't overlap the window when its drawn.
Implements FGMenuBar.
|
virtual |
Make the menu bar visible.
Implements FGMenuBar.