• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

libkdeedu/keduvocdocument

  • sources
  • kde-4.12
  • kdeedu
  • libkdeedu
  • keduvocdocument
keduvoctranslation.h
Go to the documentation of this file.
1 /***************************************************************************
2  Vocabulary Expression Translation for KDE Edu
3  -----------------------------------------------------------------------
4  Copyright 2007-2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
5  ***************************************************************************/
6 
7 /***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 
17 #ifndef KEDUVOCTRANSLATION_H
18 #define KEDUVOCTRANSLATION_H
19 
20 #include "libkeduvocdocument_export.h"
21 #include "keduvocconjugation.h"
22 #include "keduvoctext.h"
23 #include <KDE/KUrl>
24 #include <QtCore/QString>
25 
26 class KEduVocExpression;
27 class KEduVocString;
28 class KEduVocWordType;
29 class KEduVocLeitnerBox;
30 class KEduVocDeclension;
31 
35 class KEDUVOCDOCUMENT_EXPORT KEduVocTranslation
36  :public KEduVocText
37 {
38 public:
39  enum Related {
40  Synonym,
41  Antonym,
42  FalseFriend
43  };
44 
48  KEduVocTranslation(KEduVocExpression* entry);
49 
54  KEduVocTranslation(KEduVocExpression* entry, const QString &translation );
55 
57  KEduVocTranslation( const KEduVocTranslation &other );
58 
62  ~KEduVocTranslation();
63 
64  KEduVocExpression* entry();
65 
69  void setPronunciation( const QString & expression );
70 
74  QString pronunciation() const;
75 
79  QString comment() const;
80 
84  void setComment( const QString& expr );
85 
89  void setExample( const QString & expression );
90 
94  QString example() const;
95 
99  void setParaphrase( const QString & expression );
100 
104  QString paraphrase() const;
105 
109  void setAntonym( const QString & expression );
110 
114  QString antonym() const;
115 
120  void setIrregularPlural( const QString& plural );
121 
126  QString irregularPlural() const;
127 
133  KEduVocWordType* wordType() const;
134 
138  void setWordType( KEduVocWordType* wordType );
139 
143  KEduVocLeitnerBox* leitnerBox() const;
144 
148  void setLeitnerBox( KEduVocLeitnerBox* leitnerBox );
149 
155  KEduVocConjugation& conjugation( const QString& tense );
156 
160  void setConjugation( const QString& tense, const KEduVocConjugation & conjugation );
161 
167  KEduVocDeclension* declension();
168 
173  void setDeclension(KEduVocDeclension* declension);
174 
179  void setConjugations( const QMap<QString, KEduVocConjugation>& conjugations );
180 
181  QStringList conjugationTenses() const;
182 
187  KDE_DEPRECATED QMap <QString, KEduVocConjugation> conjugations() const;
188 
192  KDE_DEPRECATED QString comparative() const;
193  KDE_DEPRECATED void setComparative(const QString& comparative);
194  // TODO rename to comparative and remove the deprecated function
195  KEduVocText comparativeForm() const;
196  void setComparativeForm(const KEduVocText& comparative);
197 
198  KDE_DEPRECATED QString superlative() const;
199  KDE_DEPRECATED void setSuperlative(const QString& superlative);
200  KEduVocText superlativeForm() const;
201  void setSuperlativeForm(const KEduVocText& superlative);
202 
203  KEduVocText article() const;
204  void setArticle(const KEduVocText& article);
205 
208  QStringList & multipleChoice();
209 
213 // void setMultipleChoice( const QStringList &mc );
214 
216  KUrl soundUrl();
217 
220  void setSoundUrl(const KUrl &url);
221 
223  KUrl imageUrl();
224 
228  void setImageUrl(const KUrl &url);
229 
234  void addFalseFriend( KEduVocTranslation* falseFriend );
235 
240  void removeFalseFriend( KEduVocTranslation* falseFriend );
241 
246  QList<KEduVocTranslation*> falseFriends() const;
247 
252  void addSynonym( KEduVocTranslation* synonym );
253 
258  void removeSynonym( KEduVocTranslation* synonym );
259 
264  QList<KEduVocTranslation*> synonyms() const;
265 
270  void addAntonym( KEduVocTranslation* antonym );
271 
276  void removeAntonym( KEduVocTranslation* antonym );
277 
282  QList<KEduVocTranslation*> antonyms() const;
283 
289  KEduVocTranslation& operator= ( const KEduVocTranslation &translation );
290 
296  bool operator== ( const KEduVocTranslation &translation ) const;
297 
298  void fromKVTML2(QDomElement& parent);
299  void toKVTML2(QDomElement& parent);
300 
301 private:
302  class KEduVocTranslationPrivate;
303  KEduVocTranslationPrivate* const d;
304 
305  // for the copy constructor
306  void setEntry(KEduVocExpression* entry);
307  friend class KEduVocExpression;
308 };
309 
310 #endif
keduvocconjugation.h
KEduVocDeclension
A declension contains all forms that a NOUN possibly can have.
Definition: keduvocdeclension.h:36
KEduVocTranslation::Antonym
Definition: keduvoctranslation.h:41
KEduVocConjugation
The conjugation of a verb.
Definition: keduvocconjugation.h:37
libkeduvocdocument_export.h
KEDUVOCDOCUMENT_EXPORT
#define KEDUVOCDOCUMENT_EXPORT
Definition: libkeduvocdocument_export.h:32
KEduVocLeitnerBox
Leitner Boxes are an alternative grading system.
Definition: keduvocleitnerbox.h:31
keduvoctext.h
KEduVocWordType
class to store translation word types
Definition: keduvocwordtype.h:33
KEduVocText::operator==
bool operator==(const KEduVocText &other) const
Compare two sets of grades.
Definition: keduvoctext.cpp:165
KEduVocText
A text in vocabulary documents.
Definition: keduvoctext.h:59
KEduVocText::operator=
KEduVocText & operator=(const KEduVocText &other)
Equal operator to copy grades.
Definition: keduvoctext.cpp:154
KEduVocText::fromKVTML2
void fromKVTML2(QDomElement &parent)
Definition: keduvoctext.cpp:205
KEduVocTranslation
Definition: keduvoctranslation.h:35
KEduVocExpression
This class contains one vocabulary expression as an original with one or more translations.
Definition: keduvocexpression.h:37
KEduVocTranslation::Synonym
Definition: keduvoctranslation.h:40
KEduVocTranslation::Related
Related
Definition: keduvoctranslation.h:39
KEduVocText::toKVTML2
void toKVTML2(QDomElement &parent)
Definition: keduvoctext.cpp:175
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:37:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdeedu/keduvocdocument

Skip menu "libkdeedu/keduvocdocument"
  • 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