You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
2.4 KiB
89 lines
2.4 KiB
/***************************************************************************
|
|
|
|
query dialog for adjectives
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
begin : Sat Dec 4 15:09:18 1999
|
|
|
|
copyright : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
|
|
(C) 2001 The KDE-EDU team
|
|
(C) 2005 Peter Hedlund <peter.hedlund@kdemail.net>
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
***************************************************************************
|
|
|
|
***************************************************************************
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
***************************************************************************/
|
|
|
|
|
|
#ifndef AdjQueryDlg_included
|
|
#define AdjQueryDlg_included
|
|
|
|
#include "AdjQueryDlgForm.h"
|
|
#include "QueryDlgBase.h"
|
|
|
|
class AdjQueryDlg : public QueryDlgBase
|
|
{
|
|
TQ_OBJECT
|
|
|
|
|
|
public:
|
|
AdjQueryDlg
|
|
(
|
|
TQString type,
|
|
int entry,
|
|
int col,
|
|
int query_cycle,
|
|
int query_num,
|
|
int query_startnum,
|
|
kvoctrainExpr *exp,
|
|
kvoctrainDoc *doc,
|
|
const Comparison &comp);
|
|
|
|
~AdjQueryDlg();
|
|
|
|
void setQuery(TQString type,
|
|
int entry,
|
|
int col,
|
|
int query_cycle,
|
|
int query_num,
|
|
int query_startnum,
|
|
kvoctrainExpr *exp,
|
|
kvoctrainDoc *doc,
|
|
const Comparison &comp);
|
|
|
|
public slots:
|
|
virtual void initFocus() const;
|
|
|
|
protected:
|
|
void keyPressEvent(TQKeyEvent *e);
|
|
void resetAllFields();
|
|
|
|
protected slots:
|
|
void lev1Changed(const TQString&);
|
|
void lev2Changed(const TQString&);
|
|
void lev3Changed(const TQString&);
|
|
void showAllClicked();
|
|
void slotUser2();
|
|
void knowItClicked();
|
|
void returnPressed();
|
|
void dontKnowClicked();
|
|
void verifyClicked();
|
|
void timeoutReached();
|
|
|
|
protected:
|
|
Comparison comp;
|
|
|
|
private:
|
|
AdjQueryDlgForm * mw;
|
|
};
|
|
#endif // AdjQueryDlg_included
|