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;
55 class MainWindow : public QMainWindow
60 MainWindow(bool reset = false);
64 void closeEvent(QCloseEvent *event);
68 //void configurePlatforms();
69 void configurePlatformss();
71 //void configureMediaTypes();
72 void configureMediaTypess();
74 //void configureMediaImagePaths();
75 void configureMediaImagePathss();
77 //void configureSetups();
78 void configureSetupss();
80 //void configureEmulators();
81 void configureEmulatorss();
82 void configureTmpDir();
85 void manageDatFiles();
89 static QString aboutStr;
90 static QString aboutTitle;
93 void createStatusBar();
97 void connectSignals();
98 void activateDialog(EmuFrontDialog*) const;
99 bool testDB(bool reset);
100 void createDB() const;
103 //PlatformDialog *platformDialog;
104 PlatformEditView *plfDialog;
106 //MediaTypeDialog *mediaTypeDialog;
107 MediaTypeEditView *mdtDialog;
109 //MediaImagePathMainDialog *mediaImagePathDialog;
110 FilePathEditView *mediaImagePathView;
112 //SetupMainDialog *setupMainDialog;
113 SetupEditView *setupMainView;
115 //ExecutableMainDialog *executableMainDialog;
116 ExternalExecutableEditView *emulatorEditView;
117 //TmpFolderEditDialog *tmpFolderDialog;
122 //QAction *configPlatformAction;
123 QAction *configPlatformsAction;
125 //QAction *configMediaTypeAction;
126 QAction *configMediaTypesAction;
128 //QAction *configMediaImagePathAction;
129 QAction *configMediaImagePathsAction;
131 //QAction *configSetupAction;
132 QAction *configSetupsAction;
134 //QAction *configEmulatorAction;
135 QAction *configEmulatorsAction;
137 QAction *resetDbAction;
138 QAction *aboutAction;
139 QAction *configTmpDirAction;
140 QAction *manageDatFilesAction;
141 QLabel *messageLabel;
142 DatabaseManager *dbManager;
143 EmuLauncher *launcher;
144 QString tmpDirFilePath;
145 QErrorMessage *errorMessage;
146 SetupModel *supModel;
147 ExternalExecutableModel *emuModel;
148 PlatformModel *plfModel;
149 MediaTypeModel *mdtModel;