equal
deleted
inserted
replaced
99 tbw->addTab(lstTrainings, tr("Trainings")); |
99 tbw->addTab(lstTrainings, tr("Trainings")); |
100 tbw->addTab(lstChallenges, tr("Challenges")); |
100 tbw->addTab(lstChallenges, tr("Challenges")); |
101 tbw->addTab(lstScenarios, tr("Scenarios")); |
101 tbw->addTab(lstScenarios, tr("Scenarios")); |
102 tbw->setCurrentWidget(lstTrainings); |
102 tbw->setCurrentWidget(lstTrainings); |
103 |
103 |
|
104 QLabel* lblteam = new QLabel(tr("Team")); |
|
105 CBTeam = new QComboBox(this); |
|
106 CBTeam->setMaxVisibleItems(30); |
|
107 pageLayout->addWidget(lblteam, 2, 0); |
|
108 pageLayout->addWidget(CBTeam, 2, 1); |
|
109 |
104 return pageLayout; |
110 return pageLayout; |
105 } |
111 } |
106 |
112 |
107 QLayout * PageTraining::footerLayoutDefinition() |
113 QLayout * PageTraining::footerLayoutDefinition() |
108 { |
114 { |
198 } |
204 } |
199 // scripts to load |
205 // scripts to load |
200 // first, load scripts in order specified in order.cfg (if present) |
206 // first, load scripts in order specified in order.cfg (if present) |
201 QFile orderFile(QString("physfs://Missions/%1/order.cfg").arg(subFolder)); |
207 QFile orderFile(QString("physfs://Missions/%1/order.cfg").arg(subFolder)); |
202 QStringList orderedMissions; |
208 QStringList orderedMissions; |
|
209 |
203 if (orderFile.open(QFile::ReadOnly)) |
210 if (orderFile.open(QFile::ReadOnly)) |
204 { |
211 { |
205 QString m_id; |
212 QString m_id; |
206 QTextStream input(&orderFile); |
213 QTextStream input(&orderFile); |
207 while(true) |
214 while(true) |