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

Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes

Practice::GuiFrontend Class Reference

Inheritance diagram for Practice::GuiFrontend:
Inheritance graph
[legend]
Collaboration diagram for Practice::GuiFrontend:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Mode {
  None, FlashCard, MixedLetters, MultipleChoice,
  Written, Conjugation, Comparison
}
enum  ResultState { QuestionState, AnswerCorrect, AnswerSynonym, AnswerWrong }

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 ()

Signals

void continueAction ()
void hintAction ()
void skipAction ()
void stopPractice ()

Public Member Functions

 GuiFrontend (QWidget *parent=0)
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)
 update lesson label
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 ()

Protected Member Functions

bool eventFilter (QObject *object, QEvent *event)

Private Slots

void countAsCorrectButtonClicked ()
void countAsWrongButtonClicked ()
void setTheme ()
void updateBackground ()
void updateFontColors ()

Private Member Functions

void setImage (const KUrl &image)

Private Attributes

int m_currentBox
ResultState m_feedbackState
KUrl m_lastImage
AbstractModeWidgetm_modeWidget
int m_newBoxIfCorrect
int m_newBoxIfWrong
KUrl m_questionImage
ResultState m_resultState
KUrl m_solutionImage
ThemedBackgroundRendererm_themedBackgroundRenderer
Ui::PracticeMainWindow * m_ui
ImageWidgetm_widget

Detailed Description

Definition at line 33 of file guifrontend.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index