summaryrefslogtreecommitdiffabout
path: root/kalarmd
authorzautrix <zautrix>2005-06-14 19:52:48 (UTC)
committer zautrix <zautrix>2005-06-14 19:52:48 (UTC)
commitc50dea673d7bf65614e042a0e3c0c53c73c705a0 (patch) (unidiff)
tree04331039e86c4fa1976ba20b60acd2988dc8c19f /kalarmd
parentd9df54411b01cabaf51fcae62b91f227f7eff5f5 (diff)
downloadkdepimpi-c50dea673d7bf65614e042a0e3c0c53c73c705a0.zip
kdepimpi-c50dea673d7bf65614e042a0e3c0c53c73c705a0.tar.gz
kdepimpi-c50dea673d7bf65614e042a0e3c0c53c73c705a0.tar.bz2
fixx
Diffstat (limited to 'kalarmd') (more/less context) (ignore whitespace changes)
-rw-r--r--kalarmd/simplealarmdaemonimpl.cpp46
1 files changed, 15 insertions, 31 deletions
diff --git a/kalarmd/simplealarmdaemonimpl.cpp b/kalarmd/simplealarmdaemonimpl.cpp
index d6e06c8..eff96eb 100644
--- a/kalarmd/simplealarmdaemonimpl.cpp
+++ b/kalarmd/simplealarmdaemonimpl.cpp
@@ -404,7 +404,6 @@ void SimpleAlarmDaemonImpl::fillTimerPopUp()
404 configString += "#format: <Text for popup menu>;<timer countdown in minutes>\n"; 404 configString += "#format: <Text for popup menu>;<timer countdown in minutes>\n";
405 configString += "#NOTE: minimum value for timer are 3 minutes!\n"; 405 configString += "24 hours; 1440\n";
406 configString += "24 h; 1440\n"; 406 configString += "8 hours; 480\n";
407 configString += " 8 h; 480\n"; 407 configString += "5 hours; 300\n";
408 configString += " 5 h; 300\n"; 408 configString += "1 hour; 60\n";
409 configString += " 1 h; 60\n";
410 configString += "30 min; 30\n"; 409 configString += "30 min; 30\n";
@@ -436,4 +435,4 @@ void SimpleAlarmDaemonImpl::fillTimerPopUp()
436 int val = li[1].toInt( &ok ); 435 int val = li[1].toInt( &ok );
437 if ( ok && val > 2 ) { 436 if ( ok && val > 0 ) {
438 mTimerPopUp->insertItem( li[0], val); 437 mTimerPopUp->insertItem( li[0], val+10);
439 } 438 }
@@ -445,8 +444,8 @@ void SimpleAlarmDaemonImpl::fillTimerPopUp()
445#if 0 444#if 0
446 mTimerPopUp->insertItem( "24 h", 1440 ); 445 mTimerPopUp->insertItem( "24 hours", 1440 );
447 // mTimerPopUp->insertItem( i18n("12 h"), 720 ); 446 // mTimerPopUp->insertItem( i18n("12 h"), 720 );
448 mTimerPopUp->insertItem( " 8 h", 480 ); 447 mTimerPopUp->insertItem( " 8 hours", 480 );
449 mTimerPopUp->insertItem( " 5 h", 300 ); 448 mTimerPopUp->insertItem( " 5 hours", 300 );
450 // mTimerPopUp->insertItem( i18n(" 2 h"), 120 ); 449 // mTimerPopUp->insertItem( i18n(" 2 h"), 120 );
451 mTimerPopUp->insertItem( " 1 h", 60 ); 450 mTimerPopUp->insertItem( " 1 hour", 60 );
452 mTimerPopUp->insertItem( "30 min", 30 ); 451 mTimerPopUp->insertItem( "30 min", 30 );
@@ -507,3 +506,3 @@ void SimpleAlarmDaemonImpl::confTimer( int time )
507 506
508 AlarmServer::deleteAlarm ( mRunningTimer,"koalarm" , timerMesssage.latin1() ); 507 AlarmServer::deleteAlarm ( mRunningTimer,"koalarm" , timerMesssage.utf8() );
509 mTimerTime = 0; 508 mTimerTime = 0;
@@ -518,15 +517,3 @@ void SimpleAlarmDaemonImpl::confTimer( int time )
518 mess += ("Timer Alarm!\n"); 517 mess += ("Timer Alarm!\n");
519 if ( minutes == 22 ) { 518 if ( minutes == 3 ) {
520 mess += ( "Pizza is ready");
521 mRunningTimerText = "Pizza";
522 }
523 else if ( minutes == 45 ) {
524 mess += ( "Please wake up!");
525 mRunningTimerText = "Nap";
526 }
527 else if ( minutes == 5 ) {
528 mess += ( "Tea is ready");
529 mRunningTimerText = "Tea";
530 }
531 else if ( minutes == 3 ) {
532 mess += mCustomText; 519 mess += mCustomText;
@@ -612,8 +599,5 @@ void SimpleAlarmDaemonImpl::confTimer( int time )
612 else { 599 else {
613 mess+= QString::number ( minutes ) + ( " minutes are past!"); 600 mess += mTimerPopUp->text( minutes );
614 int min = minutes; 601 mRunningTimerText = mTimerPopUp->text( minutes );
615 if ( min % 60 == 0 ) 602 minutes -= 10;
616 mRunningTimerText = QString::number ( min/60 ) + ( " hours");
617 else
618 mRunningTimerText = QString::number ( minutes ) + ( " minutes");
619 } 603 }