KTextAddons

texttospeechconfigwidget.h
1/*
2 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8#include "textedittexttospeech_export.h"
9#include <QWidget>
10class QComboBox;
11class QPushButton;
12namespace TextEditTextToSpeech
13{
14class TextToSpeechLanguageComboBox;
15class TextToSpeechConfigInterface;
16class TextToSpeechSliderWidget;
17class TextToSpeechVoiceComboBox;
18class TEXTEDITTEXTTOSPEECH_EXPORT TextToSpeechConfigWidget : public QWidget
19{
20 Q_OBJECT
21public:
22 explicit TextToSpeechConfigWidget(QWidget *parent = nullptr);
23 ~TextToSpeechConfigWidget() override;
24
25 void initializeSettings();
26
27 void writeConfig();
28 void readConfig();
29
30 void setTextToSpeechConfigInterface(TextToSpeechConfigInterface *interface);
31 void restoreDefaults();
32
33Q_SIGNALS:
34 void configChanged(bool state);
35
36private:
37 TEXTEDITTEXTTOSPEECH_NO_EXPORT void slotTestTextToSpeech();
38 TEXTEDITTEXTTOSPEECH_NO_EXPORT void valueChanged();
39 TEXTEDITTEXTTOSPEECH_NO_EXPORT void slotLocalesAndVoices();
40 TEXTEDITTEXTTOSPEECH_NO_EXPORT void slotUpdateSettings();
41 TEXTEDITTEXTTOSPEECH_NO_EXPORT void slotEngineChanged();
42 TEXTEDITTEXTTOSPEECH_NO_EXPORT void slotLanguageChanged();
43 TEXTEDITTEXTTOSPEECH_NO_EXPORT void updateVoice();
44 TEXTEDITTEXTTOSPEECH_NO_EXPORT void updateLocale();
45 TEXTEDITTEXTTOSPEECH_NO_EXPORT void updateEngine();
46 TEXTEDITTEXTTOSPEECH_NO_EXPORT void updateAvailableLocales();
47 TEXTEDITTEXTTOSPEECH_NO_EXPORT void updateAvailableEngine();
48 TEXTEDITTEXTTOSPEECH_NO_EXPORT void updateAvailableVoices();
49 TEXTEDITTEXTTOSPEECH_NO_EXPORT void slotAvailableEngineChanged();
50 TextToSpeechSliderWidget *const mVolume;
51 TextToSpeechSliderWidget *const mRate;
52 TextToSpeechSliderWidget *const mPitch;
53 QComboBox *const mAvailableEngine;
54 TextToSpeechLanguageComboBox *const mLanguage;
55 TextToSpeechConfigInterface *mTextToSpeechConfigInterface = nullptr;
56 TextToSpeechVoiceComboBox *const mVoice;
57 QPushButton *const mTestButton;
58};
59}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.