New dialog for selecting from multiple emu front objects derived from
[emufront] / src / dialogs / listdialog.h
diff --git a/src/dialogs/listdialog.h b/src/dialogs/listdialog.h
new file mode 100644 (file)
index 0000000..3414cb0
--- /dev/null
@@ -0,0 +1,42 @@
+// 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 LISTDIALOG_H
+#define LISTDIALOG_H
+
+#include <QDialog>
+
+class QListWidget;
+class QDialogButtonBox;
+class EmuFrontObject;
+
+class ListDialog : public QDialog
+{
+    Q_OBJECT
+
+public:
+    ListDialog(QWidget *parent = 0);
+    void setData(QList<EmuFrontObject*>);
+private:
+    QListWidget *listView;
+    QDialogButtonBox *buttonBox;
+    void layout();
+};
+
+#endif // LISTDIALOG_H