From 067ffd6b079f502a6210db006473e4ecb27a9c0b Mon Sep 17 00:00:00 2001 From: Reto Zingg Date: Sat, 15 Dec 2012 19:28:49 +0200 Subject: [PATCH] adapt qmvocwordtype.h for querymee --- qmvocwordtype.h | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/qmvocwordtype.h b/qmvocwordtype.h index fa74667..0d9833d 100644 --- a/qmvocwordtype.h +++ b/qmvocwordtype.h @@ -1,7 +1,12 @@ +/*************************************************************************** +* this file is from kdeedu project. Filename: keduvocwordtype.h +***************************************************************************/ + /*************************************************************************** Copyright 2007 Jeremy Whiting Copyright 2007 Frederik Gladhorn + Copyright (C) 2010, 2012 Reto Zingg ***************************************************************************/ @@ -14,70 +19,70 @@ * * ***************************************************************************/ -#ifndef KEDUVOCWORDTYPE_H -#define KEDUVOCWORDTYPE_H +#ifndef QMVOCWORDTYPE_H +#define QMVOCWORDTYPE_H -#include "libkeduvocdocument_export.h" +#include "libqmvocdocument_export.h" -#include "keduvoccontainer.h" +#include "qmvoccontainer.h" -#include "keduvocwordflags.h" +#include "qmvocwordflags.h" #include #include -class KEduVocExpression; -class KEduVocTranslation; +class QmVocExpression; +class QmVocTranslation; /** class to store translation word types */ -class KEDUVOCDOCUMENT_EXPORT KEduVocWordType :public KEduVocContainer +class QMVOCDOCUMENT_EXPORT QmVocWordType :public QmVocContainer { public: /** default constructor */ - explicit KEduVocWordType(const QString& name, KEduVocWordType *parent = 0); + explicit QmVocWordType(const QString& name, QmVocWordType *parent = 0); /** destructor */ - ~KEduVocWordType(); + ~QmVocWordType(); /** assignment operator */ -// KEduVocWordType& operator= ( const KEduVocWordType& ); +// QmVocWordType& operator= ( const QmVocWordType& ); /** * Internally (different from the name) the class can have one of the preset word types. These are used to determine special properties (verbs have conjugations available for example). * @param type */ - void setWordType(KEduVocWordFlags flags); + void setWordType(QmVocWordFlags flags); /** * Return the raw WordTypeFlags. Returns NoInformation if no flags are set. * @return WordTypeFlags */ - KEduVocWordFlags wordType() const; + QmVocWordFlags wordType() const; /** * Return a child class (or this class) that is of the specified type. Returns 0 if no class of that type is found. * @param type * @return */ - KEduVocWordType* childOfType(const KEduVocWordFlags& flags); + QmVocWordType* childOfType(const QmVocWordFlags& flags); /** * The word type class does keep track of individual translations, because for one entry, the translations can have different word types (eg. genders of nouns tend to be different in different langues). * @param row * @return */ - KEduVocTranslation * translation(int row); + QmVocTranslation * translation(int row); /** * get a list of all entries in the lesson * @param recursive include entries in sublessons * @return */ - QList < KEduVocExpression* > entries(EnumEntriesRecursive recursive = NotRecursive); + QList < QmVocExpression* > entries(EnumEntriesRecursive recursive = NotRecursive); - KEduVocExpression* entry(int row, EnumEntriesRecursive recursive = NotRecursive); + QmVocExpression* entry(int row, EnumEntriesRecursive recursive = NotRecursive); /** get the number of entries in the lesson */ int entryCount(EnumEntriesRecursive recursive = NotRecursive); @@ -89,14 +94,14 @@ private: /** add an entry to the lesson * @param entryid id of the entry to add */ - void addTranslation(KEduVocTranslation* translation); + void addTranslation(QmVocTranslation* translation); /** remove an entry from the lesson * @param entryid id of the entry to remove */ - void removeTranslation(KEduVocTranslation* translation); + void removeTranslation(QmVocTranslation* translation); - friend class KEduVocTranslation; + friend class QmVocTranslation; }; #endif -- 2.47.3