1 /***************************************************************************
2 optionsdialog.h - description
4 begin : Don Nov 21 2002
5 copyright : (C) 2002 by Gunnar Schmi Dt
6 email : kmouth@schmi-dt.de
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
20 #ifndef OPTIONSDIALOG_H
21 #define OPTIONSDIALOG_H
23 #include <kpagedialog.h>
25 #include <QtCore/QObject>
27 #include "ui_preferencesui.h"
28 #include "texttospeechconfigurationwidget.h"
32 class WordCompletionWidget
;
34 /**This class represents a configuration widget for user preferences.
35 *@author Gunnar Schmi Dt
38 class PreferencesWidget
: public QWidget
, public Ui::PreferencesUI
{
41 PreferencesWidget(QWidget
*parent
, const char *name
);
44 void readOptions (KConfig
*config
);
45 void saveOptions (KConfig
*config
);
50 bool isSpeakImmediately();
57 /**This class represents a configuration dialog for the options of KMouth.
58 *@author Gunnar Schmi Dt
61 class OptionsDialog
: public KPageDialog
{
64 OptionsDialog(QWidget
*parent
);
67 TextToSpeechSystem
*getTTSSystem() const;
69 void readOptions (KConfig
*config
);
70 void saveOptions (KConfig
*config
);
72 bool isSpeakImmediately();
75 void configurationChanged ();
84 TextToSpeechConfigurationWidget
*commandWidget
;
85 PreferencesWidget
*behaviourWidget
;
87 WordCompletionWidget
*completionWidget
;
89 KCModule
*loadKttsd ();