Add (and install) svg for the new krunner interface.
[kdebase/uwolfer.git] / apps / kinfocenter / aboutwidget.h
blobd7d34914bf448a76d2a4c6961a7c438306a824d6
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 <Qt3Support/Q3CheckListItem>
24 #include <QMap>
25 #include <QPixmap>
26 #include <kvbox.h>
28 class QPixmap;
29 class ConfigModule;
30 class KHTMLPart;
31 class KUrl;
33 class AboutWidget : public KHBox
35 Q_OBJECT
37 public:
38 explicit AboutWidget(QWidget *parent, Q3ListViewItem* category=0, const QString &caption=QString());
40 /**
41 * Set a new category without creating a new AboutWidget if there is
42 * one visible already (reduces flicker)
44 void setCategory( Q3ListViewItem* category, const QString& caption);
46 Q_SIGNALS:
47 void moduleSelected(ConfigModule *);
49 private Q_SLOTS:
50 void slotModuleLinkClicked( const KUrl& );
52 private:
53 /**
54 * Update the pixmap to be shown. Called from resizeEvent and from
55 * setCategory.
57 void updatePixmap();
59 bool _moduleList;
60 Q3ListViewItem* _category;
61 QString _caption;
62 KHTMLPart *_viewer;
63 QMap<QString,ConfigModule*> _moduleMap;
66 #endif