summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2005-01-28 03:22:17 (UTC)
committer zautrix <zautrix>2005-01-28 03:22:17 (UTC)
commit94f0e8140c07696174dc3774dc2c11efad2ffa68 (patch) (unidiff)
treed95cc80e5c5221e8d9ce1cbf4b01cbf78fdf843a /korganizer
parent6fb044008531ec883fc25a3ef2b43904930cfff6 (diff)
downloadkdepimpi-94f0e8140c07696174dc3774dc2c11efad2ffa68.zip
kdepimpi-94f0e8140c07696174dc3774dc2c11efad2ffa68.tar.gz
kdepimpi-94f0e8140c07696174dc3774dc2c11efad2ffa68.tar.bz2
missing config
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kowhatsnextview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp
index 57623e6..d7ff9f2 100644
--- a/korganizer/kowhatsnextview.cpp
+++ b/korganizer/kowhatsnextview.cpp
@@ -551,129 +551,129 @@ bool KOWhatsNextView::appendEvent(Incidence *ev, bool reply, bool notRed, bool a
551 if (reply) { 551 if (reply) {
552 tempText += " "; 552 tempText += " ";
553 if ( noc != cdt ) { 553 if ( noc != cdt ) {
554 tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": "; 554 tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": ";
555 } 555 }
556 } else { 556 } else {
557 if ( ((Todo*)ev)->dtDue().date() < QDate::currentDate() ) { 557 if ( ((Todo*)ev)->dtDue().date() < QDate::currentDate() ) {
558 // tempText +="<font color=\"#F00000\">" + i18n("O-due!") + "</font>"; 558 // tempText +="<font color=\"#F00000\">" + i18n("O-due!") + "</font>";
559 QString dfs = KGlobal::locale()->dateFormatShort(); 559 QString dfs = KGlobal::locale()->dateFormatShort();
560 KGlobal::locale()->setDateFormatShort("%d.%b"); 560 KGlobal::locale()->setDateFormatShort("%d.%b");
561 tempText +="<font color=\"#F00000\">" + KGlobal::locale()->formatDate(((Todo*)ev)->dtDue().date(), true, KLocale::Userdefined) + "</font>"; 561 tempText +="<font color=\"#F00000\">" + KGlobal::locale()->formatDate(((Todo*)ev)->dtDue().date(), true, KLocale::Userdefined) + "</font>";
562 KGlobal::locale()->setDateFormatShort(dfs); 562 KGlobal::locale()->setDateFormatShort(dfs);
563 } else { 563 } else {
564 if (!ev->doesFloat() ) 564 if (!ev->doesFloat() )
565 if( ( (Todo*)ev)->dtDue() < cdt ) { 565 if( ( (Todo*)ev)->dtDue() < cdt ) {
566 tempText +="<font color=\"#F00000\">" + ((Todo*)ev)->dtDueTimeStr() + "</font>"; 566 tempText +="<font color=\"#F00000\">" + ((Todo*)ev)->dtDueTimeStr() + "</font>";
567 567
568 568
569 } else 569 } else
570 tempText +=((Todo*)ev)->dtDueTimeStr(); 570 tempText +=((Todo*)ev)->dtDueTimeStr();
571 mTodos.append( ev ); 571 mTodos.append( ev );
572 } 572 }
573 } 573 }
574 } 574 }
575 tempText += "</b></td><td>"; 575 tempText += "</b></td><td>";
576 bool needClose = false; 576 bool needClose = false;
577 if ( ev->cancelled() ) { 577 if ( ev->cancelled() ) {
578 tempText += "<font color=\"#F00000\">[c"; 578 tempText += "<font color=\"#F00000\">[c";
579 needClose =true; 579 needClose =true;
580 580
581 } 581 }
582 if ( ev->isAlarmEnabled() ) { 582 if ( ev->isAlarmEnabled() ) {
583 if ( !needClose) 583 if ( !needClose)
584 tempText +="["; 584 tempText +="[";
585 tempText += "a"; 585 tempText += "a";
586 needClose =true; 586 needClose =true;
587 587
588 } 588 }
589 if ( ev->description().length() > 0 ) { 589 if ( ev->description().length() > 0 ) {
590 if ( !needClose) 590 if ( !needClose)
591 tempText +="["; 591 tempText +="[";
592 tempText += "i"; 592 tempText += "i";
593 needClose =true; 593 needClose =true;
594 } 594 }
595 if ( ev->recurrence()->doesRecur() ) { 595 if ( ev->recurrence()->doesRecur() ) {
596 if ( !needClose) 596 if ( !needClose)
597 tempText +="["; 597 tempText +="[";
598 tempText += "r"; 598 tempText += "r";
599 needClose =true; 599 needClose =true;
600 } 600 }
601 if ( needClose ) { 601 if ( needClose ) {
602 tempText += "] "; 602 tempText += "] ";
603 } 603 }
604 if ( ev->cancelled() ) 604 if ( ev->cancelled() )
605 tempText += "</font>"; 605 tempText += "</font>";
606 tempText += "<a "; 606 tempText += "<a ";
607 if (ev->type()=="Event") tempText += "href=\"event:"; 607 if (ev->type()=="Event") tempText += "href=\"event:";
608 if (ev->type()=="Todo") tempText += "href=\"todo:"; 608 if (ev->type()=="Todo") tempText += "href=\"todo:";
609 tempText += ev->uid() + "\">"; 609 tempText += ev->uid() + "\">";
610 if ( ev->summary().length() > 0 ) 610 if ( ev->summary().length() > 0 )
611 tempText += ev->summary(); 611 tempText += ev->summary();
612 else 612 else
613 tempText += i18n("-no summary-"); 613 tempText += i18n("-no summary-");
614 if ( bDay ) { 614 if ( bDay ) {
615 noc = ev->getNextOccurence( cdt, &ok ); 615 noc = ev->getNextOccurence( cdt.addDays(-1), &ok );
616 if ( ok ) { 616 if ( ok ) {
617 int years = noc.date().year() - ev->dtStart().date().year(); 617 int years = noc.date().year() - ev->dtStart().date().year();
618 tempText += i18n(" (%1 y.)"). arg( years ); 618 tempText += i18n(" (%1 y.)"). arg( years );
619 } 619 }
620 } 620 }
621 621
622 tempText += "</a>"; 622 tempText += "</a>";
623 if ( KOPrefs::instance()->mWNViewShowLocation ) 623 if ( KOPrefs::instance()->mWNViewShowLocation )
624 if ( !ev->location().isEmpty() ) 624 if ( !ev->location().isEmpty() )
625 tempText += " ("+ev->location() +")"; 625 tempText += " ("+ev->location() +")";
626 if ( ev->relatedTo() && KOPrefs::instance()->mWNViewShowsParents) 626 if ( ev->relatedTo() && KOPrefs::instance()->mWNViewShowsParents)
627 tempText += " ["+ev->relatedTo()->summary() +"]"; 627 tempText += " ["+ev->relatedTo()->summary() +"]";
628 tempText += "</td></tr>\n"; 628 tempText += "</td></tr>\n";
629 mText += tempText; 629 mText += tempText;
630 return true; 630 return true;
631} 631}
632 632
633bool KOWhatsNextView::appendTodo(Incidence *ev, QString ind , bool isSub ) 633bool KOWhatsNextView::appendTodo(Incidence *ev, QString ind , bool isSub )
634{ 634{
635 if ( mTodos.find( ev ) != mTodos.end() ) return false; 635 if ( mTodos.find( ev ) != mTodos.end() ) return false;
636 636
637 mTodos.append( ev ); 637 mTodos.append( ev );
638 if ( !isSub ) 638 if ( !isSub )
639 mText += "<p>"; 639 mText += "<p>";
640 else 640 else
641 mText += "<li>"; 641 mText += "<li>";
642 mText += "[" +QString::number(ev->priority()) + "/" + QString::number(((Todo*)ev)->percentComplete())+"%] "; 642 mText += "[" +QString::number(ev->priority()) + "/" + QString::number(((Todo*)ev)->percentComplete())+"%] ";
643 643
644 644
645 mText += ind; 645 mText += ind;
646 bool needClose = false; 646 bool needClose = false;
647 if ( ev->cancelled() ) { 647 if ( ev->cancelled() ) {
648 mText += "<font color=\"#F00000\">[c"; 648 mText += "<font color=\"#F00000\">[c";
649 needClose =true; 649 needClose =true;
650 650
651 } 651 }
652 if ( ev->isAlarmEnabled() ) { 652 if ( ev->isAlarmEnabled() ) {
653 if ( !needClose) 653 if ( !needClose)
654 mText +="["; 654 mText +="[";
655 mText += "a"; 655 mText += "a";
656 needClose =true; 656 needClose =true;
657 657
658 } 658 }
659 659
660 if ( ev->description().length() > 0 ) { 660 if ( ev->description().length() > 0 ) {
661 if ( !needClose) 661 if ( !needClose)
662 mText +="["; 662 mText +="[";
663 mText += "i"; 663 mText += "i";
664 needClose =true; 664 needClose =true;
665 } 665 }
666 // if ( ev->recurrence()->doesRecur() ) { 666 // if ( ev->recurrence()->doesRecur() ) {
667 // if ( !needClose) 667 // if ( !needClose)
668 // mText +="("; 668 // mText +="(";
669 // mText += "r"; 669 // mText += "r";
670 // needClose =true; 670 // needClose =true;
671 // } 671 // }
672 if ( needClose ) 672 if ( needClose )
673 mText += "] "; 673 mText += "] ";
674 if ( ev->cancelled() ) 674 if ( ev->cancelled() )
675 mText += "</font>"; 675 mText += "</font>";
676 mText += "<a href=\"todo:" + ev->uid() + "\">"; 676 mText += "<a href=\"todo:" + ev->uid() + "\">";
677 if ( ev->summary().length() > 0 ) 677 if ( ev->summary().length() > 0 )
678 mText += ev->summary(); 678 mText += ev->summary();
679 else 679 else