Changeset View
Changeset View
Standalone View
Standalone View
src/statistics/conjugationoptions.h
Show All 9 Lines | |||||
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * | ||
11 | * * | 11 | * * | ||
12 | ***************************************************************************/ | 12 | ***************************************************************************/ | ||
13 | 13 | | |||
14 | #ifndef CONJUGATIONOPTIONS_H | 14 | #ifndef CONJUGATIONOPTIONS_H | ||
15 | #define CONJUGATIONOPTIONS_H | 15 | #define CONJUGATIONOPTIONS_H | ||
16 | 16 | | |||
17 | #include <QtWidgets/QWidget> | 17 | #include <QtWidgets/QWidget> | ||
18 | #include <QMap> | ||||
18 | 19 | | |||
19 | class KEduVocDocument; | 20 | class KEduVocDocument; | ||
20 | class QTreeWidget; | 21 | class QTreeWidget; | ||
22 | class QTreeWidgetItem; | ||||
21 | 23 | | |||
22 | class ConjugationOptions : public QWidget | 24 | class ConjugationOptions : public QWidget | ||
23 | { | 25 | { | ||
24 | Q_OBJECT | 26 | Q_OBJECT | ||
25 | public: | 27 | public: | ||
26 | ConjugationOptions(KEduVocDocument* doc, QWidget *parent); | 28 | ConjugationOptions(KEduVocDocument *doc, QWidget *parent); | ||
27 | 29 | | |||
28 | public Q_SLOTS: | 30 | public slots: | ||
29 | void setLanguages(int from, int to); | 31 | void setLanguages(int from, int to); | ||
30 | void updateSettings(); | 32 | void updateSettings(); | ||
31 | 33 | | |||
34 | signals: | ||||
35 | void checkBoxChanged(); | ||||
36 | | ||||
32 | private: | 37 | private: | ||
33 | void setupTenses(); | 38 | void setupTenses(); | ||
34 | 39 | | |||
40 | private slots: | ||||
41 | void processCheckBoxChanged(QTreeWidgetItem *item, int column); | ||||
42 | | ||||
43 | private: | ||||
35 | KEduVocDocument* m_doc; | 44 | KEduVocDocument *m_doc; | ||
36 | int m_language; | 45 | int m_language; | ||
37 | QTreeWidget* m_treeWidget; | 46 | QTreeWidget *m_treeWidget; | ||
47 | QMap<QTreeWidgetItem*, Qt::CheckState> m_checkStates; | ||||
38 | }; | 48 | }; | ||
39 | 49 | | |||
40 | #endif | 50 | #endif |