• 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
  • 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 
40 class MultipleChoiceWidget : public QWidget, public Ui::multipleChoiceWidget
41 {
42  Q_OBJECT
43 
44 public:
45  explicit MultipleChoiceWidget(QWidget *parent = 0);
46 
47 public slots:
48  void setTranslation(KEduVocExpression* entry, int translation);
49 
50 protected:
51  bool eventFilter(QObject *obj, QEvent *event);
52 
53 private slots:
54  void slotDataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight);
55  void slotAddChoiceButton();
56  void slotRemoveChoiceButton();
57 
58 private:
59  KEduVocTranslation* m_translation;
60  QStringListModel * m_choicesModel;
61 };
62 }
63 
64 #endif
Editor::MultipleChoiceWidget::eventFilter
bool eventFilter(QObject *obj, QEvent *event)
Definition: multiplechoicewidget.cpp:100
QModelIndex
QEvent
QWidget
Editor::MultipleChoiceWidget::setTranslation
void setTranslation(KEduVocExpression *entry, int translation)
Definition: multiplechoicewidget.cpp:57
QObject
QStringListModel
Editor::MultipleChoiceWidget
Definition: multiplechoicewidget.h:40
Editor::MultipleChoiceWidget::MultipleChoiceWidget
MultipleChoiceWidget(QWidget *parent=0)
Definition: multiplechoicewidget.cpp:29
QObject::parent
QObject * parent() const
QWidget::event
virtual bool event(QEvent *event)
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