A few new icons...
[kdeaccessibility.git] / kmouth / wordcompletion / wordcompletionwidget.h
blob574a4e92d0aaf67cfc430dc719b23e8dcd428cd8
1 /***************************************************************************
2 wordcompletionwidget.h - description
3 -------------------
4 begin : Tue Apr 29 2003
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 WORDCOMPLETIONWIDGET_H
21 #define WORDCOMPLETIONWIDGET_H
23 #include "wordcompletionui.h"
24 class WordCompletion;
25 class KLanguageButton;
27 /**
28 * This class represents a configuration widget for managing dictionaries.
29 * @author Gunnar Schmi Dt
31 class WordCompletionWidget : public WordCompletionUI {
32 Q_OBJECT
33 public:
34 WordCompletionWidget(QWidget *parent, const char *name);
35 ~WordCompletionWidget();
37 /**
38 * This method is invoked whenever the widget should read its configuration
39 * from a config file and update the user interface.
41 void load();
43 /**
44 * This function gets called when the user wants to save the settings in
45 * the user interface, updating the config files.
47 void save();
49 signals:
50 void changed (bool);
52 private slots:
53 void addDictionary();
54 void deleteDictionary();
55 void moveUp();
56 void moveDown();
57 void exportDictionary();
59 void selectionChanged();
60 void nameChanged (const QString &text);
61 void languageSelected (int);
63 /**
64 * This slot is used to emit the signal changed when any widget changes
65 * the configuration
67 void configChanged() {
68 emit changed(true);
71 private:
72 /**
73 * Object holding all the configuration
75 KConfig *config;
76 QStringList newDictionaryFiles;
77 QStringList removedDictionaryFiles;
80 #endif