add more spacing
[personal-kdebase.git] / apps / kinfocenter / indexwidget.h
blob9c147a500c1ade8174288a5e4bd515304b651724
1 /*
2 Copyright (c) 2000 Matthias Elter <elter@kde.org>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #ifndef __indexwidget_h__
20 #define __indexwidget_h__
22 #include "global.h"
24 #include <QWidget>
26 class QListWidgetItem;
28 class ConfigModuleList;
29 class ConfigModule;
30 class ModuleTreeView;
31 class ModuleTreeItem;
32 class ModuleWidgetSearchLine;
34 class IndexWidget : public QWidget {
35 Q_OBJECT
37 public:
38 IndexWidget(ConfigModuleList *list, QWidget *parent);
39 virtual ~IndexWidget();
41 public slots:
42 void reload();
44 void selectGeneral();
45 void selectModule(ConfigModule *);
47 signals:
48 void generalActivated();
49 void moduleActivated(ConfigModule *module);
51 private:
53 void connectTree();
54 void disconnectTree();
56 ModuleTreeView *_tree;
58 ModuleWidgetSearchLine* _searchLine;
61 #endif