-rw-r--r-- | korganizer/koagenda.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/korganizer/koagenda.h b/korganizer/koagenda.h index 5d813b2..0e3aed8 100644 --- a/korganizer/koagenda.h +++ b/korganizer/koagenda.h | |||
@@ -54,49 +54,49 @@ class MarcusBains : public QFrame { | |||
54 | void updateLoc(); | 54 | void updateLoc(); |
55 | 55 | ||
56 | private: | 56 | private: |
57 | int todayColumn(); | 57 | int todayColumn(); |
58 | QTimer *minutes; | 58 | QTimer *minutes; |
59 | QLabel *mTimeBox; | 59 | QLabel *mTimeBox; |
60 | KOAgenda *agenda; | 60 | KOAgenda *agenda; |
61 | QTime oldTime; | 61 | QTime oldTime; |
62 | int oldToday; | 62 | int oldToday; |
63 | }; | 63 | }; |
64 | 64 | ||
65 | 65 | ||
66 | class KOAgenda : public QScrollView | 66 | class KOAgenda : public QScrollView |
67 | { | 67 | { |
68 | Q_OBJECT | 68 | Q_OBJECT |
69 | public: | 69 | public: |
70 | enum MouseActionType { NOP, MOVE, SELECT, | 70 | enum MouseActionType { NOP, MOVE, SELECT, |
71 | RESIZETOP, RESIZEBOTTOM, RESIZELEFT, RESIZERIGHT }; | 71 | RESIZETOP, RESIZEBOTTOM, RESIZELEFT, RESIZERIGHT }; |
72 | 72 | ||
73 | KOAgenda ( int columns, int rows, int columnSize, QWidget * parent=0, | 73 | KOAgenda ( int columns, int rows, int columnSize, QWidget * parent=0, |
74 | const char * name=0, WFlags f=0 ); | 74 | const char * name=0, WFlags f=0 ); |
75 | KOAgenda ( int columns, QWidget * parent=0, | 75 | KOAgenda ( int columns, QWidget * parent=0, |
76 | const char * name=0, WFlags f=0 ); | 76 | const char * name=0, WFlags f=0 ); |
77 | virtual ~KOAgenda(); | 77 | virtual ~KOAgenda(); |
78 | static bool mInvalidPixmap; | 78 | bool mInvalidPixmap; |
79 | 79 | ||
80 | Incidence *selectedIncidence() const; | 80 | Incidence *selectedIncidence() const; |
81 | QDate selectedIncidenceDate() const; | 81 | QDate selectedIncidenceDate() const; |
82 | 82 | ||
83 | virtual bool eventFilter ( QObject *, QEvent * ); | 83 | virtual bool eventFilter ( QObject *, QEvent * ); |
84 | 84 | ||
85 | void contentsToGrid (int x, int y, int& gx, int& gy); | 85 | void contentsToGrid (int x, int y, int& gx, int& gy); |
86 | void gridToContents (int gx, int gy, int& x, int& y); | 86 | void gridToContents (int gx, int gy, int& x, int& y); |
87 | 87 | ||
88 | int timeToY (const QTime &time); | 88 | int timeToY (const QTime &time); |
89 | QTime gyToTime (int y); | 89 | QTime gyToTime (int y); |
90 | 90 | ||
91 | void setStartHour(int startHour); | 91 | void setStartHour(int startHour); |
92 | 92 | ||
93 | KOAgendaItem *insertItem (Incidence *event,QDate qd,int X,int YTop,int YBottom); | 93 | KOAgendaItem *insertItem (Incidence *event,QDate qd,int X,int YTop,int YBottom); |
94 | KOAgendaItem *insertAllDayItem (Incidence *event,QDate qd,int XBegin,int XEnd); | 94 | KOAgendaItem *insertAllDayItem (Incidence *event,QDate qd,int XBegin,int XEnd); |
95 | void insertMultiItem (Event *event,QDate qd,int XBegin,int XEnd, | 95 | void insertMultiItem (Event *event,QDate qd,int XBegin,int XEnd, |
96 | int YTop,int YBottom); | 96 | int YTop,int YBottom); |
97 | 97 | ||
98 | void changeColumns(int columns); | 98 | void changeColumns(int columns); |
99 | 99 | ||
100 | int columns() { return mColumns; } | 100 | int columns() { return mColumns; } |
101 | int rows() { return mRows; } | 101 | int rows() { return mRows; } |
102 | 102 | ||
@@ -153,48 +153,49 @@ class KOAgenda : public QScrollView | |||
153 | signals: | 153 | signals: |
154 | void signalClearSelection(); | 154 | void signalClearSelection(); |
155 | void showDateView( int, int); | 155 | void showDateView( int, int); |
156 | void newEventSignal(); | 156 | void newEventSignal(); |
157 | void newEventSignal(int gx,int gy); | 157 | void newEventSignal(int gx,int gy); |
158 | void newTodoSignal(int gx,int gy); | 158 | void newTodoSignal(int gx,int gy); |
159 | void newEventSignal(int gxStart, int gyStart, int gxEnd, int gyEnd); | 159 | void newEventSignal(int gxStart, int gyStart, int gxEnd, int gyEnd); |
160 | void newTimeSpanSignal(int gxStart, int gyStart, int gxEnd, int gyEnd); | 160 | void newTimeSpanSignal(int gxStart, int gyStart, int gxEnd, int gyEnd); |
161 | void newStartSelectSignal(); | 161 | void newStartSelectSignal(); |
162 | void showIncidenceSignal(Incidence *); | 162 | void showIncidenceSignal(Incidence *); |
163 | void editIncidenceSignal(Incidence *); | 163 | void editIncidenceSignal(Incidence *); |
164 | void deleteIncidenceSignal(Incidence *); | 164 | void deleteIncidenceSignal(Incidence *); |
165 | void showIncidencePopupSignal(Incidence *); | 165 | void showIncidencePopupSignal(Incidence *); |
166 | 166 | ||
167 | void itemModified(KOAgendaItem *item, int ); | 167 | void itemModified(KOAgendaItem *item, int ); |
168 | void incidenceSelected(Incidence *); | 168 | void incidenceSelected(Incidence *); |
169 | 169 | ||
170 | void lowerYChanged(int); | 170 | void lowerYChanged(int); |
171 | void upperYChanged(int); | 171 | void upperYChanged(int); |
172 | 172 | ||
173 | void startDragSignal(Incidence *); | 173 | void startDragSignal(Incidence *); |
174 | void addToCalSignal(Incidence *, Incidence *); | 174 | void addToCalSignal(Incidence *, Incidence *); |
175 | void resizedSignal(); | 175 | void resizedSignal(); |
176 | void updateViewSignal(); | 176 | void updateViewSignal(); |
177 | void sendPing(); | ||
177 | 178 | ||
178 | protected: | 179 | protected: |
179 | KOEventPopupMenu * mAllAgendaPopup; | 180 | KOEventPopupMenu * mAllAgendaPopup; |
180 | QPainter mPixPainter; | 181 | QPainter mPixPainter; |
181 | QPixmap mPaintPixmap; | 182 | QPixmap mPaintPixmap; |
182 | QPixmap mHighlightPixmap; | 183 | QPixmap mHighlightPixmap; |
183 | void drawContents(QPainter *p,int cx, int cy, int cw, int ch); | 184 | void drawContents(QPainter *p,int cx, int cy, int cw, int ch); |
184 | virtual void resizeEvent ( QResizeEvent * ); | 185 | virtual void resizeEvent ( QResizeEvent * ); |
185 | 186 | ||
186 | /** Handles mouse events. Called from eventFilter */ | 187 | /** Handles mouse events. Called from eventFilter */ |
187 | virtual bool eventFilter_mouse ( QObject *, QMouseEvent * ); | 188 | virtual bool eventFilter_mouse ( QObject *, QMouseEvent * ); |
188 | 189 | ||
189 | /** Start selecting time span. */ | 190 | /** Start selecting time span. */ |
190 | void startSelectAction(QPoint viewportPos); | 191 | void startSelectAction(QPoint viewportPos); |
191 | 192 | ||
192 | /** Select time span. */ | 193 | /** Select time span. */ |
193 | void performSelectAction(QPoint viewportPos); | 194 | void performSelectAction(QPoint viewportPos); |
194 | 195 | ||
195 | /** Emd selecting time span. */ | 196 | /** Emd selecting time span. */ |
196 | void endSelectAction( bool emitNewEvent = false ); | 197 | void endSelectAction( bool emitNewEvent = false ); |
197 | 198 | ||
198 | /** Start moving/resizing agenda item */ | 199 | /** Start moving/resizing agenda item */ |
199 | void startItemAction(QPoint viewportPos); | 200 | void startItemAction(QPoint viewportPos); |
200 | 201 | ||