From 6117049617df720fb744a90773a3580b3450b005 Mon Sep 17 00:00:00 2001 From: Jan Darmochwal Date: Sat, 2 Oct 2010 18:50:09 +0200 Subject: 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 --- src/dialog.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dialog.h') 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 #include -#include "DataEntry.h" -#include +#include +#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&); + void addItems(const QList&, const QString& section); protected: void changeEvent(QEvent *e); private: Ui::Dialog *ui; - std::vector entries; + QList entries_; private slots: void on_pushButtonStart_clicked(); -- cgit v1.2.3-55-g7522