From cbb5deab84c7657a449d176982400249efa9ea5c Mon Sep 17 00:00:00 2001 From: Reto Zingg Date: Sat, 15 Dec 2012 19:28:48 +0200 Subject: [PATCH] adapt qmvocleitnerbox.h for querymee --- qmvocleitnerbox.h | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/qmvocleitnerbox.h b/qmvocleitnerbox.h index 37bd780..132c624 100644 --- a/qmvocleitnerbox.h +++ b/qmvocleitnerbox.h @@ -1,5 +1,10 @@ +/*************************************************************************** +* this file is from kdeedu project. Filename: keduvocleitnerbox.h +***************************************************************************/ + /*************************************************************************** Copyright 2008 Frederik Gladhorn + Copyright (C) 2010, 2012 Reto Zingg ***************************************************************************/ /*************************************************************************** @@ -11,46 +16,46 @@ * * ***************************************************************************/ -#ifndef KEDUVOCLEITNERBOX_H -#define KEDUVOCLEITNERBOX_H +#ifndef QMVOCLEITNERBOX_H +#define QMVOCLEITNERBOX_H -#include "libkeduvocdocument_export.h" +#include "libqmvocdocument_export.h" -#include "keduvoccontainer.h" +#include "qmvoccontainer.h" #include #include -class KEduVocExpression; -class KEduVocTranslation; +class QmVocExpression; +class QmVocTranslation; /** * Leitner Boxes are an alternative grading system. * Classically flash cards are kept in boxes and moved corresponding to the users knowledge level. */ -class KEDUVOCDOCUMENT_EXPORT KEduVocLeitnerBox :public KEduVocContainer +class QMVOCDOCUMENT_EXPORT QmVocLeitnerBox :public QmVocContainer { public: /** default constructor */ - explicit KEduVocLeitnerBox(const QString& name, KEduVocLeitnerBox *parent = 0); + explicit QmVocLeitnerBox(const QString& name, QmVocLeitnerBox *parent = 0); /** destructor */ - ~KEduVocLeitnerBox(); + ~QmVocLeitnerBox(); /** * The leitner box class keeps track of individual translations, because for one entry, the translations can have different grades. * @param row * @return */ - KEduVocTranslation * translation(int row); + QmVocTranslation * translation(int row); /** * get a list of all entries in the box * @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); @@ -62,14 +67,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