author | zautrix <zautrix> | 2004-06-29 12:52:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-06-29 12:52:18 (UTC) |
commit | 275e70532bb26ed78ce2d3bebf980dd745368ec2 (patch) (unidiff) | |
tree | c9252a9ec50856c86cc1165007f841c50d5cdc51 /korganizer/koeventview.cpp | |
parent | 7b2b9f2b05809b9577837551ad864d88b9b355ef (diff) | |
download | kdepimpi-275e70532bb26ed78ce2d3bebf980dd745368ec2.zip kdepimpi-275e70532bb26ed78ce2d3bebf980dd745368ec2.tar.gz kdepimpi-275e70532bb26ed78ce2d3bebf980dd745368ec2.tar.bz2 |
Removed the include moc on KO dir
-rw-r--r-- | korganizer/koeventview.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/korganizer/koeventview.cpp b/korganizer/koeventview.cpp index 4553b0b..bce2626 100644 --- a/korganizer/koeventview.cpp +++ b/korganizer/koeventview.cpp | |||
@@ -1,133 +1,130 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2000, 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2000, 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
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 | 23 | ||
24 | #include <qpopupmenu.h> | 24 | #include <qpopupmenu.h> |
25 | #include <qcursor.h> | 25 | #include <qcursor.h> |
26 | 26 | ||
27 | #include <klocale.h> | 27 | #include <klocale.h> |
28 | #include <kdebug.h> | 28 | #include <kdebug.h> |
29 | #include <kiconloader.h> | 29 | #include <kiconloader.h> |
30 | #include <kmessagebox.h> | 30 | #include <kmessagebox.h> |
31 | 31 | ||
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 | #include "koeventview.moc" | ||
37 | 36 | ||
38 | //--------------------------------------------------------------------------- | 37 | //--------------------------------------------------------------------------- |
39 | 38 | ||
40 | KOEventView::KOEventView(Calendar *cal,QWidget *parent,const char *name) | 39 | KOEventView::KOEventView(Calendar *cal,QWidget *parent,const char *name) |
41 | : KOrg::BaseView(cal,parent,name) | 40 | : KOrg::BaseView(cal,parent,name) |
42 | { | 41 | { |
43 | } | 42 | } |
44 | 43 | ||
45 | //--------------------------------------------------------------------------- | 44 | //--------------------------------------------------------------------------- |
46 | 45 | ||
47 | KOEventView::~KOEventView() | 46 | KOEventView::~KOEventView() |
48 | { | 47 | { |
49 | } | 48 | } |
50 | 49 | ||
51 | //--------------------------------------------------------------------------- | 50 | //--------------------------------------------------------------------------- |
52 | 51 | ||
53 | KOEventPopupMenu *KOEventView::eventPopup() | 52 | KOEventPopupMenu *KOEventView::eventPopup() |
54 | { | 53 | { |
55 | KOEventPopupMenu *eventPopup = new KOEventPopupMenu; | 54 | KOEventPopupMenu *eventPopup = new KOEventPopupMenu; |
56 | 55 | ||
57 | connect(eventPopup,SIGNAL(editIncidenceSignal(Incidence *)), | 56 | connect(eventPopup,SIGNAL(editIncidenceSignal(Incidence *)), |
58 | SIGNAL(editIncidenceSignal(Incidence *))); | 57 | SIGNAL(editIncidenceSignal(Incidence *))); |
59 | connect(eventPopup,SIGNAL(showIncidenceSignal(Incidence *)), | 58 | connect(eventPopup,SIGNAL(showIncidenceSignal(Incidence *)), |
60 | SIGNAL(showIncidenceSignal(Incidence *))); | 59 | SIGNAL(showIncidenceSignal(Incidence *))); |
61 | connect(eventPopup,SIGNAL(deleteIncidenceSignal(Incidence *)), | 60 | connect(eventPopup,SIGNAL(deleteIncidenceSignal(Incidence *)), |
62 | SIGNAL(deleteIncidenceSignal(Incidence *))); | 61 | SIGNAL(deleteIncidenceSignal(Incidence *))); |
63 | connect(eventPopup,SIGNAL(cancelIncidenceSignal(Incidence *)), | 62 | connect(eventPopup,SIGNAL(cancelIncidenceSignal(Incidence *)), |
64 | SIGNAL(cancelIncidenceSignal(Incidence *))); | 63 | SIGNAL(cancelIncidenceSignal(Incidence *))); |
65 | connect(eventPopup,SIGNAL(cloneIncidenceSignal(Incidence *)), | 64 | connect(eventPopup,SIGNAL(cloneIncidenceSignal(Incidence *)), |
66 | SIGNAL(cloneIncidenceSignal(Incidence *))); | 65 | SIGNAL(cloneIncidenceSignal(Incidence *))); |
67 | connect(eventPopup,SIGNAL(beamIncidenceSignal(Incidence *)), | 66 | connect(eventPopup,SIGNAL(beamIncidenceSignal(Incidence *)), |
68 | SIGNAL(beamIncidenceSignal(Incidence *))); | 67 | SIGNAL(beamIncidenceSignal(Incidence *))); |
69 | connect(eventPopup,SIGNAL(moveIncidenceSignal(Incidence *)), | 68 | connect(eventPopup,SIGNAL(moveIncidenceSignal(Incidence *)), |
70 | SIGNAL(moveIncidenceSignal(Incidence *))); | 69 | SIGNAL(moveIncidenceSignal(Incidence *))); |
71 | 70 | ||
72 | return eventPopup; | 71 | return eventPopup; |
73 | } | 72 | } |
74 | 73 | ||
75 | //--------------------------------------------------------------------------- | 74 | //--------------------------------------------------------------------------- |
76 | 75 | ||
77 | void KOEventView::showIncidencePopup(QPopupMenu *popup,Incidence *event) | 76 | void KOEventView::showIncidencePopup(QPopupMenu *popup,Incidence *event) |
78 | { | 77 | { |
79 | mCurrentIncidence = event; | 78 | mCurrentIncidence = event; |
80 | if (event) popup->popup(QCursor::pos()); | 79 | if (event) popup->popup(QCursor::pos()); |
81 | else kdDebug() << "KOEventView::showEventPopup(): No event selected" << endl; | 80 | else kdDebug() << "KOEventView::showEventPopup(): No event selected" << endl; |
82 | } | 81 | } |
83 | 82 | ||
84 | //--------------------------------------------------------------------------- | 83 | //--------------------------------------------------------------------------- |
85 | 84 | ||
86 | void KOEventView::popupShow() | 85 | void KOEventView::popupShow() |
87 | { | 86 | { |
88 | emit showIncidenceSignal(mCurrentIncidence); | 87 | emit showIncidenceSignal(mCurrentIncidence); |
89 | } | 88 | } |
90 | 89 | ||
91 | //--------------------------------------------------------------------------- | 90 | //--------------------------------------------------------------------------- |
92 | 91 | ||
93 | void KOEventView::popupEdit() | 92 | void KOEventView::popupEdit() |
94 | { | 93 | { |
95 | emit editIncidenceSignal(mCurrentIncidence); | 94 | emit editIncidenceSignal(mCurrentIncidence); |
96 | } | 95 | } |
97 | 96 | ||
98 | //--------------------------------------------------------------------------- | 97 | //--------------------------------------------------------------------------- |
99 | 98 | ||
100 | void KOEventView::popupDelete() | 99 | void KOEventView::popupDelete() |
101 | { | 100 | { |
102 | emit deleteIncidenceSignal(mCurrentIncidence); | 101 | emit deleteIncidenceSignal(mCurrentIncidence); |
103 | } | 102 | } |
104 | void KOEventView::popupClone() | 103 | void KOEventView::popupClone() |
105 | { | 104 | { |
106 | emit cloneIncidenceSignal(mCurrentIncidence); | 105 | emit cloneIncidenceSignal(mCurrentIncidence); |
107 | } | 106 | } |
108 | void KOEventView::popupCancel() | 107 | void KOEventView::popupCancel() |
109 | { | 108 | { |
110 | emit cancelIncidenceSignal(mCurrentIncidence); | 109 | emit cancelIncidenceSignal(mCurrentIncidence); |
111 | } | 110 | } |
112 | 111 | ||
113 | //--------------------------------------------------------------------------- | 112 | //--------------------------------------------------------------------------- |
114 | 113 | ||
115 | void KOEventView::defaultAction( Incidence *incidence ) | 114 | void KOEventView::defaultAction( Incidence *incidence ) |
116 | { | 115 | { |
117 | 116 | ||
118 | if ( !incidence ) return; | 117 | if ( !incidence ) return; |
119 | 118 | ||
120 | if ( incidence->isReadOnly() ) | 119 | if ( incidence->isReadOnly() ) |
121 | emit showIncidenceSignal(incidence); | 120 | emit showIncidenceSignal(incidence); |
122 | else { | 121 | else { |
123 | if ( KOPrefs::instance()->mEditOnDoubleClick ) | 122 | if ( KOPrefs::instance()->mEditOnDoubleClick ) |
124 | emit editIncidenceSignal(incidence); | 123 | emit editIncidenceSignal(incidence); |
125 | else | 124 | else |
126 | emit showIncidenceSignal(incidence); | 125 | emit showIncidenceSignal(incidence); |
127 | } | 126 | } |
128 | } | 127 | } |
129 | 128 | ||
130 | //--------------------------------------------------------------------------- | 129 | //--------------------------------------------------------------------------- |
131 | 130 | ||
132 | #include "baseview.moc" | ||
133 | |||