-rw-r--r-- | korganizer/koagenda.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/korganizer/koagenda.h b/korganizer/koagenda.h index de6acac..5d813b2 100644 --- a/korganizer/koagenda.h +++ b/korganizer/koagenda.h | |||
@@ -66,24 +66,25 @@ class MarcusBains : public QFrame { | |||
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 | 79 | ||
79 | Incidence *selectedIncidence() const; | 80 | Incidence *selectedIncidence() const; |
80 | QDate selectedIncidenceDate() const; | 81 | QDate selectedIncidenceDate() const; |
81 | 82 | ||
82 | virtual bool eventFilter ( QObject *, QEvent * ); | 83 | virtual bool eventFilter ( QObject *, QEvent * ); |
83 | 84 | ||
84 | void contentsToGrid (int x, int y, int& gx, int& gy); | 85 | void contentsToGrid (int x, int y, int& gx, int& gy); |
85 | void gridToContents (int gx, int gy, int& x, int& y); | 86 | void gridToContents (int gx, int gy, int& x, int& y); |
86 | 87 | ||
87 | int timeToY (const QTime &time); | 88 | int timeToY (const QTime &time); |
88 | QTime gyToTime (int y); | 89 | QTime gyToTime (int y); |
89 | 90 | ||
@@ -116,26 +117,28 @@ class KOAgenda : public QScrollView | |||
116 | 117 | ||
117 | void checkScrollBoundaries(); | 118 | void checkScrollBoundaries(); |
118 | 119 | ||
119 | void setHolidayMask(QMemArray<bool> *); | 120 | void setHolidayMask(QMemArray<bool> *); |
120 | void setDateList(const DateList &selectedDates); | 121 | void setDateList(const DateList &selectedDates); |
121 | DateList dateList() const; | 122 | DateList dateList() const; |
122 | void drawContentsToPainter( QPainter* paint = 0, bool backgroundOnly = false); | 123 | void drawContentsToPainter( QPainter* paint = 0, bool backgroundOnly = false); |
123 | void finishUpdate(); | 124 | void finishUpdate(); |
124 | void printSelection(); | 125 | void printSelection(); |
125 | void storePosition(); | 126 | void storePosition(); |
126 | void restorePosition(); | 127 | void restorePosition(); |
127 | void setPopup( KOEventPopupMenu * p ) { mAllAgendaPopup = p; } | 128 | void setPopup( KOEventPopupMenu * p ) { mAllAgendaPopup = p; } |
129 | void shrinkPixmap(); | ||
128 | 130 | ||
129 | public slots: | 131 | public slots: |
132 | void slotContentMove(int,int); | ||
130 | void categoryChanged(Incidence * inc); | 133 | void categoryChanged(Incidence * inc); |
131 | void slotClearSelection(); | 134 | void slotClearSelection(); |
132 | void popupMenu(); | 135 | void popupMenu(); |
133 | void newItem( int ); | 136 | void newItem( int ); |
134 | void moveChild( QWidget *, int, int ); | 137 | void moveChild( QWidget *, int, int ); |
135 | void scrollUp(); | 138 | void scrollUp(); |
136 | void scrollDown(); | 139 | void scrollDown(); |
137 | void updateTodo( Todo * t, int , bool ); | 140 | void updateTodo( Todo * t, int , bool ); |
138 | void popupAlarm(); | 141 | void popupAlarm(); |
139 | 142 | ||
140 | void checkScrollBoundaries(int); | 143 | void checkScrollBoundaries(int); |
141 | 144 | ||
@@ -161,24 +164,25 @@ class KOAgenda : public QScrollView | |||
161 | void deleteIncidenceSignal(Incidence *); | 164 | void deleteIncidenceSignal(Incidence *); |
162 | void showIncidencePopupSignal(Incidence *); | 165 | void showIncidencePopupSignal(Incidence *); |
163 | 166 | ||
164 | void itemModified(KOAgendaItem *item, int ); | 167 | void itemModified(KOAgendaItem *item, int ); |
165 | void incidenceSelected(Incidence *); | 168 | void incidenceSelected(Incidence *); |
166 | 169 | ||
167 | void lowerYChanged(int); | 170 | void lowerYChanged(int); |
168 | void upperYChanged(int); | 171 | void upperYChanged(int); |
169 | 172 | ||
170 | void startDragSignal(Incidence *); | 173 | void startDragSignal(Incidence *); |
171 | void addToCalSignal(Incidence *, Incidence *); | 174 | void addToCalSignal(Incidence *, Incidence *); |
172 | void resizedSignal(); | 175 | void resizedSignal(); |
176 | void updateViewSignal(); | ||
173 | 177 | ||
174 | protected: | 178 | protected: |
175 | KOEventPopupMenu * mAllAgendaPopup; | 179 | KOEventPopupMenu * mAllAgendaPopup; |
176 | QPainter mPixPainter; | 180 | QPainter mPixPainter; |
177 | QPixmap mPaintPixmap; | 181 | QPixmap mPaintPixmap; |
178 | QPixmap mHighlightPixmap; | 182 | QPixmap mHighlightPixmap; |
179 | void drawContents(QPainter *p,int cx, int cy, int cw, int ch); | 183 | void drawContents(QPainter *p,int cx, int cy, int cw, int ch); |
180 | virtual void resizeEvent ( QResizeEvent * ); | 184 | virtual void resizeEvent ( QResizeEvent * ); |
181 | 185 | ||
182 | /** Handles mouse events. Called from eventFilter */ | 186 | /** Handles mouse events. Called from eventFilter */ |
183 | virtual bool eventFilter_mouse ( QObject *, QMouseEvent * ); | 187 | virtual bool eventFilter_mouse ( QObject *, QMouseEvent * ); |
184 | 188 | ||