2 ** Copyright 2010 Mikko Keinänen
4 ** This file is part of EmuFront.
7 ** EmuFront is free software: you can redistribute it and/or modify
8 ** it under the terms of the GNU General Public License version 2 as published by
9 ** the Free Software Foundation and appearing in the file gpl.txt included in the
10 ** packaging of this file.
12 ** EmuFront is distributed in the hope that it will be useful,
13 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ** GNU General Public License for more details.
17 ** You should have received a copy of the GNU General Public License
18 ** along with EmuFront. If not, see <http://www.gnu.org/licenses/>.
24 #include <QMainWindow>
28 //class PlatformDialog;
29 class PlatformEditView;
30 class MediaTypeEditView;
32 //class MediaTypeDialog;
33 class MediaTypeEditView;
35 //class MediaImagePathMainDialog;
36 class FilePathEditView;
38 //class SetupMainDialog;
41 //class ExecutableMainDialog;
42 class ExternalExecutableEditView;
43 //class TmpFolderEditDialog;
45 class DatabaseManager;
51 class ExternalExecutableModel;
53 class MainWindow : public QMainWindow
58 MainWindow(bool reset = false);
62 void closeEvent(QCloseEvent *event);
66 //void configurePlatforms();
67 void configurePlatformss();
69 //void configureMediaTypes();
70 void configureMediaTypess();
72 //void configureMediaImagePaths();
73 void configureMediaImagePathss();
75 //void configureSetups();
76 void configureSetupss();
78 //void configureEmulators();
79 void configureEmulatorss();
80 void configureTmpDir();
83 void manageDatFiles();
87 static QString aboutStr;
88 static QString aboutTitle;
91 void createStatusBar();
95 void connectSignals();
96 void activateDialog(EmuFrontDialog*) const;
97 bool testDB(bool reset);
98 void createDB() const;
101 //PlatformDialog *platformDialog;
102 PlatformEditView *plfDialog;
104 //MediaTypeDialog *mediaTypeDialog;
105 MediaTypeEditView *mdtDialog;
107 //MediaImagePathMainDialog *mediaImagePathDialog;
108 FilePathEditView *mediaImagePathView;
110 //SetupMainDialog *setupMainDialog;
111 SetupEditView *setupMainView;
113 //ExecutableMainDialog *executableMainDialog;
114 ExternalExecutableEditView *emulatorEditView;
115 //TmpFolderEditDialog *tmpFolderDialog;
120 //QAction *configPlatformAction;
121 QAction *configPlatformsAction;
123 //QAction *configMediaTypeAction;
124 QAction *configMediaTypesAction;
126 //QAction *configMediaImagePathAction;
127 QAction *configMediaImagePathsAction;
129 //QAction *configSetupAction;
130 QAction *configSetupsAction;
132 //QAction *configEmulatorAction;
133 QAction *configEmulatorsAction;
135 QAction *resetDbAction;
136 QAction *aboutAction;
137 QAction *configTmpDirAction;
138 QAction *manageDatFilesAction;
139 QLabel *messageLabel;
140 DatabaseManager *dbManager;
141 EmuLauncher *launcher;
142 QString tmpDirFilePath;
143 QErrorMessage *errorMessage;
144 SetupModel *supModel;
145 ExternalExecutableModel *emuModel;