8#include "textedittexttospeech_export.h"
12namespace TextEditTextToSpeech
14class TextToSpeechLanguageComboBox;
15class TextToSpeechConfigInterface;
16class TextToSpeechSliderWidget;
17class TextToSpeechVoiceComboBox;
18class TEXTEDITTEXTTOSPEECH_EXPORT TextToSpeechConfigWidget :
public QWidget
22 explicit TextToSpeechConfigWidget(
QWidget *parent =
nullptr);
23 ~TextToSpeechConfigWidget()
override;
25 void initializeSettings();
30 void setTextToSpeechConfigInterface(TextToSpeechConfigInterface *interface);
31 void restoreDefaults();
34 void configChanged(
bool state);
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;
54 TextToSpeechLanguageComboBox *
const mLanguage;
55 TextToSpeechConfigInterface *mTextToSpeechConfigInterface =
nullptr;
56 TextToSpeechVoiceComboBox *
const mVoice;