author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /korganizer/kolistview.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | korganizer/kolistview.h | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/korganizer/kolistview.h b/korganizer/kolistview.h index 99d0561..9fb0b00 100644 --- a/korganizer/kolistview.h +++ b/korganizer/kolistview.h | |||
@@ -24,9 +24,15 @@ | |||
24 | #ifndef _KOLISTVIEW_H | 24 | #ifndef _KOLISTVIEW_H |
25 | #define _KOLISTVIEW_H | 25 | #define _KOLISTVIEW_H |
26 | 26 | ||
27 | #include <qlistview.h> | 27 | #include <q3listview.h> |
28 | #include <qmap.h> | 28 | #include <qmap.h> |
29 | #include <qdict.h> | 29 | #include <q3dict.h> |
30 | //Added by qt3to4: | ||
31 | #include <QMouseEvent> | ||
32 | #include <Q3PtrList> | ||
33 | #include <Q3PopupMenu> | ||
34 | #include <QKeyEvent> | ||
35 | #include <Q3VBoxLayout> | ||
30 | 36 | ||
31 | #include <klistview.h> | 37 | #include <klistview.h> |
32 | 38 | ||
@@ -47,7 +53,7 @@ class KOListViewWhatsThis; | |||
47 | #include <qspinbox.h> | 53 | #include <qspinbox.h> |
48 | #include <qtooltip.h> | 54 | #include <qtooltip.h> |
49 | #include <qcheckbox.h> | 55 | #include <qcheckbox.h> |
50 | #include <qhbox.h> | 56 | #include <q3hbox.h> |
51 | #include <qlabel.h> | 57 | #include <qlabel.h> |
52 | #include <kiconloader.h> | 58 | #include <kiconloader.h> |
53 | #include "kfiledialog.h" | 59 | #include "kfiledialog.h" |
@@ -60,7 +66,7 @@ class KOAlarmPrefs : public QDialog | |||
60 | QDialog( par, name, true ) | 66 | QDialog( par, name, true ) |
61 | { | 67 | { |
62 | setCaption( i18n("Alarm Options") ); | 68 | setCaption( i18n("Alarm Options") ); |
63 | QVBoxLayout* alarmLayout = new QVBoxLayout( this ); | 69 | Q3VBoxLayout* alarmLayout = new Q3VBoxLayout( this ); |
64 | alarmLayout->setSpacing( 3 ); | 70 | alarmLayout->setSpacing( 3 ); |
65 | alarmLayout->setMargin( 3 ); | 71 | alarmLayout->setMargin( 3 ); |
66 | QWidget *parent = this; | 72 | QWidget *parent = this; |
@@ -74,7 +80,7 @@ class KOAlarmPrefs : public QDialog | |||
74 | mAlarmIncrCombo->insertItem(i18n("hour(s)")); | 80 | mAlarmIncrCombo->insertItem(i18n("hour(s)")); |
75 | mAlarmIncrCombo->insertItem(i18n("day(s)")); | 81 | mAlarmIncrCombo->insertItem(i18n("day(s)")); |
76 | alarmLayout->addWidget(mAlarmIncrCombo); | 82 | alarmLayout->addWidget(mAlarmIncrCombo); |
77 | QHBox * hb = new QHBox ( parent ); | 83 | Q3HBox * hb = new Q3HBox ( parent ); |
78 | alarmLayout->addWidget(hb); | 84 | alarmLayout->addWidget(hb); |
79 | mAlarmSoundButton = new QPushButton(hb); | 85 | mAlarmSoundButton = new QPushButton(hb); |
80 | mAlarmSoundButton->setPixmap(SmallIcon("playsound")); | 86 | mAlarmSoundButton->setPixmap(SmallIcon("playsound")); |
@@ -210,7 +216,7 @@ class KOListViewListView : public KListView | |||
210 | Q_OBJECT | 216 | Q_OBJECT |
211 | public: | 217 | public: |
212 | KOListViewListView(KOListView * lv ); | 218 | KOListViewListView(KOListView * lv ); |
213 | bool hasMultiSelection(QListViewItem*); | 219 | bool hasMultiSelection(Q3ListViewItem*); |
214 | void printList(); | 220 | void printList(); |
215 | signals: | 221 | signals: |
216 | void newEvent(); | 222 | void newEvent(); |
@@ -240,13 +246,13 @@ class KOListView : public KOEventView | |||
240 | 246 | ||
241 | virtual int maxDatesHint(); | 247 | virtual int maxDatesHint(); |
242 | virtual int currentDateCount(); | 248 | virtual int currentDateCount(); |
243 | virtual QPtrList<Incidence> selectedIncidences(); | 249 | virtual Q3PtrList<Incidence> selectedIncidences(); |
244 | virtual DateList selectedDates(); | 250 | virtual DateList selectedDates(); |
245 | 251 | ||
246 | void showDates(bool show); | 252 | void showDates(bool show); |
247 | Incidence* currentItem(); | 253 | Incidence* currentItem(); |
248 | void addTodos(QPtrList<Todo> eventList); | 254 | void addTodos(Q3PtrList<Todo> eventList); |
249 | void addJournals(QPtrList<Journal> eventList); | 255 | void addJournals(Q3PtrList<Journal> eventList); |
250 | virtual void printPreview(CalPrinter *calPrinter, | 256 | virtual void printPreview(CalPrinter *calPrinter, |
251 | const QDate &, const QDate &); | 257 | const QDate &, const QDate &); |
252 | 258 | ||
@@ -257,11 +263,11 @@ class KOListView : public KOEventView | |||
257 | void setStartDate(const QDate &start); | 263 | void setStartDate(const QDate &start); |
258 | int count(); | 264 | int count(); |
259 | QString getWhatsThisText(QPoint p); | 265 | QString getWhatsThisText(QPoint p); |
260 | QPtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents = true, bool includeTodos = true , bool includeJournals = true, bool onlyDueTodos = false ); | 266 | Q3PtrList<Incidence> getSelectedIncidences( bool includeEvents = true, bool includeTodos = true , bool includeJournals = true, bool onlyDueTodos = false ); |
261 | void showCompletedTodos(); | 267 | void showCompletedTodos(); |
262 | signals: | 268 | signals: |
263 | void signalNewEvent(); | 269 | void signalNewEvent(); |
264 | void beamIncidenceList(QPtrList<Incidence>); | 270 | void beamIncidenceList(Q3PtrList<Incidence>); |
265 | 271 | ||
266 | public slots: | 272 | public slots: |
267 | void hideAll(); | 273 | void hideAll(); |
@@ -269,7 +275,7 @@ class KOListView : public KOEventView | |||
269 | void resetFocus(); | 275 | void resetFocus(); |
270 | virtual void updateView(); | 276 | virtual void updateView(); |
271 | virtual void showDates(const QDate &start, const QDate &end); | 277 | virtual void showDates(const QDate &start, const QDate &end); |
272 | virtual void showEvents(QPtrList<Event> eventList); | 278 | virtual void showEvents(Q3PtrList<Event> eventList); |
273 | void clearSelection(); | 279 | void clearSelection(); |
274 | void allSelection(); | 280 | void allSelection(); |
275 | 281 | ||
@@ -287,29 +293,29 @@ class KOListView : public KOEventView | |||
287 | void setCategories( bool removeOld ); | 293 | void setCategories( bool removeOld ); |
288 | void changeEventDisplay(Event *, int); | 294 | void changeEventDisplay(Event *, int); |
289 | 295 | ||
290 | void defaultItemAction(QListViewItem *item); | 296 | void defaultItemAction(Q3ListViewItem *item); |
291 | void popupMenu(QListViewItem *item,const QPoint &,int); | 297 | void popupMenu(Q3ListViewItem *item,const QPoint &,int); |
292 | void setCalendar( int c ); | 298 | void setCalendar( int c ); |
293 | void populateCalPopup(); | 299 | void populateCalPopup(); |
294 | 300 | ||
295 | protected slots: | 301 | protected slots: |
296 | void processSelectionChange(QListViewItem *); | 302 | void processSelectionChange(Q3ListViewItem *); |
297 | void catChanged( Incidence* ); | 303 | void catChanged( Incidence* ); |
298 | 304 | ||
299 | protected: | 305 | protected: |
300 | void writeToFile( bool iCal ); | 306 | void writeToFile( bool iCal ); |
301 | void addEvents(QPtrList<Event> eventList); | 307 | void addEvents(Q3PtrList<Event> eventList); |
302 | void addIncidence(Incidence *); | 308 | void addIncidence(Incidence *); |
303 | KOListViewItem *getItemForEvent(Incidence *event); | 309 | KOListViewItem *getItemForEvent(Incidence *event); |
304 | 310 | ||
305 | private: | 311 | private: |
306 | bool mForceShowCompletedTodos; | 312 | bool mForceShowCompletedTodos; |
307 | QPopupMenu* mCalPopup; | 313 | Q3PopupMenu* mCalPopup; |
308 | KOListViewWhatsThis *mKOListViewWhatsThis; | 314 | KOListViewWhatsThis *mKOListViewWhatsThis; |
309 | KOListViewListView *mListView; | 315 | KOListViewListView *mListView; |
310 | KOEventPopupMenu *mPopupMenu; | 316 | KOEventPopupMenu *mPopupMenu; |
311 | KOListViewItem *mActiveItem; | 317 | KOListViewItem *mActiveItem; |
312 | QDict<Incidence> mUidDict; | 318 | Q3Dict<Incidence> mUidDict; |
313 | QDate mStartDate; | 319 | QDate mStartDate; |
314 | void keyPressEvent ( QKeyEvent * ) ; | 320 | void keyPressEvent ( QKeyEvent * ) ; |
315 | }; | 321 | }; |