-// EmuFront
-// Copyright 2010 Mikko Keinänen
-//
-// This file is part of EmuFront.
-//
-//
-// EmuFront is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License version 2 as published by
-// the Free Software Foundation and appearing in the file gpl.txt included in the
-// packaging of this file.
-//
-// EmuFront is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with EmuFront. If not, see <http://www.gnu.org/licenses/>.
+/* ** EmuFront
+** Copyright 2010 Mikko Keinänen
+**
+** This file is part of EmuFront.
+**
+**
+** EmuFront is free software: you can redistribute it and/or modify
+** it under the terms of the GNU General Public License version 2 as published by
+** the Free Software Foundation and appearing in the file gpl.txt included in the
+** packaging of this file.
+**
+** EmuFront is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU General Public License for more details.
+**
+** 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
#define MAINWINDOW_H
#include <QMainWindow>
class QAction;
-// TODO: DEPRECATED
-class PlatformDialog;
-class PlatformMainDialog;
-class MediaTypeMainDialog;
-// TODO: DEPRECATED
-class MediaTypeDialog;
-class MediaTypeMainDialog;
-class MediaImagePathMainDialog;
-class SetupMainDialog;
-class ExecutableMainDialog;
-//class TmpFolderEditDialog;
+class PlatformEditView;
+class MediaTypeEditView;
+class MediaTypeEditView;
+class FilePathEditView;
+class SetupEditView;
+class ExternalExecutableEditView;
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();
void configureMediaImagePaths();
void configureSetups();
void configureEmulators();
bool testDB(bool reset);
void createDB() const;
- // TODO: deprecated
- PlatformDialog *platformDialog;
- PlatformMainDialog *plfDialog;
- // TODO: deprecated
- MediaTypeDialog *mediaTypeDialog;
- MediaTypeMainDialog *mdtDialog;
- MediaImagePathMainDialog *mediaImagePathDialog;
- SetupMainDialog *setupMainDialog;
- ExecutableMainDialog *executableMainDialog;
- //TmpFolderEditDialog *tmpFolderDialog;
+ PlatformEditView *plfDialog;
+ MediaTypeEditView *mdtDialog;
+ FilePathEditView *mediaImagePathView;
+ SetupEditView *setupMainView;
+ ExternalExecutableEditView *emulatorEditView;
QMenu *configMenu;
QMenu *fileMenu;
QMenu *helpMenu;
- // TODO: deprecated
- QAction *configPlatformAction;
QAction *configPlatformsAction;
- // TODO: deprecated
- QAction *configMediaTypeAction;
QAction *configMediaTypesAction;
- QAction *configMediaImagePathAction;
- QAction *configSetupAction;
- QAction *configEmulatorAction;
+ QAction *configMediaImagePathsAction;
+ QAction *configSetupsAction;
+ QAction *configEmulatorsAction;
QAction *exitAction;
QAction *resetDbAction;
QAction *aboutAction;
EmuLauncher *launcher;
QString tmpDirFilePath;
QErrorMessage *errorMessage;
+ SetupModel *supModel;
+ ExternalExecutableModel *emuModel;
+ PlatformModel *plfModel;
+ MediaTypeModel *mdtModel;
};
#endif