00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __aboutwidget_h__
00021 #define __aboutwidget_h__
00022
00023 #include <tqwidget.h>
00024 #include <tqlistview.h>
00025 #include <tqhbox.h>
00026
00027 class KCModuleInfo;
00028 class TQPixmap;
00029 class KPixmap;
00030 class ConfigModule;
00031 class KHTMLPart;
00032 class KURL;
00033
00034 class AboutWidget : public QHBox
00035 {
00036 Q_OBJECT
00037
00038 public:
00039 AboutWidget(TQWidget *parent, const char *name=0, TQListViewItem* category=0, const TQString &caption=TQString::null);
00040
00045 void setCategory( TQListViewItem* category, const TQString& icon, const TQString& caption);
00046
00047 signals:
00048 void moduleSelected(ConfigModule *);
00049
00050 private slots:
00051 void slotModuleLinkClicked( const KURL& );
00052
00053 private:
00058 void updatePixmap();
00059
00060 bool _moduleList;
00061 TQListViewItem* _category;
00062 TQString _icon;
00063 TQString _caption;
00064 KHTMLPart *_viewer;
00065 TQMap<TQString,ConfigModule*> _moduleMap;
00066 };
00067
00068 #endif