• 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
FromToEntryPage.h
Go to the documentation of this file.
1 /***************************************************************************
2 
3  edit properties from/to original
4 
5  -----------------------------------------------------------------------
6 
7  begin : Mon Jun 28 21:02:16 1999
8 
9  copyright : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
10  (C) 2005-2007 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 FromToEntryPage_included
27 #define FromToEntryPage_included
28 
29 #include <QDateTime>
30 
31 #include "ui_FromToEntryPageForm.h"
32 #include <keduvocexpression.h>
33 #include <keduvocgrammar.h>
34 #include <keduvocdocument.h>
35 
36 class FromToEntryPage : public QWidget, public Ui::FromToEntryPageForm
37 {
38  Q_OBJECT
39 
40 public:
41  explicit FromToEntryPage(KEduVocDocument *doc, int fromIdentifier, int toIdentifier, QWidget *parent = 0);
42 
43 public slots:
44  void setData(const QList<int>& entries);
45  void commitData();
46 
47 signals:
48  void sigModified();
49 
50 private slots:
51  void slotGradeSelected(int);
52  void slotResetGrades();
53 
54  void slotToday();
55  void slotNever();
56  void slotFalseFriendChanged(const QString &);
57 
58  void slotDateChanged(const QDate &);
59  void totalCountChanged(int);
60  void badCountChanged(int);
61 
62 private:
64  static QString gradeStr(int i);
65 
66  KEduVocDocument *m_doc;
67  int m_translationFrom;
68  int m_translationTo;
69  QList<int> m_entries;
70 
71  // keep track of modifications (for multiple)
72  bool m_gradeChanged;
73  bool m_practiceDateChanged;
74  bool m_totalCountChanged;
75  bool m_wrongCountChanged;
76 };
77 
78 #endif // FromToEntryPage_included
QWidget
FromToEntryPage::commitData
void commitData()
Definition: FromToEntryPage.cpp:225
FromToEntryPage
Definition: FromToEntryPage.h:36
QDate
QString
QList< int >
FromToEntryPage::setData
void setData(const QList< int > &entries)
Definition: FromToEntryPage.cpp:155
QObject::parent
QObject * parent() const
FromToEntryPage::FromToEntryPage
FromToEntryPage(KEduVocDocument *doc, int fromIdentifier, int toIdentifier, QWidget *parent=0)
Definition: FromToEntryPage.cpp:73
FromToEntryPage::sigModified
void sigModified()
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