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 Sep 14 15:58:42 2006
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.6   edited Aug 31 2005 $)
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 <qpushbutton.h>
00016 #include <qgroupbox.h>
00017 #include <qlabel.h>
00018 #include <qlineedit.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 QGridLayout( this, 1, 1, 0, 6, "BackupConfigFormLayout"); 
00034 
00035     GroupBox23 = new QGroupBox( this, "GroupBox23" );
00036     GroupBox23->setColumnLayout(0, Qt::Vertical );
00037     GroupBox23->layout()->setSpacing( 6 );
00038     GroupBox23->layout()->setMargin( 11 );
00039     GroupBox23Layout = new QGridLayout( GroupBox23->layout() );
00040     GroupBox23Layout->setAlignment( Qt::AlignTop );
00041 
00042     TextLabel5 = new QLabel( GroupBox23, "TextLabel5" );
00043 
00044     GroupBox23Layout->addWidget( TextLabel5, 0, 0 );
00045 
00046     TextLabel6 = new QLabel( GroupBox23, "TextLabel6" );
00047 
00048     GroupBox23Layout->addWidget( TextLabel6, 1, 0 );
00049 
00050     fBackupOnly = new QLineEdit( GroupBox23, "fBackupOnly" );
00051 
00052     GroupBox23Layout->addWidget( fBackupOnly, 0, 1 );
00053 
00054     fSkipDB = new QLineEdit( GroupBox23, "fSkipDB" );
00055 
00056     GroupBox23Layout->addWidget( fSkipDB, 1, 1 );
00057 
00058     fBackupOnlyChooser = new QPushButton( GroupBox23, "fBackupOnlyChooser" );
00059 
00060     GroupBox23Layout->addWidget( fBackupOnlyChooser, 0, 2 );
00061 
00062     fSkipDBChooser = new QPushButton( GroupBox23, "fSkipDBChooser" );
00063 
00064     GroupBox23Layout->addWidget( fSkipDBChooser, 1, 2 );
00065 
00066     BackupConfigFormLayout->addWidget( GroupBox23, 0, 0 );
00067 
00068     fRunConduitsWithBackup = new QCheckBox( this, "fRunConduitsWithBackup" );
00069 
00070     BackupConfigFormLayout->addWidget( fRunConduitsWithBackup, 1, 0 );
00071     spacer3 = new QSpacerItem( 20, 131, QSizePolicy::Minimum, QSizePolicy::Expanding );
00072     BackupConfigFormLayout->addItem( spacer3, 2, 0 );
00073     languageChange();
00074     resize( QSize(593, 328).expandedTo(minimumSizeHint()) );
00075     clearWState( WState_Polished );
00076 
00077     // buddies
00078     TextLabel5->setBuddy( fBackupOnly );
00079     TextLabel6->setBuddy( fSkipDB );
00080 }
00081 
00082 /*
00083  *  Destroys the object and frees any allocated resources
00084  */
00085 BackupConfigWidget::~BackupConfigWidget()
00086 {
00087     // no need to delete child widgets, Qt does it all for us
00088 }
00089 
00090 /*
00091  *  Sets the strings of the subwidgets using the current
00092  *  language.
00093  */
00094 void BackupConfigWidget::languageChange()
00095 {
00096     setCaption( tr2i18n( "KPilot Options" ) );
00097     GroupBox23->setTitle( tr2i18n( "Databases" ) );
00098     TextLabel5->setText( tr2i18n( "&No backup:" ) );
00099     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>" ) );
00100     TextLabel6->setText( tr2i18n( "Not &restored:" ) );
00101     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>" ) );
00102     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>" ) );
00103     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>" ) );
00104     fBackupOnlyChooser->setText( tr2i18n( "..." ) );
00105     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>" ) );
00106     fSkipDBChooser->setText( tr2i18n( "..." ) );
00107     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>" ) );
00108     fRunConduitsWithBackup->setText( tr2i18n( "Run &conduits during a backup sync" ) );
00109     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>" ) );
00110 }
00111 
00112 #include "kpilotConfigDialog_backup.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys