Refactoring the project, new folders for view and model classes. Added
[emufront] / src / dialogs / dataobjecteditdialog.h
index 4c4f1a6..95640b5 100644 (file)
@@ -5,9 +5,9 @@
 //
 //
 // 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.
+// 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
@@ -21,7 +21,7 @@
 #define DATAOBJECTEDITDIALOG_H
 
 #include "emufrontdialog.h"
-#include "../dataobjects/emufrontobject.h"
+#include "emufrontobject.h"
 
 class QDialogButtonBox;
 class QComboBox;
@@ -33,16 +33,21 @@ class DataObjectEditDialog : public EmuFrontDialog
 public:
     DataObjectEditDialog(QWidget *parent, EmuFrontObject *ob, Qt::Orientation orientation = Qt::Horizontal);
     virtual void setDataObject(EmuFrontObject *) = 0;
+    virtual void updateData();
 
 protected:
     virtual void connectSignals();
     EmuFrontObject *efObject;
     QDialogButtonBox *buttonBox;
     void setSelected(QComboBox*, const EmuFrontObject*, int idIndex);
+    virtual void closeEvent(QCloseEvent *);
+    virtual void clear() = 0;
 
 signals:
     void updateRejected();
     void dataObjectUpdated();
+    void test();
+    void dialogClosed();
 
 protected slots:
     virtual void acceptChanges() =0;