• 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
mixedlettersmodewidget.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 Daniel Laidig <d.laidig@gmx.de>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 
18 */
19 
20 #ifndef PRACTICE_MIXEDLETTERSMODEWIDGET_H
21 #define PRACTICE_MIXEDLETTERSMODEWIDGET_H
22 
23 #include "writtenpracticewidget.h"
24 
25 namespace Ui
26 {
27 class WrittenPracticeWidget;
28 }
29 
30 namespace Practice
31 {
32 
33 class MixedLettersModeWidget : public Practice::WrittenPracticeWidget
34 {
35  Q_OBJECT
36 
37 public:
38  MixedLettersModeWidget(GuiFrontend *frontend, QWidget *parent = 0);
39 
40  virtual void setQuestion(const QVariant& question);
41  virtual void setSolution(const QVariant& solution);
42  virtual void setSolutionFont(const QFont& font);
43 
44 public slots:
45  void showQuestion();
46 
47 private slots:
48  void updatePixmap();
49 
50 private:
51  QString m_solution;
52  QString m_mixedSolution;
53  QString m_question;
54  QList<int> m_positions;
55  QPixmap m_pixmap;
56  QFont m_solutionFont;
57 };
58 
59 }
60 
61 #endif // PRACTICE_MIXEDLETTERSMODEWIDGET_H
QWidget
Practice::GuiFrontend
Definition: guifrontend.h:35
QFont
QString
QList< int >
Practice::MixedLettersModeWidget::setSolution
virtual void setSolution(const QVariant &solution)
Definition: mixedlettersmodewidget.cpp:86
QPixmap
Practice::WrittenPracticeWidget
Definition: writtenpracticewidget.h:29
QWidget::font
const QFont & font() const
writtenpracticewidget.h
Practice::MixedLettersModeWidget::MixedLettersModeWidget
MixedLettersModeWidget(GuiFrontend *frontend, QWidget *parent=0)
Definition: mixedlettersmodewidget.cpp:31
Practice::MixedLettersModeWidget::showQuestion
void showQuestion()
Definition: mixedlettersmodewidget.cpp:50
Practice::MixedLettersModeWidget
Definition: mixedlettersmodewidget.h:33
Practice::MixedLettersModeWidget::setSolutionFont
virtual void setSolutionFont(const QFont &font)
Definition: mixedlettersmodewidget.cpp:38
QObject::parent
QObject * parent() const
Practice::MixedLettersModeWidget::setQuestion
virtual void setQuestion(const QVariant &question)
Definition: mixedlettersmodewidget.cpp:44
QVariant
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