author | zautrix <zautrix> | 2005-03-25 18:26:36 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-25 18:26:36 (UTC) |
commit | 89a72c007045dcfa5dbf57012b4cf0c2aebd1495 (patch) (unidiff) | |
tree | 6accbe5706b724e307d1590152fa2d2c78cdef70 /korganizer/kolistview.h | |
parent | 3326831dbf6f962e97a978781361db5198f6a035 (diff) | |
download | kdepimpi-89a72c007045dcfa5dbf57012b4cf0c2aebd1495.zip kdepimpi-89a72c007045dcfa5dbf57012b4cf0c2aebd1495.tar.gz kdepimpi-89a72c007045dcfa5dbf57012b4cf0c2aebd1495.tar.bz2 |
layout fixes
-rw-r--r-- | korganizer/kolistview.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/korganizer/kolistview.h b/korganizer/kolistview.h index 0d9c525..eca71e2 100644 --- a/korganizer/kolistview.h +++ b/korganizer/kolistview.h | |||
@@ -178,99 +178,97 @@ void pickAlarmProgram() | |||
178 | 178 | ||
179 | typedef CustomListViewItem<Incidence *> KOListViewItem; | 179 | typedef CustomListViewItem<Incidence *> KOListViewItem; |
180 | 180 | ||
181 | /** | 181 | /** |
182 | This class provides the initialisation of a KOListViewItem for calendar | 182 | This class provides the initialisation of a KOListViewItem for calendar |
183 | components using the Incidence::Visitor. | 183 | components using the Incidence::Visitor. |
184 | */ | 184 | */ |
185 | class ListItemVisitor : public Incidence::Visitor | 185 | class ListItemVisitor : public Incidence::Visitor |
186 | { | 186 | { |
187 | public: | 187 | public: |
188 | ListItemVisitor(KOListViewItem *, QDate d); | 188 | ListItemVisitor(KOListViewItem *, QDate d); |
189 | ~ListItemVisitor(); | 189 | ~ListItemVisitor(); |
190 | 190 | ||
191 | bool visit(Event *); | 191 | bool visit(Event *); |
192 | bool visit(Todo *); | 192 | bool visit(Todo *); |
193 | bool visit(Journal *); | 193 | bool visit(Journal *); |
194 | 194 | ||
195 | private: | 195 | private: |
196 | KOListViewItem *mItem; | 196 | KOListViewItem *mItem; |
197 | QDate mDate; | 197 | QDate mDate; |
198 | }; | 198 | }; |
199 | 199 | ||
200 | /** | 200 | /** |
201 | This class provides a multi-column list view of events. It can | 201 | This class provides a multi-column list view of events. It can |
202 | display events from one particular day or several days, it doesn't | 202 | display events from one particular day or several days, it doesn't |
203 | matter. To use a view that only handles one day at a time, use | 203 | matter. To use a view that only handles one day at a time, use |
204 | KODayListView. | 204 | KODayListView. |
205 | 205 | ||
206 | @short multi-column list view of various events. | 206 | @short multi-column list view of various events. |
207 | @author Preston Brown <pbrown@kde.org> | 207 | @author Preston Brown <pbrown@kde.org> |
208 | @see KOBaseView, KODayListView | 208 | @see KOBaseView, KODayListView |
209 | */ | 209 | */ |
210 | class KOListView; | 210 | class KOListView; |
211 | 211 | ||
212 | class KOListViewListView : public KListView | 212 | class KOListViewListView : public KListView |
213 | { | 213 | { |
214 | Q_OBJECT | 214 | Q_OBJECT |
215 | public: | 215 | public: |
216 | KOListViewListView(KOListView * lv ); | 216 | KOListViewListView(KOListView * lv ); |
217 | signals: | 217 | signals: |
218 | void newEvent(); | 218 | void newEvent(); |
219 | void showIncidence( Incidence* ); | 219 | void showIncidence( Incidence* ); |
220 | private: | 220 | private: |
221 | void keyPressEvent ( QKeyEvent * ) ; | 221 | void keyPressEvent ( QKeyEvent * ) ; |
222 | void contentsMouseDoubleClickEvent(QMouseEvent *e); | 222 | void contentsMouseDoubleClickEvent(QMouseEvent *e); |
223 | void contentsMousePressEvent(QMouseEvent *e); | 223 | void contentsMousePressEvent(QMouseEvent *e); |
224 | void contentsMouseReleaseEvent(QMouseEvent *e); | 224 | void contentsMouseReleaseEvent(QMouseEvent *e); |
225 | void contentsMouseMoveEvent(QMouseEvent *e); | 225 | void contentsMouseMoveEvent(QMouseEvent *e); |
226 | bool mAllowPopupMenu; | ||
227 | bool mMouseDown; | 226 | bool mMouseDown; |
228 | int mYMousePos; | ||
229 | }; | 227 | }; |
230 | 228 | ||
231 | class KOListView : public KOEventView | 229 | class KOListView : public KOEventView |
232 | { | 230 | { |
233 | Q_OBJECT | 231 | Q_OBJECT |
234 | public: | 232 | public: |
235 | KOListView(Calendar *calendar, QWidget *parent = 0, | 233 | KOListView(Calendar *calendar, QWidget *parent = 0, |
236 | const char *name = 0); | 234 | const char *name = 0); |
237 | ~KOListView(); | 235 | ~KOListView(); |
238 | 236 | ||
239 | virtual int maxDatesHint(); | 237 | virtual int maxDatesHint(); |
240 | virtual int currentDateCount(); | 238 | virtual int currentDateCount(); |
241 | virtual QPtrList<Incidence> selectedIncidences(); | 239 | virtual QPtrList<Incidence> selectedIncidences(); |
242 | virtual DateList selectedDates(); | 240 | virtual DateList selectedDates(); |
243 | 241 | ||
244 | void showDates(bool show); | 242 | void showDates(bool show); |
245 | Incidence* currentItem(); | 243 | Incidence* currentItem(); |
246 | void addTodos(QPtrList<Todo> eventList); | 244 | void addTodos(QPtrList<Todo> eventList); |
247 | void addJournals(QPtrList<Journal> eventList); | 245 | void addJournals(QPtrList<Journal> eventList); |
248 | virtual void printPreview(CalPrinter *calPrinter, | 246 | virtual void printPreview(CalPrinter *calPrinter, |
249 | const QDate &, const QDate &); | 247 | const QDate &, const QDate &); |
250 | 248 | ||
251 | void readSettings(KConfig *config, QString setting = "KOListView Layout"); | 249 | void readSettings(KConfig *config, QString setting = "KOListView Layout"); |
252 | void writeSettings(KConfig *config, QString setting = "KOListView Layout"); | 250 | void writeSettings(KConfig *config, QString setting = "KOListView Layout"); |
253 | void updateList(); | 251 | void updateList(); |
254 | void setStartDate(const QDate &start); | 252 | void setStartDate(const QDate &start); |
255 | int count(); | 253 | int count(); |
256 | QString getWhatsThisText(QPoint p); | 254 | QString getWhatsThisText(QPoint p); |
257 | void resetFocus(); | 255 | void resetFocus(); |
258 | signals: | 256 | signals: |
259 | void signalNewEvent(); | 257 | void signalNewEvent(); |
260 | void beamIncidenceList(QPtrList<Incidence>); | 258 | void beamIncidenceList(QPtrList<Incidence>); |
261 | 259 | ||
262 | public slots: | 260 | public slots: |
263 | virtual void updateView(); | 261 | virtual void updateView(); |
264 | virtual void showDates(const QDate &start, const QDate &end); | 262 | virtual void showDates(const QDate &start, const QDate &end); |
265 | virtual void showEvents(QPtrList<Event> eventList); | 263 | virtual void showEvents(QPtrList<Event> eventList); |
266 | void clearSelection(); | 264 | void clearSelection(); |
267 | void allSelection(); | 265 | void allSelection(); |
268 | 266 | ||
269 | void clear(); | 267 | void clear(); |
270 | void beamDone( Ir *ir ); | 268 | void beamDone( Ir *ir ); |
271 | void showDates(); | 269 | void showDates(); |
272 | void hideDates(); | 270 | void hideDates(); |
273 | void deleteAll(); | 271 | void deleteAll(); |
274 | void saveToFile(); | 272 | void saveToFile(); |
275 | void saveToFileVCS(); | 273 | void saveToFileVCS(); |
276 | void saveDescriptionToFile(); | 274 | void saveDescriptionToFile(); |