knode
knode_part.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KNODE_PART_H
00025 #define KNODE_PART_H
00026
00027
00028 #include <kdeversion.h>
00029 #include <kparts/browserextension.h>
00030 #include <kparts/factory.h>
00031 #include <kparts/event.h>
00032 #include <kparts/part.h>
00033
00034 #include <QWidget>
00035
00036 class KAboutData;
00037
00038 class ActionManager;
00039 class KNMainWidget;
00040
00042 class KNodePart: public KParts::ReadOnlyPart
00043 {
00044 Q_OBJECT
00045 public:
00046 KNodePart(QWidget *parentWidget, QObject *parent, const QVariantList &);
00047 virtual ~KNodePart();
00048
00049 QWidget* parentWidget() const;
00050
00051 static KAboutData *createAboutData();
00052
00053 protected:
00054 virtual bool openFile();
00055 virtual void guiActivateEvent(KParts::GUIActivateEvent *e);
00056
00057 private:
00058 ActionManager *mActionManager;
00059 QWidget *mParentWidget;
00060 KNMainWidget *mainWidget;
00061 };
00062
00063 #endif