SLOTs for changes triggered in XYFitCurveDock
| 229 | //**** SLOTs for changes triggered in XYFitCurveDock ***** |
| 230 | //************************************************************* |
| 231 | void XYInterpolationCurveDock::dataSourceTypeChanged(int index) { |
| 232 | const auto type = (XYAnalysisCurve::DataSourceType)index; |
| 233 | if (type == XYAnalysisCurve::DataSourceType::Spreadsheet) { |
| 234 | uiGeneralTab.lDataSourceCurve->hide(); |
| 235 | cbDataSourceCurve->hide(); |
| 236 | uiGeneralTab.lXColumn->show(); |
| 237 | cbXDataColumn->show(); |
| 238 | uiGeneralTab.lYColumn->show(); |
| 239 | cbYDataColumn->show(); |
| 240 | } else { |
| 241 | uiGeneralTab.lDataSourceCurve->show(); |
| 242 | cbDataSourceCurve->show(); |
| 243 | uiGeneralTab.lXColumn->hide(); |
| 244 | cbXDataColumn->hide(); |
| 245 | uiGeneralTab.lYColumn->hide(); |
| 246 | cbYDataColumn->hide(); |
| 247 | } |
| 248 | |
| 249 | CONDITIONAL_LOCK_RETURN; |
| 250 | |
| 251 | for (auto* curve : m_curvesList) |
| 252 | static_cast<XYInterpolationCurve*>(curve)->setDataSourceType(type); |
| 253 | |
| 254 | enableRecalculate(); |
| 255 | } |
| 256 | |
| 257 | void XYInterpolationCurveDock::updateSettings(const AbstractColumn* column) { |
| 258 | if (!column) |
no test coverage detected