-rw-r--r-- | korganizer/koeventview.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/korganizer/koeventview.cpp b/korganizer/koeventview.cpp index bce2626..1d26930 100644 --- a/korganizer/koeventview.cpp +++ b/korganizer/koeventview.cpp | |||
@@ -32,97 +32,96 @@ | |||
32 | #include <libkcal/calendar.h> | 32 | #include <libkcal/calendar.h> |
33 | #include "koprefs.h" | 33 | #include "koprefs.h" |
34 | #include "koeventview.h" | 34 | #include "koeventview.h" |
35 | using namespace KOrg; | 35 | using namespace KOrg; |
36 | 36 | ||
37 | //--------------------------------------------------------------------------- | 37 | //--------------------------------------------------------------------------- |
38 | 38 | ||
39 | KOEventView::KOEventView(Calendar *cal,QWidget *parent,const char *name) | 39 | KOEventView::KOEventView(Calendar *cal,QWidget *parent,const char *name) |
40 | : KOrg::BaseView(cal,parent,name) | 40 | : KOrg::BaseView(cal,parent,name) |
41 | { | 41 | { |
42 | } | 42 | } |
43 | 43 | ||
44 | //--------------------------------------------------------------------------- | 44 | //--------------------------------------------------------------------------- |
45 | 45 | ||
46 | KOEventView::~KOEventView() | 46 | KOEventView::~KOEventView() |
47 | { | 47 | { |
48 | } | 48 | } |
49 | 49 | ||
50 | //--------------------------------------------------------------------------- | 50 | //--------------------------------------------------------------------------- |
51 | 51 | ||
52 | KOEventPopupMenu *KOEventView::eventPopup() | 52 | KOEventPopupMenu *KOEventView::eventPopup() |
53 | { | 53 | { |
54 | KOEventPopupMenu *eventPopup = new KOEventPopupMenu; | 54 | KOEventPopupMenu *eventPopup = new KOEventPopupMenu; |
55 | 55 | ||
56 | connect(eventPopup,SIGNAL(editIncidenceSignal(Incidence *)), | 56 | connect(eventPopup,SIGNAL(editIncidenceSignal(Incidence *)), |
57 | SIGNAL(editIncidenceSignal(Incidence *))); | 57 | SIGNAL(editIncidenceSignal(Incidence *))); |
58 | connect(eventPopup,SIGNAL(showIncidenceSignal(Incidence *)), | 58 | connect(eventPopup,SIGNAL(showIncidenceSignal(Incidence *)), |
59 | SIGNAL(showIncidenceSignal(Incidence *))); | 59 | SIGNAL(showIncidenceSignal(Incidence *))); |
60 | connect(eventPopup,SIGNAL(deleteIncidenceSignal(Incidence *)), | 60 | connect(eventPopup,SIGNAL(deleteIncidenceSignal(Incidence *)), |
61 | SIGNAL(deleteIncidenceSignal(Incidence *))); | 61 | SIGNAL(deleteIncidenceSignal(Incidence *))); |
62 | connect(eventPopup,SIGNAL(cancelIncidenceSignal(Incidence *)), | 62 | connect(eventPopup,SIGNAL(cancelIncidenceSignal(Incidence *)), |
63 | SIGNAL(cancelIncidenceSignal(Incidence *))); | 63 | SIGNAL(cancelIncidenceSignal(Incidence *))); |
64 | connect(eventPopup,SIGNAL(cloneIncidenceSignal(Incidence *)), | 64 | connect(eventPopup,SIGNAL(cloneIncidenceSignal(Incidence *)), |
65 | SIGNAL(cloneIncidenceSignal(Incidence *))); | 65 | SIGNAL(cloneIncidenceSignal(Incidence *))); |
66 | connect(eventPopup,SIGNAL(beamIncidenceSignal(Incidence *)), | 66 | connect(eventPopup,SIGNAL(beamIncidenceSignal(Incidence *)), |
67 | SIGNAL(beamIncidenceSignal(Incidence *))); | 67 | SIGNAL(beamIncidenceSignal(Incidence *))); |
68 | connect(eventPopup,SIGNAL(moveIncidenceSignal(Incidence *)), | 68 | connect(eventPopup,SIGNAL(moveIncidenceSignal(Incidence *)), |
69 | SIGNAL(moveIncidenceSignal(Incidence *))); | 69 | SIGNAL(moveIncidenceSignal(Incidence *))); |
70 | 70 | ||
71 | return eventPopup; | 71 | return eventPopup; |
72 | } | 72 | } |
73 | 73 | ||
74 | //--------------------------------------------------------------------------- | 74 | //--------------------------------------------------------------------------- |
75 | 75 | ||
76 | void KOEventView::showIncidencePopup(QPopupMenu *popup,Incidence *event) | 76 | void KOEventView::showIncidencePopup(QPopupMenu *popup,Incidence *event) |
77 | { | 77 | { |
78 | mCurrentIncidence = event; | 78 | mCurrentIncidence = event; |
79 | if (event) popup->popup(QCursor::pos()); | 79 | if (event) popup->popup(QCursor::pos()); |
80 | else kdDebug() << "KOEventView::showEventPopup(): No event selected" << endl; | ||
81 | } | 80 | } |
82 | 81 | ||
83 | //--------------------------------------------------------------------------- | 82 | //--------------------------------------------------------------------------- |
84 | 83 | ||
85 | void KOEventView::popupShow() | 84 | void KOEventView::popupShow() |
86 | { | 85 | { |
87 | emit showIncidenceSignal(mCurrentIncidence); | 86 | emit showIncidenceSignal(mCurrentIncidence); |
88 | } | 87 | } |
89 | 88 | ||
90 | //--------------------------------------------------------------------------- | 89 | //--------------------------------------------------------------------------- |
91 | 90 | ||
92 | void KOEventView::popupEdit() | 91 | void KOEventView::popupEdit() |
93 | { | 92 | { |
94 | emit editIncidenceSignal(mCurrentIncidence); | 93 | emit editIncidenceSignal(mCurrentIncidence); |
95 | } | 94 | } |
96 | 95 | ||
97 | //--------------------------------------------------------------------------- | 96 | //--------------------------------------------------------------------------- |
98 | 97 | ||
99 | void KOEventView::popupDelete() | 98 | void KOEventView::popupDelete() |
100 | { | 99 | { |
101 | emit deleteIncidenceSignal(mCurrentIncidence); | 100 | emit deleteIncidenceSignal(mCurrentIncidence); |
102 | } | 101 | } |
103 | void KOEventView::popupClone() | 102 | void KOEventView::popupClone() |
104 | { | 103 | { |
105 | emit cloneIncidenceSignal(mCurrentIncidence); | 104 | emit cloneIncidenceSignal(mCurrentIncidence); |
106 | } | 105 | } |
107 | void KOEventView::popupCancel() | 106 | void KOEventView::popupCancel() |
108 | { | 107 | { |
109 | emit cancelIncidenceSignal(mCurrentIncidence); | 108 | emit cancelIncidenceSignal(mCurrentIncidence); |
110 | } | 109 | } |
111 | 110 | ||
112 | //--------------------------------------------------------------------------- | 111 | //--------------------------------------------------------------------------- |
113 | 112 | ||
114 | void KOEventView::defaultAction( Incidence *incidence ) | 113 | void KOEventView::defaultAction( Incidence *incidence ) |
115 | { | 114 | { |
116 | 115 | ||
117 | if ( !incidence ) return; | 116 | if ( !incidence ) return; |
118 | 117 | ||
119 | if ( incidence->isReadOnly() ) | 118 | if ( incidence->isReadOnly() ) |
120 | emit showIncidenceSignal(incidence); | 119 | emit showIncidenceSignal(incidence); |
121 | else { | 120 | else { |
122 | if ( KOPrefs::instance()->mEditOnDoubleClick ) | 121 | if ( KOPrefs::instance()->mEditOnDoubleClick ) |
123 | emit editIncidenceSignal(incidence); | 122 | emit editIncidenceSignal(incidence); |
124 | else | 123 | else |
125 | emit showIncidenceSignal(incidence); | 124 | emit showIncidenceSignal(incidence); |
126 | } | 125 | } |
127 | } | 126 | } |
128 | 127 | ||