rename spinner (part 1)
[kdeaccessibility.git] / kmouth / optionsdialog.h
blob417e77fdf85341b1ef2897a37328a03a3c0b74e7
1 /***************************************************************************
2 optionsdialog.h - description
3 -------------------
4 begin : Don Nov 21 2002
5 copyright : (C) 2002 by Gunnar Schmi Dt
6 email : kmouth@schmi-dt.de
7 ***************************************************************************/
9 /***************************************************************************
10 * *
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. *
15 * *
16 ***************************************************************************/
18 // $Id$
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"
30 class QTabWidget;
31 class KCModule;
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 {
39 Q_OBJECT
40 public:
41 PreferencesWidget(QWidget *parent, const char *name);
42 ~PreferencesWidget();
44 void readOptions (KConfig *config);
45 void saveOptions (KConfig *config);
47 void ok();
48 void cancel();
50 bool isSpeakImmediately();
52 private:
53 bool speak;
54 int save;
57 /**This class represents a configuration dialog for the options of KMouth.
58 *@author Gunnar Schmi Dt
61 class OptionsDialog : public KPageDialog {
62 Q_OBJECT
63 public:
64 OptionsDialog(QWidget *parent);
65 ~OptionsDialog();
67 TextToSpeechSystem *getTTSSystem() const;
69 void readOptions (KConfig *config);
70 void saveOptions (KConfig *config);
72 bool isSpeakImmediately();
74 signals:
75 void configurationChanged ();
77 private slots:
78 void slotCancel();
79 void slotOk();
80 void slotApply();
82 private:
83 QTabWidget *tabCtl;
84 TextToSpeechConfigurationWidget *commandWidget;
85 PreferencesWidget *behaviourWidget;
86 KCModule *kttsd;
87 WordCompletionWidget *completionWidget;
89 KCModule *loadKttsd ();
90 void unloadKttsd ();
93 #endif