| 286 | } |
| 287 | |
| 288 | void XYIntegrationCurveDock::methodChanged(int index) { |
| 289 | const auto method = (nsl_int_method_type)index; |
| 290 | m_integrationData.method = method; |
| 291 | |
| 292 | // update absolute option |
| 293 | switch (method) { |
| 294 | case nsl_int_method_rectangle: |
| 295 | case nsl_int_method_trapezoid: |
| 296 | uiGeneralTab.cbAbsolute->setEnabled(true); |
| 297 | break; |
| 298 | case nsl_int_method_simpson: |
| 299 | case nsl_int_method_simpson_3_8: |
| 300 | uiGeneralTab.cbAbsolute->setChecked(false); |
| 301 | uiGeneralTab.cbAbsolute->setEnabled(false); |
| 302 | } |
| 303 | |
| 304 | enableRecalculate(); |
| 305 | } |
| 306 | |
| 307 | void XYIntegrationCurveDock::absoluteChanged() { |
| 308 | bool absolute = uiGeneralTab.cbAbsolute->isChecked(); |
no test coverage detected