-
Notifications
You must be signed in to change notification settings - Fork 3
/
learnstartdialog.h
68 lines (49 loc) · 1.49 KB
/
learnstartdialog.h
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef LEARNSTARTDIALOG_H
#define LEARNSTARTDIALOG_H
#include <QDialog>
#include <QString>
#include "bcmgr.h"
#include "learnmgr.h"
#include "gaugedisplayer.h"
#include "userbookdbmgr.h"
#include "learngaugedisplayer.h"
#include "QStandardItemModel"
namespace Ui {
class LearnStartDialog;
}
class LearnStartDialog : public QDialog
{
Q_OBJECT
public:
explicit LearnStartDialog(QWidget *parent = 0,const QString &bookpath = NULL);
~LearnStartDialog();
private slots:
void on_LearnPushButton_clicked();
void on_ReviewPushButton_clicked();
void on_ChoiceCheckBox_clicked(bool checked);
void on_LektionComboBox_currentIndexChanged(const QString &Lektion);
void on_InfoListWidget_clicked(const QModelIndex &index);
void on_LektionComboBox_currentIndexChanged(int index);
void on_LektionLineEdit_textChanged(const QString &lektionNum);
void on_ReviewLektionComboBox_currentIndexChanged(const QString &lektion);
public:
bool getLearnByLektion();
QString learnOrReview();
int getLektion();
QStandardItemModel* itemModel;
private:
Ui::LearnStartDialog *ui;
// QVBoxLayout *mainLayout;
// QHBoxLayout *layout;
// GaugeDisplayer *totalPercent;
// GaugeDisplayer *haveLearnedPercent;
// GaugeDisplayer *needReviewPercent;
// LearnGaugeDisplayer *learnGauge;
QStringList infolist;
int wordCount;
int haveLearnedcount;
QString bookPath;
QString LearnOrReview;
int lektion;
};
#endif // LEARNSTARTDIALOG_H