KTextAddons

speechtotextcomboboxwidget.h
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8#include "speechtotext_private_export.h"
9#include <QWidget>
10class QComboBox;
11class QToolButton;
12namespace TextSpeechToText
13{
14class TEXTSPEECHTOTEXT_TESTS_EXPORT SpeechToTextComboBoxWidget : public QWidget
15{
16 Q_OBJECT
17public:
18 explicit SpeechToTextComboBoxWidget(QWidget *parent);
19 ~SpeechToTextComboBoxWidget() override;
20 void fillEngine();
21
22 [[nodiscard]] QString engineName() const;
23 void setEngineName(const QString &engineName);
24
25 void load();
26 void save();
27
28Q_SIGNALS:
29 void configureChanged(const QString &engineName);
30 void engineChanged(const QString &engineName);
31
32private:
33 void slotConfigureEngine();
34 void slotEngineChanged(int index);
35 QComboBox *const mEngine;
36 QToolButton *const mConfigureEngine;
37};
38}
QAction * load(const QObject *recvr, const char *slot, QObject *parent)
KGuiItem save()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.