parley
declensionwidget.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef DECLENSIONWIDGET_H
00015 #define DECLENSIONWIDGET_H
00016
00017 #include "ui_declensionwidget.h"
00018
00019 #include <keduvocdeclension.h>
00020
00021 class KEduVocExpression;
00022 class KEduVocDocument;
00023
00024
00025 class DeclensionWidget : public QWidget, public Ui::DeclensionWidget
00026 {
00027 Q_OBJECT
00028
00029 public:
00030 explicit DeclensionWidget(QWidget *parent = 0);
00031
00032 public slots:
00033 void setDocument(KEduVocDocument* doc);
00034 void setTranslation(KEduVocExpression* entry, int translation);
00035
00036 signals:
00037 void sigModified();
00038
00039 private slots:
00040 void textChanged(const QString&);
00041 void slotMakeNoun();
00042
00043 private:
00044 void showMakeNounWidgets();
00045 void showDeclensionEditWidgets();
00046 void updateVisiblePersons();
00047
00051 void updateEntries();
00052
00053 int m_identifier;
00054 KEduVocExpression* m_entry;
00055 KEduVocDocument* m_doc;
00056
00060 QMap< int, KLineEdit* > m_DeclensionLineEdits;
00061 };
00062
00063 #endif