gui: replot active mode when settings plot are updated

This commit is contained in:
Kiara Navarro 2021-06-28 23:47:02 -03:00
parent b7a7626e3d
commit d6cecf2603
No known key found for this signature in database
GPG key ID: CDEFDCA3F6E04955
8 changed files with 50 additions and 2 deletions

View file

@ -75,6 +75,7 @@ VNA::VNA(AppWindow *window)
auto tracesmith1 = new TraceSmithChart(traceModel);
tracesmith1->enableTrace(tS11, true);
auto tracesmith2 = new TraceSmithChart(traceModel);
tracesmith2->enableTrace(tS22, true);
@ -83,6 +84,12 @@ VNA::VNA(AppWindow *window)
auto traceXY2 = new TraceXYPlot(traceModel);
traceXY2->enableTrace(tS21, true);
connect(this, &VNA::graphColorsChanged, [=](){
for (auto p : TracePlot::getPlots()) {
p->updateGraphColors();
}
});
connect(&traceModel, &TraceModel::requiredExcitation, this, &VNA::ExcitationRequired);
central->splitVertically();
@ -1117,3 +1124,8 @@ void VNA::EnableDeembedding(bool enable)
enableDeembeddingAction->setChecked(enable);
enableDeembeddingAction->blockSignals(false);
}
void VNA::updateGraphColors()
{
emit graphColorsChanged();
}