moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kiten / configdictionaries.h
blobeb1baa6d2684b15f315aa06f1afe9df1cd837e3a
1 /**
2 This file is part of Kiten, a KDE Japanese Reference Tool...
3 Copyright (C) 2005 Paul Temple <paul.temple@gmx.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 USA
19 **/
21 #ifndef CONFIGDICTIONARIES_H
22 #define CONFIGDICTIONARIES_H
24 #include "kitenconfig.h"
25 #include "configdictionariesbase.h"
27 class ConfigDictionaries : public ConfigDictionariesBase
29 Q_OBJECT
30 public:
31 ConfigDictionaries(QWidget *parent = 0, const char* name = 0, WFlags f = 0);
32 void readDictionaries();
34 // KConfig stuff
35 void updateWidgets();
36 void updateWidgetsDefault();
37 void updateSettings();
38 bool hasChanged();
39 bool isDefault();
40 // KConfig stuff
42 signals:
43 void widgetChanged();
44 public slots:
45 void writeDictionaries();
46 private slots:
47 void slotAddEdict();
48 void slotAddKanjidic();
49 void slotDelSelEdict();
50 void slotDelSelKanjidic();
51 private:
52 bool changed;
53 Config* config;
54 void readDictionaryList(const QString& group);
55 void writeDictionaryList(const QString& group);
56 void add(KListView* list);
57 void delSel(KListView* list);
60 #endif