Diffstat (limited to 'korganizer/koprefsdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koprefsdialog.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 3ee9a22..35a56ca 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -1420,97 +1420,96 @@ void KOPrefsDialog::usrReadConfig() | |||
1420 | // } | 1420 | // } |
1421 | 1421 | ||
1422 | //that soundmLocalTempFile->setText(KOPrefs::instance()->mLocalTempFile); | 1422 | //that soundmLocalTempFile->setText(KOPrefs::instance()->mLocalTempFile); |
1423 | mDefaultAlarmFile->setText(KOPrefs::instance()->mDefaultAlarmFile); | 1423 | mDefaultAlarmFile->setText(KOPrefs::instance()->mDefaultAlarmFile); |
1424 | updateCategories(); | 1424 | updateCategories(); |
1425 | mAlarmPlayBeeps->setValue(KOPrefs::instance()->mAlarmPlayBeeps ); | 1425 | mAlarmPlayBeeps->setValue(KOPrefs::instance()->mAlarmPlayBeeps ); |
1426 | mAlarmSuspendTime->setValue(KOPrefs::instance()->mAlarmSuspendTime ); | 1426 | mAlarmSuspendTime->setValue(KOPrefs::instance()->mAlarmSuspendTime ); |
1427 | mAlarmSuspendCount->setValue(KOPrefs::instance()->mAlarmSuspendCount ); | 1427 | mAlarmSuspendCount->setValue(KOPrefs::instance()->mAlarmSuspendCount ); |
1428 | mAlarmBeepInterval->setValue(KOPrefs::instance()->mAlarmBeepInterval ); | 1428 | mAlarmBeepInterval->setValue(KOPrefs::instance()->mAlarmBeepInterval ); |
1429 | 1429 | ||
1430 | } | 1430 | } |
1431 | 1431 | ||
1432 | 1432 | ||
1433 | void KOPrefsDialog::usrWriteConfig() | 1433 | void KOPrefsDialog::usrWriteConfig() |
1434 | { | 1434 | { |
1435 | 1435 | ||
1436 | 1436 | ||
1437 | KOPrefs::instance()->mDefaultAlarmFile =mDefaultAlarmFile->text(); | 1437 | KOPrefs::instance()->mDefaultAlarmFile =mDefaultAlarmFile->text(); |
1438 | KOPrefs::instance()->setFullName(mNameEdit->text()); | 1438 | KOPrefs::instance()->setFullName(mNameEdit->text()); |
1439 | KOPrefs::instance()->setEmail(mEmailEdit->text()); | 1439 | KOPrefs::instance()->setEmail(mEmailEdit->text()); |
1440 | 1440 | ||
1441 | KOPrefs::instance()->mAutoSaveInterval = mAutoSaveIntervalSpin->value(); | 1441 | KOPrefs::instance()->mAutoSaveInterval = mAutoSaveIntervalSpin->value(); |
1442 | KOPrefs::instance()->mStartTime = mStartTimeSpin->value(); | 1442 | KOPrefs::instance()->mStartTime = mStartTimeSpin->value(); |
1443 | KOPrefs::instance()->mDefaultDuration = mDefaultDurationSpin->value(); | 1443 | KOPrefs::instance()->mDefaultDuration = mDefaultDurationSpin->value(); |
1444 | KOPrefs::instance()->mAlarmTime = mAlarmTimeCombo->currentItem(); | 1444 | KOPrefs::instance()->mAlarmTime = mAlarmTimeCombo->currentItem(); |
1445 | 1445 | ||
1446 | QDictIterator<QColor> it(mCategoryDict); | 1446 | QDictIterator<QColor> it(mCategoryDict); |
1447 | while (it.current()) { | 1447 | while (it.current()) { |
1448 | KOPrefs::instance()->setCategoryColor(it.currentKey(),*it.current()); | 1448 | KOPrefs::instance()->setCategoryColor(it.currentKey(),*it.current()); |
1449 | ++it; | 1449 | ++it; |
1450 | } | 1450 | } |
1451 | 1451 | ||
1452 | KOPrefs::instance()->mNextXDays = mNextXDaysSpin->value(); | 1452 | KOPrefs::instance()->mNextXDays = mNextXDaysSpin->value(); |
1453 | KOPrefs::instance()->mWhatsNextDays = mWhatsNextSpin->value(); | 1453 | KOPrefs::instance()->mWhatsNextDays = mWhatsNextSpin->value(); |
1454 | KOPrefs::instance()->mWhatsNextPrios = mPrioSpin->value(); | 1454 | KOPrefs::instance()->mWhatsNextPrios = mPrioSpin->value(); |
1455 | 1455 | ||
1456 | KOPrefs::instance()->mAdditionalMails.clear(); | 1456 | KOPrefs::instance()->mAdditionalMails.clear(); |
1457 | // QListViewItem *item; | 1457 | // QListViewItem *item; |
1458 | // item = mAMails->firstChild(); | 1458 | // item = mAMails->firstChild(); |
1459 | // while (item) | 1459 | // while (item) |
1460 | // { | 1460 | // { |
1461 | // KOPrefs::instance()->mAdditionalMails.append( item->text(0) ); | 1461 | // KOPrefs::instance()->mAdditionalMails.append( item->text(0) ); |
1462 | // item = item->nextSibling(); | 1462 | // item = item->nextSibling(); |
1463 | // } | 1463 | // } |
1464 | KOPrefs::instance()->mAlarmPlayBeeps = mAlarmPlayBeeps->value(); | 1464 | KOPrefs::instance()->mAlarmPlayBeeps = mAlarmPlayBeeps->value(); |
1465 | KOPrefs::instance()->mAlarmSuspendTime = mAlarmSuspendTime->value() ; | 1465 | KOPrefs::instance()->mAlarmSuspendTime = mAlarmSuspendTime->value() ; |
1466 | KOPrefs::instance()->mAlarmSuspendCount= mAlarmSuspendCount->value() ; | 1466 | KOPrefs::instance()->mAlarmSuspendCount= mAlarmSuspendCount->value() ; |
1467 | KOPrefs::instance()->mAlarmBeepInterval= mAlarmBeepInterval->value() ; | 1467 | KOPrefs::instance()->mAlarmBeepInterval= mAlarmBeepInterval->value() ; |
1468 | |||
1469 | } | 1468 | } |
1470 | 1469 | ||
1471 | void KOPrefsDialog::updateCategories() | 1470 | void KOPrefsDialog::updateCategories() |
1472 | { | 1471 | { |
1473 | mCategoryCombo->clear(); | 1472 | mCategoryCombo->clear(); |
1474 | mCategoryDict.clear(); | 1473 | mCategoryDict.clear(); |
1475 | mCategoryCombo->insertStringList(KOPrefs::instance()->mCustomCategories); | 1474 | mCategoryCombo->insertStringList(KOPrefs::instance()->mCustomCategories); |
1476 | updateCategoryColor(); | 1475 | updateCategoryColor(); |
1477 | } | 1476 | } |
1478 | 1477 | ||
1479 | void KOPrefsDialog::toggleEmailSettings(bool on) | 1478 | void KOPrefsDialog::toggleEmailSettings(bool on) |
1480 | { | 1479 | { |
1481 | if (on) { | 1480 | if (on) { |
1482 | mEmailEdit->setEnabled(false); | 1481 | mEmailEdit->setEnabled(false); |
1483 | mNameEdit->setEnabled(false); | 1482 | mNameEdit->setEnabled(false); |
1484 | mEmailLabel->setEnabled(false); | 1483 | mEmailLabel->setEnabled(false); |
1485 | mNameLabel->setEnabled(false); | 1484 | mNameLabel->setEnabled(false); |
1486 | 1485 | ||
1487 | KEMailSettings settings; | 1486 | KEMailSettings settings; |
1488 | mNameEdit->setText(settings.getSetting(KEMailSettings::RealName)); | 1487 | mNameEdit->setText(settings.getSetting(KEMailSettings::RealName)); |
1489 | mEmailEdit->setText(settings.getSetting(KEMailSettings::EmailAddress)); | 1488 | mEmailEdit->setText(settings.getSetting(KEMailSettings::EmailAddress)); |
1490 | } else { | 1489 | } else { |
1491 | mEmailEdit->setEnabled(true); | 1490 | mEmailEdit->setEnabled(true); |
1492 | mNameEdit->setEnabled(true); | 1491 | mNameEdit->setEnabled(true); |
1493 | mEmailLabel->setEnabled(true); | 1492 | mEmailLabel->setEnabled(true); |
1494 | mNameLabel->setEnabled(true); | 1493 | mNameLabel->setEnabled(true); |
1495 | } | 1494 | } |
1496 | } | 1495 | } |
1497 | 1496 | ||
1498 | void KOPrefsDialog::addItem() | 1497 | void KOPrefsDialog::addItem() |
1499 | { | 1498 | { |
1500 | // aEmailsEdit->setEnabled(true); | 1499 | // aEmailsEdit->setEnabled(true); |
1501 | // QListViewItem *item = new QListViewItem(mAMails); | 1500 | // QListViewItem *item = new QListViewItem(mAMails); |
1502 | // mAMails->insertItem(item); | 1501 | // mAMails->insertItem(item); |
1503 | // mAMails->setSelected(item,true); | 1502 | // mAMails->setSelected(item,true); |
1504 | // aEmailsEdit->setText(i18n("(EmptyEmail)")); | 1503 | // aEmailsEdit->setText(i18n("(EmptyEmail)")); |
1505 | } | 1504 | } |
1506 | 1505 | ||
1507 | void KOPrefsDialog::removeItem() | 1506 | void KOPrefsDialog::removeItem() |
1508 | { | 1507 | { |
1509 | // QListViewItem *item; | 1508 | // QListViewItem *item; |
1510 | // item = mAMails->selectedItem(); | 1509 | // item = mAMails->selectedItem(); |
1511 | // if (!item) return; | 1510 | // if (!item) return; |
1512 | // mAMails->takeItem(item); | 1511 | // mAMails->takeItem(item); |
1513 | // item = mAMails->selectedItem(); | 1512 | // item = mAMails->selectedItem(); |
1514 | // if (!item) { | 1513 | // if (!item) { |
1515 | // aEmailsEdit->setText(""); | 1514 | // aEmailsEdit->setText(""); |
1516 | // aEmailsEdit->setEnabled(false); | 1515 | // aEmailsEdit->setEnabled(false); |