File indexing completed on 2024-04-14 03:49:13
0001 /* 0002 SPDX-FileCopyrightText: 2008 Frederik Gladhorn <gladhorn@kde.org> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef LANGUAGEPROPERTIESPAGE_H 0007 #define LANGUAGEPROPERTIESPAGE_H 0008 0009 #include "ui_languagepropertiespage.h" 0010 0011 class KEduVocDocument; 0012 0013 class LanguagePropertiesPage : public QWidget, public Ui::LanguagePropertiesPage 0014 { 0015 Q_OBJECT 0016 public: 0017 LanguagePropertiesPage(KEduVocDocument *doc, int identifierIndex, QWidget *parent = nullptr); 0018 void setLanguageIdentifierIndex(int newIndex); 0019 0020 public Q_SLOTS: 0021 void accept(); 0022 void downloadGrammar(); 0023 0024 Q_SIGNALS: 0025 void nameChanged(const QString &); 0026 0027 private Q_SLOTS: 0028 void localeChanged(const QString &); 0029 0030 // pronouns/conjugations 0031 void updateCheckBoxes(); 0032 0033 // tenses 0034 void slotDeleteTense(); 0035 void slotNewTense(); 0036 void slotTenseChosen(int); 0037 void slotModifyTense(); 0038 0039 private: 0040 void updateListBox(int start); 0041 0042 // initialize widgets with contents 0043 void loadGrammarFromDocument(); 0044 0045 int m_currentTense; 0046 QList<int> tenseIndex; 0047 0048 KEduVocDocument *m_doc{nullptr}; 0049 int m_identifierIndex{0}; 0050 }; 0051 0052 #endif