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

parley

entryfilter.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     Copyright 2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
00003  ***************************************************************************/
00004 
00005 /***************************************************************************
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
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 //     void filterLesson(bool filter);
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 

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  •     lib
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.9-20090814
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