parley
configurepracticewidget.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef CONFIGUREPRACTICEWIDGET_H
00021 #define CONFIGUREPRACTICEWIDGET_H
00022
00023 #include "ui_configurepracticewidget.h"
00024
00025 class KEduVocDocument;
00026 class KConfigSkeleton;
00027 class QStackedLayout;
00028 class QTreeWidget;
00029
00034 class ConfigurePracticeWidget
00035 : public QWidget, public Ui::ConfigurePracticeWidget
00036 {
00037 Q_OBJECT
00038 public:
00039 ConfigurePracticeWidget(KEduVocDocument* doc, QWidget *parent);
00040
00044 void updateSettings();
00048 void updateWidgets();
00049
00050 bool hasChanged();
00051 bool isDefault();
00052
00053 private slots:
00054 void fromLanguageSelected(int identifierFromIndex);
00055
00056 void comparisonRadioToggled(bool checked);
00057 void conjugationRadioToggled(bool checked);
00058 void writtenRadioToggled(bool checked);
00059 void otherRadioToggled(bool checked);
00060
00061 void monolingualPracticeSelected(bool selected);
00062 void bilingualPracticeSelected(bool selected);
00063
00064 private:
00065 void setupTenses();
00066
00067 enum StackedWidgets {
00068 Empty,
00069 WrittenPractice,
00070 Conjugation,
00071 Comparison
00072 };
00073 QStackedLayout* m_optionsStackedLayout;
00074 QTreeWidget* m_tenseListWidget;
00075 KEduVocDocument* m_doc;
00076 bool m_bilingual;
00077 };
00078
00079 #endif