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

parley

  • sources
  • kde-4.14
  • kdeedu
  • parley
  • src
  • practice
conjugationbackendmode.h
Go to the documentation of this file.
1 /***************************************************************************
2  Copyright 2010 Frederik Gladhorn <gladhorn@kde.org>
3  ***************************************************************************/
4 
5 /***************************************************************************
6  * *
7  * This program is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  ***************************************************************************/
13 
14 
15 #ifndef CONJUGATIONBACKENDMODE_H
16 #define CONJUGATIONBACKENDMODE_H
17 
18 #include "abstractbackendmode.h"
19 #include "practice/sessionmanagerbase.h"
20 
21 namespace Practice
22 {
23 
24 class ConjugationBackendMode : public AbstractBackendMode
25 {
26  Q_OBJECT
27 
28 public:
29  ConjugationBackendMode(AbstractFrontend *frontend,
30  QObject *parent, Practice::SessionManagerBase* sessionManager, KEduVocDocument* doc);
31 
32  virtual bool setTestEntry(TestEntry* current);
33 
35  virtual grade_t currentPreGradeForEntry() const;
37  virtual grade_t currentGradeForEntry() const;
38 
39  virtual void updateGrades();
40 
41 public Q_SLOTS:
42  virtual void hintAction();
43  virtual void checkAnswer();
44 
45 private:
46  QStringList validPersonalPronouns();
47 
48  SessionManagerBase* m_sessionManager;
49  KEduVocDocument* m_doc;
50 
51  QString m_currentTense;
52  QList<KEduVocWordFlags> m_pronounFlags;
53  KEduVocConjugation m_conjugation;
54 
55  QStringList m_lastAnswers;
56 };
57 
58 }
59 
60 #endif
Practice::ConjugationBackendMode::ConjugationBackendMode
ConjugationBackendMode(AbstractFrontend *frontend, QObject *parent, Practice::SessionManagerBase *sessionManager, KEduVocDocument *doc)
Definition: conjugationbackendmode.cpp:26
Practice::ConjugationBackendMode::hintAction
virtual void hintAction()
Definition: conjugationbackendmode.cpp:164
Practice::ConjugationBackendMode::currentGradeForEntry
virtual grade_t currentGradeForEntry() const
Return the worst grade for any pronoun of the current entry.
Definition: conjugationbackendmode.cpp:133
Practice::ConjugationBackendMode::setTestEntry
virtual bool setTestEntry(TestEntry *current)
start practicing a new word.
Definition: conjugationbackendmode.cpp:35
QObject
abstractbackendmode.h
Practice::ConjugationBackendMode
Definition: conjugationbackendmode.h:24
QString
QList< KEduVocWordFlags >
QStringList
Practice::ConjugationBackendMode::updateGrades
virtual void updateGrades()
Change the grades for the current entry.
Definition: conjugationbackendmode.cpp:148
Practice::ConjugationBackendMode::checkAnswer
virtual void checkAnswer()
Definition: conjugationbackendmode.cpp:84
Practice::AbstractBackendMode
Definition: abstractbackendmode.h:26
Practice::AbstractFrontend
Definition: abstractfrontend.h:26
sessionmanagerbase.h
Practice::SessionManagerBase
Definition: sessionmanagerbase.h:40
QObject::parent
QObject * parent() const
Practice::ConjugationBackendMode::currentPreGradeForEntry
virtual grade_t currentPreGradeForEntry() const
Return the worst pregrade for any pronoun of the current entry.
Definition: conjugationbackendmode.cpp:118
TestEntry
Definition: testentry.h:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 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