File indexing completed on 2024-04-21 03:51:08

0001 /*
0002     SPDX-FileCopyrightText: 2008 Frederik Gladhorn <gladhorn@kde.org>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef LANGUAGEPROPERTIES_H
0007 #define LANGUAGEPROPERTIES_H
0008 
0009 #include <KPageDialog>
0010 
0011 class KEduVocDocument;
0012 
0013 class LanguageProperties : public KPageDialog
0014 {
0015     Q_OBJECT
0016 public:
0017     LanguageProperties(KEduVocDocument *doc, QWidget *parent);
0018 
0019 public Q_SLOTS:
0020     void accept() override;
0021 
0022 private Q_SLOTS:
0023     void slotAppendIdentifier();
0024     void slotDeleteIdentifier();
0025     void pageNameChanged(const QString &newName);
0026 
0027 private:
0028     KPageWidgetItem *createPage(int identifierIndex);
0029 
0030     KEduVocDocument *m_doc{nullptr};
0031     QList<KPageWidgetItem *> m_pages;
0032 };
0033 
0034 #endif