summaryrefslogtreecommitdiffstats
path: root/src/dialog.h
diff options
context:
space:
mode:
authorJan Darmochwal2010-10-02 18:50:09 +0200
committerJan Darmochwal2010-10-02 18:50:09 +0200
commit6117049617df720fb744a90773a3580b3450b005 (patch)
treec3b605ab7a7c2e9fd9d14572e8c0e69432d6ac76 /src/dialog.h
parentfixed bad copy & paste in CMakeLists.txt (diff)
downloadvmchooser-6117049617df720fb744a90773a3580b3450b005.tar.gz
vmchooser-6117049617df720fb744a90773a3580b3450b005.tar.xz
vmchooser-6117049617df720fb744a90773a3580b3450b005.zip
Qt port is almost complete (at least it compiles)
Major change: * struct DataEntry has become class Session with sub-classes XSession and VSession * functions from addInfo.cpp, addPrinters.cpp, addScanners.cpp, readLinSess.cpp, readXmlDir.cpp, runImage.cpp have been moved to XSession and VSession Several minor changes: * new files globals.h and globals.cpp for global variables (replaces constants.h and paths.h) * replaced (all) libxml2, (much) std:: and (most) boost:: stuff by Qt stuff Things left to do: * remove tons of debug printfs * show error messages on errors * tidy up anyoption stuff in main() * highlight session run previously * readGroupXml stuff * tree view (with "X Sessions" and "Virtual Sessions" sections) instead of list view for session selection
Diffstat (limited to 'src/dialog.h')
-rw-r--r--src/dialog.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dialog.h b/src/dialog.h
index 033a69d..9f9ac5a 100644
--- a/src/dialog.h
+++ b/src/dialog.h
@@ -3,8 +3,8 @@
#include <QDialog>
#include <QModelIndex>
-#include "DataEntry.h"
-#include <vector>
+#include <QList>
+#include "session.h"
namespace Ui {
class Dialog;
@@ -15,14 +15,14 @@ class Dialog : public QDialog {
public:
Dialog(QWidget *parent = 0);
~Dialog();
- void addItems(const std::vector<DataEntry>&);
+ void addItems(const QList<Session*>&, const QString& section);
protected:
void changeEvent(QEvent *e);
private:
Ui::Dialog *ui;
- std::vector<DataEntry> entries;
+ QList<Session*> entries_;
private slots:
void on_pushButtonStart_clicked();