Implemented Executable editor (for configurating emulators).
[emufront] / src / mainwindow.h
index 097e15c..5c98993 100644 (file)
@@ -9,13 +9,13 @@
 // the Free Software Foundation, either version 3 of the License, or
 // (at your option) any later version.
 //
-// Foobar is distributed in the hope that it will be useful,
+// EmuFront is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
 //
 // You should have received a copy of the GNU General Public License
-// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+// along with EmuFront.  If not, see <http://www.gnu.org/licenses/>.
 
 #ifndef MAINWINDOW_H
 #define MAINWINDOW_H
 
 class QAction;
 class PlatformDialog;
+class MediaTypeDialog;
+class MediaImagePathMainDialog;
+class SetupMainDialog;
+class ExecutableMainDialog;
 class QLabel;
 class DatabaseManager;
+class EmuFrontDialog;
+class EmuLauncher;
 
 class MainWindow : public QMainWindow
 {
@@ -33,13 +39,17 @@ class MainWindow : public QMainWindow
 
 public:
        MainWindow();
-        //~MainWindow()
+    //~MainWindow()
 
 protected:
        void closeEvent(QCloseEvent *event);
 
 private slots:
        void configurePlatforms();
+    void configureMediaTypes();
+    void configureMediaImagePaths();
+    void configureSetups();
+    void configureEmulators();
 
 private:
        void createActions();
@@ -48,13 +58,23 @@ private:
        void readSettings();
        void writeSettings();
        bool okToContinue();
+    void activateDialog(EmuFrontDialog*) const;
        PlatformDialog *platformDialog;
+    MediaTypeDialog *mediaTypeDialog;
+    MediaImagePathMainDialog *mediaImagePathDialog;
+    SetupMainDialog *setupMainDialog;
+    ExecutableMainDialog *executableMainDialog;
        QMenu *configMenu;
        QMenu *fileMenu;
-        QAction *configPlatformAction; 
-       QAction *exitAction;
+    QAction *configPlatformAction;
+    QAction *configMediaTypeAction;
+    QAction *configMediaImagePathAction;
+    QAction *configSetupAction;
+    QAction *configEmulatorAction;
+    QAction *exitAction;
        QLabel *messageLabel;
-        DatabaseManager *dbManager;
+    DatabaseManager *dbManager;
+    EmuLauncher *launcher;
 };
 
 #endif