summaryrefslogtreecommitdiffabout
path: root/korganizer/koeventpopupmenu.h
Unidiff
Diffstat (limited to 'korganizer/koeventpopupmenu.h') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/koeventpopupmenu.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/korganizer/koeventpopupmenu.h b/korganizer/koeventpopupmenu.h
index e28745b..de5220b 100644
--- a/korganizer/koeventpopupmenu.h
+++ b/korganizer/koeventpopupmenu.h
@@ -17,36 +17,38 @@
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
19 As a special exception, permission is given to link this program 19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable, 20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution. 21 without including the source code for Qt in the source distribution.
22*/ 22*/
23#ifndef KOEVENTPOPUPMENU_H 23#ifndef KOEVENTPOPUPMENU_H
24#define KOEVENTPOPUPMENU_H 24#define KOEVENTPOPUPMENU_H
25// 25//
26// Context menu for event views with standard event actions 26// Context menu for event views with standard event actions
27// 27//
28 28
29#include <qpopupmenu.h> 29#include <q3popupmenu.h>
30//Added by qt3to4:
31#include <Q3ValueList>
30 32
31#include <libkcal/incidence.h> 33#include <libkcal/incidence.h>
32 34
33using namespace KCal; 35using namespace KCal;
34 36
35class KOEventPopupMenu : public QPopupMenu { 37class KOEventPopupMenu : public Q3PopupMenu {
36 Q_OBJECT 38 Q_OBJECT
37 public: 39 public:
38 KOEventPopupMenu(); 40 KOEventPopupMenu();
39 41
40 void addAdditionalItem(const QIconSet &icon,const QString &text, 42 void addAdditionalItem(const QIcon &icon,const QString &text,
41 const QObject *receiver, const char *member, 43 const QObject *receiver, const char *member,
42 bool editOnly=false); 44 bool editOnly=false);
43 45
44 46
45 public slots: 47 public slots:
46 void showIncidencePopup(Incidence *); 48 void showIncidencePopup(Incidence *);
47 void enableDefault( bool ); 49 void enableDefault( bool );
48 50
49 protected slots: 51 protected slots:
50 void popupShow(); 52 void popupShow();
51 void popupEdit(); 53 void popupEdit();
52 void popupDelete(); 54 void popupDelete();
@@ -64,20 +66,20 @@ class KOEventPopupMenu : public QPopupMenu {
64 void showIncidenceSignal(Incidence *); 66 void showIncidenceSignal(Incidence *);
65 void deleteIncidenceSignal(Incidence *); 67 void deleteIncidenceSignal(Incidence *);
66 void cloneIncidenceSignal(Incidence *); 68 void cloneIncidenceSignal(Incidence *);
67 void cancelIncidenceSignal(Incidence *); 69 void cancelIncidenceSignal(Incidence *);
68 void moveIncidenceSignal(Incidence *); 70 void moveIncidenceSignal(Incidence *);
69 void beamIncidenceSignal(Incidence *); 71 void beamIncidenceSignal(Incidence *);
70 void categoryChanged( Incidence * ); 72 void categoryChanged( Incidence * );
71 73
72 private: 74 private:
73 Incidence *mCurrentIncidence; 75 Incidence *mCurrentIncidence;
74 76
75 bool mHasAdditionalItems; 77 bool mHasAdditionalItems;
76 QValueList<int> mEditOnlyItems; 78 Q3ValueList<int> mEditOnlyItems;
77 QValueList<int> mSingleOnlyItems; 79 Q3ValueList<int> mSingleOnlyItems;
78 bool isDisabled; 80 bool isDisabled;
79 QPopupMenu *mCatPopup; 81 Q3PopupMenu *mCatPopup;
80 QPopupMenu *mCalPopup; 82 Q3PopupMenu *mCalPopup;
81}; 83};
82 84
83#endif 85#endif