moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kvoctrain / kvoctrain / query-dialogs / AdjQueryDlg.h
blob2977d963c562383500947fd9ade9211fdb12ffdf
1 /***************************************************************************
3 query dialog for adjectives
5 -----------------------------------------------------------------------
7 begin : Sat Dec 4 15:09:18 1999
9 copyright : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
10 (C) 2001 The KDE-EDU team
11 (C) 2005 Peter Hedlund <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 ***************************************************************************/
27 #ifndef AdjQueryDlg_included
28 #define AdjQueryDlg_included
30 #include "AdjQueryDlgForm.h"
31 #include "QueryDlgBase.h"
33 class AdjQueryDlg : public QueryDlgBase
35 Q_OBJECT
37 public:
38 AdjQueryDlg
40 QString type,
41 int entry,
42 int col,
43 int query_cycle,
44 int query_num,
45 int query_startnum,
46 kvoctrainExpr *exp,
47 kvoctrainDoc *doc,
48 const Comparison &comp,
49 int mqtime,
50 bool show);
52 ~AdjQueryDlg();
54 void setQuery(QString type,
55 int entry,
56 int col,
57 int query_cycle,
58 int query_num,
59 int query_startnum,
60 kvoctrainExpr *exp,
61 kvoctrainDoc *doc,
62 const Comparison &comp,
63 int mqtime,
64 bool show);
66 public slots:
67 virtual void initFocus() const;
69 protected:
70 void keyPressEvent(QKeyEvent *e);
71 void resetAllFields();
73 protected slots:
74 void lev1Changed(const QString&);
75 void lev2Changed(const QString&);
76 void lev3Changed(const QString&);
77 void showAllClicked();
78 void slotUser2();
79 void knowItClicked();
80 void returnPressed();
81 void dontKnowClicked();
82 void verifyClicked();
83 void timeoutReached();
85 protected:
86 Comparison comp;
88 private:
89 AdjQueryDlgForm * mw;
91 #endif // AdjQueryDlg_included