• 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
genderbackendmode.h
Go to the documentation of this file.
1 /***************************************************************************
2  Copyright 2009 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 GENDERBACKENDMODE_H
16 #define GENDERBACKENDMODE_H
17 
18 #include "multiplechoicebackendmode.h"
19 #include "practice/sessionmanagerbase.h"
20 
21 namespace Practice
22 {
23 
24 class GenderBackendMode : public MultipleChoiceBackendMode
25 {
26  Q_OBJECT
27 
28 public:
29  GenderBackendMode(AbstractFrontend *frontend,
30  QObject *parent, Practice::SessionManagerBase* sessionManager,
31  KEduVocDocument* doc);
32 
34  virtual bool setTestEntry(TestEntry* current);
35 
36 protected:
37  virtual void prepareChoices(TestEntry* current);
38  virtual void updateGrades();
39 
40 private:
42  const KEduVocDocument & m_doc;
43  KEduVocArticle m_articles;
44  QString m_masculine;
45  QString m_feminine;
46  QString m_neuter;
47  bool m_neuterExists;
48 };
49 
50 }
51 
52 #endif
Practice::GenderBackendMode::GenderBackendMode
GenderBackendMode(AbstractFrontend *frontend, QObject *parent, Practice::SessionManagerBase *sessionManager, KEduVocDocument *doc)
Definition: genderbackendmode.cpp:24
Practice::GenderBackendMode::updateGrades
virtual void updateGrades()
Change the grades for the current entry.
Definition: genderbackendmode.cpp:122
multiplechoicebackendmode.h
QObject
Practice::MultipleChoiceBackendMode
Definition: multiplechoicebackendmode.h:24
QString
Practice::AbstractFrontend
Definition: abstractfrontend.h:26
sessionmanagerbase.h
Practice::GenderBackendMode::setTestEntry
virtual bool setTestEntry(TestEntry *current)
Start practicing a new word.
Definition: genderbackendmode.cpp:32
Practice::SessionManagerBase
Definition: sessionmanagerbase.h:40
QObject::parent
QObject * parent() const
Practice::GenderBackendMode::prepareChoices
virtual void prepareChoices(TestEntry *current)
set the list of possible answers.
Definition: genderbackendmode.cpp:68
Practice::GenderBackendMode
Definition: genderbackendmode.h:24
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