• 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
  • editor
multiplechoicewidget.h
Go to the documentation of this file.
1 /***************************************************************************
2 
3  dialog page for multiple choice suggestions
4 
5  -----------------------------------------------------------------------
6 
7  begin : Mon Oct 29 18:09:29 1999
8 
9  copyright : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
10  (C) 2005-2006 Peter Hedlund <peter.hedlund@kdemail.net>
11  (C) 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
12 
13  -----------------------------------------------------------------------
14 
15  ***************************************************************************/
16 
17 /***************************************************************************
18  * *
19  * This program is free software; you can redistribute it and/or modify *
20  * it under the terms of the GNU General Public License as published by *
21  * the Free Software Foundation; either version 2 of the License, or *
22  * (at your option) any later version. *
23  * *
24  ***************************************************************************/
25 
26 #ifndef MULTIPLECHOICEWIDGET_H
27 #define MULTIPLECHOICEWIDGET_H
28 
29 #include "ui_multiplechoicewidget.h"
30 
31 #include <QModelIndex>
32 
33 class KEduVocExpression;
34 class KEduVocTranslation;
35 class QStringListModel;
36 
37 namespace Editor {
38 
39 class MultipleChoiceWidget : public QWidget, public Ui::multipleChoiceWidget
40 {
41  Q_OBJECT
42 
43 public:
44  explicit MultipleChoiceWidget(QWidget *parent = 0);
45 
46 public slots:
47  void setTranslation(KEduVocExpression* entry, int translation);
48 
49 protected:
50  bool eventFilter(QObject *obj, QEvent *event);
51 
52 private slots:
53  void slotDataChanged( const QModelIndex & topLeft, const QModelIndex & bottomRight );
54  void slotAddChoiceButton();
55  void slotRemoveChoiceButton();
56 
57 private:
58  KEduVocTranslation* m_translation;
59  QStringListModel * m_choicesModel;
60 };
61 }
62 
63 #endif
Editor::MultipleChoiceWidget::eventFilter
bool eventFilter(QObject *obj, QEvent *event)
Definition: multiplechoicewidget.cpp:100
QWidget
QObject
Editor::MultipleChoiceWidget::setTranslation
void setTranslation(KEduVocExpression *entry, int translation)
Definition: multiplechoicewidget.cpp:57
Editor::MultipleChoiceWidget
Definition: multiplechoicewidget.h:39
Editor::MultipleChoiceWidget::MultipleChoiceWidget
MultipleChoiceWidget(QWidget *parent=0)
Definition: multiplechoicewidget.cpp:29
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