| 280 | } |
| 281 | |
| 282 | void QmitkForm::UpdateFormButtons() |
| 283 | { |
| 284 | int sectionIndex = m_Ui->sectionWidget->currentIndex(); |
| 285 | |
| 286 | m_Ui->backButton->setVisible(!m_HasBeenSubmitted && sectionIndex > 0); |
| 287 | m_Ui->nextButton->setVisible(!m_HasBeenSubmitted && sectionIndex < m_Ui->sectionWidget->count() - 1); |
| 288 | m_Ui->submitButton->setVisible(!m_HasBeenSubmitted && sectionIndex != -1 && sectionIndex == m_Ui->sectionWidget->count() - 1); |
| 289 | m_Ui->clearButton->setVisible(!m_HasBeenSubmitted && sectionIndex != -1); |
| 290 | } |
| 291 | |
| 292 | void QmitkForm::OnBackButtonClicked() |
| 293 | { |