kdeui
kpanelappmenu.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
00025 #ifndef __PANELAPPMENU_H
00026 #define __PANELAPPMENU_H "$Id: kpanelappmenu.h 591622 2006-10-02 21:16:23Z adridg $"
00027
00028 #include <dcopobject.h>
00029
00030
00037 class KDEUI_EXPORT KPanelAppMenu : public QObject, public DCOPObject
00038 {
00039 Q_OBJECT
00040 public:
00044 KPanelAppMenu(const QString &title, QObject *parent = 0, const char *name = 0 );
00048 KPanelAppMenu(const QPixmap &icon, const QString &title, QObject *parent,
00049 const char *name);
00053 KPanelAppMenu(QObject *parent, const char *name);
00054
00059 ~KPanelAppMenu();
00060
00064 int insertItem(const QString &text, int id = -1);
00068 int insertItem(const QPixmap &icon, const QString &text, int id = -1 );
00072 KPanelAppMenu *insertMenu(const QPixmap &icon, const QString &text, int id=-1);
00073
00077 void clear();
00078
00082 bool process(const QCString &fun, const QByteArray &data,
00083 QCString &replyType, QByteArray &replyData);
00084
00085 signals:
00089 void activated(int id);
00090
00091 protected:
00092 void init(const QPixmap &icon, const QString &title);
00093
00094 private:
00095 QCString realObjId;
00096 };
00097
00098
00099 #endif