1
0
Fork 0
flightgear/src/GUI/FGWindowsMenuBar.hxx
James Turner 1b585fa415 Windows native file-dialog, menu-bar
By Gijs with additions by James. Menubar is disabled at present
since it's not usable and potentially inferior to other solutions,
but committing the code so it doesn't rot.
2014-01-20 18:43:02 +00:00

64 lines
1.2 KiB
C++

// menubar.hxx - XML-configured menu bar.
#ifndef FG_WINDOWS_MENUBAR_HXX
#define FG_WINDOWS_MENUBAR_HXX 1
#include <GUI/menubar.hxx>
#include <memory>
/**
* XML-configured Windows menu bar.
*
* This class creates a menu bar from a tree of XML properties. These
* properties are not part of the main FlightGear property tree, but
* are read from a separate file ($FG_ROOT/gui/menubar.xml).
*
* WARNING: because PUI provides no easy way to attach user data to a
* menu item, all menu item strings must be unique; otherwise, this
* class will always use the first binding with any given name.
*/
class FGWindowsMenuBar : public FGMenuBar
{
public:
/**
* Constructor.
*/
FGWindowsMenuBar ();
/**
* Destructor.
*/
virtual ~FGWindowsMenuBar ();
/**
* Initialize the menu bar from $FG_ROOT/gui/menubar.xml
*/
virtual void init ();
/**
* Make the menu bar visible.
*/
virtual void show ();
/**
* Make the menu bar invisible.
*/
virtual void hide ();
/**
* Test whether the menu bar is visible.
*/
virtual bool isVisible () const;
class WindowsMenuBarPrivate;
private:
std::auto_ptr<WindowsMenuBarPrivate> p;
};
#endif // __MENUBAR_HXX