parley
conjugationwidget.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef CONJUGATIONWIDGET_H
00015 #define CONJUGATIONWIDGET_H
00016
00017 #include "ui_conjugationwidget.h"
00018
00019 #include <keduvocwordflags.h>
00020
00021 class KEduVocExpression;
00022 class KEduVocDocument;
00023
00024 class ConjugationWidget : public QWidget, public Ui::ConjugationWidget
00025 {
00026 Q_OBJECT
00027
00028 public:
00029 explicit ConjugationWidget(QWidget *parent = 0);
00030
00031 public slots:
00032 void setDocument(KEduVocDocument* doc);
00033 void setTranslation(KEduVocExpression* entry, int translation);
00034
00035 signals:
00036 void sigModified();
00037
00038 private slots:
00039 void textChanged(const QString&);
00040 void slotTenseSelected(int);
00041 void slotNextTense();
00042 void slotMakeVerb();
00043 void tenseEditingFinished();
00044
00045 private:
00046 void showMakeVerbWidgets();
00047 void showConjugationEditWidgets();
00048 void updateVisiblePersons();
00049
00053 void updateEntries();
00054
00055 QString m_lastSelection;
00056 int m_identifier;
00057 KEduVocExpression* m_entry;
00058 KEduVocDocument* m_doc;
00059
00063 QMap< KEduVocWordFlags, KLineEdit* > m_conjugationLineEdits;
00064 };
00065
00066 #endif