]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/preferences.h
fix and improve the game selection and game configuration dialogs - added dir dialog...
[xonotic/netradiant.git] / radiant / preferences.h
index 00e2b15dfde8df3901dedaf3c009087c874174a3..7042aa1b41406d982d0f033b8a9eb90f3331d260 100644 (file)
@@ -213,6 +213,9 @@ public:
        void Run();
        void BuildDialog();
 
+       static void OnBtnBrowseEngine( GtkWidget *widget, gpointer data );
+       static void OnGameSelectChanged( GtkWidget *widget, gpointer data );
+
        enum gameType_e {
                GAME_NONE = 0,
                GAME_Q3 = 1,
@@ -243,6 +246,7 @@ class CGameDialog : public Dialog
   GtkWidget *mFrame; ///< this is built on-demand first time it's used
   GtkWidget *mTopBox; ///< top level box used to store the dialog frame, must unhook after modal use
 
+  GtkComboBox  *mGameCombo;    // combo box holds the selection of available game
 
   /*!
   global prefs storage
@@ -310,6 +314,7 @@ public:
          m_bLogConsole = false;
          m_bForceLogConsole = false;
          m_bDoGameInstall = true;      // go through DoModal at least once
+         mGameCombo = NULL;
   }
   virtual ~CGameDialog(); 
 
@@ -397,6 +402,8 @@ private:
        callback for the game install button
   */
   static void SInstallCallback( GtkWidget *widget, gpointer data );
+
+  void UpdateGameCombo();
 };
 
 typedef struct {