-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 2 | ||||
-rw-r--r-- | bin/kdepim/pwmanager/pwmanagerFAQ.txt | 15 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/genericwrapper.cpp | 7 | ||||
-rw-r--r-- | korganizer/koagenda.cpp | 5 | ||||
-rw-r--r-- | korganizer/koagenda.h | 2 | ||||
-rw-r--r-- | korganizer/koagendaview.cpp | 15 | ||||
-rw-r--r-- | korganizer/koagendaview.h | 1 | ||||
-rw-r--r-- | korganizer/komonthview.cpp | 7 | ||||
-rw-r--r-- | korganizer/kotodoview.cpp | 103 | ||||
-rw-r--r-- | korganizer/kotodoview.h | 5 | ||||
-rw-r--r-- | korganizer/koviewmanager.cpp | 4 |
11 files changed, 125 insertions, 41 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index f8f8b96..fbab7dd 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1192,17 +1192,17 @@ | |||
1192 | { "New Agendasize: %1","Neue Agendagröße: %1" }, | 1192 | { "New Agendasize: %1","Neue Agendagröße: %1" }, |
1193 | { " (%1 y.)"," (%1 J.)" }, | 1193 | { " (%1 y.)"," (%1 J.)" }, |
1194 | { "Allday:","Ganztägig:" }, | 1194 | { "Allday:","Ganztägig:" }, |
1195 | { "compl.todos","erled.Todos" }, | 1195 | { "compl.todos","erled.Todos" }, |
1196 | { "Day view","Tagesansicht" }, | 1196 | { "Day view","Tagesansicht" }, |
1197 | { "Next days","Nächste Tage" }, | 1197 | { "Next days","Nächste Tage" }, |
1198 | { "Next week","Nächste Woche" }, | 1198 | { "Next week","Nächste Woche" }, |
1199 | { "Next two weeks","Nächste zwei Wochen" }, | 1199 | { "Next two weeks","Nächste zwei Wochen" }, |
1200 | { "Next month","Nächster Monat" }, | 1200 | { "This month","Dieser Monat" }, |
1201 | { "Journal view","Journal" }, | 1201 | { "Journal view","Journal" }, |
1202 | { "Display all opened","Zeige alle geöffnet" }, | 1202 | { "Display all opened","Zeige alle geöffnet" }, |
1203 | { "Display all closed","Zeige alle geschlossen" }, | 1203 | { "Display all closed","Zeige alle geschlossen" }, |
1204 | { "Display all flat","Zeige alle flach" }, | 1204 | { "Display all flat","Zeige alle flach" }, |
1205 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, | 1205 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, |
1206 | { "Default todo done color:","Standard Todo erledigt Farbe" }, | 1206 | { "Default todo done color:","Standard Todo erledigt Farbe" }, |
1207 | { "Select week %1-%2","Wähle Woche %1-%2" }, | 1207 | { "Select week %1-%2","Wähle Woche %1-%2" }, |
1208 | { "Select Week","Wähle Woche" }, | 1208 | { "Select Week","Wähle Woche" }, |
diff --git a/bin/kdepim/pwmanager/pwmanagerFAQ.txt b/bin/kdepim/pwmanager/pwmanagerFAQ.txt index 15cfd80..b196a77 100644 --- a/bin/kdepim/pwmanager/pwmanagerFAQ.txt +++ b/bin/kdepim/pwmanager/pwmanagerFAQ.txt | |||
@@ -1,12 +1,14 @@ | |||
1 | Q: | 1 | Q: |
2 | What is PWM/Pi? | 2 | What is PWM/Pi? |
3 | Q: | 3 | Q: |
4 | For which platform is PWM/Pi available? | 4 | For which platform is PWM/Pi available? |
5 | Q: | ||
6 | How can I create categories in PWM/Pi? | ||
5 | Q: | 7 | Q: |
6 | Can I exchange the password files from PWM/Pi and PwManager? | 8 | Can I exchange the password files from PWM/Pi and PwManager? |
7 | Q: | 9 | Q: |
8 | Does Export/Import keep sync information in place? | 10 | Does Export/Import keep sync information in place? |
9 | Q: | 11 | Q: |
10 | Can PWM/Pi sync categories? | 12 | Can PWM/Pi sync categories? |
11 | Q: | 13 | Q: |
12 | Which crypto, hash and compress algorithm is applied to the remote file | 14 | Which crypto, hash and compress algorithm is applied to the remote file |
@@ -21,23 +23,28 @@ A: | |||
21 | PWM/Pi is the platform-independend version of PwManager 1.0.1, written by | 23 | PWM/Pi is the platform-independend version of PwManager 1.0.1, written by |
22 | Michael Buesch and the PwManager Team (http://passwordmanager.sourceforge.net) | 24 | Michael Buesch and the PwManager Team (http://passwordmanager.sourceforge.net) |
23 | ************************************************************************* | 25 | ************************************************************************* |
24 | Q: | 26 | Q: |
25 | For which platform is PWM/Pi available? | 27 | For which platform is PWM/Pi available? |
26 | A: | 28 | A: |
27 | PWM/Pi is the platform-independend version of PWManager and it | 29 | PWM/Pi is the platform-independend version of PWManager and it |
28 | includes a replacement for the KDE libraries called microkde. | 30 | includes a replacement for the KDE libraries called microkde. |
29 | It can be compiled to any platform, where Qt is available. | 31 | Precompiled versions are available |
30 | The source code compiles without modifications on Windows, | 32 | on www.pi-sync.info for Linux and Sharp Zaurus PDA. |
31 | Linux Desktop and Sharp Zaurus PDA. Precompiled versions are available | ||
32 | on www.pi-sync.info for Windows and Sharp Zaurus PDA. | ||
33 | Latest versions and the source code cvs can be found at: | 33 | Latest versions and the source code cvs can be found at: |
34 | http://sourceforge.net/projects/kdepimpi/ | 34 | http://sourceforge.net/projects/kdepimpi/ |
35 | ************************************************************************* | 35 | ************************************************************************* |
36 | Q: | ||
37 | How can I create categories in PWM/Pi? | ||
38 | A: | ||
39 | In PWM/Pi you cannot create categories. | ||
40 | You can set (or change) a category for a specific password entry. | ||
41 | PwM/Pi reads all categories from all password entries and creates a category list from that. | ||
42 | ************************************************************************* | ||
36 | Q: | 43 | Q: |
37 | Can I exchange the password files from PWM/Pi and PwManager | 44 | Can I exchange the password files from PWM/Pi and PwManager |
38 | A: | 45 | A: |
39 | The password files of PWM/Pi can not be exchanged with all versions up | 46 | The password files of PWM/Pi can not be exchanged with all versions up |
40 | to 1.0.1 of PwManager. | 47 | to 1.0.1 of PwManager. |
41 | However, Michael will integrate our changes into a PwManager release | 48 | However, Michael will integrate our changes into a PwManager release |
42 | 1.1, and the password files of that release will then be interchangable | 49 | 1.1, and the password files of that release will then be interchangable |
43 | with PWM/Pi | 50 | with PWM/Pi |
diff --git a/kmicromail/libmailwrapper/genericwrapper.cpp b/kmicromail/libmailwrapper/genericwrapper.cpp index 1ed9f34..0b6adf7 100644 --- a/kmicromail/libmailwrapper/genericwrapper.cpp +++ b/kmicromail/libmailwrapper/genericwrapper.cpp | |||
@@ -355,21 +355,21 @@ QString Genericwrapper::parseGroup( mailimf_group *group ) | |||
355 | return result; | 355 | return result; |
356 | } | 356 | } |
357 | 357 | ||
358 | QString Genericwrapper::parseMailbox( mailimf_mailbox *box ) | 358 | QString Genericwrapper::parseMailbox( mailimf_mailbox *box ) |
359 | { | 359 | { |
360 | QString result( "" ); | 360 | QString result( "" ); |
361 | 361 | ||
362 | if ( box->mb_display_name == NULL ) { | 362 | if ( box->mb_display_name == NULL ) { |
363 | result.append( box->mb_addr_spec ); | 363 | result.append( convert_String(box->mb_addr_spec) ); |
364 | } else { | 364 | } else { |
365 | result.append( convert_String(box->mb_display_name) ); | 365 | result.append( convert_String(box->mb_display_name) ); |
366 | result.append( " <" ); | 366 | result.append( " <" ); |
367 | result.append( box->mb_addr_spec ); | 367 | result.append( convert_String( box->mb_addr_spec) ); |
368 | result.append( ">" ); | 368 | result.append( ">" ); |
369 | } | 369 | } |
370 | 370 | ||
371 | return result; | 371 | return result; |
372 | } | 372 | } |
373 | 373 | ||
374 | QString Genericwrapper::parseMailboxList( mailimf_mailbox_list *list ) | 374 | QString Genericwrapper::parseMailboxList( mailimf_mailbox_list *list ) |
375 | { | 375 | { |
@@ -485,18 +485,19 @@ void Genericwrapper::parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > & | |||
485 | mailimf_single_fields single_fields; | 485 | mailimf_single_fields single_fields; |
486 | mailimf_single_fields_init(&single_fields, msg->msg_fields); | 486 | mailimf_single_fields_init(&single_fields, msg->msg_fields); |
487 | mail->setMsgsize(msg->msg_size); | 487 | mail->setMsgsize(msg->msg_size); |
488 | mail->setFlags(mFlags); | 488 | mail->setFlags(mFlags); |
489 | mail->setMbox(mailbox); | 489 | mail->setMbox(mailbox); |
490 | mail->setNumber(msg->msg_index); | 490 | mail->setNumber(msg->msg_index); |
491 | if (single_fields.fld_subject) | 491 | if (single_fields.fld_subject) |
492 | mail->setSubject( convert_String(single_fields.fld_subject->sbj_value)); | 492 | mail->setSubject( convert_String(single_fields.fld_subject->sbj_value)); |
493 | if (single_fields.fld_from) | 493 | if (single_fields.fld_from) { |
494 | mail->setFrom(parseMailboxList(single_fields.fld_from->frm_mb_list)); | 494 | mail->setFrom(parseMailboxList(single_fields.fld_from->frm_mb_list)); |
495 | } | ||
495 | if (!mbox_as_to) { | 496 | if (!mbox_as_to) { |
496 | if (single_fields.fld_to) | 497 | if (single_fields.fld_to) |
497 | mail->setTo( parseAddressList( single_fields.fld_to->to_addr_list ) ); | 498 | mail->setTo( parseAddressList( single_fields.fld_to->to_addr_list ) ); |
498 | } else { | 499 | } else { |
499 | mail->setTo(mailbox); | 500 | mail->setTo(mailbox); |
500 | } | 501 | } |
501 | if (single_fields.fld_cc) | 502 | if (single_fields.fld_cc) |
502 | mail->setCC( parseAddressList( single_fields.fld_cc->cc_addr_list ) ); | 503 | mail->setCC( parseAddressList( single_fields.fld_cc->cc_addr_list ) ); |
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index 1a24887..9720f43 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp | |||
@@ -235,17 +235,17 @@ void KOAgenda::init() | |||
235 | 235 | ||
236 | mNewItemPopup->insertItem ( SmallIcon( pathString +"newevent" ), i18n("New Event..."), 1 ); | 236 | mNewItemPopup->insertItem ( SmallIcon( pathString +"newevent" ), i18n("New Event..."), 1 ); |
237 | mNewItemPopup->insertItem ( SmallIcon( pathString +"newtodo" ), i18n("New Todo..."),2 ); | 237 | mNewItemPopup->insertItem ( SmallIcon( pathString +"newtodo" ), i18n("New Todo..."),2 ); |
238 | mNewItemPopup->insertSeparator ( ); | 238 | mNewItemPopup->insertSeparator ( ); |
239 | mNewItemPopup->insertItem ( SmallIcon( pathString +"day" ), i18n("Day view"),3 ); | 239 | mNewItemPopup->insertItem ( SmallIcon( pathString +"day" ), i18n("Day view"),3 ); |
240 | mNewItemPopup->insertItem ( SmallIcon( pathString +"xdays" ), i18n("Next days"),8 ); | 240 | mNewItemPopup->insertItem ( SmallIcon( pathString +"xdays" ), i18n("Next days"),8 ); |
241 | mNewItemPopup->insertItem ( SmallIcon( pathString +"week" ), i18n("Next week"),4 ); | 241 | mNewItemPopup->insertItem ( SmallIcon( pathString +"week" ), i18n("Next week"),4 ); |
242 | mNewItemPopup->insertItem ( SmallIcon( pathString +"week" ), i18n("Next two weeks"),5 ); | 242 | mNewItemPopup->insertItem ( SmallIcon( pathString +"week" ), i18n("Next two weeks"),5 ); |
243 | mNewItemPopup->insertItem ( SmallIcon( pathString +"month" ), i18n("Next month"),6 ); | 243 | mNewItemPopup->insertItem ( SmallIcon( pathString +"month" ), i18n("This month"),6 ); |
244 | mNewItemPopup->insertItem ( SmallIcon( pathString +"journal" ), i18n("Journal view"),7 ); | 244 | mNewItemPopup->insertItem ( SmallIcon( pathString +"journal" ), i18n("Journal view"),7 ); |
245 | #ifndef _WIN32_ | 245 | #ifndef _WIN32_ |
246 | int wflags = viewport()-> getWFlags() |WRepaintNoErase;//WResizeNoErase | 246 | int wflags = viewport()-> getWFlags() |WRepaintNoErase;//WResizeNoErase |
247 | viewport()->setWFlags ( wflags); | 247 | viewport()->setWFlags ( wflags); |
248 | #endif | 248 | #endif |
249 | mGridSpacingX = 80; | 249 | mGridSpacingX = 80; |
250 | mResizeBorderWidth = 8; | 250 | mResizeBorderWidth = 8; |
251 | mScrollBorderWidth = 8; | 251 | mScrollBorderWidth = 8; |
@@ -749,18 +749,17 @@ void KOAgenda::newItem( int item ) | |||
749 | { | 749 | { |
750 | if ( item == 1 ) { //new event | 750 | if ( item == 1 ) { //new event |
751 | newEventSignal(mStartCellX ,mStartCellY ); | 751 | newEventSignal(mStartCellX ,mStartCellY ); |
752 | } else | 752 | } else |
753 | if ( item == 2 ) { //new event | 753 | if ( item == 2 ) { //new event |
754 | newTodoSignal(mStartCellX ,mStartCellY ); | 754 | newTodoSignal(mStartCellX ,mStartCellY ); |
755 | } else | 755 | } else |
756 | { | 756 | { |
757 | QDate day = mSelectedDates[mStartCellX]; | 757 | emit showDateView( item, mStartCellX ); |
758 | emit showDateView( item, day ); | ||
759 | // 3Day view | 758 | // 3Day view |
760 | // 4Week view | 759 | // 4Week view |
761 | // 5Month view | 760 | // 5Month view |
762 | // 6Journal view | 761 | // 6Journal view |
763 | } | 762 | } |
764 | } | 763 | } |
765 | void KOAgenda::startSelectAction(QPoint viewportPos) | 764 | void KOAgenda::startSelectAction(QPoint viewportPos) |
766 | { | 765 | { |
diff --git a/korganizer/koagenda.h b/korganizer/koagenda.h index 3d33ae5..35c08b6 100644 --- a/korganizer/koagenda.h +++ b/korganizer/koagenda.h | |||
@@ -140,17 +140,17 @@ class KOAgenda : public QScrollView | |||
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 *); |
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index b9909d6..2996acb 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp | |||
@@ -483,18 +483,18 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) : | |||
483 | mDummyAllDayLeft->setFixedWidth(mTimeLabels->width()); | 483 | mDummyAllDayLeft->setFixedWidth(mTimeLabels->width()); |
484 | 484 | ||
485 | // Scrolling | 485 | // Scrolling |
486 | connect(mAgenda->verticalScrollBar(),SIGNAL(valueChanged(int)), | 486 | connect(mAgenda->verticalScrollBar(),SIGNAL(valueChanged(int)), |
487 | mTimeLabels, SLOT(positionChanged())); | 487 | mTimeLabels, SLOT(positionChanged())); |
488 | connect(mTimeLabels->verticalScrollBar(),SIGNAL(valueChanged(int)), | 488 | connect(mTimeLabels->verticalScrollBar(),SIGNAL(valueChanged(int)), |
489 | SLOT(setContentsPos(int))); | 489 | SLOT(setContentsPos(int))); |
490 | 490 | ||
491 | connect(mAgenda,SIGNAL(showDateView( int, QDate )),SIGNAL(showDateView( int, QDate ))); | 491 | connect(mAgenda,SIGNAL(showDateView( int, int)),SLOT(slotShowDateView( int, int ))); |
492 | connect(mAllDayAgenda,SIGNAL(showDateView( int, QDate )),SIGNAL(showDateView( int, QDate ))); | 492 | connect(mAllDayAgenda,SIGNAL(showDateView( int, int )), SLOT(slotShowDateView( int, int ) )); |
493 | 493 | ||
494 | // Create/Show/Edit/Delete Event | 494 | // Create/Show/Edit/Delete Event |
495 | connect(mAgenda,SIGNAL(newEventSignal(int,int)), | 495 | connect(mAgenda,SIGNAL(newEventSignal(int,int)), |
496 | SLOT(newEvent(int,int))); | 496 | SLOT(newEvent(int,int))); |
497 | connect(mAgenda,SIGNAL(newTodoSignal(int,int)), | 497 | connect(mAgenda,SIGNAL(newTodoSignal(int,int)), |
498 | SLOT(newTodo(int,int))); | 498 | SLOT(newTodo(int,int))); |
499 | connect(mAgenda,SIGNAL(newEventSignal(int,int,int,int)), | 499 | connect(mAgenda,SIGNAL(newEventSignal(int,int,int,int)), |
500 | SLOT(newEvent(int,int,int,int))); | 500 | SLOT(newEvent(int,int,int,int))); |
@@ -1305,16 +1305,27 @@ void KOAgendaView::printPreview(CalPrinter *calPrinter, const QDate &fd, | |||
1305 | } | 1305 | } |
1306 | 1306 | ||
1307 | // void KOAgendaView::updateMovedTodo() | 1307 | // void KOAgendaView::updateMovedTodo() |
1308 | // { | 1308 | // { |
1309 | // // updateConfig(); | 1309 | // // updateConfig(); |
1310 | // // emit updateTodoViews(); | 1310 | // // emit updateTodoViews(); |
1311 | // } | 1311 | // } |
1312 | 1312 | ||
1313 | void KOAgendaView::slotShowDateView( int mode , int d ) | ||
1314 | { | ||
1315 | if ( d >= mSelectedDates.count() ) { | ||
1316 | qDebug("KOAgendaView::slotShowDateView datecounterror %d d ", d, mSelectedDates.count() ); | ||
1317 | |||
1318 | } else { | ||
1319 | QDate day = mSelectedDates[d]; | ||
1320 | emit showDateView(mode , day ); | ||
1321 | } | ||
1322 | |||
1323 | } | ||
1313 | void KOAgendaView::newEvent(int gx, int gy) | 1324 | void KOAgendaView::newEvent(int gx, int gy) |
1314 | { | 1325 | { |
1315 | if (!mSelectedDates.count()) return; | 1326 | if (!mSelectedDates.count()) return; |
1316 | 1327 | ||
1317 | QDate day = mSelectedDates[gx]; | 1328 | QDate day = mSelectedDates[gx]; |
1318 | 1329 | ||
1319 | QTime time = mAgenda->gyToTime(gy); | 1330 | QTime time = mAgenda->gyToTime(gy); |
1320 | QDateTime dt(day,time); | 1331 | QDateTime dt(day,time); |
diff --git a/korganizer/koagendaview.h b/korganizer/koagendaview.h index 57b4e46..6dc81c6 100644 --- a/korganizer/koagendaview.h +++ b/korganizer/koagendaview.h | |||
@@ -201,16 +201,17 @@ class KOAgendaView : public KOEventView { | |||
201 | void readSettings(KConfig *); | 201 | void readSettings(KConfig *); |
202 | void writeSettings(KConfig *); | 202 | void writeSettings(KConfig *); |
203 | 203 | ||
204 | void setContentsPos(int y); | 204 | void setContentsPos(int y); |
205 | 205 | ||
206 | void scrollOneHourUp(); | 206 | void scrollOneHourUp(); |
207 | void scrollOneHourDown(); | 207 | void scrollOneHourDown(); |
208 | void addToCalSlot(Incidence *, Incidence *); | 208 | void addToCalSlot(Incidence *, Incidence *); |
209 | void slotShowDateView( int, int ); | ||
209 | 210 | ||
210 | signals: | 211 | signals: |
211 | void showDateView( int, QDate ); | 212 | void showDateView( int, QDate ); |
212 | void newTodoSignal( QDateTime ,bool ); | 213 | void newTodoSignal( QDateTime ,bool ); |
213 | void toggleExpand(); | 214 | void toggleExpand(); |
214 | void selectWeekNum( int ); | 215 | void selectWeekNum( int ); |
215 | void todoMoved( Todo *, int ); | 216 | void todoMoved( Todo *, int ); |
216 | void incidenceChanged(Incidence * , int ); | 217 | void incidenceChanged(Incidence * , int ); |
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index b9ce4f4..ab9a4b6 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp | |||
@@ -932,17 +932,21 @@ void MonthViewCell::resizeEvent ( QResizeEvent * e ) | |||
932 | //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); | 932 | //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); |
933 | // mItemList->resize ( width(), height () ); | 933 | // mItemList->resize ( width(), height () ); |
934 | if ( e ) | 934 | if ( e ) |
935 | KNoScrollListBox::resizeEvent ( e ); | 935 | KNoScrollListBox::resizeEvent ( e ); |
936 | } | 936 | } |
937 | 937 | ||
938 | void MonthViewCell::defaultAction( QListBoxItem *item ) | 938 | void MonthViewCell::defaultAction( QListBoxItem *item ) |
939 | { | 939 | { |
940 | if ( !item ) return; | 940 | if ( !item ) { |
941 | QDateTime dt( date(), QTime( KOPrefs::instance()->mStartTime, 0 ) ); | ||
942 | emit newEventSignal( dt ); | ||
943 | return; | ||
944 | } | ||
941 | 945 | ||
942 | MonthViewItem *eventItem = static_cast<MonthViewItem *>( item ); | 946 | MonthViewItem *eventItem = static_cast<MonthViewItem *>( item ); |
943 | Incidence *incidence = eventItem->incidence(); | 947 | Incidence *incidence = eventItem->incidence(); |
944 | if ( incidence ) mMonthView->defaultAction( incidence ); | 948 | if ( incidence ) mMonthView->defaultAction( incidence ); |
945 | } | 949 | } |
946 | void MonthViewCell::showDay() | 950 | void MonthViewCell::showDay() |
947 | { | 951 | { |
948 | emit showDaySignal( date() ); | 952 | emit showDaySignal( date() ); |
@@ -1366,16 +1370,17 @@ void KOMonthView::showEvents(QPtrList<Event>) | |||
1366 | { | 1370 | { |
1367 | qDebug("KOMonthView::selectEvents is not implemented yet. "); | 1371 | qDebug("KOMonthView::selectEvents is not implemented yet. "); |
1368 | } | 1372 | } |
1369 | 1373 | ||
1370 | void KOMonthView::changeEventDisplay(Event *, int) | 1374 | void KOMonthView::changeEventDisplay(Event *, int) |
1371 | { | 1375 | { |
1372 | // this should be re-written to be much more efficient, but this | 1376 | // this should be re-written to be much more efficient, but this |
1373 | // quick-and-dirty-hack gets the job done for right now. | 1377 | // quick-and-dirty-hack gets the job done for right now. |
1378 | qDebug("KOMonthView::changeEventDisplay "); | ||
1374 | updateView(); | 1379 | updateView(); |
1375 | } | 1380 | } |
1376 | 1381 | ||
1377 | void KOMonthView::updateView() | 1382 | void KOMonthView::updateView() |
1378 | { | 1383 | { |
1379 | 1384 | ||
1380 | if ( !updatePossible ) | 1385 | if ( !updatePossible ) |
1381 | return; | 1386 | return; |
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index e008625..ccc4b01 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp | |||
@@ -259,19 +259,34 @@ void KOTodoListView::contentsMouseMoveEvent(QMouseEvent* e) | |||
259 | qDebug("Dnd: External Copy"); | 259 | qDebug("Dnd: External Copy"); |
260 | } else | 260 | } else |
261 | qDebug("DnD: Internal copy: Copy pending"); | 261 | qDebug("DnD: Internal copy: Copy pending"); |
262 | } | 262 | } |
263 | } | 263 | } |
264 | } | 264 | } |
265 | #endif | 265 | #endif |
266 | } | 266 | } |
267 | void KOTodoListView::keyReleaseEvent ( QKeyEvent *e ) | ||
268 | { | ||
269 | if ( !e->isAutoRepeat() ) { | ||
270 | mFlagKeyPressed = false; | ||
271 | } | ||
272 | } | ||
273 | |||
274 | |||
267 | void KOTodoListView::keyPressEvent ( QKeyEvent * e ) | 275 | void KOTodoListView::keyPressEvent ( QKeyEvent * e ) |
268 | { | 276 | { |
269 | 277 | qApp->processEvents(); | |
278 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { | ||
279 | e->ignore(); | ||
280 | // qDebug(" ignore %d",e->isAutoRepeat() ); | ||
281 | return; | ||
282 | } | ||
283 | if (! e->isAutoRepeat() ) | ||
284 | mFlagKeyPressed = true; | ||
270 | QListViewItem* cn; | 285 | QListViewItem* cn; |
271 | if ( e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter ) { | 286 | if ( e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter ) { |
272 | cn = currentItem(); | 287 | cn = currentItem(); |
273 | if ( cn ) { | 288 | if ( cn ) { |
274 | KOTodoViewItem* ci = (KOTodoViewItem*)( cn ); | 289 | KOTodoViewItem* ci = (KOTodoViewItem*)( cn ); |
275 | if ( ci ){ | 290 | if ( ci ){ |
276 | if ( e->state() == ShiftButton ) | 291 | if ( e->state() == ShiftButton ) |
277 | ci->setOn( false ); | 292 | ci->setOn( false ); |
@@ -284,17 +299,16 @@ void KOTodoListView::keyPressEvent ( QKeyEvent * e ) | |||
284 | } | 299 | } |
285 | 300 | ||
286 | } | 301 | } |
287 | } | 302 | } |
288 | 303 | ||
289 | return; | 304 | return; |
290 | } | 305 | } |
291 | 306 | ||
292 | // qDebug("KOTodoListView::keyPressEvent "); | ||
293 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton || mName != "todolistsmall" ) { | 307 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton || mName != "todolistsmall" ) { |
294 | switch ( e->key() ) { | 308 | switch ( e->key() ) { |
295 | case Qt::Key_Down: | 309 | case Qt::Key_Down: |
296 | case Qt::Key_Up: | 310 | case Qt::Key_Up: |
297 | QListView::keyPressEvent ( e ); | 311 | QListView::keyPressEvent ( e ); |
298 | break; | 312 | break; |
299 | case Qt::Key_Left: | 313 | case Qt::Key_Left: |
300 | case Qt::Key_Right: | 314 | case Qt::Key_Right: |
@@ -593,28 +607,27 @@ void KOTodoView::updateView() | |||
593 | pendingSubtodo = 0; | 607 | pendingSubtodo = 0; |
594 | if ( mBlockUpdate ) { | 608 | if ( mBlockUpdate ) { |
595 | return; | 609 | return; |
596 | } | 610 | } |
597 | if ( !isVisible() ) { | 611 | if ( !isVisible() ) { |
598 | mPendingUpdateBeforeRepaint = true; | 612 | mPendingUpdateBeforeRepaint = true; |
599 | return; | 613 | return; |
600 | } | 614 | } |
615 | storeCurrentItem(); | ||
601 | //qDebug("KOTodoView::updateView() %x", this); | 616 | //qDebug("KOTodoView::updateView() %x", this); |
602 | if ( isFlatDisplay ) { | 617 | if ( isFlatDisplay ) { |
603 | displayAllFlat(); | 618 | displayAllFlat(); |
619 | resetCurrentItem(); | ||
604 | return; | 620 | return; |
605 | } | 621 | } |
606 | //qDebug("update "); | 622 | //qDebug("update "); |
607 | // kdDebug() << "KOTodoView::updateView()" << endl; | 623 | // kdDebug() << "KOTodoView::updateView()" << endl; |
608 | QFont fo = KOPrefs::instance()->mTodoViewFont; | 624 | QFont fo = KOPrefs::instance()->mTodoViewFont; |
609 | Incidence* oldInc = 0; | 625 | |
610 | mActiveItem = (KOTodoViewItem*)mTodoListView->currentItem(); | ||
611 | if (mActiveItem) | ||
612 | oldInc = mActiveItem->todo(); | ||
613 | 626 | ||
614 | mTodoListView->clear(); | 627 | mTodoListView->clear(); |
615 | if ( mName == "todolistsmall" ) { | 628 | if ( mName == "todolistsmall" ) { |
616 | if ( KOPrefs::instance()->mTodoViewUsesSmallFont ) { | 629 | if ( KOPrefs::instance()->mTodoViewUsesSmallFont ) { |
617 | int ps = fo.pointSize() -2; | 630 | int ps = fo.pointSize() -2; |
618 | if ( ps > 12 ) | 631 | if ( ps > 12 ) |
619 | ps -= 2; | 632 | ps -= 2; |
620 | fo.setPointSize( ps ); | 633 | fo.setPointSize( ps ); |
@@ -686,37 +699,76 @@ void KOTodoView::updateView() | |||
686 | insertTodoItem(todo); | 699 | insertTodoItem(todo); |
687 | } | 700 | } |
688 | } | 701 | } |
689 | //qDebug("for end "); | 702 | //qDebug("for end "); |
690 | // Restore opened/closed state | 703 | // Restore opened/closed state |
691 | mTodoListView->blockSignals( true ); | 704 | mTodoListView->blockSignals( true ); |
692 | if( mDocPrefs ) restoreItemState( mTodoListView->firstChild() ); | 705 | if( mDocPrefs ) restoreItemState( mTodoListView->firstChild() ); |
693 | mTodoListView->blockSignals( false ); | 706 | mTodoListView->blockSignals( false ); |
694 | mTodoListView->setFocus(); | 707 | resetCurrentItem(); |
695 | if ( mTodoListView->firstChild () ) { | ||
696 | if ( oldInc ) { | ||
697 | KOTodoViewItem* item = (KOTodoViewItem*)mTodoListView->firstChild (); | ||
698 | while ( item ) { | ||
699 | if ( item->todo() == oldInc ) { | ||
700 | mTodoListView->setCurrentItem( item ); | ||
701 | mTodoListView->ensureItemVisible( item ); | ||
702 | break; | ||
703 | } | ||
704 | item = (KOTodoViewItem*)item->itemBelow(); | ||
705 | } | ||
706 | if ( ! item ) | ||
707 | mTodoListView->setCurrentItem( mTodoListView->firstChild () ); | ||
708 | } else { | ||
709 | mTodoListView->setCurrentItem( mTodoListView->firstChild () ); | ||
710 | } | ||
711 | } | ||
712 | processSelectionChange(); | 708 | processSelectionChange(); |
713 | } | 709 | } |
714 | 710 | ||
711 | void KOTodoView::storeCurrentItem() | ||
712 | { | ||
713 | mCurItem = 0; | ||
714 | mCurItemRootParent = 0; | ||
715 | mCurItemAbove = 0; | ||
716 | mActiveItem = (KOTodoViewItem*)mTodoListView->currentItem(); | ||
717 | if (mActiveItem) { | ||
718 | mCurItem = mActiveItem->todo(); | ||
719 | KOTodoViewItem* activeItemAbove = (KOTodoViewItem*)mActiveItem->itemAbove (); | ||
720 | if ( activeItemAbove ) | ||
721 | mCurItemAbove = activeItemAbove->todo(); | ||
722 | while ( mActiveItem->parent() != 0 ) | ||
723 | mActiveItem = (KOTodoViewItem*)mActiveItem->parent(); | ||
724 | mCurItemRootParent = mActiveItem->todo(); | ||
725 | } | ||
726 | mActiveItem = 0; | ||
727 | } | ||
728 | |||
729 | void KOTodoView::resetCurrentItem() | ||
730 | { | ||
731 | mTodoListView->setFocus(); | ||
732 | KOTodoViewItem* foundItem = 0; | ||
733 | KOTodoViewItem* foundItemRoot = 0; | ||
734 | KOTodoViewItem* foundItemAbove = 0; | ||
735 | if ( mTodoListView->firstChild () ) { | ||
736 | if ( mCurItem ) { | ||
737 | KOTodoViewItem* item = (KOTodoViewItem*)mTodoListView->firstChild (); | ||
738 | while ( item ) { | ||
739 | if ( item->todo() == mCurItem ) { | ||
740 | foundItem = item; | ||
741 | break; | ||
742 | } else if ( item->todo() == mCurItemAbove ) { | ||
743 | foundItemAbove = item; | ||
744 | |||
745 | } else if ( item->todo() == mCurItemRootParent ) { | ||
746 | foundItemRoot = item; | ||
747 | } | ||
748 | item = (KOTodoViewItem*)item->itemBelow(); | ||
749 | } | ||
750 | if ( ! foundItem ) { | ||
751 | if ( foundItemAbove ) | ||
752 | foundItem = foundItemAbove; | ||
753 | else | ||
754 | foundItem = foundItemRoot; | ||
755 | } | ||
756 | } | ||
757 | if ( foundItem ) { | ||
758 | mTodoListView->setCurrentItem( foundItem ); | ||
759 | mTodoListView->ensureItemVisible( foundItem ); | ||
760 | } else { | ||
761 | mTodoListView->setCurrentItem( mTodoListView->firstChild () ); | ||
762 | } | ||
763 | } | ||
764 | mTodoListView->setFocus(); | ||
765 | } | ||
766 | //Incidence * mCurItem, *mCurItemRootParent,*mCurItemAbove; | ||
715 | bool KOTodoView::checkTodo( Todo * todo ) | 767 | bool KOTodoView::checkTodo( Todo * todo ) |
716 | { | 768 | { |
717 | 769 | ||
718 | if ( !KOPrefs::instance()->mShowCompletedTodo && todo->isCompleted() ) | 770 | if ( !KOPrefs::instance()->mShowCompletedTodo && todo->isCompleted() ) |
719 | return false; | 771 | return false; |
720 | if ( !todo->isCompleted() ) { | 772 | if ( !todo->isCompleted() ) { |
721 | if ( todo->hasDueDate() && todo->dtDue().date() <= QDate::currentDate() ) | 773 | if ( todo->hasDueDate() && todo->dtDue().date() <= QDate::currentDate() ) |
722 | return true; | 774 | return true; |
@@ -1234,18 +1286,19 @@ void KOTodoView::addQuickTodo() | |||
1234 | if ( cf->isEnabled() ) | 1286 | if ( cf->isEnabled() ) |
1235 | todo->setSecrecy( cf->getSecrecy()); | 1287 | todo->setSecrecy( cf->getSecrecy()); |
1236 | } | 1288 | } |
1237 | mCalendar->addTodo(todo); | 1289 | mCalendar->addTodo(todo); |
1238 | mQuickAdd->setText(""); | 1290 | mQuickAdd->setText(""); |
1239 | todoModified (todo, KOGlobals::EVENTADDED ); | 1291 | todoModified (todo, KOGlobals::EVENTADDED ); |
1240 | updateView(); | 1292 | updateView(); |
1241 | } | 1293 | } |
1294 | |||
1242 | void KOTodoView::keyPressEvent ( QKeyEvent * e ) | 1295 | void KOTodoView::keyPressEvent ( QKeyEvent * e ) |
1243 | { | 1296 | { |
1244 | // e->ignore(); | 1297 | // e->ignore(); |
1245 | //return; | 1298 | //return; |
1246 | //qDebug("KOTodoView::keyPressEvent "); | 1299 | //qDebug("KOTodoView::keyPressEvent "); |
1247 | switch ( e->key() ) { | 1300 | switch ( e->key() ) { |
1248 | case Qt::Key_Down: | 1301 | case Qt::Key_Down: |
1249 | case Qt::Key_Up: | 1302 | case Qt::Key_Up: |
1250 | QWidget::keyPressEvent ( e ); | 1303 | QWidget::keyPressEvent ( e ); |
1251 | break; | 1304 | break; |
diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h index eab0754..e553d0e 100644 --- a/korganizer/kotodoview.h +++ b/korganizer/kotodoview.h | |||
@@ -81,17 +81,19 @@ class KOTodoListView : public KListView | |||
81 | private: | 81 | private: |
82 | void paintEvent(QPaintEvent * pevent); | 82 | void paintEvent(QPaintEvent * pevent); |
83 | bool internalDrop; | 83 | bool internalDrop; |
84 | QString mName; | 84 | QString mName; |
85 | Calendar *mCalendar; | 85 | Calendar *mCalendar; |
86 | QPoint mPressPos; | 86 | QPoint mPressPos; |
87 | bool mMousePressed; | 87 | bool mMousePressed; |
88 | QListViewItem *mOldCurrent; | 88 | QListViewItem *mOldCurrent; |
89 | bool mFlagKeyPressed; | ||
89 | void keyPressEvent ( QKeyEvent * ) ; | 90 | void keyPressEvent ( QKeyEvent * ) ; |
91 | void keyReleaseEvent ( QKeyEvent * ) ; | ||
90 | }; | 92 | }; |
91 | 93 | ||
92 | 94 | ||
93 | /** | 95 | /** |
94 | This is the line-edit on top of the todoview for fast addition of new todos | 96 | This is the line-edit on top of the todoview for fast addition of new todos |
95 | */ | 97 | */ |
96 | class KOQuickTodo : public QLineEdit | 98 | class KOQuickTodo : public QLineEdit |
97 | { | 99 | { |
@@ -247,11 +249,14 @@ class KOTodoView : public KOrg::BaseView | |||
247 | 249 | ||
248 | DocPrefs *mDocPrefs; | 250 | DocPrefs *mDocPrefs; |
249 | QString mCurrentDoc; | 251 | QString mCurrentDoc; |
250 | KOQuickTodo *mQuickAdd; | 252 | KOQuickTodo *mQuickAdd; |
251 | bool mBlockUpdate; | 253 | bool mBlockUpdate; |
252 | void keyPressEvent ( QKeyEvent * ) ; | 254 | void keyPressEvent ( QKeyEvent * ) ; |
253 | KOTodoViewItem * pendingSubtodo; | 255 | KOTodoViewItem * pendingSubtodo; |
254 | DateNavigator* mNavigator; | 256 | DateNavigator* mNavigator; |
257 | void storeCurrentItem(); | ||
258 | void resetCurrentItem(); | ||
259 | Incidence * mCurItem, *mCurItemRootParent,*mCurItemAbove; | ||
255 | }; | 260 | }; |
256 | 261 | ||
257 | #endif | 262 | #endif |
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp index f97aa98..c442d0b 100644 --- a/korganizer/koviewmanager.cpp +++ b/korganizer/koviewmanager.cpp | |||
@@ -133,17 +133,17 @@ void KOViewManager::showDateView( int view, QDate date) | |||
133 | mCurrentAgendaView = 1 ; | 133 | mCurrentAgendaView = 1 ; |
134 | } else if (view == 4 ) { | 134 | } else if (view == 4 ) { |
135 | mCurrentAgendaView = 7 ; | 135 | mCurrentAgendaView = 7 ; |
136 | mMainView->dateNavigator()->selectDates( date, 7 ); | 136 | mMainView->dateNavigator()->selectDates( date, 7 ); |
137 | } else if (view == 5 ) { | 137 | } else if (view == 5 ) { |
138 | mCurrentAgendaView = 14 ; | 138 | mCurrentAgendaView = 14 ; |
139 | mMainView->dateNavigator()->selectDates( date, 14); | 139 | mMainView->dateNavigator()->selectDates( date, 14); |
140 | } else if (view == 6 ) { | 140 | } else if (view == 6 ) { |
141 | //mMainView->dateNavigator()->selectDates( date, 7 ); | 141 | resetDateSilent( date,1); |
142 | showMonthView(); | 142 | showMonthView(); |
143 | } else if (view == 7 ) { | 143 | } else if (view == 7 ) { |
144 | mMainView->dateNavigator()->selectDate( date ); | 144 | mMainView->dateNavigator()->selectDate( date ); |
145 | showJournalView(); | 145 | showJournalView(); |
146 | } else if (view == 8 ) { | 146 | } else if (view == 8 ) { |
147 | globalFlagBlockAgenda = 1; | 147 | globalFlagBlockAgenda = 1; |
148 | if ( mCurrentAgendaView != 3 ) | 148 | if ( mCurrentAgendaView != 3 ) |
149 | mCurrentAgendaView = -1; | 149 | mCurrentAgendaView = -1; |
@@ -384,16 +384,18 @@ void KOViewManager::updateView(const QDate &start, const QDate &end) | |||
384 | if (mTodoView && mTodoView == mCurrentView ) mTodoView->updateView(); | 384 | if (mTodoView && mTodoView == mCurrentView ) mTodoView->updateView(); |
385 | } | 385 | } |
386 | 386 | ||
387 | 387 | ||
388 | void KOViewManager::updateWNview() | 388 | void KOViewManager::updateWNview() |
389 | { | 389 | { |
390 | if ( mCurrentView == mWhatsNextView && mWhatsNextView ) | 390 | if ( mCurrentView == mWhatsNextView && mWhatsNextView ) |
391 | mWhatsNextView->updateView(); | 391 | mWhatsNextView->updateView(); |
392 | if ( mCurrentView == mMonthView && mMonthView ) | ||
393 | mMonthView->updateView(); | ||
392 | 394 | ||
393 | } | 395 | } |
394 | void KOViewManager::showWhatsNextView() | 396 | void KOViewManager::showWhatsNextView() |
395 | { | 397 | { |
396 | if (!mWhatsNextView) { | 398 | if (!mWhatsNextView) { |
397 | mWhatsNextView = new KOWhatsNextView(mMainView->calendar(),mMainView->viewStack(), | 399 | mWhatsNextView = new KOWhatsNextView(mMainView->calendar(),mMainView->viewStack(), |
398 | "KOViewManager::WhatsNextView"); | 400 | "KOViewManager::WhatsNextView"); |
399 | mWhatsNextView->setEventViewer( mMainView->getEventViewerDialog()); | 401 | mWhatsNextView->setEventViewer( mMainView->getEventViewerDialog()); |