20
20
#ifndef WORDCOMPLETIONWIDGET_H
21
21
#define WORDCOMPLETIONWIDGET_H
23
#include "wordlistui.h"
23
#include "wordcompletionui.h"
24
24
class WordCompletion;
26
/**This class represents a configuration widget for user preferences.
27
*@author Gunnar Schmi Dt
30
class WordCompletionWidget : public WordListUI {
25
class KLanguageButton;
28
* This class represents a configuration widget for managing dictionaries.
29
* @author Gunnar Schmi Dt
31
class WordCompletionWidget : public WordCompletionUI {
33
WordCompletionWidget(WordCompletion *completion, QWidget *parent, const char *name);
34
WordCompletionWidget(QWidget *parent, const char *name);
34
35
~WordCompletionWidget();
38
* This method is invoked whenever the widget should read its configuration
39
* from a config file and update the user interface.
44
* This function gets called when the user wants to save the settings in
45
* the user interface, updating the config files.
54
void deleteDictionary();
57
void exportDictionary();
59
void selectionChanged();
60
void nameChanged (const QString &text);
61
void languageSelected (int);
64
* This slot is used to emit the signal changed when any widget changes
67
void configChanged() {
39
WordCompletion *completion;
73
* Object holding all the configuration
76
QStringList newDictionaryFiles;
77
QStringList removedDictionaryFiles;