2 #define __MENUBAR_HXX 1
5 # error This library requires C++
8 #include <simgear/compiler.h> // for SG_USING_STD
25 * XML-configured PUI menu bar.
40 virtual ~FGMenuBar ();
44 * Initialize the menu bar from $FG_ROOT/gui/menubar.xml
50 * Make the menu bar visible.
56 * Make the menu bar invisible.
62 * Test whether the menu bar is visible.
64 virtual bool isVisible () const;
68 * IGNORE THIS METHOD!!!
70 * This is necessary only because plib does not provide any easy
71 * way to attach user data to a menu item. FlightGear should not
72 * have to know about PUI internals, but this method allows the
73 * callback to pass the menu item one-shot on to the current menu.
75 virtual void fireItem (puObject * item);
80 void make_menu (SGPropertyNode_ptr node);
85 map<string,vector<FGBinding *>*> _bindings;
88 #endif // __MENUBAR_HXX