KTextAddons

translatorconfigurelistswidget.h
1/*
2 SPDX-FileCopyrightText: 2022-2025 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{
21public:
22 explicit TranslatorConfigureListsWidget(QWidget *parent = nullptr);
23 ~TranslatorConfigureListsWidget() override;
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}
Q_OBJECTQ_OBJECT
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.