diff options
author | Nils Schwabe | 2014-03-03 15:14:20 +0100 |
---|---|---|
committer | Nils Schwabe | 2014-03-03 15:14:20 +0100 |
commit | 030d91e628a2ecd5634376c9c4d903a1fa0fb423 (patch) | |
tree | 227029e3b48deb1d4d01ce497d9ec3b8d47f7a61 /src/dialog.h | |
parent | Initial commit (diff) | |
download | vmchooser2-030d91e628a2ecd5634376c9c4d903a1fa0fb423.tar.gz vmchooser2-030d91e628a2ecd5634376c9c4d903a1fa0fb423.tar.xz vmchooser2-030d91e628a2ecd5634376c9c4d903a1fa0fb423.zip |
added files from vmchooser1
Diffstat (limited to 'src/dialog.h')
-rw-r--r-- | src/dialog.h | 50 |
1 files changed, 50 insertions, 0 deletions
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 <QDialog> +#include <QModelIndex> +#include <QList> +#include <QSettings> +#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<Session*>&, 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 |