koeventpopupmenu.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KOEVENTPOPUPMENU_H
00024 #define KOEVENTPOPUPMENU_H
00025
00026
00027
00028
00029 #include <qpopupmenu.h>
00030
00031 #include <libkcal/incidence.h>
00032
00033 using namespace KCal;
00034
00035 class KOEventPopupMenu : public QPopupMenu {
00036 Q_OBJECT
00037 public:
00038 KOEventPopupMenu();
00039
00040 void addAdditionalItem(const QIconSet &icon,const QString &text,
00041 const QObject *receiver, const char *member,
00042 bool editOnly=false);
00043
00044
00045 public slots:
00046 void showIncidencePopup(Incidence *);
00047
00048 protected slots:
00049 void popupShow();
00050 void popupEdit();
00051 void popupDelete();
00052
00053 signals:
00054 void editIncidenceSignal(Incidence *);
00055 void showIncidenceSignal(Incidence *);
00056 void deleteIncidenceSignal(Incidence *);
00057
00058 private:
00059 Incidence *mCurrentIncidence;
00060
00061 bool mHasAdditionalItems;
00062 QValueList<int> mEditOnlyItems;
00063 };
00064
00065 #endif
This file is part of the documentation for korganizer Library Version 3.2.2.