-/*
-** EmuFront
+/* ** EmuFront
** Copyright 2010 Mikko Keinänen
**
** This file is part of EmuFront.
**
** You should have received a copy of the GNU General Public License
** along with EmuFront. If not, see <http://www.gnu.org/licenses/>.
-*/#ifndef MAINWINDOW_H
+*/
+
+#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
class QAction;
-// TODO: DEPRECATED
-class PlatformDialog;
class PlatformEditView;
class MediaTypeEditView;
-// TODO: DEPRECATED
-class MediaTypeDialog;
class MediaTypeEditView;
-// TODO: DEPRECATED
-class MediaImagePathMainDialog;
class FilePathEditView;
-// TODO: DEPRECATED
-class SetupMainDialog;
class SetupEditView;
-// TODO: DEPRECATED
-class ExecutableMainDialog;
class ExternalExecutableEditView;
-//class TmpFolderEditDialog;
class QLabel;
class DatabaseManager;
class EmuFrontDialog;
class EmuLauncher;
class DatFileUtil;
class QErrorMessage;
+class SetupModel;
+class ExternalExecutableModel;
+class PlatformModel;
+class MediaTypeModel;
class MainWindow : public QMainWindow
{
void closeEvent(QCloseEvent *event);
private slots:
- // TODO: DEPRECATED
void configurePlatforms();
- void configurePlatformss();
- // TODO: DEPRECATED
void configureMediaTypes();
- void configureMediaTypess();
- // TODO: DEPRECATED
void configureMediaImagePaths();
- void configureMediaImagePathss();
- // TODO: DEPRECATED
void configureSetups();
- void configureSetupss();
- // TODO: DEPRECATED
void configureEmulators();
- void configureEmulatorss();
void configureTmpDir();
void resetDb();
void updateData();
bool testDB(bool reset);
void createDB() const;
- // TODO: deprecated
- PlatformDialog *platformDialog;
PlatformEditView *plfDialog;
- // TODO: deprecated
- MediaTypeDialog *mediaTypeDialog;
MediaTypeEditView *mdtDialog;
- // TODO: DEPRECATED
- MediaImagePathMainDialog *mediaImagePathDialog;
FilePathEditView *mediaImagePathView;
- // TODO: deprecated
- SetupMainDialog *setupMainDialog;
SetupEditView *setupMainView;
- // TODO: deprecated
- ExecutableMainDialog *executableMainDialog;
ExternalExecutableEditView *emulatorEditView;
- //TmpFolderEditDialog *tmpFolderDialog;
QMenu *configMenu;
QMenu *fileMenu;
QMenu *helpMenu;
- // TODO: deprecated
- QAction *configPlatformAction;
QAction *configPlatformsAction;
- // TODO: deprecated
- QAction *configMediaTypeAction;
QAction *configMediaTypesAction;
- // TODO: DEPRECATED
- QAction *configMediaImagePathAction;
QAction *configMediaImagePathsAction;
- // TODO: deprecated
- QAction *configSetupAction;
QAction *configSetupsAction;
- // TODO: deprecated
- QAction *configEmulatorAction;
QAction *configEmulatorsAction;
QAction *exitAction;
QAction *resetDbAction;
EmuLauncher *launcher;
QString tmpDirFilePath;
QErrorMessage *errorMessage;
+ SetupModel *supModel;
+ ExternalExecutableModel *emuModel;
+ PlatformModel *plfModel;
+ MediaTypeModel *mdtModel;
};
#endif