KTextAddons

bergamotenginelanguagewidget.h
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6#pragma once
7#include "libbergamot_private_export.h"
8#include "managermodeltranslator.h"
9#include <QWidget>
10class QTreeView;
11class TranslatorModel;
12class QLineEdit;
13class TranslatorProxyModel;
14class QProgressBar;
15class QLabel;
16class LIBBERGAMOT_TESTS_EXPORT BergamotEngineLanguageWidget : public QWidget
17{
18 Q_OBJECT
19public:
20 explicit BergamotEngineLanguageWidget(QWidget *parent = nullptr);
21 ~BergamotEngineLanguageWidget() override;
22
23private:
24 void slotTextChanged(const QString &str);
25 void slotDownLoad(const QString &url, const QString &checkSum);
26 void slotDelete(const QString &identifier);
27 void slotUpdateListLanguage();
28 void slotError(const QString &str);
29 void updateListModel();
30 void slotProgressInfo(const ManagerModelTranslator::ProgressInfo &info);
31 QTreeView *const mTreeView;
32 QLineEdit *const mSearchLineEdit;
33 TranslatorModel *const mTranslatorModel;
34 TranslatorProxyModel *const mTranslatorProxyModel;
35 QProgressBar *const mProgressBar;
36 QLabel *const mProgressBarLabel;
37 QWidget *const mProgressBarWidget;
38};
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:49:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.