summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 1cb4881..87a7970 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -407,97 +407,97 @@ void Today::getTodo() {
407 } else { 407 } else {
408 output = tr("There are <b> %1</b> active tasks: <br>").arg(count); 408 output = tr("There are <b> %1</b> active tasks: <br>").arg(count);
409 } 409 }
410 output += tmpout; 410 output += tmpout;
411 } else { 411 } else {
412 output = tr("No active tasks"); 412 output = tr("No active tasks");
413 } 413 }
414 414
415 TodoField->setText(tr(output)); 415 TodoField->setText(tr(output));
416} 416}
417 417
418/* 418/*
419 * launches datebook 419 * launches datebook
420 */ 420 */
421void Today::startDatebook() { 421void Today::startDatebook() {
422 QCopEnvelope e("QPE/System", "execute(QString)"); 422 QCopEnvelope e("QPE/System", "execute(QString)");
423 e << QString("datebook"); 423 e << QString("datebook");
424} 424}
425 425
426/* 426/*
427 * starts the edit dialog as known from datebook 427 * starts the edit dialog as known from datebook
428 */ 428 */
429 429
430extern QPEApplication *todayApp; 430extern QPEApplication *todayApp;
431 431
432void Today::editEvent(const Event &e) { 432void Today::editEvent(const Event &e) {
433 startDatebook(); 433 startDatebook();
434 434
435 while(!QCopChannel::isRegistered("QPE/Datebook")) todayApp->processEvents(); 435 while(!QCopChannel::isRegistered("QPE/Datebook")) todayApp->processEvents();
436 QCopEnvelope env("QPE/Datebook", "editEvent(int)"); 436 QCopEnvelope env("QPE/Datebook", "editEvent(int)");
437 env << e.uid(); 437 env << e.uid();
438} 438}
439 439
440/* 440/*
441 * launches todolist 441 * launches todolist
442 */ 442 */
443void Today::startTodo() { 443void Today::startTodo() {
444 QCopEnvelope e("QPE/System", "execute(QString)"); 444 QCopEnvelope e("QPE/System", "execute(QString)");
445 e << QString("todolist"); 445 e << QString("todolist");
446} 446}
447 447
448/* 448/*
449 * launch opiemail 449 * launch opiemail
450 */ 450 */
451void Today::startMail() { 451void Today::startMail() {
452 QCopEnvelope e("QPE/System", "execute(QString)"); 452 QCopEnvelope e("QPE/System", "execute(QString)");
453 e << QString("opiemail"); 453 e << QString("opiemail");
454//Right now start both, maybe decide which to rum via config file .. 454//Right now start both, maybe decide which to rum via config file ..
455 QCopEnvelope e("QPE/System", "execute(QString)"); 455 QCopEnvelope f("QPE/System", "execute(QString)");
456 e << QString("qtmail"); 456 e << QString("qtmail");
457} 457}
458 458
459 459
460Today::~Today() { 460Today::~Today() {
461} 461}
462 462
463/* 463/*
464 * Gets the events for the current day, if it should get all dates 464 * Gets the events for the current day, if it should get all dates
465 */ 465 */
466DateBookEvent::DateBookEvent(const EffectiveEvent &ev, 466DateBookEvent::DateBookEvent(const EffectiveEvent &ev,
467 QWidget* parent = 0, 467 QWidget* parent = 0,
468 int SHOW_LOCATION = 0, 468 int SHOW_LOCATION = 0,
469 int SHOW_NOTES = 0, 469 int SHOW_NOTES = 0,
470 const char* name = 0, 470 const char* name = 0,
471 WFlags fl = 0) : 471 WFlags fl = 0) :
472 ClickableLabel(parent,name,fl), event(ev) { 472 ClickableLabel(parent,name,fl), event(ev) {
473 473
474 QString msg; 474 QString msg;
475 //QTime time = QTime::currentTime(); 475 //QTime time = QTime::currentTime();
476 476
477 Config config( "qpe" ); 477 Config config( "qpe" );
478 // if 24 h format 478 // if 24 h format
479 ampm = config.readBoolEntry( "AMPM", TRUE ); 479 ampm = config.readBoolEntry( "AMPM", TRUE );
480 480
481 481
482 if (!ONLY_LATER) { 482 if (!ONLY_LATER) {
483 msg += "<B>" + (ev).description() + "</B>"; 483 msg += "<B>" + (ev).description() + "</B>";
484 if ( (ev).event().hasAlarm() ) { 484 if ( (ev).event().hasAlarm() ) {
485 msg += " <b>[with alarm]</b>"; 485 msg += " <b>[with alarm]</b>";
486 } 486 }
487 // include location or not 487 // include location or not
488 if (SHOW_LOCATION == 1) { 488 if (SHOW_LOCATION == 1) {
489 msg += "<BR><i>" + (ev).location() + "</i>"; 489 msg += "<BR><i>" + (ev).location() + "</i>";
490 } 490 }
491 491
492 if ( (TimeString::timeString(QTime((ev).event().start().time()) ) == "00:00") && (TimeString::timeString(QTime((ev).event().end().time()) ) == "23:59") ) { 492 if ( (TimeString::timeString(QTime((ev).event().start().time()) ) == "00:00") && (TimeString::timeString(QTime((ev).event().end().time()) ) == "23:59") ) {
493 msg += "<br>All day"; 493 msg += "<br>All day";
494 } else { 494 } else {
495 // start time of event 495 // start time of event
496 msg += "<br>" + ampmTime(QTime((ev).event().start().time()) ) 496 msg += "<br>" + ampmTime(QTime((ev).event().start().time()) )
497 // end time of event 497 // end time of event
498 + "<b> - </b>" + ampmTime(QTime((ev).event().end().time()) ); 498 + "<b> - </b>" + ampmTime(QTime((ev).event().end().time()) );
499 } 499 }
500 500
501 // include possible note or not 501 // include possible note or not
502 if (SHOW_NOTES == 1) { 502 if (SHOW_NOTES == 1) {
503 msg += "<br> <i>note</i>:" +((ev).notes()).mid(0, MAX_CHAR_CLIP); 503 msg += "<br> <i>note</i>:" +((ev).notes()).mid(0, MAX_CHAR_CLIP);