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

parley

  • sources
  • kde-4.12
  • 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/testentrymanager.h"
20 
21 namespace Practice {
22 
23 class ConjugationBackendMode : public AbstractBackendMode
24 {
25  Q_OBJECT
26 
27 public:
28  ConjugationBackendMode(const PracticeOptions& PracticeOptions, AbstractFrontend *frontend,
29  QObject *parent, Practice::TestEntryManager* testEntryManager, KEduVocDocument* doc);
30 
31  virtual bool setTestEntry(TestEntry* current);
32 
34  virtual grade_t currentGradeForEntry();
35 
36  virtual void updateGrades();
37 
38 public Q_SLOTS:
39  virtual void hintAction();
40  virtual void checkAnswer();
41 
42 private:
43  QStringList validPersonalPronouns();
44 
45  TestEntryManager* m_testEntryManager;
46  KEduVocDocument* m_doc;
47 
48  QString m_currentTense;
49  QList<KEduVocWordFlags> m_pronounFlags;
50  KEduVocConjugation m_conjugation;
51 
52  QStringList m_lastAnswers;
53 };
54 
55 }
56 
57 #endif
Practice::PracticeOptions
Definition: practiceoptions.h:22
Practice::ConjugationBackendMode::ConjugationBackendMode
ConjugationBackendMode(const PracticeOptions &PracticeOptions, AbstractFrontend *frontend, QObject *parent, Practice::TestEntryManager *testEntryManager, KEduVocDocument *doc)
Definition: conjugationbackendmode.cpp:26
testentrymanager.h
Practice::ConjugationBackendMode::hintAction
virtual void hintAction()
Definition: conjugationbackendmode.cpp:153
Practice::TestEntryManager
Definition: testentrymanager.h:31
QObject
Practice::ConjugationBackendMode::setTestEntry
virtual bool setTestEntry(TestEntry *current)
start practicing a new word.
Definition: conjugationbackendmode.cpp:34
abstractbackendmode.h
Practice::ConjugationBackendMode
Definition: conjugationbackendmode.h:23
Practice::ConjugationBackendMode::updateGrades
virtual void updateGrades()
Change the grades for the current entry.
Definition: conjugationbackendmode.cpp:131
Practice::ConjugationBackendMode::checkAnswer
virtual void checkAnswer()
Definition: conjugationbackendmode.cpp:82
Practice::AbstractBackendMode
Definition: abstractbackendmode.h:26
Practice::ConjugationBackendMode::currentGradeForEntry
virtual grade_t currentGradeForEntry()
Return the worst grade for any pronoun of the current entry.
Definition: conjugationbackendmode.cpp:116
Practice::AbstractFrontend
Definition: abstractfrontend.h:25
TestEntry
Definition: testentry.h:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:05 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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