MCPcopy Create free account
hub / github.com/KDE/labplot / initGeneralTab

Method initGeneralTab

src/frontend/dockwidgets/XYHilbertTransformCurveDock.cpp:74–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void XYHilbertTransformCurveDock::initGeneralTab() {
75 // show the properties of the first curve
76 cbXDataColumn->setAspect(m_transformCurve->xDataColumn(), m_transformCurve->xDataColumnPath());
77 cbYDataColumn->setAspect(m_transformCurve->yDataColumn(), m_transformCurve->yDataColumnPath());
78 uiGeneralTab.cbAutoRange->setChecked(m_transformData.autoRange);
79
80 const auto numberLocale = QLocale();
81 uiGeneralTab.leMin->setText(numberLocale.toString(m_transformData.xRange.first()));
82 uiGeneralTab.leMax->setText(numberLocale.toString(m_transformData.xRange.last()));
83 this->autoRangeChanged();
84
85 uiGeneralTab.cbType->setCurrentIndex(m_transformData.type);
86 this->typeChanged();
87 this->showTransformResult();
88
89 // enable the "recalculate"-button if the source data was changed since the last transform
90 uiGeneralTab.pbRecalculate->setEnabled(m_transformCurve->isSourceDataChangedSinceLastRecalc());
91
92 uiGeneralTab.chkLegendVisible->setChecked(m_curve->legendVisible());
93 uiGeneralTab.chkVisible->setChecked(m_curve->isVisible());
94
95 // Slots
96 connect(m_transformCurve, &XYHilbertTransformCurve::xDataColumnChanged, this, &XYHilbertTransformCurveDock::curveXDataColumnChanged);
97 connect(m_transformCurve, &XYHilbertTransformCurve::yDataColumnChanged, this, &XYHilbertTransformCurveDock::curveYDataColumnChanged);
98 connect(m_transformCurve, &XYHilbertTransformCurve::transformDataChanged, this, &XYHilbertTransformCurveDock::curveTransformDataChanged);
99 connect(m_transformCurve, &XYHilbertTransformCurve::sourceDataChanged, this, &XYHilbertTransformCurveDock::enableRecalculate);
100}
101
102/*!
103 sets the curves. The properties of the curves in the list \c list can be edited in this widget.

Callers

nothing calls this directly

Calls 10

autoRangeChangedMethod · 0.95
typeChangedMethod · 0.95
showTransformResultMethod · 0.95
setAspectMethod · 0.80
setTextMethod · 0.45
toStringMethod · 0.45
setCurrentIndexMethod · 0.45
setEnabledMethod · 0.45
isVisibleMethod · 0.45

Tested by

no test coverage detected