blob: 7e9b1d56dee268423ee99f130190dcae1da03d3f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
#include <QModelIndex>
#include <QList>
#include <QSettings>
#include <QNetworkReply>
#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();
public slots:
void addSessionsAfterDownload(QNetworkReply* reply);
};
#endif // DIALOG_H
|