-rw-r--r-- | korganizer/koagenda.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/koagenda.h b/korganizer/koagenda.h index 3d33ae5..35c08b6 100644 --- a/korganizer/koagenda.h +++ b/korganizer/koagenda.h | |||
@@ -100,97 +100,97 @@ class KOAgenda : public QScrollView | |||
100 | 100 | ||
101 | int gridSpacingX() const { return mGridSpacingX; } | 101 | int gridSpacingX() const { return mGridSpacingX; } |
102 | int gridSpacingY() const { return mGridSpacingY; } | 102 | int gridSpacingY() const { return mGridSpacingY; } |
103 | 103 | ||
104 | // virtual QSizePolicy sizePolicy() const; | 104 | // virtual QSizePolicy sizePolicy() const; |
105 | 105 | ||
106 | void clear(); | 106 | void clear(); |
107 | 107 | ||
108 | void clearSelection(); | 108 | void clearSelection(); |
109 | void hideUnused(); | 109 | void hideUnused(); |
110 | 110 | ||
111 | /** Calculates the minimum width */ | 111 | /** Calculates the minimum width */ |
112 | virtual int minimumWidth() const; | 112 | virtual int minimumWidth() const; |
113 | /** Update configuration from preference settings */ | 113 | /** Update configuration from preference settings */ |
114 | void updateConfig(); | 114 | void updateConfig(); |
115 | 115 | ||
116 | void checkScrollBoundaries(); | 116 | void checkScrollBoundaries(); |
117 | 117 | ||
118 | void setHolidayMask(QMemArray<bool> *); | 118 | void setHolidayMask(QMemArray<bool> *); |
119 | void setDateList(const DateList &selectedDates); | 119 | void setDateList(const DateList &selectedDates); |
120 | DateList dateList() const; | 120 | DateList dateList() const; |
121 | void drawContentsToPainter( QPainter* paint = 0, bool backgroundOnly = false); | 121 | void drawContentsToPainter( QPainter* paint = 0, bool backgroundOnly = false); |
122 | void finishUpdate(); | 122 | void finishUpdate(); |
123 | void printSelection(); | 123 | void printSelection(); |
124 | void storePosition(); | 124 | void storePosition(); |
125 | void restorePosition(); | 125 | void restorePosition(); |
126 | 126 | ||
127 | 127 | ||
128 | public slots: | 128 | public slots: |
129 | void popupMenu(); | 129 | void popupMenu(); |
130 | void newItem( int ); | 130 | void newItem( int ); |
131 | void moveChild( QWidget *, int, int ); | 131 | void moveChild( QWidget *, int, int ); |
132 | void scrollUp(); | 132 | void scrollUp(); |
133 | void scrollDown(); | 133 | void scrollDown(); |
134 | void updateTodo( Todo * t, int , bool ); | 134 | void updateTodo( Todo * t, int , bool ); |
135 | void popupAlarm(); | 135 | void popupAlarm(); |
136 | 136 | ||
137 | void checkScrollBoundaries(int); | 137 | void checkScrollBoundaries(int); |
138 | 138 | ||
139 | /** Deselect selected items. This function does not emit any signals. */ | 139 | /** Deselect selected items. This function does not emit any signals. */ |
140 | void deselectItem(); | 140 | void deselectItem(); |
141 | /** Select item. If the argument is 0, the currently selected item gets | 141 | /** Select item. If the argument is 0, the currently selected item gets |
142 | deselected. This function emits the itemSelected(bool) signal to inform | 142 | deselected. This function emits the itemSelected(bool) signal to inform |
143 | about selection/deseelction of events. */ | 143 | about selection/deseelction of events. */ |
144 | void selectItem(KOAgendaItem *); | 144 | void selectItem(KOAgendaItem *); |
145 | void finishResize(); | 145 | void finishResize(); |
146 | 146 | ||
147 | signals: | 147 | signals: |
148 | void showDateView( int, QDate ); | 148 | void showDateView( int, int); |
149 | void newEventSignal(); | 149 | void newEventSignal(); |
150 | void newEventSignal(int gx,int gy); | 150 | void newEventSignal(int gx,int gy); |
151 | void newTodoSignal(int gx,int gy); | 151 | void newTodoSignal(int gx,int gy); |
152 | void newEventSignal(int gxStart, int gyStart, int gxEnd, int gyEnd); | 152 | void newEventSignal(int gxStart, int gyStart, int gxEnd, int gyEnd); |
153 | void newTimeSpanSignal(int gxStart, int gyStart, int gxEnd, int gyEnd); | 153 | void newTimeSpanSignal(int gxStart, int gyStart, int gxEnd, int gyEnd); |
154 | void newStartSelectSignal(); | 154 | void newStartSelectSignal(); |
155 | void showIncidenceSignal(Incidence *); | 155 | void showIncidenceSignal(Incidence *); |
156 | void editIncidenceSignal(Incidence *); | 156 | void editIncidenceSignal(Incidence *); |
157 | void deleteIncidenceSignal(Incidence *); | 157 | void deleteIncidenceSignal(Incidence *); |
158 | void showIncidencePopupSignal(Incidence *); | 158 | void showIncidencePopupSignal(Incidence *); |
159 | 159 | ||
160 | void itemModified(KOAgendaItem *item, int ); | 160 | void itemModified(KOAgendaItem *item, int ); |
161 | void incidenceSelected(Incidence *); | 161 | void incidenceSelected(Incidence *); |
162 | 162 | ||
163 | void lowerYChanged(int); | 163 | void lowerYChanged(int); |
164 | void upperYChanged(int); | 164 | void upperYChanged(int); |
165 | 165 | ||
166 | void startDragSignal(Incidence *); | 166 | void startDragSignal(Incidence *); |
167 | void addToCalSignal(Incidence *, Incidence *); | 167 | void addToCalSignal(Incidence *, Incidence *); |
168 | void resizedSignal(); | 168 | void resizedSignal(); |
169 | 169 | ||
170 | protected: | 170 | protected: |
171 | QPainter mPixPainter; | 171 | QPainter mPixPainter; |
172 | QPixmap mPaintPixmap; | 172 | QPixmap mPaintPixmap; |
173 | QPixmap mHighlightPixmap; | 173 | QPixmap mHighlightPixmap; |
174 | void drawContents(QPainter *p,int cx, int cy, int cw, int ch); | 174 | void drawContents(QPainter *p,int cx, int cy, int cw, int ch); |
175 | virtual void resizeEvent ( QResizeEvent * ); | 175 | virtual void resizeEvent ( QResizeEvent * ); |
176 | 176 | ||
177 | /** Handles mouse events. Called from eventFilter */ | 177 | /** Handles mouse events. Called from eventFilter */ |
178 | virtual bool eventFilter_mouse ( QObject *, QMouseEvent * ); | 178 | virtual bool eventFilter_mouse ( QObject *, QMouseEvent * ); |
179 | 179 | ||
180 | /** Start selecting time span. */ | 180 | /** Start selecting time span. */ |
181 | void startSelectAction(QPoint viewportPos); | 181 | void startSelectAction(QPoint viewportPos); |
182 | 182 | ||
183 | /** Select time span. */ | 183 | /** Select time span. */ |
184 | void performSelectAction(QPoint viewportPos); | 184 | void performSelectAction(QPoint viewportPos); |
185 | 185 | ||
186 | /** Emd selecting time span. */ | 186 | /** Emd selecting time span. */ |
187 | void endSelectAction( bool emitNewEvent = false ); | 187 | void endSelectAction( bool emitNewEvent = false ); |
188 | 188 | ||
189 | /** Start moving/resizing agenda item */ | 189 | /** Start moving/resizing agenda item */ |
190 | void startItemAction(QPoint viewportPos); | 190 | void startItemAction(QPoint viewportPos); |
191 | 191 | ||
192 | /** Move/resize agenda item */ | 192 | /** Move/resize agenda item */ |
193 | void performItemAction(QPoint viewportPos); | 193 | void performItemAction(QPoint viewportPos); |
194 | 194 | ||
195 | /** End moving/resizing agenda item */ | 195 | /** End moving/resizing agenda item */ |
196 | void endItemAction(); | 196 | void endItemAction(); |