1 // menubar.hxx - XML-configured menu bar.
4 #define __MENUBAR_HXX 1
9 * XML-configured menu bar interface
11 * This class creates a menu bar from a tree of XML properties. These
12 * properties are not part of the main FlightGear property tree, but
13 * are read from a separate file ($FG_ROOT/gui/menubar.xml).
24 virtual ~FGMenuBar ();
28 * Initialize the menu bar from $FG_ROOT/gui/menubar.xml
30 virtual void init () = 0;
33 * Make the menu bar visible.
35 virtual void show () = 0;
39 * Make the menu bar invisible.
41 virtual void hide () = 0;
45 * Test whether the menu bar is visible.
47 virtual bool isVisible () const = 0;
50 * Read a menu label from the menu's property tree.
51 * Take care of mapping it to the appropriate translation, if available.
52 * Returns an UTF-8 encoded string.
54 static const char* getLocalizedLabel(SGPropertyNode* node);
58 #endif // __MENUBAR_HXX