summaryrefslogtreecommitdiffstats
path: root/src/dialog.h
diff options
context:
space:
mode:
authorJan Darmochwal2010-07-13 17:55:06 +0200
committerJan Darmochwal2010-07-13 17:55:06 +0200
commitf29300c556e541f2bf1b63ed8c6399a6c2044c8d (patch)
tree4a549ef967177e82e6b20536f9484e8461893c7b /src/dialog.h
parentinitial qt4 version (diff)
downloadvmchooser-f29300c556e541f2bf1b63ed8c6399a6c2044c8d.tar.gz
vmchooser-f29300c556e541f2bf1b63ed8c6399a6c2044c8d.tar.xz
vmchooser-f29300c556e541f2bf1b63ed8c6399a6c2044c8d.zip
qmake -> cmake; (mostly) cosmetic changes
Switched to cmake: CMakeLists.txt in base directory use ./build.sh to build vmchooser (or mkdir -p build; cd build cmake .. && make) updated README removed fltk/ removed libxml2/ removed mesgdisp/ renamed vmchooser/ to src/ moved all header files (.h) from vmchooser/inc/ to src/ added files to repository that must have slipped the last time
Diffstat (limited to 'src/dialog.h')
-rw-r--r--src/dialog.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/dialog.h b/src/dialog.h
new file mode 100644
index 0000000..033a69d
--- /dev/null
+++ b/src/dialog.h
@@ -0,0 +1,33 @@
+#ifndef DIALOG_H
+#define DIALOG_H
+
+#include <QDialog>
+#include <QModelIndex>
+#include "DataEntry.h"
+#include <vector>
+
+namespace Ui {
+ class Dialog;
+}
+
+class Dialog : public QDialog {
+ Q_OBJECT
+public:
+ Dialog(QWidget *parent = 0);
+ ~Dialog();
+ void addItems(const std::vector<DataEntry>&);
+
+protected:
+ void changeEvent(QEvent *e);
+
+private:
+ Ui::Dialog *ui;
+ std::vector<DataEntry> entries;
+
+private slots:
+ void on_pushButtonStart_clicked();
+ void on_pushButtonAbort_clicked();
+ void on_listView_activated(QModelIndex index);
+};
+
+#endif // DIALOG_H