KTextAddons

translatorconfigurelistswidget.h
1/*
2 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "texttranslator_export.h"
10#include <QWidget>
11#include <TextTranslator/TranslatorUtil>
12namespace TextTranslator
13{
14/**
15 * @brief The TranslatorConfigureListsWidget class
16 * @author Laurent Montel <montel@kde.org>
17 */
18class TEXTTRANSLATOR_EXPORT TranslatorConfigureListsWidget : public QWidget
19{
20 Q_OBJECT
21public:
22 explicit TranslatorConfigureListsWidget(QWidget *parent = nullptr);
24
25 void save();
26 void load();
27
28private:
29 TEXTTRANSLATOR_NO_EXPORT void slotEngineSettingsChanged(const QString &engineName);
30 TEXTTRANSLATOR_NO_EXPORT void loadLanguagesList();
31 TEXTTRANSLATOR_NO_EXPORT void fillLanguages(const QMap<TextTranslator::TranslatorUtil::Language, QString> &listLanguage);
32 TEXTTRANSLATOR_NO_EXPORT void fillFromToLanguages(const QMap<TextTranslator::TranslatorUtil::Language, QString> &listFromLanguage,
34 TEXTTRANSLATOR_NO_EXPORT void slotEngineChanged(const QString &engine);
35 class TranslatorConfigureListsWidgetPrivate;
36 std::unique_ptr<TranslatorConfigureListsWidgetPrivate> const d;
37};
38}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.