1 // menubar.hxx - XML-configured menu bar.
3 #ifndef FG_COCOA_MENUBAR_HXX
4 #define FG_COCOA_MENUBAR_HXX 1
6 #include <GUI/menubar.hxx>
11 * XML-configured Cocoa menu bar.
13 * This class creates a menu bar from a tree of XML properties. These
14 * properties are not part of the main FlightGear property tree, but
15 * are read from a separate file ($FG_ROOT/gui/menubar.xml).
17 * WARNING: because PUI provides no easy way to attach user data to a
18 * menu item, all menu item strings must be unique; otherwise, this
19 * class will always use the first binding with any given name.
21 class FGCocoaMenuBar : public FGMenuBar
34 virtual ~FGCocoaMenuBar ();
38 * Initialize the menu bar from $FG_ROOT/gui/menubar.xml
43 * Make the menu bar visible.
49 * Make the menu bar invisible.
55 * Test whether the menu bar is visible.
57 virtual bool isVisible () const;
59 class CocoaMenuBarPrivate;
61 std::auto_ptr<CocoaMenuBarPrivate> p;
65 #endif // __MENUBAR_HXX