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: Wed Jun 13 15:50:26 2012
00007 **
00008 ** WARNING! All changes made in this file will be lost!
00009 ****************************************************************************/
00010 
00011 #include "kpilotConfigDialog_backup.h"
00012 
00013 #include <qvariant.h>
00014 #include <qgroupbox.h>
00015 #include <qlabel.h>
00016 #include <qcombobox.h>
00017 #include <qlineedit.h>
00018 #include <qpushbutton.h>
00019 #include <qcheckbox.h>
00020 #include <qlayout.h>
00021 #include <qtooltip.h>
00022 #include <qwhatsthis.h>
00023 
00024 /*
00025  *  Constructs a BackupConfigWidget as a child of 'parent', with the
00026  *  name 'name' and widget flags set to 'f'.
00027  */
00028 BackupConfigWidget::BackupConfigWidget( QWidget* parent, const char* name, WFlags fl )
00029     : QWidget( parent, name, fl )
00030 {
00031     if ( !name )
00032     setName( "BackupConfigForm" );
00033     BackupConfigFormLayout = new QVBoxLayout( this, 11, 6, "BackupConfigFormLayout"); 
00034 
00035     GroupBox23_2 = new QGroupBox( this, "GroupBox23_2" );
00036     GroupBox23_2->setColumnLayout(0, Qt::Vertical );
00037     GroupBox23_2->layout()->setSpacing( 6 );
00038     GroupBox23_2->layout()->setMargin( 11 );
00039     GroupBox23_2Layout = new QHBoxLayout( GroupBox23_2->layout() );
00040     GroupBox23_2Layout->setAlignment( Qt::AlignTop );
00041 
00042     TextLabel5_2 = new QLabel( GroupBox23_2, "TextLabel5_2" );
00043     TextLabel5_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, TextLabel5_2->sizePolicy().hasHeightForWidth() ) );
00044     TextLabel5_2->setMinimumSize( QSize( 100, 0 ) );
00045     GroupBox23_2Layout->addWidget( TextLabel5_2 );
00046 
00047     fBackupFrequency = new QComboBox( FALSE, GroupBox23_2, "fBackupFrequency" );
00048     fBackupFrequency->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, fBackupFrequency->sizePolicy().hasHeightForWidth() ) );
00049     GroupBox23_2Layout->addWidget( fBackupFrequency );
00050     BackupConfigFormLayout->addWidget( GroupBox23_2 );
00051 
00052     GroupBox23 = new QGroupBox( this, "GroupBox23" );
00053     GroupBox23->setColumnLayout(0, Qt::Vertical );
00054     GroupBox23->layout()->setSpacing( 6 );
00055     GroupBox23->layout()->setMargin( 11 );
00056     GroupBox23Layout = new QGridLayout( GroupBox23->layout() );
00057     GroupBox23Layout->setAlignment( Qt::AlignTop );
00058 
00059     TextLabel5 = new QLabel( GroupBox23, "TextLabel5" );
00060     TextLabel5->setMinimumSize( QSize( 100, 0 ) );
00061 
00062     GroupBox23Layout->addWidget( TextLabel5, 0, 0 );
00063 
00064     TextLabel6 = new QLabel( GroupBox23, "TextLabel6" );
00065     TextLabel6->setMinimumSize( QSize( 100, 0 ) );
00066 
00067     GroupBox23Layout->addWidget( TextLabel6, 1, 0 );
00068 
00069     fBackupOnly = new QLineEdit( GroupBox23, "fBackupOnly" );
00070 
00071     GroupBox23Layout->addWidget( fBackupOnly, 0, 1 );
00072 
00073     fSkipDB = new QLineEdit( GroupBox23, "fSkipDB" );
00074 
00075     GroupBox23Layout->addWidget( fSkipDB, 1, 1 );
00076 
00077     fBackupOnlyChooser = new QPushButton( GroupBox23, "fBackupOnlyChooser" );
00078 
00079     GroupBox23Layout->addWidget( fBackupOnlyChooser, 0, 2 );
00080 
00081     fSkipDBChooser = new QPushButton( GroupBox23, "fSkipDBChooser" );
00082 
00083     GroupBox23Layout->addWidget( fSkipDBChooser, 1, 2 );
00084     BackupConfigFormLayout->addWidget( GroupBox23 );
00085 
00086     fRunConduitsWithBackup = new QCheckBox( this, "fRunConduitsWithBackup" );
00087     BackupConfigFormLayout->addWidget( fRunConduitsWithBackup );
00088     spacer8 = new QSpacerItem( 20, 41, QSizePolicy::Minimum, QSizePolicy::Expanding );
00089     BackupConfigFormLayout->addItem( spacer8 );
00090     languageChange();
00091     resize( QSize(549, 424).expandedTo(minimumSizeHint()) );
00092     clearWState( WState_Polished );
00093 
00094     // buddies
00095     TextLabel5_2->setBuddy( fBackupFrequency );
00096     TextLabel5->setBuddy( fBackupOnly );
00097     TextLabel6->setBuddy( fSkipDB );
00098 }
00099 
00100 /*
00101  *  Destroys the object and frees any allocated resources
00102  */
00103 BackupConfigWidget::~BackupConfigWidget()
00104 {
00105     // no need to delete child widgets, Qt does it all for us
00106 }
00107 
00108 /*
00109  *  Sets the strings of the subwidgets using the current
00110  *  language.
00111  */
00112 void BackupConfigWidget::languageChange()
00113 {
00114     setCaption( tr2i18n( "KPilot Options" ) );
00115     GroupBox23_2->setTitle( tr2i18n( "Backup Frequency" ) );
00116     TextLabel5_2->setText( tr2i18n( "Do &backup:" ) );
00117     fBackupFrequency->clear();
00118     fBackupFrequency->insertItem( tr2i18n( "On every HotSync" ) );
00119     fBackupFrequency->insertItem( tr2i18n( "On request only" ) );
00120     GroupBox23->setTitle( tr2i18n( "Databases" ) );
00121     TextLabel5->setText( tr2i18n( "&No backup:" ) );
00122     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>" ) );
00123     TextLabel6->setText( tr2i18n( "Not &restored:" ) );
00124     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>" ) );
00125     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>" ) );
00126     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>" ) );
00127     fBackupOnlyChooser->setText( tr2i18n( "..." ) );
00128     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>" ) );
00129     fSkipDBChooser->setText( tr2i18n( "..." ) );
00130     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>" ) );
00131     fRunConduitsWithBackup->setText( tr2i18n( "Run conduits durin&g a backup sync" ) );
00132     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>" ) );
00133 }
00134 
00135 #include "kpilotConfigDialog_backup.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys