kpilot/kpilot

kpilotConfigDialog_sync.cc

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './kpilotConfigDialog_sync.ui'
00005 **
00006 ** Created: Thu Mar 29 05:52:08 2007
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "kpilotConfigDialog_sync.h"
00013 
00014 #include <qvariant.h>
00015 #include <qcheckbox.h>
00016 #include <qcombobox.h>
00017 #include <qlabel.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 
00022 /*
00023  *  Constructs a SyncConfigWidget as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
00025  */
00026 SyncConfigWidget::SyncConfigWidget( QWidget* parent, const char* name, WFlags fl )
00027     : QWidget( parent, name, fl )
00028 {
00029     if ( !name )
00030     setName( "SyncConfigForm" );
00031     SyncConfigFormLayout = new QGridLayout( this, 1, 1, 0, 6, "SyncConfigFormLayout"); 
00032 
00033     fFullSyncCheck = new QCheckBox( this, "fFullSyncCheck" );
00034     fFullSyncCheck->setChecked( TRUE );
00035 
00036     SyncConfigFormLayout->addWidget( fFullSyncCheck, 1, 1 );
00037 
00038     fSpecialSync = new QComboBox( FALSE, this, "fSpecialSync" );
00039 
00040     SyncConfigFormLayout->addWidget( fSpecialSync, 0, 1 );
00041 
00042     textLabel1_2 = new QLabel( this, "textLabel1_2" );
00043 
00044     SyncConfigFormLayout->addWidget( textLabel1_2, 0, 0 );
00045     spacer3 = new QSpacerItem( 20, 170, QSizePolicy::Minimum, QSizePolicy::Expanding );
00046     SyncConfigFormLayout->addItem( spacer3, 4, 1 );
00047 
00048     fConflictResolution = new QComboBox( FALSE, this, "fConflictResolution" );
00049 
00050     SyncConfigFormLayout->addWidget( fConflictResolution, 3, 1 );
00051 
00052     textLabel1 = new QLabel( this, "textLabel1" );
00053     textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
00054 
00055     SyncConfigFormLayout->addWidget( textLabel1, 3, 0 );
00056 
00057     fScreenlockSecure = new QCheckBox( this, "fScreenlockSecure" );
00058     fScreenlockSecure->setChecked( TRUE );
00059 
00060     SyncConfigFormLayout->addWidget( fScreenlockSecure, 2, 1 );
00061     languageChange();
00062     resize( QSize(593, 332).expandedTo(minimumSizeHint()) );
00063     clearWState( WState_Polished );
00064 
00065     // buddies
00066     textLabel1_2->setBuddy( fSpecialSync );
00067     textLabel1->setBuddy( fConflictResolution );
00068 }
00069 
00070 /*
00071  *  Destroys the object and frees any allocated resources
00072  */
00073 SyncConfigWidget::~SyncConfigWidget()
00074 {
00075     // no need to delete child widgets, Qt does it all for us
00076 }
00077 
00078 /*
00079  *  Sets the strings of the subwidgets using the current
00080  *  language.
00081  */
00082 void SyncConfigWidget::languageChange()
00083 {
00084     setCaption( tr2i18n( "KPilot Options" ) );
00085     fFullSyncCheck->setText( tr2i18n( "Do full sync when chan&ging PCs" ) );
00086     QWhatsThis::add( fFullSyncCheck, tr2i18n( "<qt>Check this box to perform a full sync when your last sync was performed with another PC or system, to guarantee the completeness of your data.</qt>" ) );
00087     fSpecialSync->clear();
00088     fSpecialSync->insertItem( tr2i18n( "HotSync (sync all changes)" ) );
00089     fSpecialSync->insertItem( tr2i18n( "FullSync (sync also unchanged records)" ) );
00090     fSpecialSync->insertItem( tr2i18n( "Copy PC to Handheld" ) );
00091     fSpecialSync->insertItem( tr2i18n( "Copy Handheld to PC" ) );
00092     QWhatsThis::add( fSpecialSync, tr2i18n( "<qt>Select in this list the synchronization type that KPilot will use as default. Possible values are:<br>\"HotSync\", to run all selected conduits, and sync the databases with a modified flag set, updating the modified records only;<br>\"FullSync\" to run all selected conduits, and sync all databases, reading all records, and performing a full backup;<br>\"Copy PC to handheld\" to run all conduits and sync all databases, but instead of merging the information from both sources, copy the PC data to the handheld;<br>\"Copy handheld to PC\" to run all conduits and sync all databases, but instead of merging the information from both sources, copy the handheld data to the PC.</qt>" ) );
00093     textLabel1_2->setText( tr2i18n( "&Default sync:" ) );
00094     fConflictResolution->clear();
00095     fConflictResolution->insertItem( tr2i18n( "Ask User" ) );
00096     fConflictResolution->insertItem( tr2i18n( "Do Nothing" ) );
00097     fConflictResolution->insertItem( tr2i18n( "Handheld Overrides" ) );
00098     fConflictResolution->insertItem( tr2i18n( "PC Overrides" ) );
00099     fConflictResolution->insertItem( tr2i18n( "Values From Last Sync (if possible)" ) );
00100     fConflictResolution->insertItem( tr2i18n( "Use Both Entries" ) );
00101     QWhatsThis::add( fConflictResolution, tr2i18n( "<qt>Select in this list how conflicting entries (entries which were edited both on your handheld and on the PC) are resolved. Possibly values are  \"Ask User\" to let you decide case by case, \"Do Nothing\" to allow the entries to be different, \"PC overrides\", \"Handheld overrides\", \"Use values from last sync\" and \"Use both entries\" to create a new entry on both the PC and handheld. Note that the conflict resolution option selected here can be overridden by conduits that have their own conflict resolution configuration.</qt>" ) );
00102     textLabel1->setText( tr2i18n( "Conflict &resolution:" ) );
00103     fScreenlockSecure->setText( tr2i18n( "Do not sync when screensaver is active" ) );
00104     QWhatsThis::add( fScreenlockSecure, tr2i18n( "<qt>Check this box to prevent KPilot from syncing your handheld while the screensaver is active: this is a security measure to prevent others from syncing <i>their</i> handhelds with your data.  This option must be disabled when you use a different desktop, since KPilot is not aware of screensavers other than KDE's.</qt>" ) );
00105 }
00106 
00107 #include "kpilotConfigDialog_sync.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys