• 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
practiceoptions.cpp
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 #include "practiceoptions.h"
16 
17 #include "prefs.h"
18 
19 using namespace Practice;
20 
21 PracticeOptions::PracticeOptions()
22 {
23  loadPreferences();
24 }
25 
26 void PracticeOptions::loadPreferences()
27 {
28  m_languageFrom = Prefs::questionLanguage();
29  m_languageTo = Prefs::solutionLanguage();
30 }
31 
32 Prefs::EnumPracticeMode::type PracticeOptions::mode() const
33 {
34  return Prefs::practiceMode();;
35 }
36 
37 int Practice::PracticeOptions::numberMultipleChoiceAnswers() const
38 {
39  return Prefs::numberMultipleChoiceAnswers();
40 }
Practice::PracticeOptions::numberMultipleChoiceAnswers
int numberMultipleChoiceAnswers() const
Definition: practiceoptions.cpp:37
practiceoptions.h
Prefs::practiceMode
static EnumPracticeMode::type practiceMode()
Get The practice mode that is currently selected.
Definition: prefs.h:1243
Prefs::EnumPracticeMode::type
type
Definition: prefs.h:26
Prefs::questionLanguage
static int questionLanguage()
Get The language that is displayed in a test.
Definition: prefs.h:1167
prefs.h
Prefs::numberMultipleChoiceAnswers
static int numberMultipleChoiceAnswers()
Get How many answers are provided for a multiple choice question, including the correct answer...
Definition: prefs.h:749
Practice::PracticeOptions::PracticeOptions
PracticeOptions()
Definition: practiceoptions.cpp:21
Practice::PracticeOptions::mode
Prefs::EnumPracticeMode::type mode() const
Definition: practiceoptions.cpp:32
Prefs::solutionLanguage
static int solutionLanguage()
Get The language in which the user has to answer.
Definition: prefs.h:1186
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 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