BibleTime
src
frontend
settingsdialogs
bttexttospeechsettings.h
Go to the documentation of this file.
1
/*********
2
*
3
* In the name of the Father, and of the Son, and of the Holy Spirit.
4
*
5
* This file is part of BibleTime's source code, https://bibletime.info/
6
*
7
* Copyright 2025 by the BibleTime developers.
8
* The BibleTime source code is licensed under the GNU General Public License
9
* version 2.0.
10
*
11
**********/
12
13
#ifdef BUILD_TEXT_TO_SPEECH
14
15
#pragma once
16
17
#include "
btconfigdialog.h
"
18
19
#include <QObject>
20
#include <QTextToSpeech>
21
22
23
class
CConfigurationDialog
;
24
class
QComboBox
;
25
class
QLabel;
26
27
class
BtTextToSpeechSettingsPage:
public
BtConfigDialog::Page
{
28
29
Q_OBJECT
30
31
public
:
// methods
32
33
BtTextToSpeechSettingsPage(
CConfigurationDialog
* parent =
nullptr
);
34
void
save
() const final override;
35
36
private Q_SLOTS:
37
38
void
ttsEngineChanged();
39
void
ttsLocaleChanged();
40
41
private:
// methods
42
void
updateLocales();
43
void
retranslateUi();
44
45
private:
// fields
46
47
std::unique_ptr<QTextToSpeech> m_tts;
48
49
QLabel * m_infoNoPluginsLabel =
nullptr
;
50
QLabel * m_ttsEngineLabel;
51
QLabel * m_ttsLocaleLabel;
52
QLabel * m_ttsVoiceLabel;
53
QComboBox
* m_ttsEngineComboBox;
54
QComboBox
* m_ttsLocaleComboBox;
55
QComboBox
* m_ttsVoiceComboBox;
56
};
57
58
#endif
btconfigdialog.h
BtConfigDialog::Page
Definition
btconfigdialog.h:43
BtConfigDialog::Page::save
virtual void save() const =0
CConfigurationDialog
Definition
cconfigurationdialog.h:24
QComboBox
Generated by
1.9.8