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/>.
23 #include <QMainWindow>
27 class MediaTypeDialog;
28 class MediaImagePathMainDialog;
29 class SetupMainDialog;
30 class ExecutableMainDialog;
31 //class TmpFolderEditDialog;
33 class DatabaseManager;
37 class MainWindow : public QMainWindow
46 void closeEvent(QCloseEvent *event);
49 void configurePlatforms();
50 void configureMediaTypes();
51 void configureMediaImagePaths();
52 void configureSetups();
53 void configureEmulators();
54 void configureTmpDir();
59 static QString aboutStr;
60 static QString aboutTitle;
63 void createStatusBar();
67 void connectSignals();
68 void activateDialog(EmuFrontDialog*) const;
69 PlatformDialog *platformDialog;
70 MediaTypeDialog *mediaTypeDialog;
71 MediaImagePathMainDialog *mediaImagePathDialog;
72 SetupMainDialog *setupMainDialog;
73 ExecutableMainDialog *executableMainDialog;
74 //TmpFolderEditDialog *tmpFolderDialog;
78 QAction *configPlatformAction;
79 QAction *configMediaTypeAction;
80 QAction *configMediaImagePathAction;
81 QAction *configSetupAction;
82 QAction *configEmulatorAction;
85 QAction *configTmpDirAction;
87 DatabaseManager *dbManager;
88 EmuLauncher *launcher;
89 QString tmpDirFilePath;