kpilot/kpilot

kpilotConfigDialog_backup.cc

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './kpilotConfigDialog_backup.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_backup.h"
00013 
00014 #include <qvariant.h>
00015 #include <qgroupbox.h>
00016 #include <qlabel.h>
00017 #include <qcombobox.h>
00018 #include <qlineedit.h>
00019 #include <qpushbutton.h>
00020 #include <qcheckbox.h>
00021 #include <qlayout.h>
00022 #include <qtooltip.h>
00023 #include <qwhatsthis.h>
00024 
00025 /*
00026  *  Constructs a BackupConfigWidget as a child of 'parent', with the
00027  *  name 'name' and widget flags set to 'f'.
00028  */
00029 BackupConfigWidget::BackupConfigWidget( QWidget* parent, const char* name, WFlags fl )
00030     : QWidget( parent, name, fl )
00031 {
00032     if ( !name )
00033     setName( "BackupConfigForm" );
00034     BackupConfigFormLayout = new QVBoxLayout( this, 11, 6, "BackupConfigFormLayout"); 
00035 
00036     GroupBox23_2 = new QGroupBox( this, "GroupBox23_2" );
00037     GroupBox23_2->setColumnLayout(0, Qt::Vertical );
00038     GroupBox23_2->layout()->setSpacing( 6 );
00039     GroupBox23_2->layout()->setMargin( 11 );
00040     GroupBox23_2Layout = new QHBoxLayout( GroupBox23_2->layout() );
00041     GroupBox23_2Layout->setAlignment( Qt::AlignTop );
00042 
00043     TextLabel5_2 = new QLabel( GroupBox23_2, "TextLabel5_2" );
00044     TextLabel5_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, TextLabel5_2->sizePolicy().hasHeightForWidth() ) );
00045     TextLabel5_2->setMinimumSize( QSize( 100, 0 ) );
00046     GroupBox23_2Layout->addWidget( TextLabel5_2 );
00047 
00048     fBackupFrequency = new QComboBox( FALSE, GroupBox23_2, "fBackupFrequency" );
00049     fBackupFrequency->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, fBackupFrequency->sizePolicy().hasHeightForWidth() ) );
00050     GroupBox23_2Layout->addWidget( fBackupFrequency );
00051     BackupConfigFormLayout->addWidget( GroupBox23_2 );
00052 
00053     GroupBox23 = new QGroupBox( this, "GroupBox23" );
00054     GroupBox23->setColumnLayout(0, Qt::Vertical );
00055     GroupBox23->layout()->setSpacing( 6 );
00056     GroupBox23->layout()->setMargin( 11 );
00057     GroupBox23Layout = new QGridLayout( GroupBox23->layout() );
00058     GroupBox23Layout->setAlignment( Qt::AlignTop );
00059 
00060     TextLabel5 = new QLabel( GroupBox23, "TextLabel5" );
00061     TextLabel5->setMinimumSize( QSize( 100, 0 ) );
00062 
00063     GroupBox23Layout->addWidget( TextLabel5, 0, 0 );
00064 
00065     TextLabel6 = new QLabel( GroupBox23, "TextLabel6" );
00066     TextLabel6->setMinimumSize( QSize( 100, 0 ) );
00067 
00068     GroupBox23Layout->addWidget( TextLabel6, 1, 0 );
00069 
00070     fBackupOnly = new QLineEdit( GroupBox23, "fBackupOnly" );
00071 
00072     GroupBox23Layout->addWidget( fBackupOnly, 0, 1 );
00073 
00074     fSkipDB = new QLineEdit( GroupBox23, "fSkipDB" );
00075 
00076     GroupBox23Layout->addWidget( fSkipDB, 1, 1 );
00077 
00078     fBackupOnlyChooser = new QPushButton( GroupBox23, "fBackupOnlyChooser" );
00079 
00080     GroupBox23Layout->addWidget( fBackupOnlyChooser, 0, 2 );
00081 
00082     fSkipDBChooser = new QPushButton( GroupBox23, "fSkipDBChooser" );
00083 
00084     GroupBox23Layout->addWidget( fSkipDBChooser, 1, 2 );
00085     BackupConfigFormLayout->addWidget( GroupBox23 );
00086 
00087     fRunConduitsWithBackup = new QCheckBox( this, "fRunConduitsWithBackup" );
00088     BackupConfigFormLayout->addWidget( fRunConduitsWithBackup );
00089     spacer8 = new QSpacerItem( 20, 41, QSizePolicy::Minimum, QSizePolicy::Expanding );
00090     BackupConfigFormLayout->addItem( spacer8 );
00091     languageChange();
00092     resize( QSize(549, 424).expandedTo(minimumSizeHint()) );
00093     clearWState( WState_Polished );
00094 
00095     // buddies
00096     TextLabel5_2->setBuddy( fBackupFrequency );
00097     TextLabel5->setBuddy( fBackupOnly );
00098     TextLabel6->setBuddy( fSkipDB );
00099 }
00100 
00101 /*
00102  *  Destroys the object and frees any allocated resources
00103  */
00104 BackupConfigWidget::~BackupConfigWidget()
00105 {
00106     // no need to delete child widgets, Qt does it all for us
00107 }
00108 
00109 /*
00110  *  Sets the strings of the subwidgets using the current
00111  *  language.
00112  */
00113 void BackupConfigWidget::languageChange()
00114 {
00115     setCaption( tr2i18n( "KPilot Options" ) );
00116     GroupBox23_2->setTitle( tr2i18n( "Backup Frequency" ) );
00117     TextLabel5_2->setText( tr2i18n( "Do &backup:" ) );
00118     fBackupFrequency->clear();
00119     fBackupFrequency->insertItem( tr2i18n( "On every HotSync" ) );
00120     fBackupFrequency->insertItem( tr2i18n( "On request only" ) );
00121     GroupBox23->setTitle( tr2i18n( "Databases" ) );
00122     TextLabel5->setText( tr2i18n( "&No backup:" ) );
00123     QWhatsThis::add( TextLabel5, tr2i18n( "<qt><p>Enter the databases types you wish to exclude from the backup operation here. Use this setting if backing up some databases crashes the handheld, or if you do not want a backup of some databases (like AvantGo pages).</p><p>Entries with square brackets [] are <i>creator codes</i> like <tt>[lnch]</tt> and can exclude a whole range of databases. Entries without the brackets list database names, and may include shell-style wildcards, like <tt>*_a68k</tt>.</p></qt>" ) );
00124     TextLabel6->setText( tr2i18n( "Not &restored:" ) );
00125     QWhatsThis::add( TextLabel6, tr2i18n( "<qt><p>Enter the databases types you wish to exclude from the restore operation here (like AvantGo databases). They will be skipped even if they exist in the set of backup databases on the handheld. If you still want to install an ignored database to the handheld, you can always manually install it to the handheld.</p><p>Entries with square brackets [] are <i>creator codes</i> like <tt>[lnch]</tt> and can exclude a whole range of databases. Entries without the brackets list database names, and may include shell-style wildcards, like <tt>*_a68k</tt>.</p></qt>" ) );
00126     QWhatsThis::add( fBackupOnly, tr2i18n( "<qt><p>Enter the databases types you wish to exclude from the backup operation here. Use this setting if backing up some databases crashes the handheld, or if you do not want a backup of some databases (like AvantGo pages).</p><p>Entries with square brackets [] are <i>creator codes</i> like <tt>[lnch]</tt> and can exclude a whole range of databases. Entries without the brackets list database names, and may include shell-style wildcards, like <tt>*_a68k</tt>.</p></qt>" ) );
00127     QWhatsThis::add( fSkipDB, tr2i18n( "<qt><p>Enter the databases types you wish to exclude from the restore operation here (like AvantGo databases). They will be skipped even if they exist in the set of backup databases on the handheld. If you still want to install an ignored database to the handheld, you can always manually install it to the handheld.</p><p>Entries with square brackets [] are <i>creator codes</i> like <tt>[lnch]</tt> and can exclude a whole range of databases. Entries without the brackets list database names, and may include shell-style wildcards, like <tt>*_a68k</tt>.</p></qt>" ) );
00128     fBackupOnlyChooser->setText( tr2i18n( "..." ) );
00129     QWhatsThis::add( fBackupOnlyChooser, tr2i18n( "<qt>Click here to open the database selection dialog. This dialog allows you to check the databases you want to exclude from the backup from a list.</qt>" ) );
00130     fSkipDBChooser->setText( tr2i18n( "..." ) );
00131     QWhatsThis::add( fSkipDBChooser, tr2i18n( "<qt>Click here to open the database selection dialog. This dialog allows you to select the databases you want to exclude from the restore operation from a list.</qt>" ) );
00132     fRunConduitsWithBackup->setText( tr2i18n( "Run conduits durin&g a backup sync" ) );
00133     QWhatsThis::add( fRunConduitsWithBackup, tr2i18n( "<qt>Check this box to run the selected conduits before every backup. This makes sure the backup is up to date with the last changes from your PC.</qt>" ) );
00134 }
00135 
00136 #include "kpilotConfigDialog_backup.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys