]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/menubar.hxx
VS2015 compatability fixes.
[flightgear.git] / src / GUI / menubar.hxx
index fa3f43ca506292ec282a2714bc46a61159ca47a1..3e70c48c1feb6ef6366f85bd18dcacd0120c4838 100644 (file)
@@ -3,6 +3,7 @@
 #ifndef __MENUBAR_HXX
 #define __MENUBAR_HXX 1
 
+class SGPropertyNode;
 
 /**
  * XML-configured menu bar interface
@@ -15,7 +16,7 @@
 class FGMenuBar
 {
 public:
-
+    FGMenuBar();
 
     /**
      * Destructor.
@@ -45,6 +46,13 @@ public:
      */
     virtual bool isVisible () const = 0;
 
+    /**
+     * Read a menu label from the menu's property tree.
+     * Take care of mapping it to the appropriate translation, if available.
+     * Returns an UTF-8 encoded string.
+     */
+    static const char* getLocalizedLabel(SGPropertyNode* node);
+
 };
 
 #endif // __MENUBAR_HXX