Logo Search packages:      
Sourcecode: kbruch version File versions  Download package

void MainQtWidget::newTask (  ) [private, slot]

called to force generation of a new task

Definition at line 604 of file mainqtwidget.cpp.

References ExercisePercentage::forceNewTask(), ExerciseFactorize::forceNewTask(), ExerciseMixedNumbers::forceNewTask(), ExerciseConvert::forceNewTask(), ExerciseCompare::forceNewTask(), TaskView::forceNewTask(), m_exerciseCompare, m_exerciseConvert, m_exerciseFactorize, m_exerciseMixedNumbers, m_exercisePercentage, m_statview, m_taskview, and StatisticsView::resetStatistics().

{
#ifdef DEBUG
    kDebug() << "NewTask MainQtWidget";
#endif
    // check which page should generate a new task
    switch (selectedTask) {
    case Arithmetic:
        m_taskview->forceNewTask();
        break;
    case Comparison:
        m_exerciseCompare->forceNewTask();
        break;
    case Conversion:
        m_exerciseConvert->forceNewTask();
        break;
    case MixedNumbers:
        m_exerciseMixedNumbers->forceNewTask();
        break;
    case Factorization:
        m_exerciseFactorize->forceNewTask();
        break;
    case Percentage:
        m_exercisePercentage->forceNewTask();
        break;
    }
    m_statview->resetStatistics();
    return;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index