author | zautrix <zautrix> | 2004-10-04 22:10:20 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-04 22:10:20 (UTC) |
commit | c22811d11414872fc0525350a8a1afdae61be346 (patch) (unidiff) | |
tree | daafa0c4333022d44dafb2945ba36ff58d5c45d1 /libkdepim | |
parent | f53ef630b9299ceae666e64da8ce022813795ed6 (diff) | |
download | kdepimpi-c22811d11414872fc0525350a8a1afdae61be346.zip kdepimpi-c22811d11414872fc0525350a8a1afdae61be346.tar.gz kdepimpi-c22811d11414872fc0525350a8a1afdae61be346.tar.bz2 |
many sync fixes
-rw-r--r-- | libkdepim/ksyncprefsdialog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libkdepim/ksyncprefsdialog.cpp b/libkdepim/ksyncprefsdialog.cpp index f05c846..0caa27e 100644 --- a/libkdepim/ksyncprefsdialog.cpp +++ b/libkdepim/ksyncprefsdialog.cpp | |||
@@ -181,25 +181,25 @@ void KSyncPrefsDialog::setupSyncAlgTab() | |||
181 | topLayout->addMultiCellWidget(mWriteBackFuture, iii,iii,0,1); | 181 | topLayout->addMultiCellWidget(mWriteBackFuture, iii,iii,0,1); |
182 | ++iii; | 182 | ++iii; |
183 | topLayout->addMultiCellWidget(new QLabel( i18n("---- Max. weeks in future: ") , topFrame ), iii,iii,0,0); | 183 | topLayout->addMultiCellWidget(new QLabel( i18n("---- Max. weeks in future: ") , topFrame ), iii,iii,0,0); |
184 | mWriteBackFutureWeeks= new QSpinBox(1,104, 1, topFrame); | 184 | mWriteBackFutureWeeks= new QSpinBox(1,104, 1, topFrame); |
185 | topLayout->addMultiCellWidget(mWriteBackFutureWeeks, iii,iii,1,1); | 185 | topLayout->addMultiCellWidget(mWriteBackFutureWeeks, iii,iii,1,1); |
186 | ++iii; | 186 | ++iii; |
187 | 187 | ||
188 | proGr = new QButtonGroup ( 1, Qt::Horizontal, i18n("Profile kind"), topFrame); | 188 | proGr = new QButtonGroup ( 1, Qt::Horizontal, i18n("Profile kind"), topFrame); |
189 | gr = proGr; | 189 | gr = proGr; |
190 | topLayout->addMultiCellWidget(gr, iii,iii,0,1); | 190 | topLayout->addMultiCellWidget(gr, iii,iii,0,1); |
191 | ++iii; | 191 | ++iii; |
192 | mIsLocal = new QRadioButton ( i18n("Local file"), gr ); | 192 | mIsLocal = new QRadioButton ( i18n("Local file"), gr ); |
193 | mIsPi = new QRadioButton ( i18n("Quick Pi-Sync"), gr ); | 193 | mIsPi = new QRadioButton ( i18n("Pi-Sync ( direct Kx/Pi to Kx/Pi sync )"), gr ); |
194 | connect (mIsPi, SIGNAL( toggled(bool)), this, SLOT (kindChanged(bool) ) ); | 194 | connect (mIsPi, SIGNAL( toggled(bool)), this, SLOT (kindChanged(bool) ) ); |
195 | mIsNotLocal = new QRadioButton ( i18n("Remote file (w down/upload command)"), gr ); | 195 | mIsNotLocal = new QRadioButton ( i18n("Remote file (w down/upload command)"), gr ); |
196 | connect (mIsLocal, SIGNAL( toggled(bool)), this, SLOT (kindChanged(bool) ) ); | 196 | connect (mIsLocal, SIGNAL( toggled(bool)), this, SLOT (kindChanged(bool) ) ); |
197 | mIsPhone = new QRadioButton ( i18n("Mobile device (cell phone)"), gr ); | 197 | mIsPhone = new QRadioButton ( i18n("Mobile device (cell phone)"), gr ); |
198 | connect (mIsPhone, SIGNAL( toggled(bool)), this, SLOT (kindChanged(bool) ) ); | 198 | connect (mIsPhone, SIGNAL( toggled(bool)), this, SLOT (kindChanged(bool) ) ); |
199 | 199 | ||
200 | 200 | ||
201 | phoneWidget = new QVBox( topFrame); | 201 | phoneWidget = new QVBox( topFrame); |
202 | topLayout->addMultiCellWidget(phoneWidget, iii,iii,0,1); | 202 | topLayout->addMultiCellWidget(phoneWidget, iii,iii,0,1); |
203 | ++iii; | 203 | ++iii; |
204 | mWriteContactToSIM= new QCheckBox( i18n("Sync contacts with phone SIM card (If not, sync with phone memory)"), phoneWidget ); | 204 | mWriteContactToSIM= new QCheckBox( i18n("Sync contacts with phone SIM card (If not, sync with phone memory)"), phoneWidget ); |
205 | QHBox* temphb = new QHBox( phoneWidget ); | 205 | QHBox* temphb = new QHBox( phoneWidget ); |
@@ -447,25 +447,26 @@ void KSyncPrefsDialog::profileChanged( int item ) | |||
447 | break; | 447 | break; |
448 | case 5: | 448 | case 5: |
449 | f_rem->setChecked( true); | 449 | f_rem->setChecked( true); |
450 | break; | 450 | break; |
451 | case 6: | 451 | case 6: |
452 | //both->setChecked( true); | 452 | //both->setChecked( true); |
453 | break; | 453 | break; |
454 | default: | 454 | default: |
455 | break; | 455 | break; |
456 | } | 456 | } |
457 | mIsLocal->setChecked(prof->getIsLocalFileSync()) ; | 457 | mIsLocal->setChecked(prof->getIsLocalFileSync()) ; |
458 | mIsPhone->setChecked(prof->getIsPhoneSync()) ; | 458 | mIsPhone->setChecked(prof->getIsPhoneSync()) ; |
459 | mIsNotLocal->setChecked(!prof->getIsLocalFileSync() && !prof->getIsPhoneSync() ); | 459 | mIsPi->setChecked(prof->getIsPiSync()) ; |
460 | mIsNotLocal->setChecked(!prof->getIsLocalFileSync() && !prof->getIsPhoneSync() &&!prof->getIsPiSync() ); | ||
460 | proGr->setEnabled( item > 2 ); | 461 | proGr->setEnabled( item > 2 ); |
461 | if ( item < 3 ) { | 462 | if ( item < 3 ) { |
462 | localFileWidget->hide(); | 463 | localFileWidget->hide(); |
463 | remoteFileWidget->hide(); | 464 | remoteFileWidget->hide(); |
464 | phoneWidget->hide(); | 465 | phoneWidget->hide(); |
465 | piWidget->hide(); | 466 | piWidget->hide(); |
466 | 467 | ||
467 | } else | 468 | } else |
468 | kindChanged( prof->getIsLocalFileSync() ); | 469 | kindChanged( prof->getIsLocalFileSync() ); |
469 | } | 470 | } |
470 | 471 | ||
471 | void KSyncPrefsDialog::fillSSH() | 472 | void KSyncPrefsDialog::fillSSH() |
@@ -568,24 +569,25 @@ void KSyncPrefsDialog::saveProfile() | |||
568 | prof->setRemoteFileNamePWM( mRemoteFilePWM->text() ); | 569 | prof->setRemoteFileNamePWM( mRemoteFilePWM->text() ); |
569 | prof->setShowSummaryAfterSync( mShowSummaryAfterSync->isChecked() ); | 570 | prof->setShowSummaryAfterSync( mShowSummaryAfterSync->isChecked() ); |
570 | prof->setAskForPreferences( mAskForPreferences->isChecked()); | 571 | prof->setAskForPreferences( mAskForPreferences->isChecked()); |
571 | prof->setWriteBackExisting(mWriteBackExisting->isChecked() ); | 572 | prof->setWriteBackExisting(mWriteBackExisting->isChecked() ); |
572 | prof->setWriteBackFile( mWriteBackFile->isChecked()); | 573 | prof->setWriteBackFile( mWriteBackFile->isChecked()); |
573 | prof->setIncludeInRingSync( mIncludeInRing->isChecked() ); | 574 | prof->setIncludeInRingSync( mIncludeInRing->isChecked() ); |
574 | prof->setIncludeInRingSyncAB( mIncludeInRingAB->isChecked() ); | 575 | prof->setIncludeInRingSyncAB( mIncludeInRingAB->isChecked() ); |
575 | prof->setIncludeInRingSyncPWM( mIncludeInRingPWM->isChecked() ); | 576 | prof->setIncludeInRingSyncPWM( mIncludeInRingPWM->isChecked() ); |
576 | int syncprefs = rem->isChecked()*1+newest->isChecked()*2+ ask->isChecked()*3+ f_loc->isChecked()*4+ f_rem->isChecked()*5 ;//+ both->isChecked()*6 ; | 577 | int syncprefs = rem->isChecked()*1+newest->isChecked()*2+ ask->isChecked()*3+ f_loc->isChecked()*4+ f_rem->isChecked()*5 ;//+ both->isChecked()*6 ; |
577 | prof->setSyncPrefs( syncprefs); | 578 | prof->setSyncPrefs( syncprefs); |
578 | prof->setIsLocalFileSync( mIsLocal->isChecked() ); | 579 | prof->setIsLocalFileSync( mIsLocal->isChecked() ); |
579 | prof->setIsPhoneSync( mIsPhone->isChecked() ); | 580 | prof->setIsPhoneSync( mIsPhone->isChecked() ); |
581 | prof->setIsPiSync( mIsPi->isChecked() ); | ||
580 | prof->setWriteBackFuture(mWriteBackFuture->isChecked()); | 582 | prof->setWriteBackFuture(mWriteBackFuture->isChecked()); |
581 | prof->setWriteBackFutureWeeks(mWriteBackFutureWeeks->value()); | 583 | prof->setWriteBackFutureWeeks(mWriteBackFutureWeeks->value()); |
582 | 584 | ||
583 | prof->setWriteContactToSIM(mWriteContactToSIM->isChecked()); | 585 | prof->setWriteContactToSIM(mWriteContactToSIM->isChecked()); |
584 | prof->setPhoneDevice( mPhoneDevice->text() ); | 586 | prof->setPhoneDevice( mPhoneDevice->text() ); |
585 | prof->setPhoneConnection( mPhoneConnection->text() ); | 587 | prof->setPhoneConnection( mPhoneConnection->text() ); |
586 | prof->setPhoneModel( mPhoneModel->text() ); | 588 | prof->setPhoneModel( mPhoneModel->text() ); |
587 | 589 | ||
588 | } | 590 | } |
589 | 591 | ||
590 | } | 592 | } |
591 | 593 | ||