parley
CommonEntryPage.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
00021
00022
00023
00024
00025
00026 #ifndef CommonEntryPage_included
00027 #define CommonEntryPage_included
00028
00029
00030 #include "ui_CommonEntryPageForm.h"
00031
00032
00033 #include "practice/testentrymanager.h"
00034
00035 #include <keduvocwordtype.h>
00036 #include <keduvocdocument.h>
00037
00038 class CommonEntryPage : public QWidget, public Ui::CommonEntryPageForm
00039 {
00040 Q_OBJECT
00041 public:
00042 explicit CommonEntryPage(KEduVocDocument *doc, QWidget* parent = 0);
00043
00044 void setData(const QList<int>& entries, int currentTranslation);
00045 void commitData();
00046
00047 bool isModified();
00048
00049 signals:
00050 void signalTypeSelected(const QString &);
00051
00052 private:
00053 void updateMainTypeBoxContents();
00054 void setLessonBox(int lesson);
00055 void setUsageSelection(const QStringList& selectionList);
00056
00057 private slots:
00058
00059 void slotDataChanged();
00060 void slotDataChanged(int);
00061 void slotDataChanged(const QString&);
00062
00064 void slotUsageChanged();
00066 void slotTypeBoxChanged(const QString &mainType);
00067
00072 void phoneticSelected(const QChar& c);
00073 void invokeTypeDlg();
00074 void invokePronDlg();
00075 void invokeUsageDlg();
00076 void slotSubDialogClosed();
00077
00078 signals:
00079 void sigModified();
00080
00081 private:
00082 KEduVocDocument *m_doc;
00083
00084 KDialog *subDialog;
00085
00087 int m_currentTranslation;
00089 QList<int> m_entries;
00090 bool m_usageIsModified;
00091 KEduVocWordType m_wordTypes;
00092 };
00093 #endif // CommonEntryPage_included