parley
#include <guifrontend.h>

Public Slots | |
void | backgroundChanged (const QPixmap &pixmap) |
void | setBoxes (grade_t currentBox, grade_t newBoxIfCorrect, grade_t newBoxIfWrong) |
void | setMode (Mode mode) |
void | showQuestion () |
void | showSetResultButtons (bool show) |
void | showSolution () |
void | showSynonym () |
void | toggleResultState () |
![]() | |
virtual void | setBoxes (grade_t currentBox, grade_t newBoxIfCorrect, grade_t newBoxIfWrong)=0 |
virtual void | setMode (Mode mode)=0 |
virtual void | showQuestion ()=0 |
virtual void | showSolution ()=0 |
virtual void | showSynonym ()=0 |
Public Member Functions | |
GuiFrontend (QWidget *parent=0) | |
virtual | ~GuiFrontend () |
virtual ResultState | resultState () |
virtual void | setFeedback (const QVariant &feedback) |
virtual void | setFeedbackState (ResultState feedbackState) |
virtual void | setFinishedWordsTotalWords (int finished, int total) |
virtual void | setHint (const QVariant &hint) |
void | setLessonName (const QString &lessonName) |
virtual void | setQuestion (const QVariant &question) |
virtual void | setQuestionFont (const QFont &font) |
virtual void | setQuestionImage (const KUrl &img) |
virtual void | setQuestionPronunciation (const QString &pronunciationText) |
virtual void | setQuestionSound (const KUrl &soundUrl) |
virtual void | setResultState (ResultState resultState) |
virtual void | setSolution (const QVariant &solution) |
virtual void | setSolutionFont (const QFont &font) |
virtual void | setSolutionImage (const KUrl &img) |
virtual void | setSolutionPronunciation (const QString &pronunciationText) |
virtual void | setSolutionSound (const KUrl &soundUrl) |
virtual void | setSynonym (const QString &entry) |
virtual QVariant | userInput () |
QWidget * | widget () |
![]() | |
AbstractFrontend (QObject *parent=0) | |
virtual | ~AbstractFrontend () |
Protected Member Functions | |
bool | eventFilter (QObject *object, QEvent *event) |
Additional Inherited Members | |
![]() | |
enum | Mode { None, FlashCard, MixedLetters, MultipleChoice, Written, Conjugation, Comparison } |
enum | ResultState { QuestionState, AnswerCorrect, AnswerSynonym, AnswerWrong } |
![]() | |
void | continueAction () |
void | hintAction () |
void | skipAction () |
void | stopPractice () |
Detailed Description
Definition at line 33 of file guifrontend.h.
Constructor & Destructor Documentation
GuiFrontend::GuiFrontend | ( | QWidget * | parent = 0 | ) |
Definition at line 35 of file guifrontend.cpp.
|
virtual |
Definition at line 69 of file guifrontend.cpp.
Member Function Documentation
|
slot |
Definition at line 164 of file guifrontend.cpp.
|
protected |
Definition at line 177 of file guifrontend.cpp.
|
virtual |
Implements Practice::AbstractFrontend.
Definition at line 312 of file guifrontend.cpp.
|
slot |
Definition at line 156 of file guifrontend.cpp.
|
virtual |
Implements Practice::AbstractFrontend.
Definition at line 264 of file guifrontend.cpp.
|
virtual |
The feedback state tells the user if the currently entered word is correct (independent of whether the word is counted as correct)
Implements Practice::AbstractFrontend.
Definition at line 269 of file guifrontend.cpp.
|
virtual |
The status such as lesson or number of words has changed.
Implements Practice::AbstractFrontend.
Definition at line 184 of file guifrontend.cpp.
|
virtual |
Implements Practice::AbstractFrontend.
Definition at line 194 of file guifrontend.cpp.
|
virtual |
update lesson label
Implements Practice::AbstractFrontend.
Definition at line 124 of file guifrontend.cpp.
|
slot |
Definition at line 84 of file guifrontend.cpp.
|
virtual |
Implements Practice::AbstractFrontend.
Definition at line 199 of file guifrontend.cpp.
|
virtual |
Implements Practice::AbstractFrontend.
Definition at line 230 of file guifrontend.cpp.
|
virtual |
Implements Practice::AbstractFrontend.
Definition at line 220 of file guifrontend.cpp.
|
virtual |
Implements Practice::AbstractFrontend.
Definition at line 205 of file guifrontend.cpp.
|
virtual |
Implements Practice::AbstractFrontend.
Definition at line 210 of file guifrontend.cpp.
|
virtual |
The result state indicated whether a word is counted as correct (and grades are raised) and can be changed by the user.
Implements Practice::AbstractFrontend.
Definition at line 275 of file guifrontend.cpp.
|
virtual |
Implements Practice::AbstractFrontend.
Definition at line 215 of file guifrontend.cpp.
|
virtual |
Implements Practice::AbstractFrontend.
Definition at line 235 of file guifrontend.cpp.
|
virtual |
Implements Practice::AbstractFrontend.
Definition at line 225 of file guifrontend.cpp.
|
virtual |
Implements Practice::AbstractFrontend.
Definition at line 254 of file guifrontend.cpp.
|
virtual |
Implements Practice::AbstractFrontend.
Definition at line 259 of file guifrontend.cpp.
|
virtual |
set a new synonym that should be shown
Implements Practice::AbstractFrontend.
Definition at line 146 of file guifrontend.cpp.
|
slot |
Definition at line 129 of file guifrontend.cpp.
|
slot |
Definition at line 169 of file guifrontend.cpp.
|
slot |
Definition at line 138 of file guifrontend.cpp.
|
slot |
Definition at line 151 of file guifrontend.cpp.
|
slot |
Definition at line 329 of file guifrontend.cpp.
|
virtual |
Enables access to the input of the user.
This is queried by the backend when it needs to evaluate the input.
Implements Practice::AbstractFrontend.
Definition at line 74 of file guifrontend.cpp.
QWidget * GuiFrontend::widget | ( | ) |
Definition at line 79 of file guifrontend.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.