summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/WhatsNew.txt3
-rw-r--r--korganizer/komonthview.h2
-rw-r--r--korganizer/koviewmanager.cpp1
3 files changed, 5 insertions, 1 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt
index 3c757a1..7c81b3a 100644
--- a/bin/kdepim/WhatsNew.txt
+++ b/bin/kdepim/WhatsNew.txt
@@ -1,101 +1,104 @@
1Info about the changes in new versions of KDE-Pim/Pi 1Info about the changes in new versions of KDE-Pim/Pi
2 2
3********** VERSION 2.0.9 ************ 3********** VERSION 2.0.9 ************
4 4
5Made month view icons for multiday events a bit nicer. 5Made month view icons for multiday events a bit nicer.
6Some minor fixes in KO/Pi
7(e.g. go to today did not work for new week view properly).
8
6 9
7********** VERSION 2.0.8 ************ 10********** VERSION 2.0.8 ************
8 11
9Fixed a problem in dependency info in the ipk files for the Zaurus. 12Fixed a problem in dependency info in the ipk files for the Zaurus.
10 13
11Added icon for the stealth new week view and made navigation more user friendly in monthview by adding a prev/next week button to the navigator bar. 14Added icon for the stealth new week view and made navigation more user friendly in monthview by adding a prev/next week button to the navigator bar.
12 15
13Added a "go today" button to the datepicker. 16Added a "go today" button to the datepicker.
14 17
15Added "created" and "last modified" to event/todo viewer (and What'sThis viewer) 18Added "created" and "last modified" to event/todo viewer (and What'sThis viewer)
16and made it configureable to show these values. 19and made it configureable to show these values.
17 20
18Fixed a problem for events (from external iCal files) that do have a duration but no end date. 21Fixed a problem for events (from external iCal files) that do have a duration but no end date.
19 22
20 23
21********** VERSION 2.0.7 ************ 24********** VERSION 2.0.7 ************
22 25
23Added global application font settings 26Added global application font settings
24(for all KDE-Pim/Pi apps) to the general settings. 27(for all KDE-Pim/Pi apps) to the general settings.
25 28
26Fixed a problem in OM/Pi when trying to login to some IMAP servers 29Fixed a problem in OM/Pi when trying to login to some IMAP servers
27(like the IMAP server of Apple: mail.mac.com ) 30(like the IMAP server of Apple: mail.mac.com )
28 31
29Added recurring todos to KO/Pi. 32Added recurring todos to KO/Pi.
30 33
31 34
32********** VERSION 2.0.6 ************ 35********** VERSION 2.0.6 ************
33 36
34Some bugfixes in the pi-sync mode. 37Some bugfixes in the pi-sync mode.
35Added German translation for pi-sync mode. 38Added German translation for pi-sync mode.
36 39
37KO/Pi: 40KO/Pi:
38Made the todolist using alternate background. 41Made the todolist using alternate background.
39 42
40Other minor fixes in KO/Pi. 43Other minor fixes in KO/Pi.
41 44
42 45
43********** VERSION 2.0.5 ************ 46********** VERSION 2.0.5 ************
44 47
45Bugfixes in KO/Pi. 48Bugfixes in KO/Pi.
46 49
47********** VERSION 2.0.4 ************ 50********** VERSION 2.0.4 ************
48 51
49KO/Pi: 52KO/Pi:
50Fixed problem loading translations for summary/location edit boxes in event/todo editor. 53Fixed problem loading translations for summary/location edit boxes in event/todo editor.
51 54
52Added a general "select week number" to the toolbar. 55Added a general "select week number" to the toolbar.
53 56
54Fixed some small problem of the new features introduced in version 2.0.3. 57Fixed some small problem of the new features introduced in version 2.0.3.
55 58
56Made it possible to specify one specific category as category color, 59Made it possible to specify one specific category as category color,
57if more than one categories are selected. 60if more than one categories are selected.
58 61
59Fixed a bug in saving colors for categories with non-ascii characters. 62Fixed a bug in saving colors for categories with non-ascii characters.
60(Like, e.g. German Umlauts). 63(Like, e.g. German Umlauts).
61Propably you have to set your colors again for those categories. 64Propably you have to set your colors again for those categories.
62 65
63 66
64********** VERSION 2.0.3 ************ 67********** VERSION 2.0.3 ************
65 68
66KO/Pi: 69KO/Pi:
67Added feature for changing alarm settings for many items at once: 70Added feature for changing alarm settings for many items at once:
68Open list view (or search dialog), select the desired items and choose in 71Open list view (or search dialog), select the desired items and choose in
69the popup menu: Set alarm for selected... 72the popup menu: Set alarm for selected...
70 73
71Added to the event/todo viewer the option to send an email to 74Added to the event/todo viewer the option to send an email to
72all attendees or all selected (with RSVP) attendees. 75all attendees or all selected (with RSVP) attendees.
73 76
74Made the week-month mode changing in month view faster. 77Made the week-month mode changing in month view faster.
75 78
76Made month view better useable with keyboard. 79Made month view better useable with keyboard.
77Now TAB key jumps to next cell with an event/todo. 80Now TAB key jumps to next cell with an event/todo.
78Scroll in cell with coursor keys, scroll in time (next week) with 81Scroll in cell with coursor keys, scroll in time (next week) with
79Shift/Control + coursorkeys. 82Shift/Control + coursorkeys.
80 83
81Fixed bug that the todo view flat mode was reset after first view update. 84Fixed bug that the todo view flat mode was reset after first view update.
82 85
83If a todo is displayed closed in the todo view, 86If a todo is displayed closed in the todo view,
84it is now displayed in overdue/due today color depending on the subtodos overdue/due today properties. 87it is now displayed in overdue/due today color depending on the subtodos overdue/due today properties.
85 88
86Added info about the numbers of years to the caption (title) information about a birthday event. 89Added info about the numbers of years to the caption (title) information about a birthday event.
87 90
88Made completion date in todo editor editable. 91Made completion date in todo editor editable.
89 92
90Added possibility to save/load templates for journals. 93Added possibility to save/load templates for journals.
91(Which is just a simple "save text to file" or "insert text from file". 94(Which is just a simple "save text to file" or "insert text from file".
92 95
93********** VERSION 2.0.2 ************ 96********** VERSION 2.0.2 ************
94 97
95KO/Pi: 98KO/Pi:
96Fixed the layout problem of the day label buttons 99Fixed the layout problem of the day label buttons
97of the agenda view introduced in version 2.0.1. 100of the agenda view introduced in version 2.0.1.
98 101
99Added WhatsThis support for the todo view and the list view. 102Added WhatsThis support for the todo view and the list view.
100 103
101Added a quite useful feature to the montview. 104Added a quite useful feature to the montview.
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h
index b79a41f..f92a69a 100644
--- a/korganizer/komonthview.h
+++ b/korganizer/komonthview.h
@@ -133,169 +133,169 @@ class MonthViewCell : public QWidget
133 public: 133 public:
134 MonthViewCell(KOMonthView *,QWidget* ); 134 MonthViewCell(KOMonthView *,QWidget* );
135 135
136 void setDate( const QDate & ); 136 void setDate( const QDate & );
137 QDate date() const; 137 QDate date() const;
138 138
139 void setPrimary( bool ); 139 void setPrimary( bool );
140 bool isPrimary() const; 140 bool isPrimary() const;
141 141
142 void setHoliday( bool ); 142 void setHoliday( bool );
143 void setHoliday( const QString & ); 143 void setHoliday( const QString & );
144 144
145 void updateCell(); 145 void updateCell();
146 void startUpdateCell(); 146 void startUpdateCell();
147 void finishUpdateCell(); 147 void finishUpdateCell();
148 void insertEvent(Event *); 148 void insertEvent(Event *);
149 void insertTodo(Todo *); 149 void insertTodo(Todo *);
150 150
151 void updateConfig( bool bigFont = false ); 151 void updateConfig( bool bigFont = false );
152 152
153 void enableScrollBars( bool ); 153 void enableScrollBars( bool );
154 154
155 Incidence *selectedIncidence(); 155 Incidence *selectedIncidence();
156 QDate selectedIncidenceDate(); 156 QDate selectedIncidenceDate();
157 157
158 void deselect(); 158 void deselect();
159 void select(); 159 void select();
160 160
161#ifdef DESKTOP_VERSION 161#ifdef DESKTOP_VERSION
162 static QToolTipGroup *toolTipGroup(); 162 static QToolTipGroup *toolTipGroup();
163#endif 163#endif
164 signals: 164 signals:
165 void defaultAction( Incidence * ); 165 void defaultAction( Incidence * );
166 void newEventSignal( QDateTime ); 166 void newEventSignal( QDateTime );
167 void showDaySignal( QDate ); 167 void showDaySignal( QDate );
168 168
169 protected: 169 protected:
170 QString mToolTip; 170 QString mToolTip;
171 void resizeEvent( QResizeEvent * ); 171 void resizeEvent( QResizeEvent * );
172 172
173 protected slots: 173 protected slots:
174 void defaultAction( QListBoxItem * ); 174 void defaultAction( QListBoxItem * );
175 void contextMenu( QListBoxItem * ); 175 void contextMenu( QListBoxItem * );
176 void selection( QListBoxItem * ); 176 void selection( QListBoxItem * );
177 void cellClicked( QListBoxItem * ); 177 void cellClicked( QListBoxItem * );
178 void newEvent(); 178 void newEvent();
179 void showDay(); 179 void showDay();
180 180
181 private: 181 private:
182 KOMonthView *mMonthView; 182 KOMonthView *mMonthView;
183 183
184 QDate mDate; 184 QDate mDate;
185 bool mPrimary; 185 bool mPrimary;
186 bool mHoliday; 186 bool mHoliday;
187 QString mHolidayString; 187 QString mHolidayString;
188 188
189 //QLabel *mLabel; 189 //QLabel *mLabel;
190 QPushButton *mLabel; 190 QPushButton *mLabel;
191 QListBox *mItemList; 191 QListBox *mItemList;
192#ifdef DESKTOP_VERSION 192#ifdef DESKTOP_VERSION
193 static QToolTipGroup *mToolTipGroup; 193 static QToolTipGroup *mToolTipGroup;
194#endif 194#endif
195 QSize mLabelSize; 195 QSize mLabelSize;
196 QSize mLabelBigSize; 196 QSize mLabelBigSize;
197 QPalette mHolidayPalette; 197 QPalette mHolidayPalette;
198 QPalette mStandardPalette; 198 QPalette mStandardPalette;
199 QPalette mPrimaryPalette; 199 QPalette mPrimaryPalette;
200 QPalette mNonPrimaryPalette; 200 QPalette mNonPrimaryPalette;
201 void setMyPalette(); 201 void setMyPalette();
202 QPalette getPalette (); 202 QPalette getPalette ();
203 void keyPressEvent ( QKeyEvent * ) ; 203 void keyPressEvent ( QKeyEvent * ) ;
204 204
205}; 205};
206 206
207 207
208class KOMonthView: public KOEventView 208class KOMonthView: public KOEventView
209{ 209{
210 Q_OBJECT 210 Q_OBJECT
211 public: 211 public:
212 KOMonthView(Calendar *cal, QWidget *parent = 0, const char *name = 0 ); 212 KOMonthView(Calendar *cal, QWidget *parent = 0, const char *name = 0 );
213 ~KOMonthView(); 213 ~KOMonthView();
214 214
215 /** Returns maximum number of days supported by the komonthview */ 215 /** Returns maximum number of days supported by the komonthview */
216 virtual int maxDatesHint(); 216 virtual int maxDatesHint();
217 217
218 /** Returns number of currently shown dates. */ 218 /** Returns number of currently shown dates. */
219 virtual int currentDateCount(); 219 virtual int currentDateCount();
220 220
221 /** returns the currently selected events */ 221 /** returns the currently selected events */
222 virtual QPtrList<Incidence> selectedIncidences(); 222 virtual QPtrList<Incidence> selectedIncidences();
223 223
224 /** returns dates of the currently selected events */ 224 /** returns dates of the currently selected events */
225 virtual DateList selectedDates(); 225 virtual DateList selectedDates();
226 226
227 virtual void printPreview(CalPrinter *calPrinter, 227 virtual void printPreview(CalPrinter *calPrinter,
228 const QDate &, const QDate &); 228 const QDate &, const QDate &);
229 bool isMonthView() { return true; } 229 bool isMonthView() { return !mShowWeekView; }
230 bool isUpdatePossible() { return updatePossible; } 230 bool isUpdatePossible() { return updatePossible; }
231 231
232 MonthViewCell * selectedCell(); 232 MonthViewCell * selectedCell();
233 bool skipResize; 233 bool skipResize;
234 NavigatorBar* navigatorBar() { return mNavigatorBar ;} 234 NavigatorBar* navigatorBar() { return mNavigatorBar ;}
235 public slots: 235 public slots:
236 virtual void updateView(); 236 virtual void updateView();
237 virtual void updateConfig(); 237 virtual void updateConfig();
238 virtual void showDates(const QDate &start, const QDate &end); 238 virtual void showDates(const QDate &start, const QDate &end);
239 virtual void showEvents(QPtrList<Event> eventList); 239 virtual void showEvents(QPtrList<Event> eventList);
240 240
241 void changeEventDisplay(Event *, int); 241 void changeEventDisplay(Event *, int);
242 242
243 void clearSelection(); 243 void clearSelection();
244 244
245 void showContextMenu( Incidence * ); 245 void showContextMenu( Incidence * );
246 246
247 void setSelectedCell( MonthViewCell * ); 247 void setSelectedCell( MonthViewCell * );
248 void switchView(); 248 void switchView();
249 249
250 protected slots: 250 protected slots:
251 void selectInternalWeekNum ( int ); 251 void selectInternalWeekNum ( int );
252 void processSelectionChange(); 252 void processSelectionChange();
253 signals: 253 signals:
254 void nextMonth(); 254 void nextMonth();
255 void prevMonth(); 255 void prevMonth();
256 void selectWeekNum ( int ); 256 void selectWeekNum ( int );
257 void selectMonth (); 257 void selectMonth ();
258 void showDaySignal( QDate ); 258 void showDaySignal( QDate );
259 protected: 259 protected:
260 void resizeEvent(QResizeEvent *); 260 void resizeEvent(QResizeEvent *);
261 void viewChanged(); 261 void viewChanged();
262 void updateDayLabels(); 262 void updateDayLabels();
263 263
264 private: 264 private:
265 NavigatorBar* mNavigatorBar; 265 NavigatorBar* mNavigatorBar;
266 int currentWeek(); 266 int currentWeek();
267 bool clPending; 267 bool clPending;
268 QWidgetStack * mWidStack; 268 QWidgetStack * mWidStack;
269 QWidget* mMonthView; 269 QWidget* mMonthView;
270 QWidget* mWeekView; 270 QWidget* mWeekView;
271 bool mShowWeekView; 271 bool mShowWeekView;
272 bool updatePossible; 272 bool updatePossible;
273 int mDaysPerWeek; 273 int mDaysPerWeek;
274 int mNumWeeks; 274 int mNumWeeks;
275 int mNumCells; 275 int mNumCells;
276 bool mWeekStartsMonday; 276 bool mWeekStartsMonday;
277 bool mShowSatSunComp; 277 bool mShowSatSunComp;
278 void computeLayout(); 278 void computeLayout();
279 void computeLayoutWeek(); 279 void computeLayoutWeek();
280 280
281 QPtrVector<MonthViewCell> mCells; 281 QPtrVector<MonthViewCell> mCells;
282 QPtrVector<QLabel> mDayLabels; 282 QPtrVector<QLabel> mDayLabels;
283 QPtrVector<KOWeekButton> mWeekLabels; 283 QPtrVector<KOWeekButton> mWeekLabels;
284 QPtrVector<MonthViewCell> mCellsW; 284 QPtrVector<MonthViewCell> mCellsW;
285 QPtrVector<QLabel> mDayLabelsW; 285 QPtrVector<QLabel> mDayLabelsW;
286 QPtrVector<KOWeekButton> mWeekLabelsW; 286 QPtrVector<KOWeekButton> mWeekLabelsW;
287 287
288 bool mShortDayLabelsM; 288 bool mShortDayLabelsM;
289 bool mShortDayLabelsW; 289 bool mShortDayLabelsW;
290 int mWidthLongDayLabel; 290 int mWidthLongDayLabel;
291 291
292 QDate mStartDate; 292 QDate mStartDate;
293 293
294 MonthViewCell *mSelectedCell; 294 MonthViewCell *mSelectedCell;
295 295
296 KOEventPopupMenu *mContextMenu; 296 KOEventPopupMenu *mContextMenu;
297 void keyPressEvent ( QKeyEvent * ) ; 297 void keyPressEvent ( QKeyEvent * ) ;
298 298
299}; 299};
300 300
301#endif 301#endif
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp
index ac67b58..a9f5a41 100644
--- a/korganizer/koviewmanager.cpp
+++ b/korganizer/koviewmanager.cpp
@@ -464,192 +464,193 @@ void KOViewManager::showWeekView()
464 464
465 mFlagShowNextxDays = false; 465 mFlagShowNextxDays = false;
466 globalFlagBlockAgenda = 1; 466 globalFlagBlockAgenda = 1;
467 globalFlagBlockLabel = 1; 467 globalFlagBlockLabel = 1;
468 if ( mCurrentAgendaView != 7 ) 468 if ( mCurrentAgendaView != 7 )
469 mCurrentAgendaView = -1; 469 mCurrentAgendaView = -1;
470 showAgendaView(); 470 showAgendaView();
471 qApp->processEvents(); 471 qApp->processEvents();
472 globalFlagBlockAgenda = 2; 472 globalFlagBlockAgenda = 2;
473 globalFlagBlockLabel = 0; 473 globalFlagBlockLabel = 0;
474 mMainView->dateNavigator()->selectWeek(); 474 mMainView->dateNavigator()->selectWeek();
475 mCurrentAgendaView = 7 ; 475 mCurrentAgendaView = 7 ;
476} 476}
477 477
478void KOViewManager::showNextXView() 478void KOViewManager::showNextXView()
479{ 479{
480 480
481 globalFlagBlockAgenda = 1; 481 globalFlagBlockAgenda = 1;
482 if ( mCurrentAgendaView != 3 ) 482 if ( mCurrentAgendaView != 3 )
483 mCurrentAgendaView = -1; 483 mCurrentAgendaView = -1;
484 showAgendaView(KOPrefs::instance()->mFullViewMonth); 484 showAgendaView(KOPrefs::instance()->mFullViewMonth);
485 globalFlagBlockAgenda = 2; 485 globalFlagBlockAgenda = 2;
486 mMainView->dateNavigator()->selectDates( QDate::currentDate(), 486 mMainView->dateNavigator()->selectDates( QDate::currentDate(),
487 KOPrefs::instance()->mNextXDays ); 487 KOPrefs::instance()->mNextXDays );
488 mFlagShowNextxDays = true; 488 mFlagShowNextxDays = true;
489 mCurrentAgendaView = 3 ; 489 mCurrentAgendaView = 3 ;
490} 490}
491bool KOViewManager::showsNextDays() 491bool KOViewManager::showsNextDays()
492{ 492{
493 return mFlagShowNextxDays; 493 return mFlagShowNextxDays;
494} 494}
495void KOViewManager::createMonthView() 495void KOViewManager::createMonthView()
496{ 496{
497if (!mMonthView) { 497if (!mMonthView) {
498 mMonthView = new KOMonthView(mMainView->calendar(), mMainView->viewStack(), "KOViewManager::MonthView"); 498 mMonthView = new KOMonthView(mMainView->calendar(), mMainView->viewStack(), "KOViewManager::MonthView");
499 499
500 addView(mMonthView); 500 addView(mMonthView);
501 // mMonthView->show(); 501 // mMonthView->show();
502 // SIGNALS/SLOTS FOR MONTH VIEW 502 // SIGNALS/SLOTS FOR MONTH VIEW
503 connect(mMonthView, SIGNAL(newEventSignal(QDateTime)), 503 connect(mMonthView, SIGNAL(newEventSignal(QDateTime)),
504 mMainView, SLOT(newEvent(QDateTime))); 504 mMainView, SLOT(newEvent(QDateTime)));
505 505
506 connect(mMonthView, SIGNAL(showIncidenceSignal(Incidence *)), 506 connect(mMonthView, SIGNAL(showIncidenceSignal(Incidence *)),
507 mMainView, SLOT(showIncidence(Incidence *))); 507 mMainView, SLOT(showIncidence(Incidence *)));
508 connect(mMonthView, SIGNAL(editIncidenceSignal(Incidence *)), 508 connect(mMonthView, SIGNAL(editIncidenceSignal(Incidence *)),
509 mMainView, SLOT(editIncidence(Incidence *))); 509 mMainView, SLOT(editIncidence(Incidence *)));
510 connect(mMonthView, SIGNAL(deleteIncidenceSignal(Incidence *)), 510 connect(mMonthView, SIGNAL(deleteIncidenceSignal(Incidence *)),
511 mMainView, SLOT(deleteIncidence(Incidence *))); 511 mMainView, SLOT(deleteIncidence(Incidence *)));
512 512
513 connect( mMonthView, SIGNAL( incidenceSelected( Incidence * ) ), 513 connect( mMonthView, SIGNAL( incidenceSelected( Incidence * ) ),
514 mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); 514 mMainView, SLOT( processMainViewSelection( Incidence * ) ) );
515 connect( mMonthView, SIGNAL( cloneIncidenceSignal( Incidence * ) ), 515 connect( mMonthView, SIGNAL( cloneIncidenceSignal( Incidence * ) ),
516 mMainView, SLOT ( cloneIncidence( Incidence * ) ) ); 516 mMainView, SLOT ( cloneIncidence( Incidence * ) ) );
517 connect( mMonthView, SIGNAL( cancelIncidenceSignal( Incidence * ) ), 517 connect( mMonthView, SIGNAL( cancelIncidenceSignal( Incidence * ) ),
518 mMainView, SLOT ( cancelIncidence( Incidence * ) ) ); 518 mMainView, SLOT ( cancelIncidence( Incidence * ) ) );
519 519
520 connect( mMonthView, SIGNAL( moveIncidenceSignal( Incidence * ) ), 520 connect( mMonthView, SIGNAL( moveIncidenceSignal( Incidence * ) ),
521 mMainView, SLOT ( moveIncidence( Incidence * ) ) ); 521 mMainView, SLOT ( moveIncidence( Incidence * ) ) );
522 connect( mMonthView, SIGNAL( beamIncidenceSignal( Incidence * ) ), 522 connect( mMonthView, SIGNAL( beamIncidenceSignal( Incidence * ) ),
523 mMainView, SLOT ( beamIncidence( Incidence * ) ) ); 523 mMainView, SLOT ( beamIncidence( Incidence * ) ) );
524 connect( mMonthView, SIGNAL( selectWeekNum( int ) ), 524 connect( mMonthView, SIGNAL( selectWeekNum( int ) ),
525 mMainView->dateNavigator(), SLOT ( selectWeekFromMonthView( int ) ) ); 525 mMainView->dateNavigator(), SLOT ( selectWeekFromMonthView( int ) ) );
526 connect( mMonthView, SIGNAL( selectMonth() ), 526 connect( mMonthView, SIGNAL( selectMonth() ),
527 mMainView->dateNavigator(), SLOT ( selectMonthFromMonthview() ) ); 527 mMainView->dateNavigator(), SLOT ( selectMonthFromMonthview() ) );
528 connect( mMonthView, SIGNAL( showDaySignal( QDate ) ), 528 connect( mMonthView, SIGNAL( showDaySignal( QDate ) ),
529 mMainView, SLOT ( showDay( QDate ) ) ); 529 mMainView, SLOT ( showDay( QDate ) ) );
530 connect(mMainView, SIGNAL(configChanged()), mMonthView, SLOT(updateConfig())); 530 connect(mMainView, SIGNAL(configChanged()), mMonthView, SLOT(updateConfig()));
531 connect( mMonthView, SIGNAL(nextMonth() ), 531 connect( mMonthView, SIGNAL(nextMonth() ),
532 mMonthView->navigatorBar(), SIGNAL(goNextMonth() ) ); 532 mMonthView->navigatorBar(), SIGNAL(goNextMonth() ) );
533 connect( mMonthView, SIGNAL(prevMonth() ), 533 connect( mMonthView, SIGNAL(prevMonth() ),
534 mMonthView->navigatorBar(), SIGNAL(goPrevMonth() ) ); 534 mMonthView->navigatorBar(), SIGNAL(goPrevMonth() ) );
535 connect( mMonthView->navigatorBar(), SIGNAL( goPrevYear() ), 535 connect( mMonthView->navigatorBar(), SIGNAL( goPrevYear() ),
536 mMainView->dateNavigator(), SLOT( selectPreviousYear() ) ); 536 mMainView->dateNavigator(), SLOT( selectPreviousYear() ) );
537 connect( mMonthView->navigatorBar(), SIGNAL( goNextYear() ), 537 connect( mMonthView->navigatorBar(), SIGNAL( goNextYear() ),
538 mMainView->dateNavigator(), SLOT( selectNextYear() ) ); 538 mMainView->dateNavigator(), SLOT( selectNextYear() ) );
539 connect( mMonthView->navigatorBar(), SIGNAL( goPrevMonth() ), 539 connect( mMonthView->navigatorBar(), SIGNAL( goPrevMonth() ),
540 mMainView->dateNavigator(), SLOT( selectPreviousMonth() ) ); 540 mMainView->dateNavigator(), SLOT( selectPreviousMonth() ) );
541 connect( mMonthView->navigatorBar(), SIGNAL( goNextMonth() ), 541 connect( mMonthView->navigatorBar(), SIGNAL( goNextMonth() ),
542 mMainView->dateNavigator(), SLOT( selectNextMonth() ) ); 542 mMainView->dateNavigator(), SLOT( selectNextMonth() ) );
543 connect( mMonthView->navigatorBar(), SIGNAL( goPrevWeek() ), 543 connect( mMonthView->navigatorBar(), SIGNAL( goPrevWeek() ),
544 mMainView->dateNavigator(), SLOT( selectPreviousWeek() ) ); 544 mMainView->dateNavigator(), SLOT( selectPreviousWeek() ) );
545 connect( mMonthView->navigatorBar(), SIGNAL( goNextWeek() ), 545 connect( mMonthView->navigatorBar(), SIGNAL( goNextWeek() ),
546 mMainView->dateNavigator(), SLOT( selectNextWeek() ) ); 546 mMainView->dateNavigator(), SLOT( selectNextWeek() ) );
547 547
548 connect( mMainView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), 548 connect( mMainView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ),
549 mMonthView->navigatorBar(), SLOT( selectDates( const KCal::DateList & ) ) ); 549 mMonthView->navigatorBar(), SLOT( selectDates( const KCal::DateList & ) ) );
550 550
551 551
552 connect( mMonthView->navigatorBar(), SIGNAL( monthSelected ( int ) ), 552 connect( mMonthView->navigatorBar(), SIGNAL( monthSelected ( int ) ),
553 mMainView->dateNavigator(), SLOT( slotMonthSelect( int ) ) ); 553 mMainView->dateNavigator(), SLOT( slotMonthSelect( int ) ) );
554 554
555 } 555 }
556} 556}
557void KOViewManager::showMonthViewWeek() 557void KOViewManager::showMonthViewWeek()
558{ 558{
559 createMonthView(); 559 createMonthView();
560 globalFlagBlockAgenda = 1;
560 bool full = true; 561 bool full = true;
561 if ( mCurrentView == mMonthView) 562 if ( mCurrentView == mMonthView)
562 full = mMainView->leftFrame()->isVisible(); 563 full = mMainView->leftFrame()->isVisible();
563 if ( !KOPrefs::instance()->mMonthViewWeek ) { 564 if ( !KOPrefs::instance()->mMonthViewWeek ) {
564 mMonthView->switchView(); 565 mMonthView->switchView();
565 if ( KOPrefs::instance()->mViewChangeHoldNonFullscreen && mMainView->leftFrame()->isVisible() ) 566 if ( KOPrefs::instance()->mViewChangeHoldNonFullscreen && mMainView->leftFrame()->isVisible() )
566 full = false; 567 full = false;
567 else 568 else
568 full = true; 569 full = true;
569 } 570 }
570 mMainView->dateNavigator()->selectWeek(); 571 mMainView->dateNavigator()->selectWeek();
571 showView(mMonthView, full ); 572 showView(mMonthView, full );
572} 573}
573 574
574void KOViewManager::showMonthView() 575void KOViewManager::showMonthView()
575 { 576 {
576 577
577 createMonthView(); 578 createMonthView();
578 globalFlagBlockAgenda = 1; 579 globalFlagBlockAgenda = 1;
579 //mFlagShowNextxDays = false; 580 //mFlagShowNextxDays = false;
580 bool full = true; 581 bool full = true;
581 if ( mCurrentView == mMonthView) 582 if ( mCurrentView == mMonthView)
582 full = mMainView->leftFrame()->isVisible(); 583 full = mMainView->leftFrame()->isVisible();
583 // if(mMonthView == mCurrentView) return; 584 // if(mMonthView == mCurrentView) return;
584 if ( KOPrefs::instance()->mMonthViewWeek ) { 585 if ( KOPrefs::instance()->mMonthViewWeek ) {
585 mMonthView->switchView(); 586 mMonthView->switchView();
586 if ( KOPrefs::instance()->mViewChangeHoldNonFullscreen && mMainView->leftFrame()->isVisible() ) 587 if ( KOPrefs::instance()->mViewChangeHoldNonFullscreen && mMainView->leftFrame()->isVisible() )
587 full = false; 588 full = false;
588 else 589 else
589 full = true; 590 full = true;
590 } 591 }
591 mMainView->dateNavigator()->selectMonth(); 592 mMainView->dateNavigator()->selectMonth();
592 593
593 showView(mMonthView, full ); 594 showView(mMonthView, full );
594 595
595} 596}
596 597
597void KOViewManager::showTodoView() 598void KOViewManager::showTodoView()
598{ 599{
599 //mFlagShowNextxDays = false; 600 //mFlagShowNextxDays = false;
600 if ( !mTodoView ) { 601 if ( !mTodoView ) {
601 mTodoView = new KOTodoView( mMainView->calendar(), mMainView->viewStack(), 602 mTodoView = new KOTodoView( mMainView->calendar(), mMainView->viewStack(),
602 "KOViewManager::TodoView" ); 603 "KOViewManager::TodoView" );
603 604
604 addView( mTodoView ); 605 addView( mTodoView );
605 // QPEApplication::setStylusOperation( mTodoView, QPEApplication::RightOnHold ); 606 // QPEApplication::setStylusOperation( mTodoView, QPEApplication::RightOnHold );
606 607
607 // SIGNALS/SLOTS FOR TODO VIEW 608 // SIGNALS/SLOTS FOR TODO VIEW
608 connect( mTodoView, SIGNAL( newTodoSignal() ), 609 connect( mTodoView, SIGNAL( newTodoSignal() ),
609 mMainView, SLOT( newTodo() ) ); 610 mMainView, SLOT( newTodo() ) );
610 connect( mTodoView, SIGNAL( newSubTodoSignal( Todo * ) ), 611 connect( mTodoView, SIGNAL( newSubTodoSignal( Todo * ) ),
611 mMainView, SLOT( newSubTodo( Todo *) ) ); 612 mMainView, SLOT( newSubTodo( Todo *) ) );
612 connect( mTodoView, SIGNAL( showTodoSignal( Todo *) ), 613 connect( mTodoView, SIGNAL( showTodoSignal( Todo *) ),
613 mMainView, SLOT( showTodo( Todo * ) ) ); 614 mMainView, SLOT( showTodo( Todo * ) ) );
614 connect( mTodoView, SIGNAL( editTodoSignal( Todo * ) ), 615 connect( mTodoView, SIGNAL( editTodoSignal( Todo * ) ),
615 mMainView, SLOT( editTodo( Todo * ) ) ); 616 mMainView, SLOT( editTodo( Todo * ) ) );
616 connect( mTodoView, SIGNAL( deleteTodoSignal( Todo * ) ), 617 connect( mTodoView, SIGNAL( deleteTodoSignal( Todo * ) ),
617 mMainView, SLOT( deleteTodo( Todo * ) ) ); 618 mMainView, SLOT( deleteTodo( Todo * ) ) );
618 connect( mTodoView, SIGNAL( purgeCompletedSignal() ), 619 connect( mTodoView, SIGNAL( purgeCompletedSignal() ),
619 mMainView, SLOT( purgeCompleted() ) ); 620 mMainView, SLOT( purgeCompleted() ) );
620 621
621 connect( mTodoView, SIGNAL( incidenceSelected( Incidence * ) ), 622 connect( mTodoView, SIGNAL( incidenceSelected( Incidence * ) ),
622 mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); 623 mMainView, SLOT( processMainViewSelection( Incidence * ) ) );
623 624
624 connect( mMainView, SIGNAL( configChanged() ), mTodoView, 625 connect( mMainView, SIGNAL( configChanged() ), mTodoView,
625 SLOT( updateConfig() ) ); 626 SLOT( updateConfig() ) );
626 connect( mMainView, SIGNAL( todoModified( Todo *, int )), mTodoView, 627 connect( mMainView, SIGNAL( todoModified( Todo *, int )), mTodoView,
627 SLOT( updateTodo( Todo *, int ) ) ); 628 SLOT( updateTodo( Todo *, int ) ) );
628 connect( mTodoView, SIGNAL( todoModifiedSignal( Todo *, int ) ), 629 connect( mTodoView, SIGNAL( todoModifiedSignal( Todo *, int ) ),
629 mMainView, SIGNAL ( todoModified( Todo *, int ) ) ); 630 mMainView, SIGNAL ( todoModified( Todo *, int ) ) );
630 connect( mTodoView, SIGNAL( cloneTodoSignal( Incidence * ) ), 631 connect( mTodoView, SIGNAL( cloneTodoSignal( Incidence * ) ),
631 mMainView, SLOT ( cloneIncidence( Incidence * ) ) ); 632 mMainView, SLOT ( cloneIncidence( Incidence * ) ) );
632 connect( mTodoView, SIGNAL( cancelTodoSignal( Incidence * ) ), 633 connect( mTodoView, SIGNAL( cancelTodoSignal( Incidence * ) ),
633 mMainView, SLOT ( cancelIncidence( Incidence * ) ) ); 634 mMainView, SLOT ( cancelIncidence( Incidence * ) ) );
634 connect( mTodoView, SIGNAL( unparentTodoSignal( Todo * ) ), 635 connect( mTodoView, SIGNAL( unparentTodoSignal( Todo * ) ),
635 mMainView, SLOT ( todo_unsub( Todo * ) ) ); 636 mMainView, SLOT ( todo_unsub( Todo * ) ) );
636 connect( mTodoView, SIGNAL( reparentTodoSignal( Todo *,Todo * ) ), 637 connect( mTodoView, SIGNAL( reparentTodoSignal( Todo *,Todo * ) ),
637 mMainView, SLOT ( todo_resub( Todo *, Todo *) ) ); 638 mMainView, SLOT ( todo_resub( Todo *, Todo *) ) );
638 connect( mTodoView, SIGNAL( moveTodoSignal( Incidence * ) ), 639 connect( mTodoView, SIGNAL( moveTodoSignal( Incidence * ) ),
639 mMainView, SLOT ( moveIncidence( Incidence * ) ) ); 640 mMainView, SLOT ( moveIncidence( Incidence * ) ) );
640 connect( mTodoView, SIGNAL( beamTodoSignal( Incidence * ) ), 641 connect( mTodoView, SIGNAL( beamTodoSignal( Incidence * ) ),
641 mMainView, SLOT ( beamIncidence( Incidence * ) ) ); 642 mMainView, SLOT ( beamIncidence( Incidence * ) ) );
642 KConfig *config = KOGlobals::config(); 643 KConfig *config = KOGlobals::config();
643 mTodoView->restoreLayout(config,"Todo View"); 644 mTodoView->restoreLayout(config,"Todo View");
644 mTodoView->setNavigator( mMainView->dateNavigator() ); 645 mTodoView->setNavigator( mMainView->dateNavigator() );
645 } 646 }
646 647
647 globalFlagBlockAgenda = 1; 648 globalFlagBlockAgenda = 1;
648 showView( mTodoView, true ); 649 showView( mTodoView, true );
649 650
650} 651}
651 652
652void KOViewManager::showJournalView() 653void KOViewManager::showJournalView()
653{ 654{
654 //mFlagShowNextxDays = false; 655 //mFlagShowNextxDays = false;
655 if (!mJournalView) { 656 if (!mJournalView) {