-rw-r--r-- | bin/kdepim/WhatsNew.txt | 3 | ||||
-rw-r--r-- | korganizer/calendarview.cpp | 2 | ||||
-rw-r--r-- | korganizer/koeventviewerdialog.cpp | 20 | ||||
-rw-r--r-- | korganizer/koeventviewerdialog.h | 1 | ||||
-rw-r--r-- | korganizer/koviewmanager.h | 2 |
5 files changed, 25 insertions, 3 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 5be1d28..da33d12 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,55 +1,58 @@ | |||
1 | Info about the changes in new versions of KDE-Pim/Pi | 1 | Info about the changes in new versions of KDE-Pim/Pi |
2 | 2 | ||
3 | ********** VERSION 1.9.17 ************ | 3 | ********** VERSION 1.9.17 ************ |
4 | 4 | ||
5 | KO/Pi: | 5 | KO/Pi: |
6 | Fixed that tooltips were not updated after moving an item in agenda view. | 6 | Fixed that tooltips were not updated after moving an item in agenda view. |
7 | Fixed a bug in sorting start date for recurring events in list view. | 7 | Fixed a bug in sorting start date for recurring events in list view. |
8 | Changed the left button in todo viewer from "Agenda" to "Set completed". | ||
9 | This makes it possible to change a todo in the What's Next View quickly to the completed state without leaving the What's Next View. | ||
10 | |||
8 | 11 | ||
9 | KA/Pi: | 12 | KA/Pi: |
10 | All fields search does now actually search all the (possible) fields, | 13 | All fields search does now actually search all the (possible) fields, |
11 | not only those listed in the contact list. | 14 | not only those listed in the contact list. |
12 | Made is possible to inline a picture in a vcard on the Z. | 15 | Made is possible to inline a picture in a vcard on the Z. |
13 | This was only possible on the desktop, now is it possible on the Z as well. | 16 | This was only possible on the desktop, now is it possible on the Z as well. |
14 | Fixed of missing save settings after filter configuration. | 17 | Fixed of missing save settings after filter configuration. |
15 | Made saving of addressbook much faster. | 18 | Made saving of addressbook much faster. |
16 | Fixed extension widget layout problem. | 19 | Fixed extension widget layout problem. |
17 | Fixed saving of default formatted name settings. | 20 | Fixed saving of default formatted name settings. |
18 | Fixed formatted name handling in edit dialog. | 21 | Fixed formatted name handling in edit dialog. |
19 | Added an option for changing formatted names of many contacts | 22 | Added an option for changing formatted names of many contacts |
20 | (menu: File - Change - Set formatted name). | 23 | (menu: File - Change - Set formatted name). |
21 | 24 | ||
22 | QWhatsThis was not working on the Z ( only black rectangle was shown). | 25 | QWhatsThis was not working on the Z ( only black rectangle was shown). |
23 | This is Fixed. | 26 | This is Fixed. |
24 | 27 | ||
25 | KDE-Sync: | 28 | KDE-Sync: |
26 | Now readonly KDE resources are synced as well. | 29 | Now readonly KDE resources are synced as well. |
27 | (They are not changed in KDE itself, of course). | 30 | (They are not changed in KDE itself, of course). |
28 | 31 | ||
29 | 32 | ||
30 | 33 | ||
31 | ********** VERSION 1.9.16 ************ | 34 | ********** VERSION 1.9.16 ************ |
32 | 35 | ||
33 | KO/Pi: | 36 | KO/Pi: |
34 | Fixed search dialog size on Z 6000 (480x640 display). | 37 | Fixed search dialog size on Z 6000 (480x640 display). |
35 | Added setting to hide/show time in agenda items. | 38 | Added setting to hide/show time in agenda items. |
36 | Added setting to hide not running todos in todo view. | 39 | Added setting to hide not running todos in todo view. |
37 | Added columns for start date/time in todo view. | 40 | Added columns for start date/time in todo view. |
38 | Replaced the solid half-hour lines in agenda view by dot lines. | 41 | Replaced the solid half-hour lines in agenda view by dot lines. |
39 | Added possibility of printing the What's Next View on the desktop | 42 | Added possibility of printing the What's Next View on the desktop |
40 | (i.e. Windows and Linux). | 43 | (i.e. Windows and Linux). |
41 | Fixed a crash in KO/Pi when starting KO/Pi with What's Next view. | 44 | Fixed a crash in KO/Pi when starting KO/Pi with What's Next view. |
42 | Added tooltips in month view.(Tooltips only available on desktop) | 45 | Added tooltips in month view.(Tooltips only available on desktop) |
43 | 46 | ||
44 | Fixed a strange problem in KO/Pi alarm applet. | 47 | Fixed a strange problem in KO/Pi alarm applet. |
45 | Did not find the actual problem, | 48 | Did not find the actual problem, |
46 | such that now Qtopia reboots again if deinstalling the alarm applet. | 49 | such that now Qtopia reboots again if deinstalling the alarm applet. |
47 | But the alarm applet should work again. | 50 | But the alarm applet should work again. |
48 | 51 | ||
49 | KA/Pi: | 52 | KA/Pi: |
50 | Fixed the problem, that internal pictures were not saved. | 53 | Fixed the problem, that internal pictures were not saved. |
51 | 54 | ||
52 | Fixed a problem in the pi-sync mode by increasing the timeout for data transfer from 20 seconds to 5 minutes. | 55 | Fixed a problem in the pi-sync mode by increasing the timeout for data transfer from 20 seconds to 5 minutes. |
53 | 56 | ||
54 | Fixed some minor problems. (Like word wrap in help text windows). | 57 | Fixed some minor problems. (Like word wrap in help text windows). |
55 | 58 | ||
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 363dc32..378c7d4 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -2681,96 +2681,98 @@ void CalendarView::newFloatingEvent() | |||
2681 | QDate date = tmpList.first(); | 2681 | QDate date = tmpList.first(); |
2682 | 2682 | ||
2683 | newEvent( QDateTime( date, QTime( 12, 0, 0 ) ), | 2683 | newEvent( QDateTime( date, QTime( 12, 0, 0 ) ), |
2684 | QDateTime( date, QTime( 12, 0, 0 ) ), true ); | 2684 | QDateTime( date, QTime( 12, 0, 0 ) ), true ); |
2685 | } | 2685 | } |
2686 | 2686 | ||
2687 | 2687 | ||
2688 | void CalendarView::editEvent( Event *event ) | 2688 | void CalendarView::editEvent( Event *event ) |
2689 | { | 2689 | { |
2690 | 2690 | ||
2691 | if ( !event ) return; | 2691 | if ( !event ) return; |
2692 | if ( event->isReadOnly() ) { | 2692 | if ( event->isReadOnly() ) { |
2693 | showEvent( event ); | 2693 | showEvent( event ); |
2694 | return; | 2694 | return; |
2695 | } | 2695 | } |
2696 | showEventEditor(); | 2696 | showEventEditor(); |
2697 | mEventEditor->editEvent( event , mFlagEditDescription); | 2697 | mEventEditor->editEvent( event , mFlagEditDescription); |
2698 | } | 2698 | } |
2699 | void CalendarView::editJournal( Journal *jour ) | 2699 | void CalendarView::editJournal( Journal *jour ) |
2700 | { | 2700 | { |
2701 | if ( !jour ) return; | 2701 | if ( !jour ) return; |
2702 | mDialogManager->hideSearchDialog(); | 2702 | mDialogManager->hideSearchDialog(); |
2703 | mViewManager->showJournalView(); | 2703 | mViewManager->showJournalView(); |
2704 | mNavigator->slotDaySelect( jour->dtStart().date() ); | 2704 | mNavigator->slotDaySelect( jour->dtStart().date() ); |
2705 | } | 2705 | } |
2706 | void CalendarView::editTodo( Todo *todo ) | 2706 | void CalendarView::editTodo( Todo *todo ) |
2707 | { | 2707 | { |
2708 | if ( !todo ) return; | 2708 | if ( !todo ) return; |
2709 | 2709 | ||
2710 | if ( todo->isReadOnly() ) { | 2710 | if ( todo->isReadOnly() ) { |
2711 | showTodo( todo ); | 2711 | showTodo( todo ); |
2712 | return; | 2712 | return; |
2713 | } | 2713 | } |
2714 | showTodoEditor(); | 2714 | showTodoEditor(); |
2715 | mTodoEditor->editTodo( todo ,mFlagEditDescription); | 2715 | mTodoEditor->editTodo( todo ,mFlagEditDescription); |
2716 | 2716 | ||
2717 | } | 2717 | } |
2718 | 2718 | ||
2719 | KOEventViewerDialog* CalendarView::getEventViewerDialog() | 2719 | KOEventViewerDialog* CalendarView::getEventViewerDialog() |
2720 | { | 2720 | { |
2721 | if ( !mEventViewerDialog ) { | 2721 | if ( !mEventViewerDialog ) { |
2722 | mEventViewerDialog = new KOEventViewerDialog(this); | 2722 | mEventViewerDialog = new KOEventViewerDialog(this); |
2723 | connect( mEventViewerDialog, SIGNAL( editIncidence( Incidence* )), this, SLOT(editIncidence( Incidence* ) ) ); | 2723 | connect( mEventViewerDialog, SIGNAL( editIncidence( Incidence* )), this, SLOT(editIncidence( Incidence* ) ) ); |
2724 | connect( this, SIGNAL(configChanged()), mEventViewerDialog, SLOT(updateConfig())); | 2724 | connect( this, SIGNAL(configChanged()), mEventViewerDialog, SLOT(updateConfig())); |
2725 | connect( mEventViewerDialog, SIGNAL(jumpToTime( const QDate &)), | 2725 | connect( mEventViewerDialog, SIGNAL(jumpToTime( const QDate &)), |
2726 | dateNavigator(), SLOT( selectWeek( const QDate & ) ) ); | 2726 | dateNavigator(), SLOT( selectWeek( const QDate & ) ) ); |
2727 | connect( mEventViewerDialog, SIGNAL(showAgendaView( bool ) ), | 2727 | connect( mEventViewerDialog, SIGNAL(showAgendaView( bool ) ), |
2728 | viewManager(), SLOT( showAgendaView( bool ) ) ); | 2728 | viewManager(), SLOT( showAgendaView( bool ) ) ); |
2729 | connect( mEventViewerDialog, SIGNAL( todoCompleted(Todo *) ), | ||
2730 | this, SLOT( todoChanged(Todo *) ) ); | ||
2729 | mEventViewerDialog->resize( 640, 480 ); | 2731 | mEventViewerDialog->resize( 640, 480 ); |
2730 | 2732 | ||
2731 | } | 2733 | } |
2732 | return mEventViewerDialog; | 2734 | return mEventViewerDialog; |
2733 | } | 2735 | } |
2734 | void CalendarView::showEvent(Event *event) | 2736 | void CalendarView::showEvent(Event *event) |
2735 | { | 2737 | { |
2736 | getEventViewerDialog()->setEvent(event); | 2738 | getEventViewerDialog()->setEvent(event); |
2737 | getEventViewerDialog()->showMe(); | 2739 | getEventViewerDialog()->showMe(); |
2738 | } | 2740 | } |
2739 | 2741 | ||
2740 | void CalendarView::showTodo(Todo *event) | 2742 | void CalendarView::showTodo(Todo *event) |
2741 | { | 2743 | { |
2742 | getEventViewerDialog()->setTodo(event); | 2744 | getEventViewerDialog()->setTodo(event); |
2743 | getEventViewerDialog()->showMe(); | 2745 | getEventViewerDialog()->showMe(); |
2744 | } | 2746 | } |
2745 | void CalendarView::showJournal( Journal *jour ) | 2747 | void CalendarView::showJournal( Journal *jour ) |
2746 | { | 2748 | { |
2747 | getEventViewerDialog()->setJournal(jour); | 2749 | getEventViewerDialog()->setJournal(jour); |
2748 | getEventViewerDialog()->showMe(); | 2750 | getEventViewerDialog()->showMe(); |
2749 | 2751 | ||
2750 | } | 2752 | } |
2751 | // void CalendarView::todoModified (Todo *event, int changed) | 2753 | // void CalendarView::todoModified (Todo *event, int changed) |
2752 | // { | 2754 | // { |
2753 | // // if (mDialogList.find (event) != mDialogList.end ()) { | 2755 | // // if (mDialogList.find (event) != mDialogList.end ()) { |
2754 | // // kdDebug() << "Todo modified and open" << endl; | 2756 | // // kdDebug() << "Todo modified and open" << endl; |
2755 | // // KOTodoEditor* temp = (KOTodoEditor *) mDialogList[event]; | 2757 | // // KOTodoEditor* temp = (KOTodoEditor *) mDialogList[event]; |
2756 | // // temp->modified (changed); | 2758 | // // temp->modified (changed); |
2757 | 2759 | ||
2758 | // // } | 2760 | // // } |
2759 | 2761 | ||
2760 | // mViewManager->updateView(); | 2762 | // mViewManager->updateView(); |
2761 | // } | 2763 | // } |
2762 | 2764 | ||
2763 | void CalendarView::appointment_show() | 2765 | void CalendarView::appointment_show() |
2764 | { | 2766 | { |
2765 | Event *anEvent = 0; | 2767 | Event *anEvent = 0; |
2766 | 2768 | ||
2767 | Incidence *incidence = mViewManager->currentView()->selectedIncidences().first(); | 2769 | Incidence *incidence = mViewManager->currentView()->selectedIncidences().first(); |
2768 | 2770 | ||
2769 | if (mViewManager->currentView()->isEventView()) { | 2771 | if (mViewManager->currentView()->isEventView()) { |
2770 | if ( incidence && incidence->type() == "Event" ) { | 2772 | if ( incidence && incidence->type() == "Event" ) { |
2771 | anEvent = static_cast<Event *>(incidence); | 2773 | anEvent = static_cast<Event *>(incidence); |
2772 | } | 2774 | } |
2773 | } | 2775 | } |
2774 | 2776 | ||
2775 | if (!anEvent) { | 2777 | if (!anEvent) { |
2776 | KNotifyClient::beep(); | 2778 | KNotifyClient::beep(); |
diff --git a/korganizer/koeventviewerdialog.cpp b/korganizer/koeventviewerdialog.cpp index 68c0e1a..772fd95 100644 --- a/korganizer/koeventviewerdialog.cpp +++ b/korganizer/koeventviewerdialog.cpp | |||
@@ -104,137 +104,153 @@ int KOEventViewerDialog::executeS( bool local ) | |||
104 | { | 104 | { |
105 | mSyncResult = 3; | 105 | mSyncResult = 3; |
106 | if ( local ) | 106 | if ( local ) |
107 | findButton( User1 )->setFocus(); | 107 | findButton( User1 )->setFocus(); |
108 | else | 108 | else |
109 | findButton( Ok )->setFocus(); | 109 | findButton( Ok )->setFocus(); |
110 | exec(); | 110 | exec(); |
111 | return mSyncResult; | 111 | return mSyncResult; |
112 | } | 112 | } |
113 | 113 | ||
114 | void KOEventViewerDialog::updateConfig() | 114 | void KOEventViewerDialog::updateConfig() |
115 | { | 115 | { |
116 | mEventViewer->setFont( KOPrefs::instance()->mEventViewFont ); | 116 | mEventViewer->setFont( KOPrefs::instance()->mEventViewFont ); |
117 | 117 | ||
118 | } | 118 | } |
119 | void KOEventViewerDialog::setEvent(Event *event) | 119 | void KOEventViewerDialog::setEvent(Event *event) |
120 | { | 120 | { |
121 | mEventViewer->setEvent(event); | 121 | mEventViewer->setEvent(event); |
122 | mIncidence = event; | 122 | mIncidence = event; |
123 | findButton( Close )->setFocus(); | 123 | findButton( Close )->setFocus(); |
124 | } | 124 | } |
125 | void KOEventViewerDialog::setIncidence(Incidence *in ) | 125 | void KOEventViewerDialog::setIncidence(Incidence *in ) |
126 | { | 126 | { |
127 | if ( in->type() == "Event" ) | 127 | if ( in->type() == "Event" ) |
128 | setEvent( (Event*) in ); | 128 | setEvent( (Event*) in ); |
129 | else if ( in->type() =="Todo" ) | 129 | else if ( in->type() =="Todo" ) |
130 | setTodo( (Todo*) in ); | 130 | setTodo( (Todo*) in ); |
131 | else if ( in->type() =="Journal" ) | 131 | else if ( in->type() =="Journal" ) |
132 | setJournal( (Journal*) in ); | 132 | setJournal( (Journal*) in ); |
133 | } | 133 | } |
134 | void KOEventViewerDialog::addIncidence(Incidence *in) | 134 | void KOEventViewerDialog::addIncidence(Incidence *in) |
135 | { | 135 | { |
136 | if ( in->type() == "Event" ) | 136 | if ( in->type() == "Event" ) |
137 | addEvent( (Event*) in ); | 137 | addEvent( (Event*) in ); |
138 | else if ( in->type() =="Todo" ) | 138 | else if ( in->type() =="Todo" ) |
139 | mEventViewer->setTodo( (Todo*) in, false ); | 139 | mEventViewer->setTodo( (Todo*) in, false ); |
140 | else if ( in->type() =="Journal" ) | 140 | else if ( in->type() =="Journal" ) |
141 | mEventViewer->setJournal( (Journal*) in, false ); | 141 | mEventViewer->setJournal( (Journal*) in, false ); |
142 | if ( mSyncMode ) { | 142 | if ( mSyncMode ) { |
143 | findButton( User1 )->setFocus(); | 143 | findButton( User1 )->setFocus(); |
144 | setCaption(i18n("Conflict! Please choose entry")); | 144 | setCaption(i18n("Conflict! Please choose entry")); |
145 | } | 145 | } |
146 | } | 146 | } |
147 | 147 | ||
148 | void KOEventViewerDialog::addEvent(Event *event) | 148 | void KOEventViewerDialog::addEvent(Event *event) |
149 | { | 149 | { |
150 | mEventViewer->addEvent(event); | 150 | mEventViewer->addEvent(event); |
151 | mIncidence = event; | 151 | mIncidence = event; |
152 | findButton( Close )->setFocus(); | 152 | findButton( Close )->setFocus(); |
153 | if ( !mSyncMode ) { | ||
154 | findButton( User1 )->setText( i18n("Agenda")); | ||
155 | } | ||
153 | } | 156 | } |
154 | 157 | ||
155 | void KOEventViewerDialog::setTodo(Todo *event) | 158 | void KOEventViewerDialog::setTodo(Todo *event) |
156 | { | 159 | { |
157 | mEventViewer->setTodo(event); | 160 | mEventViewer->setTodo(event); |
158 | mIncidence = (Incidence*)event; | 161 | mIncidence = (Incidence*)event; |
159 | findButton( Close )->setFocus(); | 162 | findButton( Close )->setFocus(); |
163 | if ( !mSyncMode ) { | ||
164 | findButton( User1 )->setText( i18n("Set complete")); | ||
165 | } | ||
160 | } | 166 | } |
161 | void KOEventViewerDialog::setJournal(Journal *j) | 167 | void KOEventViewerDialog::setJournal(Journal *j) |
162 | { | 168 | { |
163 | mEventViewer->setJournal(j); | 169 | mEventViewer->setJournal(j); |
164 | mIncidence = (Incidence*)j; | 170 | mIncidence = (Incidence*)j; |
165 | findButton( Close )->setFocus(); | 171 | findButton( Close )->setFocus(); |
172 | if ( !mSyncMode ) { | ||
173 | findButton( User1 )->setText( i18n("Agenda")); | ||
174 | } | ||
166 | } | 175 | } |
167 | 176 | ||
168 | void KOEventViewerDialog::addText(QString text) | 177 | void KOEventViewerDialog::addText(QString text) |
169 | { | 178 | { |
170 | mEventViewer->addText(text); | 179 | mEventViewer->addText(text); |
171 | findButton( Close )->setFocus(); | 180 | findButton( Close )->setFocus(); |
172 | } | 181 | } |
173 | void KOEventViewerDialog::editIncidence() | 182 | void KOEventViewerDialog::editIncidence() |
174 | { | 183 | { |
175 | if ( mSyncMode ) { | 184 | if ( mSyncMode ) { |
176 | mSyncResult = 2; | 185 | mSyncResult = 2; |
177 | accept(); | 186 | accept(); |
178 | return; | 187 | return; |
179 | } | 188 | } |
180 | if ( mIncidence ){ | 189 | if ( mIncidence ){ |
181 | #ifndef DESKTOP_VERSION | 190 | #ifndef DESKTOP_VERSION |
182 | hide(); | 191 | hide(); |
183 | #endif | 192 | #endif |
184 | emit editIncidence( mIncidence ); | 193 | emit editIncidence( mIncidence ); |
185 | } | 194 | } |
186 | } | 195 | } |
187 | void KOEventViewerDialog::showIncidence() | 196 | void KOEventViewerDialog::showIncidence() |
188 | { | 197 | { |
189 | 198 | ||
190 | if ( mSyncMode ) { | 199 | if ( mSyncMode ) { |
191 | mSyncResult = 1; | 200 | mSyncResult = 1; |
192 | accept(); | 201 | accept(); |
193 | return; | 202 | return; |
194 | } | 203 | } |
195 | 204 | ||
196 | if ( mIncidence ){ | 205 | if ( mIncidence ){ |
197 | #ifndef DESKTOP_VERSION | 206 | #ifndef DESKTOP_VERSION |
198 | hide(); | 207 | hide(); |
199 | #endif | 208 | #endif |
200 | QDate date; | 209 | QDate date; |
201 | if ( mIncidence->type() == "Todo" ) { | 210 | if ( mIncidence->type() == "Todo" ) { |
211 | /* | ||
202 | if ( ((Todo*)mIncidence)->hasDueDate() ) | 212 | if ( ((Todo*)mIncidence)->hasDueDate() ) |
203 | date = ((Todo*)mIncidence)->dtDue().date(); | 213 | date = ((Todo*)mIncidence)->dtDue().date(); |
204 | else { | 214 | else { |
205 | globalFlagBlockAgenda = 2; | 215 | globalFlagBlockAgenda = 2; |
206 | emit showAgendaView( false ); | 216 | emit showAgendaView( false ); |
207 | return; | 217 | return; |
208 | } | 218 | } |
219 | */ | ||
220 | ((Todo*)mIncidence)->setCompleted( true ); | ||
221 | hide(); | ||
222 | emit todoCompleted(((Todo*)mIncidence)); | ||
223 | return; | ||
224 | |||
209 | } else | 225 | } else |
210 | date = mIncidence->dtStart().date(); | 226 | date = mIncidence->dtStart().date(); |
211 | globalFlagBlockAgenda = 1; | 227 | globalFlagBlockAgenda = 1; |
212 | emit showAgendaView( false ); | 228 | emit showAgendaView( false ); |
213 | globalFlagBlockAgenda = 2; | 229 | globalFlagBlockAgenda = 2; |
214 | emit jumpToTime( date ); | 230 | emit jumpToTime( date ); |
215 | } | 231 | } |
216 | } | 232 | } |
217 | void KOEventViewerDialog::keyPressEvent ( QKeyEvent * e ) | 233 | void KOEventViewerDialog::keyPressEvent ( QKeyEvent * e ) |
218 | { | 234 | { |
219 | switch ( e->key() ) { | 235 | switch ( e->key() ) { |
220 | 236 | ||
221 | case Qt::Key_A : | 237 | case Qt::Key_A : |
222 | case Qt::Key_L : | 238 | case Qt::Key_L : |
223 | showIncidence(); | 239 | showIncidence(); |
224 | break; | 240 | break; |
225 | case Qt::Key_E : | 241 | case Qt::Key_E : |
226 | case Qt::Key_R : | 242 | case Qt::Key_R : |
227 | editIncidence(); | 243 | editIncidence(); |
228 | break; | 244 | break; |
229 | case Qt::Key_C: | 245 | case Qt::Key_C: |
230 | case Qt::Key_Escape: | 246 | case Qt::Key_Escape: |
231 | close(); | 247 | close(); |
232 | break; | 248 | break; |
233 | case Qt::Key_I: | 249 | case Qt::Key_I: |
234 | accept(); | 250 | accept(); |
235 | break; | 251 | break; |
236 | default: | 252 | default: |
237 | break; | 253 | break; |
238 | } | 254 | } |
239 | 255 | ||
240 | } | 256 | } |
diff --git a/korganizer/koeventviewerdialog.h b/korganizer/koeventviewerdialog.h index 21cb3ee..b6b4103 100644 --- a/korganizer/koeventviewerdialog.h +++ b/korganizer/koeventviewerdialog.h | |||
@@ -10,61 +10,62 @@ | |||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | */ | 18 | */ |
19 | #ifndef KOEVENTVIEWERDIALOG_H | 19 | #ifndef KOEVENTVIEWERDIALOG_H |
20 | #define KOEVENTVIEWERDIALOG_H | 20 | #define KOEVENTVIEWERDIALOG_H |
21 | // | 21 | // |
22 | // Viewer dialog for events. | 22 | // Viewer dialog for events. |
23 | // | 23 | // |
24 | 24 | ||
25 | #include <qtextview.h> | 25 | #include <qtextview.h> |
26 | 26 | ||
27 | #include <kdialogbase.h> | 27 | #include <kdialogbase.h> |
28 | 28 | ||
29 | #include <libkcal/event.h> | 29 | #include <libkcal/event.h> |
30 | 30 | ||
31 | using namespace KCal; | 31 | using namespace KCal; |
32 | 32 | ||
33 | class KOEventViewer; | 33 | class KOEventViewer; |
34 | 34 | ||
35 | class KOEventViewerDialog : public KDialogBase { | 35 | class KOEventViewerDialog : public KDialogBase { |
36 | Q_OBJECT | 36 | Q_OBJECT |
37 | public: | 37 | public: |
38 | KOEventViewerDialog(QWidget *parent=0,const char *name=0); | 38 | KOEventViewerDialog(QWidget *parent=0,const char *name=0); |
39 | virtual ~KOEventViewerDialog(); | 39 | virtual ~KOEventViewerDialog(); |
40 | 40 | ||
41 | void setEvent(Event *event); | 41 | void setEvent(Event *event); |
42 | void addEvent(Event *event); | 42 | void addEvent(Event *event); |
43 | void setTodo(Todo *event); | 43 | void setTodo(Todo *event); |
44 | void setJournal(Journal *journal); | 44 | void setJournal(Journal *journal); |
45 | void setIncidence(Incidence *inc); | 45 | void setIncidence(Incidence *inc); |
46 | void addIncidence(Incidence *inc); | 46 | void addIncidence(Incidence *inc); |
47 | void addText(QString text); | 47 | void addText(QString text); |
48 | void showMe(); | 48 | void showMe(); |
49 | void setSyncMode( bool ); | 49 | void setSyncMode( bool ); |
50 | void setColorMode( int m ); | 50 | void setColorMode( int m ); |
51 | int executeS( bool ); | 51 | int executeS( bool ); |
52 | public slots: | 52 | public slots: |
53 | void updateConfig(); | 53 | void updateConfig(); |
54 | signals: | 54 | signals: |
55 | void editIncidence( Incidence* ); | 55 | void editIncidence( Incidence* ); |
56 | void jumpToTime( const QDate &); | 56 | void jumpToTime( const QDate &); |
57 | void showAgendaView( bool ); | 57 | void showAgendaView( bool ); |
58 | void todoCompleted(Todo*); | ||
58 | private slots: | 59 | private slots: |
59 | void editIncidence(); | 60 | void editIncidence(); |
60 | void showIncidence(); | 61 | void showIncidence(); |
61 | 62 | ||
62 | private: | 63 | private: |
63 | bool mSyncMode; | 64 | bool mSyncMode; |
64 | int mSyncResult; | 65 | int mSyncResult; |
65 | KOEventViewer *mEventViewer; | 66 | KOEventViewer *mEventViewer; |
66 | Incidence* mIncidence; | 67 | Incidence* mIncidence; |
67 | void keyPressEvent ( QKeyEvent * e ); | 68 | void keyPressEvent ( QKeyEvent * e ); |
68 | }; | 69 | }; |
69 | 70 | ||
70 | #endif | 71 | #endif |
diff --git a/korganizer/koviewmanager.h b/korganizer/koviewmanager.h index 6f76e2c..3c251fb 100644 --- a/korganizer/koviewmanager.h +++ b/korganizer/koviewmanager.h | |||
@@ -21,95 +21,95 @@ | |||
21 | with any edition of Qt, and distribute the resulting executable, | 21 | with any edition of Qt, and distribute the resulting executable, |
22 | without including the source code for Qt in the source distribution. | 22 | without including the source code for Qt in the source distribution. |
23 | */ | 23 | */ |
24 | #ifndef KOVIEWMANAGER_H | 24 | #ifndef KOVIEWMANAGER_H |
25 | #define KOVIEWMANAGER_H | 25 | #define KOVIEWMANAGER_H |
26 | 26 | ||
27 | #include <qobject.h> | 27 | #include <qobject.h> |
28 | 28 | ||
29 | #include <korganizer/baseview.h> | 29 | #include <korganizer/baseview.h> |
30 | 30 | ||
31 | class CalendarView; | 31 | class CalendarView; |
32 | 32 | ||
33 | class KOListView; | 33 | class KOListView; |
34 | class KOAgendaView; | 34 | class KOAgendaView; |
35 | class KOMonthView; | 35 | class KOMonthView; |
36 | class KOTimeSpanView; | 36 | class KOTimeSpanView; |
37 | class KOTodoView; | 37 | class KOTodoView; |
38 | class KOWhatsNextView; | 38 | class KOWhatsNextView; |
39 | class KOJournalView; | 39 | class KOJournalView; |
40 | 40 | ||
41 | using namespace KCal; | 41 | using namespace KCal; |
42 | 42 | ||
43 | /** | 43 | /** |
44 | This class manages the views of the calendar. It owns the objects and handles | 44 | This class manages the views of the calendar. It owns the objects and handles |
45 | creation and selection. | 45 | creation and selection. |
46 | */ | 46 | */ |
47 | class KOViewManager : public QObject | 47 | class KOViewManager : public QObject |
48 | { | 48 | { |
49 | Q_OBJECT | 49 | Q_OBJECT |
50 | public: | 50 | public: |
51 | KOViewManager( CalendarView * ); | 51 | KOViewManager( CalendarView * ); |
52 | virtual ~KOViewManager(); | 52 | virtual ~KOViewManager(); |
53 | 53 | ||
54 | /** changes the view to be the currently selected view */ | 54 | /** changes the view to be the currently selected view */ |
55 | void showView(KOrg::BaseView *, bool fullScreen = false ); | 55 | void showView(KOrg::BaseView *, bool fullScreen = false ); |
56 | void updateWNview(); | 56 | void updateWNview(); |
57 | void readSettings(KConfig *config); | 57 | void readSettings(KConfig *config); |
58 | void writeSettings(KConfig *config); | 58 | void writeSettings(KConfig *config); |
59 | bool showsNextDays(); | 59 | bool showsNextDays(); |
60 | /** Read which view was shown last from config file */ | 60 | /** Read which view was shown last from config file */ |
61 | void readCurrentView(KConfig *); | 61 | void readCurrentView(KConfig *); |
62 | /** Write which view is currently shown to config file */ | 62 | /** Write which view is currently shown to config file */ |
63 | void writeCurrentView(KConfig *); | 63 | void writeCurrentView(KConfig *); |
64 | 64 | ||
65 | KOrg::BaseView *currentView(); | 65 | KOrg::BaseView *currentView(); |
66 | 66 | ||
67 | void setDocumentId( const QString & ); | 67 | void setDocumentId( const QString & ); |
68 | 68 | ||
69 | void updateView(); | ||
70 | void updateView( const QDate &start, const QDate &end ); | 69 | void updateView( const QDate &start, const QDate &end ); |
71 | 70 | ||
72 | void raiseCurrentView( bool fullScreen = false ); | 71 | void raiseCurrentView( bool fullScreen = false ); |
73 | 72 | ||
74 | void addView(KOrg::BaseView *); | 73 | void addView(KOrg::BaseView *); |
75 | 74 | ||
76 | Incidence *currentSelection(); | 75 | Incidence *currentSelection(); |
77 | QDate currentSelectionDate(); | 76 | QDate currentSelectionDate(); |
78 | 77 | ||
79 | KOAgendaView *agendaView() const { return mAgendaView; } | 78 | KOAgendaView *agendaView() const { return mAgendaView; } |
80 | 79 | ||
81 | signals: | 80 | signals: |
82 | void printWNV(); | 81 | void printWNV(); |
83 | public slots: | 82 | public slots: |
83 | void updateView(); | ||
84 | void showWhatsNextView(); | 84 | void showWhatsNextView(); |
85 | void showListView(); | 85 | void showListView(); |
86 | void showAgendaView( bool fullScreen = false ); | 86 | void showAgendaView( bool fullScreen = false ); |
87 | void showDayView(); | 87 | void showDayView(); |
88 | void showWorkWeekView(); | 88 | void showWorkWeekView(); |
89 | void showWeekView(); | 89 | void showWeekView(); |
90 | void showNextXView(); | 90 | void showNextXView(); |
91 | void showMonthView(); | 91 | void showMonthView(); |
92 | void showTodoView(); | 92 | void showTodoView(); |
93 | void showJournalView(); | 93 | void showJournalView(); |
94 | void showTimeSpanView(); | 94 | void showTimeSpanView(); |
95 | 95 | ||
96 | private: | 96 | private: |
97 | CalendarView *mMainView; | 97 | CalendarView *mMainView; |
98 | 98 | ||
99 | int mCurrentAgendaView; | 99 | int mCurrentAgendaView; |
100 | KOAgendaView *mAgendaView; | 100 | KOAgendaView *mAgendaView; |
101 | KOListView *mListView; | 101 | KOListView *mListView; |
102 | KOMonthView *mMonthView; | 102 | KOMonthView *mMonthView; |
103 | KOTodoView *mTodoView; | 103 | KOTodoView *mTodoView; |
104 | KOWhatsNextView *mWhatsNextView; | 104 | KOWhatsNextView *mWhatsNextView; |
105 | KOJournalView *mJournalView; | 105 | KOJournalView *mJournalView; |
106 | KOTimeSpanView *mTimeSpanView; | 106 | KOTimeSpanView *mTimeSpanView; |
107 | 107 | ||
108 | KOrg::BaseView *mCurrentView; // currently active event view | 108 | KOrg::BaseView *mCurrentView; // currently active event view |
109 | 109 | ||
110 | int mAgendaViewMode; | 110 | int mAgendaViewMode; |
111 | bool mFlagShowNextxDays; | 111 | bool mFlagShowNextxDays; |
112 | 112 | ||
113 | }; | 113 | }; |
114 | 114 | ||
115 | #endif | 115 | #endif |