X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FGUI%2Fnew_gui.hxx;h=a0e4e69af6b963fddd6b03ff6f8074085bf6f8c8;hb=846fd2169832c8938f04386139de746a06e80d4b;hp=5e8b1f8479077b86cacbe4ec10086fb57a5383ad;hpb=666a68c74265483650fb409881b733fd5dc2643f;p=flightgear.git diff --git a/src/GUI/new_gui.hxx b/src/GUI/new_gui.hxx index 5e8b1f847..a0e4e69af 100644 --- a/src/GUI/new_gui.hxx +++ b/src/GUI/new_gui.hxx @@ -10,6 +10,7 @@ #include #include #include // for auto_ptr on some systems +#include // 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 _menubar; FGDialog * _active_dialog; - std::map _active_dialogs; + typedef std::map DialogDict; + DialogDict _active_dialogs; typedef std::map NamePathDict; // mapping from dialog names to the corresponding XML property list