diff options
author | Simon Rettberg | 2016-01-04 11:07:53 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-01-04 11:07:53 +0100 |
commit | 42cd0a3f7e3b502693c1ef4be2a57886c86b006a (patch) | |
tree | b6655340f987f9ef7c2d737420f64aa4d0cac80f /src/dialog.h | |
parent | Update vmware icon (diff) | |
download | vmchooser2-42cd0a3f7e3b502693c1ef4be2a57886c86b006a.tar.gz vmchooser2-42cd0a3f7e3b502693c1ef4be2a57886c86b006a.tar.xz vmchooser2-42cd0a3f7e3b502693c1ef4be2a57886c86b006a.zip |
Update images
Diffstat (limited to 'src/dialog.h')
-rw-r--r-- | src/dialog.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/dialog.h b/src/dialog.h index 59d2e48..04ee40f 100644 --- a/src/dialog.h +++ b/src/dialog.h @@ -24,8 +24,12 @@ class Dialog : public QDialog { static const int STR_URL_ERROR = 1; static const int STR_NO_ITEMS = 2; static const int STR__MAX = 3; + static const int TAB_NATIVE = 0; + static const int TAB_MY_COURSES = 1; + static const int TAB_ALL_VMS = 2; + static const int TAB_COUNT = 3; public: // Public methods - explicit Dialog(QWidget *parent = 0); + explicit Dialog(int defaultTab = -1, QWidget *parent = 0); ~Dialog(); void addItems(const QList<Session*>&, int tab); void addStatusString(const int status); @@ -46,7 +50,8 @@ class Dialog : public QDialog { QTimer *centerTimer_; QString autoStartEntry_; int activeTab_; - int oldRow_; + int defaultTab_; + bool userInteracted_; QString strings_[STR__MAX]; void onTabButtonChanged(int tab); void configClearButton(); @@ -56,7 +61,8 @@ class Dialog : public QDialog { private slots: void on_pushButtonStart_clicked(); void on_pushButtonAbort_clicked(); - void on_treeView_doubleClicked(QModelIndex index); + void on_treeView_clicked(const QModelIndex& index); + void on_treeView_doubleClicked(const QModelIndex& index); void on_tabButtonLocal_clicked(); void on_tabButtonMyClasses_clicked(); void on_tabButtonAllClasses_clicked(); |