3 ** Copyright 2010 Mikko Keinänen
5 ** This file is part of EmuFront.
8 ** EmuFront is free software: you can redistribute it and/or modify
9 ** it under the terms of the GNU General Public License version 2 as published by
10 ** the Free Software Foundation and appearing in the file gpl.txt included in the
11 ** packaging of this file.
13 ** EmuFront is distributed in the hope that it will be useful,
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ** GNU General Public License for more details.
18 ** You should have received a copy of the GNU General Public License
19 ** along with EmuFront. If not, see <http://www.gnu.org/licenses/>.
20 */#ifndef MAINWINDOW_H
23 #include <QMainWindow>
27 //class PlatformDialog;
28 class PlatformEditView;
29 class MediaTypeEditView;
31 //class MediaTypeDialog;
32 class MediaTypeEditView;
34 //class MediaImagePathMainDialog;
35 class FilePathEditView;
37 //class SetupMainDialog;
40 //class ExecutableMainDialog;
41 class ExternalExecutableEditView;
42 //class TmpFolderEditDialog;
44 class DatabaseManager;
51 class MainWindow : public QMainWindow
56 MainWindow(bool reset = false);
60 void closeEvent(QCloseEvent *event);
64 //void configurePlatforms();
65 void configurePlatformss();
67 //void configureMediaTypes();
68 void configureMediaTypess();
70 //void configureMediaImagePaths();
71 void configureMediaImagePathss();
73 //void configureSetups();
74 void configureSetupss();
76 //void configureEmulators();
77 void configureEmulatorss();
78 void configureTmpDir();
81 void manageDatFiles();
85 static QString aboutStr;
86 static QString aboutTitle;
89 void createStatusBar();
93 void connectSignals();
94 void activateDialog(EmuFrontDialog*) const;
95 bool testDB(bool reset);
96 void createDB() const;
99 //PlatformDialog *platformDialog;
100 PlatformEditView *plfDialog;
102 //MediaTypeDialog *mediaTypeDialog;
103 MediaTypeEditView *mdtDialog;
105 //MediaImagePathMainDialog *mediaImagePathDialog;
106 FilePathEditView *mediaImagePathView;
108 //SetupMainDialog *setupMainDialog;
109 SetupEditView *setupMainView;
111 //ExecutableMainDialog *executableMainDialog;
112 ExternalExecutableEditView *emulatorEditView;
113 //TmpFolderEditDialog *tmpFolderDialog;
118 //QAction *configPlatformAction;
119 QAction *configPlatformsAction;
121 //QAction *configMediaTypeAction;
122 QAction *configMediaTypesAction;
124 //QAction *configMediaImagePathAction;
125 QAction *configMediaImagePathsAction;
127 //QAction *configSetupAction;
128 QAction *configSetupsAction;
130 //QAction *configEmulatorAction;
131 QAction *configEmulatorsAction;
133 QAction *resetDbAction;
134 QAction *aboutAction;
135 QAction *configTmpDirAction;
136 QAction *manageDatFilesAction;
137 QLabel *messageLabel;
138 DatabaseManager *dbManager;
139 EmuLauncher *launcher;
140 QString tmpDirFilePath;
141 QErrorMessage *errorMessage;
142 SetupModel *supModel;