]> git.mxchange.org Git - flightgear.git/blob - src/GUI/menubar.hxx
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
[flightgear.git] / src / GUI / menubar.hxx
1 // menubar.hxx - XML-configured menu bar.
2
3 #ifndef __MENUBAR_HXX
4 #define __MENUBAR_HXX 1
5
6
7 /**
8  * XML-configured menu bar interface
9  *
10  * This class creates a menu bar from a tree of XML properties.  These
11  * properties are not part of the main FlightGear property tree, but
12  * are read from a separate file ($FG_ROOT/gui/menubar.xml).
13
14  */
15 class FGMenuBar
16 {
17 public:
18
19
20     /**
21      * Destructor.
22      */
23     virtual ~FGMenuBar ();
24
25
26     /**
27      * Initialize the menu bar from $FG_ROOT/gui/menubar.xml
28      */
29     virtual void init () = 0;
30     
31     /**
32      * Make the menu bar visible.
33      */
34     virtual void show () = 0;
35
36
37     /**
38      * Make the menu bar invisible.
39      */
40     virtual void hide () = 0;
41
42
43     /**
44      * Test whether the menu bar is visible.
45      */
46     virtual bool isVisible () const = 0;
47
48 };
49
50 #endif // __MENUBAR_HXX