]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/new_gui.hxx
Support for multiple data dirs.
[flightgear.git] / src / GUI / new_gui.hxx
index dfc1ad812855279369b2e790c6f6ebb693cbad09..d0e09571304eb8b85692087fb59027fb380e89b1 100644 (file)
@@ -7,13 +7,10 @@
 #include <simgear/structure/subsystem_mgr.hxx>
 #include <simgear/misc/sg_path.hxx>
 
-#include <string.h>
-#include <functional>
 #include <vector>
 #include <map>
 #include <memory> // for auto_ptr on some systems
-
-class SGBinding;
+#include <cstring> // for strcmp in lstr() (in this header, alas)
 
 class FGMenuBar;
 class FGDialog;
@@ -223,7 +220,15 @@ private:
     std::auto_ptr<FGMenuBar> _menubar;
     FGDialog * _active_dialog;
     std::map<std::string,FGDialog *> _active_dialogs;
-    std::map<std::string,SGPropertyNode_ptr> _dialog_props;
+  
+    typedef std::map<std::string, SGPath> NamePathDict;
+    // mapping from dialog names to the corresponding XML property list
+    // which defines them
+    NamePathDict _dialog_names;
+  
+    // cache of loaded dialog proeprties
+    typedef std::map<std::string,SGPropertyNode_ptr> NameDialogDict;
+    NameDialogDict _dialog_props;
 
 };