• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

parley

  • Practice
  • GuiFrontend
Public Slots | Public Member Functions | Protected Member Functions | List of all members
Practice::GuiFrontend Class Reference

#include <guifrontend.h>

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

Public Slots

void backgroundChanged (const QPixmap &pixmap)
 
virtual void modeWidgetDestroyed (QObject *obj=0)
 
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 ()
 
- Public Slots inherited from Practice::AbstractFrontend
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 ()
 
QFont knownLangFont () const
 
QFont learningLangFont () const
 
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 setKnownLangFont (const QFont &font)
 
void setLearningLangFont (const QFont &font)
 
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)
 
void showGrade (int preGrade, int grade)
 
virtual QVariant userInput ()
 
QWidget * widget ()
 
- Public Member Functions inherited from Practice::AbstractFrontend
 AbstractFrontend (QObject *parent=0)
 
virtual ~AbstractFrontend ()
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Protected Member Functions

bool eventFilter (QObject *object, QEvent *event)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Additional Inherited Members

- Public Types inherited from Practice::AbstractFrontend
enum  Mode {
  None, FlashCard, MixedLetters, MultipleChoice,
  Written, Conjugation, Comparison, ExampleSentence
}
 
enum  ResultState { QuestionState, AnswerCorrect, AnswerSynonym, AnswerWrong }
 
- Signals inherited from Practice::AbstractFrontend
void continueAction ()
 
void hintAction ()
 
void skipAction ()
 
void stopPractice ()
 
- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Definition at line 35 of file guifrontend.h.

Constructor & Destructor Documentation

GuiFrontend::GuiFrontend ( QWidget *  parent = 0)

Definition at line 35 of file guifrontend.cpp.

GuiFrontend::~GuiFrontend ( )
virtual

Definition at line 69 of file guifrontend.cpp.

Member Function Documentation

void GuiFrontend::backgroundChanged ( const QPixmap &  pixmap)
slot

Definition at line 182 of file guifrontend.cpp.

bool GuiFrontend::eventFilter ( QObject *  object,
QEvent *  event 
)
protectedvirtual

Reimplemented from QObject.

Definition at line 195 of file guifrontend.cpp.

QFont GuiFrontend::knownLangFont ( ) const
virtual

fonts for learning and known languages.

These will be used to set question and answer fonts for individual entries.

Implements Practice::AbstractFrontend.

Definition at line 213 of file guifrontend.cpp.

QFont GuiFrontend::learningLangFont ( ) const
virtual

Implements Practice::AbstractFrontend.

Definition at line 218 of file guifrontend.cpp.

void GuiFrontend::modeWidgetDestroyed ( QObject *  obj = 0)
virtualslot

To be called prior to deleting a modeWidget.

Todo:
When frameworks/kde5 is implemented remove this code, if the bug in Qt (returning a pointer to a deleted stylesheet) is fixed.

Definition at line 431 of file guifrontend.cpp.

AbstractFrontend::ResultState GuiFrontend::resultState ( )
virtual

Implements Practice::AbstractFrontend.

Definition at line 352 of file guifrontend.cpp.

void GuiFrontend::setBoxes ( grade_t  currentBox,
grade_t  newBoxIfCorrect,
grade_t  newBoxIfWrong 
)
slot

Definition at line 174 of file guifrontend.cpp.

void GuiFrontend::setFeedback ( const QVariant &  feedback)
virtual

Implements Practice::AbstractFrontend.

Definition at line 304 of file guifrontend.cpp.

void GuiFrontend::setFeedbackState ( ResultState  feedbackState)
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 309 of file guifrontend.cpp.

void GuiFrontend::setFinishedWordsTotalWords ( int  finished,
int  total 
)
virtual

The status such as lesson or number of words has changed.

Implements Practice::AbstractFrontend.

Definition at line 202 of file guifrontend.cpp.

void GuiFrontend::setHint ( const QVariant &  hint)
virtual

Implements Practice::AbstractFrontend.

Definition at line 234 of file guifrontend.cpp.

void GuiFrontend::setKnownLangFont ( const QFont &  font)
virtual

Implements Practice::AbstractFrontend.

Definition at line 223 of file guifrontend.cpp.

void GuiFrontend::setLearningLangFont ( const QFont &  font)
virtual

Implements Practice::AbstractFrontend.

Definition at line 228 of file guifrontend.cpp.

void GuiFrontend::setLessonName ( const QString &  lessonName)
virtual

update lesson label

Implements Practice::AbstractFrontend.

Definition at line 128 of file guifrontend.cpp.

void GuiFrontend::setMode ( Mode  mode)
slot

Definition at line 84 of file guifrontend.cpp.

void GuiFrontend::setQuestion ( const QVariant &  question)
virtual

Implements Practice::AbstractFrontend.

Definition at line 239 of file guifrontend.cpp.

void GuiFrontend::setQuestionFont ( const QFont &  font)
virtual

Implements Practice::AbstractFrontend.

Definition at line 270 of file guifrontend.cpp.

void GuiFrontend::setQuestionImage ( const KUrl &  img)
virtual

Implements Practice::AbstractFrontend.

Definition at line 260 of file guifrontend.cpp.

void GuiFrontend::setQuestionPronunciation ( const QString &  pronunciationText)
virtual

Implements Practice::AbstractFrontend.

Definition at line 245 of file guifrontend.cpp.

void GuiFrontend::setQuestionSound ( const KUrl &  soundUrl)
virtual

Implements Practice::AbstractFrontend.

Definition at line 250 of file guifrontend.cpp.

void GuiFrontend::setResultState ( ResultState  resultState)
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 315 of file guifrontend.cpp.

void GuiFrontend::setSolution ( const QVariant &  solution)
virtual

Implements Practice::AbstractFrontend.

Definition at line 255 of file guifrontend.cpp.

void GuiFrontend::setSolutionFont ( const QFont &  font)
virtual

Implements Practice::AbstractFrontend.

Definition at line 275 of file guifrontend.cpp.

void GuiFrontend::setSolutionImage ( const KUrl &  img)
virtual

Implements Practice::AbstractFrontend.

Definition at line 265 of file guifrontend.cpp.

void GuiFrontend::setSolutionPronunciation ( const QString &  pronunciationText)
virtual

Implements Practice::AbstractFrontend.

Definition at line 294 of file guifrontend.cpp.

void GuiFrontend::setSolutionSound ( const KUrl &  soundUrl)
virtual

Implements Practice::AbstractFrontend.

Definition at line 299 of file guifrontend.cpp.

void GuiFrontend::setSynonym ( const QString &  entry)
virtual

set a new synonym that should be shown

Implements Practice::AbstractFrontend.

Definition at line 164 of file guifrontend.cpp.

void GuiFrontend::showGrade ( int  preGrade,
int  grade 
)
virtual

Implements Practice::AbstractFrontend.

Definition at line 134 of file guifrontend.cpp.

void GuiFrontend::showQuestion ( )
slot

Definition at line 147 of file guifrontend.cpp.

void GuiFrontend::showSetResultButtons ( bool  show)
slot

Definition at line 187 of file guifrontend.cpp.

void GuiFrontend::showSolution ( )
slot

Definition at line 156 of file guifrontend.cpp.

void GuiFrontend::showSynonym ( )
slot

Definition at line 169 of file guifrontend.cpp.

void GuiFrontend::toggleResultState ( )
slot

Definition at line 369 of file guifrontend.cpp.

QVariant GuiFrontend::userInput ( )
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:
  • guifrontend.h
  • guifrontend.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal