blob: ed421e9e8ea89290b57bde03efd250c5647704a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#ifndef WORDDRILLWINDOW_H
#define WORDDRILLWINDOW_H
#include <QtWidgets>
#include "IStudyWindow.h"
class WordDrillModel;
class WordDrillWindow: public IStudyWindow
{
Q_OBJECT
public:
WordDrillWindow( WordDrillModel* aModel, QWidget* aParent );
~WordDrillWindow();
protected:
QVBoxLayout* createLowerPanel();
void setStateForNextCard();
void processState();
void ReadSettings();
void WriteSettings();
private:
void DisplayCardNum();
void UpdateButtons();
private slots:
void ToggleAnswer();
private:
static const int PosX = 200;
static const int PosY = 200;
static const int Width = 600;
static const int Height = 350;
private:
QLabel* iCardNumLabel;
QProgressBar* iProgressBar;
QCheckBox* iShowAnswersCB;
QPushButton* iBackBtn;
QPushButton* iForwardBtn;
QPushButton* iNextBtn;
};
#endif
|