From 030d91e628a2ecd5634376c9c4d903a1fa0fb423 Mon Sep 17 00:00:00 2001 From: Nils Schwabe Date: Mon, 3 Mar 2014 15:14:20 +0100 Subject: added files from vmchooser1 --- src/dialog.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/dialog.h (limited to 'src/dialog.h') diff --git a/src/dialog.h b/src/dialog.h new file mode 100644 index 0000000..d1daa68 --- /dev/null +++ b/src/dialog.h @@ -0,0 +1,50 @@ +#ifndef DIALOG_H +#define DIALOG_H + +#include +#include +#include +#include +#include "session.h" +#include "sessiontreemodel.h" + +namespace Ui { + class Dialog; +} +class QTimer; + +class Dialog : public QDialog { + Q_OBJECT + public: + explicit Dialog(QWidget *parent = 0); + ~Dialog(); + void addItems(const QList&, const QString& section); + bool selectSession(const QString& name); + void selectPreviousSession(); + void showSettingsPVS(); + void setTheme(); + void startSession(const QString& name); + + protected: + void changeEvent(QEvent *e); + + private: + Ui::Dialog *ui; + SessionTreeModel *model_; + QSettings *pvsSettings_; + QPoint oldCenter_; + QTimer *centerTimer_; + QString autoStartEntry_; + void readPVSSettings(); + void writePVSSettings(); + + private slots: + void on_comboBoxOthers_currentIndexChanged(int index); + void on_comboBoxLecturer_currentIndexChanged(int index); + void on_pushButtonStart_clicked(); + void on_pushButtonAbort_clicked(); + void on_treeView_activated(QModelIndex index); + void on_centerTimer(); +}; + +#endif // DIALOG_H -- cgit v1.2.3-55-g7522