equal
deleted
inserted
replaced
28 Q_OBJECT |
28 Q_OBJECT |
29 |
29 |
30 public: |
30 public: |
31 PageTraining(QWidget* parent = 0); |
31 PageTraining(QWidget* parent = 0); |
32 |
32 |
33 QPushButton *BtnStartTrain; |
33 |
34 QComboBox *CBSelect; |
34 signals: |
|
35 void startMission(const QString & scriptName); |
|
36 |
35 |
37 |
36 protected: |
38 protected: |
37 QLayout * bodyLayoutDefinition(); |
39 QLayout * bodyLayoutDefinition(); |
|
40 // TODO: footer that says "* downloaded/custom content" |
38 void connectSignals(); |
41 void connectSignals(); |
39 |
42 |
|
43 |
40 private: |
44 private: |
|
45 QPushButton * btnStart; // is also preview |
|
46 QLabel * lblCaption; |
|
47 QLabel * lblDescription; |
|
48 QListWidget * lstMissions; |
|
49 // TODO reload/refresh button |
|
50 |
41 QStringList scriptList(const QDir & scriptDir) const; |
51 QStringList scriptList(const QDir & scriptDir) const; |
|
52 |
|
53 |
|
54 private slots: |
|
55 void startSelected(); |
|
56 void updateInfo(); |
|
57 |
42 }; |
58 }; |
43 |
59 |
44 #endif |
60 #endif |
45 |
61 |