summaryrefslogtreecommitdiffstats
path: root/EmulatorEditor.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-10-29 14:50:11 -0400
committerBen Boeckel <MathStuf@gmail.com>2008-10-29 14:50:11 -0400
commit2436859145c16f25661160fe01238ccc59805283 (patch)
treeb1852c016a769db28b0347e5443db47f8b23bfdb /EmulatorEditor.h
downloademudb-master.tar.gz
emudb-master.tar.xz
emudb-master.zip
Initial importHEADmaster
Diffstat (limited to 'EmulatorEditor.h')
-rw-r--r--EmulatorEditor.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/EmulatorEditor.h b/EmulatorEditor.h
new file mode 100644
index 0000000..812771c
--- /dev/null
+++ b/EmulatorEditor.h
@@ -0,0 +1,71 @@
+/*
+ * Copyright 2008 Ben Boeckel <MathStuf@gmail.com>
+ *
+ * This program 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.
+ *
+ * This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/**
+ * \file EmulatorEditor.h
+ */
+
+#ifndef EMULATOREDITOR_H
+#define EMULATOREDITOR_H
+
+// KDE includes
+#include <KDialog>
+
+// Forward declarations
+class Emulator;
+class Profile;
+class QListView;
+class QModelIndex;
+
+/**
+ * \class EmulatorEditor
+ * \brief Dialog to edit an emulator.
+ */
+class EmulatorEditor : public KDialog
+{
+ Q_OBJECT
+
+ public:
+ /**
+ * \brief Constructor.
+ *
+ * \param parent The parent of the editor.
+ */
+ EmulatorEditor(QWidget* parent);
+ public slots:
+ void editEmulator(const QModelIndex& index);
+
+ void editEmulator(Emulator* emulator);
+
+ void addEmulator(const QString& name);
+
+ void removeEmulator(const QString& name);
+
+ void editProfile(const QModelIndex& index);
+
+ void editProfile(Profile* profile);
+
+ void addProfile(const QString& name);
+
+ void removeProfile(const QString& name);
+ private:
+ QListView* m_emulators;
+ Emulator* m_emulator;
+ QListView* m_profiles;
+};
+
+#endif