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

libkdeedu/keduvocdocument

keduvocexpression.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                         Vocabulary Expression for KDE Edu
00003     -----------------------------------------------------------------------
00004     copyright            : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
00005 
00006                            (C) 2005-2007 Peter Hedlund <peter.hedlund@kdemail.net>
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef KEDUVOCEXPRESSION_H
00019 #define KEDUVOCEXPRESSION_H
00020 
00021 #include "libkeduvocdocument_export.h"
00022 
00023 #include <QtCore/QDateTime>
00024 
00025 #include "keduvocgrammar.h"
00026 #include "keduvocmultiplechoice.h"
00027 #include "keduvoctranslation.h"
00028 
00033 class KEDUVOCDOCUMENT_EXPORT KEduVocExpression
00034 {
00035 public:
00036 
00039     explicit KEduVocExpression();
00040 
00046     explicit KEduVocExpression( const QString & expression, int lesson = -1 );
00047 
00054     explicit KEduVocExpression( const QStringList & translations, int lesson = -1 );
00055 
00056     KEduVocExpression( const KEduVocExpression &expression );
00057 
00058     ~KEduVocExpression();
00059 
00062     int lesson() const;
00063 
00066     void setLesson( int l );
00067 
00071     void resetGrades( int index );
00072 
00075     bool isActive() const;
00076 
00079     void setActive( bool flag = true );
00080 
00081     int sizeHint() const;
00082     void setSizeHint( int sizeHint );
00083 
00088     QString translationString( int index ) const;
00089 
00090     void setTranslation( int index, const KEduVocTranslation & translation );
00096     void setTranslation( int index, const QString &expression );
00097 
00098 //     void setTranslation( const QString &identifier, const QString & expression );
00099 
00104     void removeTranslation( int index );
00105 
00106 
00112     KEduVocTranslation & translation( int index ) const;
00113 
00114     QList<int> translationIndices() const;
00115 
00116     KEduVocExpression& operator= ( const KEduVocExpression &expression );
00117     bool operator== ( const KEduVocExpression &expression ) const;
00118 
00119 private:
00120     class KEduVocExpressionPrivate;
00121     KEduVocExpressionPrivate* const d;
00122 };
00123 
00124 #endif // KEduVocExpression_H

libkdeedu/keduvocdocument

Skip menu "libkdeedu/keduvocdocument"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal