author | zautrix <zautrix> | 2005-02-04 22:55:48 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-04 22:55:48 (UTC) |
commit | 53099ae3a9ef02549536dab3dd6870b7a2874284 (patch) (unidiff) | |
tree | d3b46b4a7ecd8c7071533957e4eee50aa75d893b | |
parent | 936b4b2aa37e699052a2517dc2d928d717398cf6 (diff) | |
download | kdepimpi-53099ae3a9ef02549536dab3dd6870b7a2874284.zip kdepimpi-53099ae3a9ef02549536dab3dd6870b7a2874284.tar.gz kdepimpi-53099ae3a9ef02549536dab3dd6870b7a2874284.tar.bz2 |
fixxx
-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 3 | ||||
-rw-r--r-- | korganizer/kolistview.cpp | 11 | ||||
-rw-r--r-- | korganizer/kolistview.h | 2 |
3 files changed, 10 insertions, 6 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 5a5b73e..8f63d1c 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1199,27 +1199,26 @@ | |||
1199 | { "Next week","Nächste Woche" }, | 1199 | { "Next week","Nächste Woche" }, |
1200 | { "Next two weeks","Nächste zwei Wochen" }, | 1200 | { "Next two weeks","Nächste zwei Wochen" }, |
1201 | { "Next month","Nächster Monat" }, | 1201 | { "Next month","Nächster Monat" }, |
1202 | { "Journal view","Journal" }, | 1202 | { "Journal view","Journal" }, |
1203 | { "Display all opened","Zeige alle geöffnet" }, | 1203 | { "Display all opened","Zeige alle geöffnet" }, |
1204 | { "Display all closed","Zeige alle geschlossen" }, | 1204 | { "Display all closed","Zeige alle geschlossen" }, |
1205 | { "Display all flat","Zeige alle flach" }, | 1205 | { "Display all flat","Zeige alle flach" }, |
1206 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, | 1206 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, |
1207 | { "Default todo done color:","Standard Todo erledigt Farbe" }, | 1207 | { "Default todo done color:","Standard Todo erledigt Farbe" }, |
1208 | { "Select week %1-%2","Selektiere Woche %1-%2" }, | 1208 | { "Select week %1-%2","Selektiere Woche %1-%2" }, |
1209 | { "Select Week","Selektiere Woche" }, | 1209 | { "Select Week","Selektiere Woche" }, |
1210 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, | 1210 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, |
1211 | { "Set reminder offset to:","Setze Alarm Offset auf:" }, | ||
1212 | { "Set Alarm!","Setze Alarm!" }, | 1211 | { "Set Alarm!","Setze Alarm!" }, |
1213 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, | 1212 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, |
1214 | { " and "," und " }, | 1213 | { " and "," und " }, |
1215 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, | 1214 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, |
1216 | { "Mail to selected","Mail an Ausgewählte" }, | 1215 | { "Mail to selected","Mail an Ausgewählte" }, |
1217 | { "Mail to all","Mail an Alle" }, | 1216 | { "Mail to all","Mail an Alle" }, |
1218 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, | 1217 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, |
1219 | { "","" }, | 1218 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, |
1220 | { "","" }, | 1219 | { "","" }, |
1221 | { "","" }, | 1220 | { "","" }, |
1222 | { "","" }, | 1221 | { "","" }, |
1223 | { "","" }, | 1222 | { "","" }, |
1224 | { "","" }, | 1223 | { "","" }, |
1225 | { "","" }, | 1224 | { "","" }, |
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index d4d9c0f..d0dbb47 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -347,35 +347,41 @@ void KOListView::setCat() | |||
347 | void KOListView::setAlarm() | 347 | void KOListView::setAlarm() |
348 | { | 348 | { |
349 | KOAlarmPrefs kap( this); | 349 | KOAlarmPrefs kap( this); |
350 | if ( !kap.exec() ) | 350 | if ( !kap.exec() ) |
351 | return; | 351 | return; |
352 | 352 | ||
353 | 353 | ||
354 | QStringList itemList; | 354 | QStringList itemList; |
355 | QPtrList<KOListViewItem> sel ; | 355 | QPtrList<KOListViewItem> sel ; |
356 | QListViewItem *qitem = mListView->firstChild (); | 356 | QListViewItem *qitem = mListView->firstChild (); |
357 | while ( qitem ) { | 357 | while ( qitem ) { |
358 | if ( qitem->isSelected() ) { | 358 | if ( qitem->isSelected() ) { |
359 | sel.append(((KOListViewItem *)qitem)); | 359 | Incidence* inc = ((KOListViewItem *) qitem)->data(); |
360 | if ( inc->type() != "Journal" ) { | ||
361 | if ( inc->type() == "Todo" ) { | ||
362 | if ( ((Todo*)inc)->hasDueDate() ) | ||
363 | sel.append(((KOListViewItem *)qitem)); | ||
364 | } else | ||
365 | sel.append(((KOListViewItem *)qitem)); | ||
366 | } | ||
360 | } | 367 | } |
361 | qitem = qitem->nextSibling(); | 368 | qitem = qitem->nextSibling(); |
362 | } | 369 | } |
363 | int count = 0; | 370 | int count = 0; |
364 | KOListViewItem * item, *temp; | 371 | KOListViewItem * item, *temp; |
365 | item = sel.first(); | 372 | item = sel.first(); |
366 | Incidence* inc; | 373 | Incidence* inc; |
367 | while ( item ) { | 374 | while ( item ) { |
368 | inc = item->data(); | 375 | inc = item->data(); |
369 | if ( inc->type() != "Journal" ) { | ||
370 | ++count; | 376 | ++count; |
371 | if (kap.mAlarmButton->isChecked()) { | 377 | if (kap.mAlarmButton->isChecked()) { |
372 | if (inc->alarms().count() == 0) | 378 | if (inc->alarms().count() == 0) |
373 | inc->newAlarm(); | 379 | inc->newAlarm(); |
374 | QPtrList<Alarm> alarms = inc->alarms(); | 380 | QPtrList<Alarm> alarms = inc->alarms(); |
375 | Alarm *alarm; | 381 | Alarm *alarm; |
376 | for (alarm = alarms.first(); alarm; alarm = alarms.next() ) { | 382 | for (alarm = alarms.first(); alarm; alarm = alarms.next() ) { |
377 | alarm->setEnabled(true); | 383 | alarm->setEnabled(true); |
378 | int j = kap.mAlarmTimeEdit->value()* -60; | 384 | int j = kap.mAlarmTimeEdit->value()* -60; |
379 | if (kap.mAlarmIncrCombo->currentItem() == 1) | 385 | if (kap.mAlarmIncrCombo->currentItem() == 1) |
380 | j = j * 60; | 386 | j = j * 60; |
381 | else if (kap.mAlarmIncrCombo->currentItem() == 2) | 387 | else if (kap.mAlarmIncrCombo->currentItem() == 2) |
@@ -391,25 +397,24 @@ void KOListView::setAlarm() | |||
391 | alarm->setType(Alarm::Invalid); | 397 | alarm->setType(Alarm::Invalid); |
392 | //alarm->setAudioAlarm("default"); | 398 | //alarm->setAudioAlarm("default"); |
393 | // TODO: Deal with multiple alarms | 399 | // TODO: Deal with multiple alarms |
394 | break; // For now, stop after the first alarm | 400 | break; // For now, stop after the first alarm |
395 | } | 401 | } |
396 | } else { | 402 | } else { |
397 | Alarm* alarm = inc->alarms().first(); | 403 | Alarm* alarm = inc->alarms().first(); |
398 | if ( alarm ) { | 404 | if ( alarm ) { |
399 | alarm->setEnabled(false); | 405 | alarm->setEnabled(false); |
400 | alarm->setType(Alarm::Invalid); | 406 | alarm->setType(Alarm::Invalid); |
401 | } | 407 | } |
402 | } | 408 | } |
403 | } | ||
404 | temp = item; | 409 | temp = item; |
405 | item = sel.next(); | 410 | item = sel.next(); |
406 | mUidDict.remove( inc->uid() ); | 411 | mUidDict.remove( inc->uid() ); |
407 | delete temp;; | 412 | delete temp;; |
408 | addIncidence( inc ); | 413 | addIncidence( inc ); |
409 | } | 414 | } |
410 | topLevelWidget()->setCaption( i18n("Canged alarm for %1 items").arg( count ) ); | 415 | topLevelWidget()->setCaption( i18n("Canged alarm for %1 items").arg( count ) ); |
411 | qDebug("KO: Set alarm for %d items", count); | 416 | qDebug("KO: Set alarm for %d items", count); |
412 | calendar()->reInitAlarmSettings(); | 417 | calendar()->reInitAlarmSettings(); |
413 | } | 418 | } |
414 | void KOListView::setCategories( bool removeOld ) | 419 | void KOListView::setCategories( bool removeOld ) |
415 | { | 420 | { |
diff --git a/korganizer/kolistview.h b/korganizer/kolistview.h index 78004fe..bd5bd12 100644 --- a/korganizer/kolistview.h +++ b/korganizer/kolistview.h | |||
@@ -59,25 +59,25 @@ using namespace KCal; | |||
59 | class KOAlarmPrefs : public QDialog | 59 | class KOAlarmPrefs : public QDialog |
60 | { | 60 | { |
61 | Q_OBJECT | 61 | Q_OBJECT |
62 | public: | 62 | public: |
63 | KOAlarmPrefs( QWidget *par=0, const char *name=0 ) : | 63 | KOAlarmPrefs( QWidget *par=0, const char *name=0 ) : |
64 | QDialog( par, name, true ) | 64 | QDialog( par, name, true ) |
65 | { | 65 | { |
66 | setCaption( i18n("Alarm Options") ); | 66 | setCaption( i18n("Alarm Options") ); |
67 | QVBoxLayout* alarmLayout = new QVBoxLayout( this ); | 67 | QVBoxLayout* alarmLayout = new QVBoxLayout( this ); |
68 | alarmLayout->setSpacing( 3 ); | 68 | alarmLayout->setSpacing( 3 ); |
69 | alarmLayout->setMargin( 3 ); | 69 | alarmLayout->setMargin( 3 ); |
70 | QWidget *parent = this; | 70 | QWidget *parent = this; |
71 | mAlarmButton = new QCheckBox(i18n("Set reminder offset to:"),parent); | 71 | mAlarmButton = new QCheckBox(i18n("Set reminder ON with offset to:"),parent); |
72 | alarmLayout->addWidget(mAlarmButton); | 72 | alarmLayout->addWidget(mAlarmButton); |
73 | mAlarmTimeEdit = new QSpinBox ( 0, 9999, 1, parent, "mAlarmTimeEdit " ) ; | 73 | mAlarmTimeEdit = new QSpinBox ( 0, 9999, 1, parent, "mAlarmTimeEdit " ) ; |
74 | mAlarmTimeEdit->setValue( 15 ); | 74 | mAlarmTimeEdit->setValue( 15 ); |
75 | alarmLayout->addWidget(mAlarmTimeEdit); | 75 | alarmLayout->addWidget(mAlarmTimeEdit); |
76 | mAlarmIncrCombo = new QComboBox(false, parent); | 76 | mAlarmIncrCombo = new QComboBox(false, parent); |
77 | mAlarmIncrCombo->insertItem(i18n("minute(s)")); | 77 | mAlarmIncrCombo->insertItem(i18n("minute(s)")); |
78 | mAlarmIncrCombo->insertItem(i18n("hour(s)")); | 78 | mAlarmIncrCombo->insertItem(i18n("hour(s)")); |
79 | mAlarmIncrCombo->insertItem(i18n("day(s)")); | 79 | mAlarmIncrCombo->insertItem(i18n("day(s)")); |
80 | alarmLayout->addWidget(mAlarmIncrCombo); | 80 | alarmLayout->addWidget(mAlarmIncrCombo); |
81 | QHBox * hb = new QHBox ( parent ); | 81 | QHBox * hb = new QHBox ( parent ); |
82 | alarmLayout->addWidget(hb); | 82 | alarmLayout->addWidget(hb); |
83 | mAlarmSoundButton = new QPushButton(hb); | 83 | mAlarmSoundButton = new QPushButton(hb); |