FlightGear next
menubar.hxx
Go to the documentation of this file.
1// menubar.hxx - XML-configured menu bar.
2
3#ifndef __MENUBAR_HXX
4#define __MENUBAR_HXX 1
5
6#include <string>
7
8class SGPropertyNode;
9
19{
20public:
21 FGMenuBar();
22
26 virtual ~FGMenuBar ();
27
28
32 virtual void init () = 0;
33
34 virtual void postinit()
35 {
36 }
37
41 virtual void show () = 0;
42
43
47 virtual void hide () = 0;
48
49
53 virtual bool isVisible () const = 0;
54
63 virtual void setHideIfOverlapsWindow(bool hide) = 0;
64
65 // corresponding getter to valye able.
66 virtual bool getHideIfOverlapsWindow() const = 0;
67
73 static std::string getLocalizedLabel(SGPropertyNode* node);
74
75};
76
77#endif // __MENUBAR_HXX
virtual ~FGMenuBar()
Destructor.
Definition menubar.cxx:14
virtual void init()=0
Initialize the menu bar from $FG_ROOT/gui/menubar.xml.
virtual void postinit()
Definition menubar.hxx:34
virtual bool isVisible() const =0
Test whether the menu bar is visible.
virtual void hide()=0
Make the menu bar invisible.
virtual void show()=0
Make the menu bar visible.
virtual void setHideIfOverlapsWindow(bool hide)=0
Request the menubar to be hidden if its display overlays the main window content.
virtual bool getHideIfOverlapsWindow() const =0
static std::string getLocalizedLabel(SGPropertyNode *node)
Read a menu label from the menu's property tree.
Definition menubar.cxx:19