mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:00:04 +00:00
Allow selection of radar smoothing
This commit is contained in:
parent
d3ae404f7a
commit
a8132ef9f1
7 changed files with 66 additions and 6 deletions
|
|
@ -322,6 +322,8 @@ MainWindow::MainWindow(QWidget* parent) :
|
|||
p->mapSettingsGroup_ = new ui::CollapsibleGroup(tr("Map Settings"), this);
|
||||
p->mapSettingsGroup_->GetContentsLayout()->addWidget(ui->mapStyleLabel);
|
||||
p->mapSettingsGroup_->GetContentsLayout()->addWidget(ui->mapStyleComboBox);
|
||||
p->mapSettingsGroup_->GetContentsLayout()->addWidget(
|
||||
ui->smoothRadarDataCheckBox);
|
||||
p->mapSettingsGroup_->GetContentsLayout()->addWidget(
|
||||
ui->trackLocationCheckBox);
|
||||
ui->radarToolboxScrollAreaContents->layout()->replaceWidget(
|
||||
|
|
@ -1085,6 +1087,16 @@ void MainWindowImpl::ConnectOtherSignals()
|
|||
}
|
||||
}
|
||||
});
|
||||
connect(mainWindow_->ui->smoothRadarDataCheckBox,
|
||||
&QCheckBox::checkStateChanged,
|
||||
mainWindow_,
|
||||
[this](Qt::CheckState state)
|
||||
{
|
||||
bool smoothingEnabled = (state == Qt::CheckState::Checked);
|
||||
|
||||
// Turn on smoothing
|
||||
activeMap_->SetSmoothingEnabled(smoothingEnabled);
|
||||
});
|
||||
connect(mainWindow_->ui->trackLocationCheckBox,
|
||||
&QCheckBox::checkStateChanged,
|
||||
mainWindow_,
|
||||
|
|
@ -1471,6 +1483,10 @@ void MainWindowImpl::UpdateRadarProductSettings()
|
|||
{
|
||||
level2SettingsGroup_->setVisible(false);
|
||||
}
|
||||
|
||||
mainWindow_->ui->smoothRadarDataCheckBox->setCheckState(
|
||||
activeMap_->GetSmoothingEnabled() ? Qt::CheckState::Checked :
|
||||
Qt::CheckState::Unchecked);
|
||||
}
|
||||
|
||||
void MainWindowImpl::UpdateRadarSite()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue