]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/new_gui.hxx
GUI support for VIA/Discontinuity
[flightgear.git] / src / GUI / new_gui.hxx
index 5e8b1f8479077b86cacbe4ec10086fb57a5383ad..a0e4e69af6b963fddd6b03ff6f8074085bf6f8c8 100644 (file)
@@ -10,6 +10,7 @@
 #include <vector>
 #include <map>
 #include <memory> // for auto_ptr on some systems
+#include <cstring> // for strcmp in lstr() (in this header, alas)
 
 class FGMenuBar;
 class FGDialog;
@@ -45,6 +46,8 @@ public:
      */
     virtual void init ();
 
+    virtual void shutdown ();
+    
     /**
      * Reinitialize the GUI subsystem. Reloads all XML dialogs.
      */
@@ -198,6 +201,8 @@ protected:
     virtual void reset (bool reload);
 
 private:
+    void createMenuBarImplementation();
+    
     struct ltstr
     {
         bool operator()(const char* s1, const char* s2) const {
@@ -218,7 +223,8 @@ private:
 
     std::auto_ptr<FGMenuBar> _menubar;
     FGDialog * _active_dialog;
-    std::map<std::string,FGDialog *> _active_dialogs;
+    typedef std::map<std::string,FGDialog *> DialogDict;
+    DialogDict _active_dialogs;
   
     typedef std::map<std::string, SGPath> NamePathDict;
     // mapping from dialog names to the corresponding XML property list