Added new central widget: EmuLauncher.
authorMikko Keinänen <mikko.keinanen@gmail.com>
Tue, 28 Sep 2010 20:31:44 +0000 (23:31 +0300)
committerMikko Keinänen <mikko.keinanen@gmail.com>
Tue, 28 Sep 2010 20:31:44 +0000 (23:31 +0300)
src/emufront.pro
src/emulauncher.cpp [new file with mode: 0644]
src/emulauncher.h [new file with mode: 0644]
src/mainwindow.cpp
src/mainwindow.h

index e71b19b..6c9f988 100644 (file)
@@ -52,7 +52,8 @@ HEADERS += mainwindow.h \
     db/dbmediaimagecontainer.h \
     db/dbmediaimage.h \
     utils/OSDaB-Zip/zipentry_p.h \
-    utils/OSDaB-Zip/unzip_p.h
+    utils/OSDaB-Zip/unzip_p.h \
+    emulauncher.h
 SOURCES += main.cpp \
     mainwindow.cpp \
     db/databasemanager.cpp \
@@ -92,5 +93,6 @@ SOURCES += main.cpp \
     db/dbfile.cpp \
     db/dbemufrontfileobject.cpp \
     db/dbmediaimagecontainer.cpp \
-    db/dbmediaimage.cpp
+    db/dbmediaimage.cpp \
+    emulauncher.cpp
 OTHER_FILES += 
diff --git a/src/emulauncher.cpp b/src/emulauncher.cpp
new file mode 100644 (file)
index 0000000..cabad79
--- /dev/null
@@ -0,0 +1,25 @@
+// 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 as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// 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/>.
+
+#include "emulauncher.h"
+
+EmuLauncher::EmuLauncher(QWidget *parent) :
+    QWidget(parent)
+{
+}
diff --git a/src/emulauncher.h b/src/emulauncher.h
new file mode 100644 (file)
index 0000000..060838f
--- /dev/null
@@ -0,0 +1,37 @@
+// 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 as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// 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 EMULAUNCHER_H
+#define EMULAUNCHER_H
+
+#include <QWidget>
+
+class EmuLauncher : public QWidget
+{
+Q_OBJECT
+public:
+    explicit EmuLauncher(QWidget *parent = 0);
+
+signals:
+
+public slots:
+
+};
+
+#endif // EMULAUNCHER_H
index 2bb2efb..bfb1efa 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <QtGui>
 #include "mainwindow.h"
+#include "emulauncher.h"
 #include "dialogs/platformdialog.h"
 #include "dialogs/mediatypedialog.h"
 #include "dialogs/mediaimagepathmaindialog.h"
@@ -28,6 +29,8 @@
 MainWindow::MainWindow()
 {
     setWindowTitle("EmuFront");
+    launcher = new EmuLauncher(this);
+    setCentralWidget(launcher);
     createActions();
     createMenus();
     createStatusBar();
index f516ff4..326395a 100644 (file)
@@ -30,6 +30,7 @@ class SetupMainDialog;
 class QLabel;
 class DatabaseManager;
 class EmuFrontDialog;
+class EmuLauncher;
 
 class MainWindow : public QMainWindow
 {
@@ -69,6 +70,7 @@ private:
     QAction *exitAction;
        QLabel *messageLabel;
     DatabaseManager *dbManager;
+    EmuLauncher *launcher;
 };
 
 #endif