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 #include "ui_conjugationoptionswidget.h"
00025
00026 class KEduVocDocument;
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 flashCardsRadioToggled(bool checked);
00057 void comparisonRadioToggled(bool checked);
00058 void conjugationRadioToggled(bool checked);
00059 void writtenRadioToggled(bool checked);
00060 void multipleChoiceRadioToggled(bool checked);
00061 void otherRadioToggled(bool checked);
00062
00063 void monolingualPracticeSelected(bool selected);
00064 void bilingualPracticeSelected(bool selected);
00065
00066 private:
00067 void setupTenses();
00068
00069 enum StackedWidgets {
00070 Empty,
00071 WrittenPractice,
00072 Conjugation,
00073 Comparison,
00074 MultipleChoice,
00075 FlashCards
00076 };
00077 QStackedLayout* m_optionsStackedLayout;
00078 Ui::ConjugationOptionsWidget m_conjugationUi;
00079 KEduVocDocument* m_doc;
00080 bool m_bilingual;
00081 };
00082
00083 #endif