|
|
|
@ -490,7 +490,7 @@ void MobileGui::readKabc()
|
|
|
|
|
|
|
|
|
|
warnKabState( LOADED );
|
|
|
|
|
|
|
|
|
|
emit statusMessage( i18n( "Reading KDE address book..." ) );
|
|
|
|
|
emit statusMessage( i18n( "Reading TDE address book..." ) );
|
|
|
|
|
|
|
|
|
|
mSyncer->mKabEntries.clear();
|
|
|
|
|
|
|
|
|
@ -640,7 +640,7 @@ void MobileGui::readKabc()
|
|
|
|
|
// Display KAB entries
|
|
|
|
|
updateKabBook();
|
|
|
|
|
|
|
|
|
|
emit transienStatusMessage( i18n( "Read KDE address book." ) );
|
|
|
|
|
emit transienStatusMessage( i18n( "Read TDE address book." ) );
|
|
|
|
|
|
|
|
|
|
setKabState( LOADED );
|
|
|
|
|
}
|
|
|
|
@ -948,7 +948,7 @@ void MobileGui::writeKabc()
|
|
|
|
|
|
|
|
|
|
addressBook->save( ticket );
|
|
|
|
|
|
|
|
|
|
emit transienStatusMessage( i18n( "Wrote KDE address book." ) );
|
|
|
|
|
emit transienStatusMessage( i18n( "Wrote TDE address book." ) );
|
|
|
|
|
|
|
|
|
|
setKabState( LOADED );
|
|
|
|
|
}
|
|
|
|
@ -1272,7 +1272,7 @@ void MobileGui::mergePhonebooks()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Put KDE Address Book list into Common List
|
|
|
|
|
// Put TDE Address Book list into Common List
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
for ( i = 0; i < mSyncer->mKabEntries.count(); i++ )
|
|
|
|
@ -1325,7 +1325,7 @@ void MobileGui::mergePhonebooks()
|
|
|
|
|
|
|
|
|
|
switch ( msg->exec() ) {
|
|
|
|
|
case 1:
|
|
|
|
|
// Use KDE Address Book Entry
|
|
|
|
|
// Use TDE Address Book Entry
|
|
|
|
|
mobileEntry->mPhone = theCommonEntry->mKabEntry->mPhone;
|
|
|
|
|
mobileEntry->mName = theCommonEntry->mKabEntry->mName;
|
|
|
|
|
mobileEntry->mOn = true;
|
|
|
|
@ -1526,19 +1526,19 @@ void MobileGui::setKabState( ABState newState )
|
|
|
|
|
{
|
|
|
|
|
switch ( mKabState ) {
|
|
|
|
|
case UNLOADED:
|
|
|
|
|
groupBox3->setTitle( tr2i18n( "KDE Address Book" ) );
|
|
|
|
|
groupBox3->setTitle( tr2i18n( "TDE Address Book" ) );
|
|
|
|
|
mReadKabButton->setEnabled( true );
|
|
|
|
|
PushButton8->setEnabled( false );
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case LOADED:
|
|
|
|
|
if ( newState == MODIFIED ) {
|
|
|
|
|
groupBox3->setTitle( tr2i18n( "KDE Address Book (modified)" ) );
|
|
|
|
|
groupBox3->setTitle( tr2i18n( "TDE Address Book (modified)" ) );
|
|
|
|
|
mReadKabButton->setEnabled( true );
|
|
|
|
|
PushButton8->setEnabled( true );
|
|
|
|
|
} else
|
|
|
|
|
if ( newState == UNLOADED ) {
|
|
|
|
|
groupBox3->setTitle( tr2i18n( "KDE Address Book" ) );
|
|
|
|
|
groupBox3->setTitle( tr2i18n( "TDE Address Book" ) );
|
|
|
|
|
mReadKabButton->setEnabled( true );
|
|
|
|
|
PushButton8->setEnabled( false );
|
|
|
|
|
}
|
|
|
|
@ -1546,7 +1546,7 @@ void MobileGui::setKabState( ABState newState )
|
|
|
|
|
|
|
|
|
|
case MODIFIED:
|
|
|
|
|
if ( newState != MODIFIED ) {
|
|
|
|
|
groupBox3->setTitle( tr2i18n( "KDE Address Book" ) );
|
|
|
|
|
groupBox3->setTitle( tr2i18n( "TDE Address Book" ) );
|
|
|
|
|
mReadKabButton->setEnabled( true );
|
|
|
|
|
PushButton8->setEnabled( false );
|
|
|
|
|
}
|
|
|
|
@ -1561,7 +1561,7 @@ void MobileGui::warnKabState( ABState newState )
|
|
|
|
|
{
|
|
|
|
|
if ( ( mKabState == MODIFIED ) && ( newState != MODIFIED ) ) {
|
|
|
|
|
TQString text = "<qt><b>" + i18n( "Warning" ) + "</b><br>";
|
|
|
|
|
text += i18n( "The KDE address book contains unsaved changes." ) +
|
|
|
|
|
text += i18n( "The TDE address book contains unsaved changes." ) +
|
|
|
|
|
"<br></qt>";
|
|
|
|
|
|
|
|
|
|
TQMessageBox *msg = new TQMessageBox( i18n( "Unsaved Changes" ), text,
|
|
|
|
|