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
8
class
SGPropertyNode;
9
18
class
FGMenuBar
19
{
20
public
:
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
FGMenuBar::~FGMenuBar
virtual ~FGMenuBar()
Destructor.
Definition
menubar.cxx:14
FGMenuBar::init
virtual void init()=0
Initialize the menu bar from $FG_ROOT/gui/menubar.xml.
FGMenuBar::postinit
virtual void postinit()
Definition
menubar.hxx:34
FGMenuBar::isVisible
virtual bool isVisible() const =0
Test whether the menu bar is visible.
FGMenuBar::hide
virtual void hide()=0
Make the menu bar invisible.
FGMenuBar::show
virtual void show()=0
Make the menu bar visible.
FGMenuBar::setHideIfOverlapsWindow
virtual void setHideIfOverlapsWindow(bool hide)=0
Request the menubar to be hidden if its display overlays the main window content.
FGMenuBar::getHideIfOverlapsWindow
virtual bool getHideIfOverlapsWindow() const =0
FGMenuBar::FGMenuBar
FGMenuBar()
Definition
menubar.cxx:10
FGMenuBar::getLocalizedLabel
static std::string getLocalizedLabel(SGPropertyNode *node)
Read a menu label from the menu's property tree.
Definition
menubar.cxx:19
src
GUI
menubar.hxx
Generated on Tue Jun 3 2025 12:58:39 for FlightGear by
1.13.2