summaryrefslogtreecommitdiff
path: root/src/study/WordDrillWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/study/WordDrillWindow.h')
-rw-r--r--src/study/WordDrillWindow.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/study/WordDrillWindow.h b/src/study/WordDrillWindow.h
new file mode 100644
index 0000000..ed421e9
--- /dev/null
+++ b/src/study/WordDrillWindow.h
@@ -0,0 +1,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