add more spacing
[personal-kdebase.git] / apps / kinfocenter / aboutwidget.h
blob14be4f27b48a034d435243e9f4955d5703c7083b
1 /*
2 Copyright (c) 2000,2001 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 __aboutwidget_h__
20 #define __aboutwidget_h__
22 #include <QWidget>
23 #include <QListWidgetItem>
24 #include <QMap>
25 #include <QPixmap>
26 #include <kvbox.h>
28 class QPixmap;
29 class ConfigModule;
30 class KHTMLPart;
31 class KUrl;
32 class ConfigModuleList;
34 class AboutWidget : public KHBox
36 Q_OBJECT
38 public:
39 explicit AboutWidget(QWidget *parent, ConfigModuleList* modules = NULL, const QString &caption=QString());
41 signals:
42 void moduleSelected(ConfigModule *);
44 private Q_SLOTS:
45 void slotModuleLinkClicked( const KUrl& );
47 private:
48 /**
49 * Update the pixmap to be shown. Called from resizeEvent and from
50 * setCategory.
52 void updatePixmap();
54 ConfigModuleList * _configModules;
55 QString _caption;
56 KHTMLPart *_viewer;
57 QMap<QString,ConfigModule*> _moduleMap;
60 #endif