parley
entryfilter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef ENTRYFILTER_H
00015 #define ENTRYFILTER_H
00016
00017 #include "ui_entryfilter.h"
00018
00019 #include <QtCore/QList>
00020 #include <QtCore/QSet>
00021
00022 class KEduVocExpression;
00023 class KEduVocDocument;
00024 class KDialog;
00025
00026 class EntryFilter
00027 :public QObject
00028 {
00029 Q_OBJECT
00030 public:
00031 EntryFilter(QObject * parent, KEduVocDocument *doc);
00032 ~EntryFilter();
00033
00038 QList<KEduVocExpression*> entries();
00039
00040 private:
00046 void expireEntries();
00047
00048 void lessonEntries();
00049 void wordTypeEntries();
00050 void blockedEntries();
00051 void timesWrongEntries();
00052 void timesPracticedEntries();
00053 void minMaxGradeEntries();
00054 void updateTotal();
00055
00059 void cleanupInvalid();
00060
00061 private slots:
00062
00063 void checkBoxChanged(bool filter);
00064
00065 private:
00066 Ui::EntryFilter ui;
00067
00068 QSet<KEduVocExpression*> m_entries;
00069 QSet<KEduVocExpression*> m_entriesLesson;
00070 QSet<KEduVocExpression*> m_entriesWordType;
00071 QSet<KEduVocExpression*> m_entriesBlocked;
00072 QSet<KEduVocExpression*> m_entriesTimesWrong;
00073 QSet<KEduVocExpression*> m_entriesTimesPracticed;
00074 QSet<KEduVocExpression*> m_entriesMinMaxGrade;
00075 QSet<KEduVocExpression*> m_currentSelection;
00076
00077 KEduVocDocument *m_doc;
00078 int m_fromTranslation;
00079 int m_toTranslation;
00080
00081 KDialog *m_dialog;
00082 };
00083
00084 #endif
00085