Modified the license text comment type.
[emufront] / src / dialogs / mediaimagepathdialog.h
index 2231031..b74c7ca 100644 (file)
@@ -1,38 +1,38 @@
-// 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.
-//
-// Foobar 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 Foobar.  If not, see <http://www.gnu.org/licenses/>.
-
-#ifndef MEDIAIMAGEPATHDIALOG_H
+/*
+** 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 MEDIAIMAGEPATHDIALOG_H
 #define MEDIAIMAGEPATHDIALOG_H
 
-#include "dataobjecteditdialog.h"
+#include "browsefilepathdialog.h"
 
-class QDialogButtonBox;
-class QComboBox;
-class QLabel;
-class QPushButton;
-class QSqlTableModel;
+//class QDialogButtonBox;
+//class QLabel;
+//class QPushButton;
+//class QSqlTableModel;
+class DbSetup;
+class Setup;
 class DbMediaType;
 class DbPlatform;
-class MediaType;
-class Platform;
+class SetupComboBox;
 
-class MediaImagePathDialog : public DataObjectEditDialog
+class MediaImagePathDialog : public BrowseFilePathDialog
 {
     Q_OBJECT
 
@@ -40,30 +40,27 @@ public:
     MediaImagePathDialog(QWidget *parent, EmuFrontObject*);
     ~MediaImagePathDialog();
     virtual void setDataObject(EmuFrontObject *);
+    virtual void updateData();
 
 protected slots:
     virtual void acceptChanges();
-    virtual void rejectChanges();
-    void browseFilePath();
+    //void browseFilePath();
+
+protected:
+    virtual void clear();
 
 private:
-    QComboBox *mediaTypeComBox;
-    QComboBox *platformComBox;
-    QLabel *filePathLabel;
-    QPushButton *filePathButton;
-    QSqlTableModel *mediaTypeModel;
-    QSqlTableModel *platformModel;
+    SetupComboBox *setupComBox;
+    DbSetup *dbSetup;
     DbMediaType *dbMediaType;
     DbPlatform *dbPlatform;
 
     void initWidgets();
     void layout();
-    void connectSignals();
-    void populateMediaTypeComBox();
-    void populatePlatformComBox();
-    void setSelectedMediaType(const MediaType *);
-    void setSelectedPlatform(const Platform *);
-    void setSelected(const QSqlTableModel*, QComboBox*, const EmuFrontObject*, int idIndex);
+    //void connectSignals();
+    void populateSetupComBox();
+    void setSelectedSetup(const Setup *);
+    Setup* getSelectedSetup();
 };
 
 #endif // MEDIAIMAGEPATHDIALOG_H