moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kvoctrain / kvoctrain / query-dialogs / VerbQueryDlg.h
blob62db006f730cb1c00851cda85a0ef292caee5842
1 /***************************************************************************
3 query dialog for verbs
5 -----------------------------------------------------------------------
7 begin : Fri Dec 3 18:28: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 VerbQueryDlg_included
28 #define VerbQueryDlg_included
30 #include "VerbQueryDlgForm.h"
31 #include "QueryDlgBase.h"
33 class VerbQueryDlg : public QueryDlgBase
35 Q_OBJECT
37 public:
39 VerbQueryDlg(
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 Conjugation &prefix,
49 const Conjugation &conjug,
50 int mqtime,
51 bool show);
53 ~VerbQueryDlg();
55 void setQuery(QString type,
56 int entry,
57 int col,
58 int query_cycle,
59 int query_num,
60 int query_startnum,
61 kvoctrainExpr *exp,
62 kvoctrainDoc *doc,
63 const Conjugation &prefix,
64 const Conjugation &conjug,
65 int mqtime,
66 bool show);
68 public slots:
69 virtual void initFocus() const;
71 protected:
72 bool next();
73 void keyPressEvent( QKeyEvent *e );
74 void resetAllFields();
76 protected slots:
77 void slotUser2();
78 void slotP3pfChanged(const QString&);
79 void slotP3snChanged(const QString&);
80 void showAllClicked();
81 void slotReturnPressed();
82 void slotP3smChanged(const QString&);
83 void knowItClicked();
84 void dontKnowClicked();
85 void slotP3pnChanged(const QString&);
86 void slotP3sfChanged(const QString&);
87 void slotP1sChanged(const QString&);
88 void slotP2sChanged(const QString&);
89 void slotP3pmChanged(const QString&);
90 void slotP1pChanged(const QString&);
91 void slotP2pChanged(const QString&);
92 void verifyClicked();
93 void timeoutReached();
95 protected:
96 int current;
97 Conjugation conjugations;
98 bool all_known;
99 int query_time;
101 private:
102 VerbQueryDlgForm * mw;
105 #endif // VerbQueryDlg_included