void OutputCalibrationPage::customBackClicked() { if (m_currentWizardIndex > 0) { m_currentWizardIndex--; setWizardPage(); } else { getWizard()->back(); } }
bool OutputCalibrationPage::validatePage() { if (isFinished()) { getWizard()->setActuatorSettings(m_actuatorSettings); return true; } else { m_currentWizardIndex++; setWizardPage(); return false; } }
void OutputCalibrationPage::customBackClicked() { if (m_currentWizardIndex >= 0) { m_currentWizardIndex--; if (ui->calibrateAllMotors->isChecked()) { while (m_currentWizardIndex > 0 && m_wizardIndexes[m_currentWizardIndex] == 1 && m_wizardIndexes[m_currentWizardIndex - 1] == 1) { m_currentWizardIndex--; } } } if (m_currentWizardIndex >= 0) { setWizardPage(); } else { getWizard()->back(); } }
bool OutputCalibrationPage::validatePage() { if (!isFinished()) { m_currentWizardIndex++; if (ui->calibrateAllMotors->isChecked() && m_currentWizardIndex > 0 && m_wizardIndexes[m_currentWizardIndex - 1] == 1) { while (!isFinished() && m_wizardIndexes[m_currentWizardIndex] == 1) { m_currentWizardIndex++; } } } if (isFinished()) { getWizard()->setActuatorSettings(m_actuatorSettings); return true; } else { setWizardPage(); return false; } }