moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kvoctrain / kvoctrain / common-dialogs / thresholdoptions.h
blob0a056ff31b743d9e24e70dae4c6c207e58e3fa6b
1 /***************************************************************************
3 threshold options for kvoctrain
5 -----------------------------------------------------------------------
7 begin : Tue Apr 5 2005
9 copyright :(C) 2005 Peter Hedlund
11 email : peter@peterandlinda.com
13 -----------------------------------------------------------------------
15 ***************************************************************************/
17 /***************************************************************************
18 * *
19 * This program is free software; you can redistribute it and/or modify *
20 * it under the terms of the GNU General Public License as published by *
21 * the Free Software Foundation; either version 2 of the License, or *
22 * (at your option) any later version. *
23 * *
24 ***************************************************************************/
26 #ifndef THRESHOLDOPTIONS_H
27 #define THRESHOLDOPTIONS_H
29 #include "thresholdoptionsbase.h"
30 #include "QueryManager.h"
32 class KComboBox;
34 class ThresholdOptions : public ThresholdOptionsBase
36 Q_OBJECT
38 public:
39 ThresholdOptions(KComboBox * lessons, QueryManager * m, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
41 void updateWidgets();
42 bool hasChanged();
43 bool isDefault();
44 void updateSettings();
46 signals:
47 void widgetModified();
49 protected slots:
50 void slotSelectAll();
51 void slotSelectNone();
52 void slotComboActivated(int);
53 void slotSetGradeComp(int);
54 void slotSetBadComp(int);
55 void slotSetQueryComp(int);
56 void slotSetTypeComp(int);
57 void slotSetLessonItems();
58 void slotSetLessonComp(int);
59 void slotSetDateComp(int);
60 void slotBlockExpire(bool block, bool expire);
62 private:
63 void fillWidgets();
65 KComboBox * m_lessons;
66 QueryManager * m_queryManager;
67 vector<TypeRelation> all_maintypes;
70 #endif