</item>
</layout>
</item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_8">
+ <item>
+ <widget class="QLabel" name="label_7">
+ <property name="text">
+ <string>Season:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="seasonCombo">
+ <item>
+ <property name="text">
+ <string>Summer</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Winter</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ </layout>
+ </item>
<item>
<widget class="QCheckBox" name="msaaCheckbox">
<property name="text">
connect(m_ui->timeOfDayCombo, SIGNAL(currentIndexChanged(int)),
this, SLOT(updateSettingsSummary()));
+ connect(m_ui->seasonCombo, SIGNAL(currentIndexChanged(int)),
+ this, SLOT(updateSettingsSummary()));
connect(m_ui->fetchRealWxrCheckbox, SIGNAL(toggled(bool)),
this, SLOT(updateSettingsSummary()));
connect(m_ui->rembrandtCheckbox, SIGNAL(toggled(bool)),
m_ui->fetchRealWxrCheckbox->setChecked(settings.value("enable-realwx", true).toBool());
m_ui->startPausedCheck->setChecked(settings.value("start-paused", false).toBool());
m_ui->timeOfDayCombo->setCurrentIndex(settings.value("timeofday", 0).toInt());
+ m_ui->seasonCombo->setCurrentIndex(settings.value("season", 0).toInt());
// full paths to -set.xml files
m_recentAircraft = settings.value("recent-aircraft").toStringList();
settings.setValue("recent-aircraft", m_recentAircraft);
settings.setValue("recent-airports", m_recentAirports);
settings.setValue("timeofday", m_ui->timeOfDayCombo->currentIndex());
+ settings.setValue("season", m_ui->seasonCombo->currentIndex());
QStringList paths;
for (int i=0; i<m_ui->sceneryPathsList->count(); ++i) {
opt->addOption("timeofday", dayval.toStdString());
}
+ if (m_ui->seasonCombo->currentIndex() != 0) {
+ QString dayval = m_ui->timeOfDayCombo->currentText().toLower();
+ opt->addOption("season", dayval.toStdString());
+ }
+
// scenery paths
for (int i=0; i<m_ui->sceneryPathsList->count(); ++i) {
QString path = m_ui->sceneryPathsList->item(i)->text();
summary.append(QString(m_ui->timeOfDayCombo->currentText().toLower()));
}
+ if (m_ui->seasonCombo->currentIndex() > 0) {
+ summary.append(QString(m_ui->seasonCombo->currentText().toLower()));
+ }
+
if (m_ui->rembrandtCheckbox->isChecked()) {
summary.append("Rembrandt enabled");
} else if (m_ui->msaaCheckbox->isChecked()) {