1 /***************************************************************************
2 dictionarycreationwizard.h - description
4 begin : Tue Apr 29 2003
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 DICTIONARYCREATIONWIZARD_H
21 #define DICTIONARYCREATIONWIZARD_H
23 #include <q3ptrlist.h>
27 #include <knuminput.h>
28 #include "kdedocsourceui.h"
30 class CreationSourceUI
;
31 class CompletionWizardWidget
;
32 class CreationSourceDetailsUI
;
39 * This class represents a wizard that is used in order to gather all
40 * necessary information for creating a new dictionary for the word
43 class DictionaryCreationWizard
: public KWizard
{
46 DictionaryCreationWizard (QWidget
*parent
, const char *name
,
47 QStringList dictionaryNames
,
48 QStringList dictionaryFiles
,
49 QStringList dictionaryLanguages
);
50 ~DictionaryCreationWizard();
52 QString
createDictionary();
57 void calculateAppropriate (bool);
60 void buildCodecList ();
61 void buildCodecCombo (QComboBox
*combo
);
63 CreationSourceUI
*creationSource
;
64 CreationSourceDetailsUI
*fileWidget
;
65 CreationSourceDetailsUI
*dirWidget
;
66 KDEDocSourceUI
*kdeDocWidget
;
67 MergeWidget
*mergeWidget
;
69 Q3PtrList
<QTextCodec
> *codecList
;
73 * This class represents a widget for creating an initial dictionary from the
75 * @author Gunnar Schmi Dt
77 class MergeWidget
: public Q3ScrollView
{
80 MergeWidget(KWizard
*parent
, const char *name
,
81 QStringList dictionaryNames
,
82 QStringList dictionaryFiles
,
83 QStringList dictionaryLanguages
);
86 QMap
<QString
, int> mergeParameters ();
90 Q3Dict
<QCheckBox
> dictionaries
;
91 Q3Dict
<KIntNumInput
> weights
;
92 QMap
<QString
,QString
> languages
;
96 * This class represents a widget for creating an initial dictionary from the
98 * @author Gunnar Schmi Dt
100 class CompletionWizardWidget
: public KDEDocSourceUI
{
102 friend class ConfigWizard
;
104 CompletionWizardWidget(KWizard
*parent
, const char *name
);
105 ~CompletionWizardWidget();
107 void ok (KConfig
*config
);