1/***************************************************************************
2 configwizard.h - description
3 -------------------
4 begin : Mit Nov 20 2002
5 copyright : (C) 2002 by Gunnar Schmi Dt
6 email : kmouth@schmi-dt.de
7 ***************************************************************************/
8
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 ***************************************************************************/
17
18#ifndef CONFIGWIZARD_H
19#define CONFIGWIZARD_H
20
21#include <QtGui/QWidget>
22
23#include <k3wizard.h>
24
25class KConfig;
26class TextToSpeechConfigurationWidget;
27class InitialPhraseBookWidget;
28class CompletionWizardWidget;
29
30/**The class ConfigWizard is used when the user starts KMouth for the first
31 * time. It asks the user to provide a first set of configuration data.
32 *@author Gunnar Schmi Dt
33 */
34
35class ConfigWizard : public K3Wizard {
36 Q_OBJECT
37public:
38 ConfigWizard (QWidget *parent, const char *name, KConfig *config);
39 ~ConfigWizard();
40
41 bool configurationNeeded ();
42 bool requestConfiguration ();
43 void saveConfig (KConfig *config);
44
45protected:
46 void help();
47
48private:
49 void initCommandPage (KConfig *config);
50 void initBookPage();
51 void initCompletion (KConfig *config);
52
53 TextToSpeechConfigurationWidget *commandWidget;
54 InitialPhraseBookWidget *bookWidget;
55 CompletionWizardWidget *completionWidget;
56};
57
58#endif
59