Warning, file /education/parley/src/settings/documentproperties.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 enter document title and author 0003 SPDX-FileCopyrightText: 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de> 0004 SPDX-FileCopyrightText: 2005 Peter Hedlund <peter.hedlund@kdemail.net> 0005 SPDX-FileCopyrightText: 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net> 0006 SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #ifndef DOCUMENTPROPERTIES_H 0010 #define DOCUMENTPROPERTIES_H 0011 0012 #include "ui_documentproperties.h" 0013 0014 class KEduVocDocument; 0015 0016 class DocumentProperties : public QWidget, public Ui::DocumentProperties 0017 { 0018 Q_OBJECT 0019 0020 public: 0021 DocumentProperties(KEduVocDocument *doc, bool languageSetup, QWidget *parent); 0022 0023 /** 0024 * Return a [key, value] map, where key = Native language name (Native country name), value = Locale name 0025 * @return A QMap of [ Native language name (Native country name), Locale name ] pairs 0026 */ 0027 static QMap<QString, QString> localeLangsMap(); 0028 0029 public Q_SLOTS: 0030 void accept(); 0031 0032 private: 0033 void prepareLanguageSelection(); 0034 void acceptLanguageConfiguration(); 0035 0036 KEduVocDocument *m_doc; 0037 // also allow the user to setup two languages - used when first creating a document 0038 bool m_showLanguages; 0039 }; 0040 0041 #endif