kpilot/kpilot

kpilotConfigDialog_startup.cc

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './kpilotConfigDialog_startup.ui'
00005 **
00006 ** Created: Thu Aug 25 17:08:21 2011
00007 **
00008 ** WARNING! All changes made in this file will be lost!
00009 ****************************************************************************/
00010 
00011 #include "kpilotConfigDialog_startup.h"
00012 
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qgroupbox.h>
00016 #include <qcheckbox.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020 
00021 /*
00022  *  Constructs a StartExitConfigWidget as a child of 'parent', with the
00023  *  name 'name' and widget flags set to 'f'.
00024  */
00025 StartExitConfigWidget::StartExitConfigWidget( QWidget* parent, const char* name, WFlags fl )
00026     : QWidget( parent, name, fl )
00027 {
00028     if ( !name )
00029     setName( "StartExitForm" );
00030     StartExitFormLayout = new QGridLayout( this, 1, 1, 0, 6, "StartExitFormLayout"); 
00031 
00032     groupBox4 = new QGroupBox( this, "groupBox4" );
00033     groupBox4->setColumnLayout(0, Qt::Vertical );
00034     groupBox4->layout()->setSpacing( 6 );
00035     groupBox4->layout()->setMargin( 11 );
00036     groupBox4Layout = new QGridLayout( groupBox4->layout() );
00037     groupBox4Layout->setAlignment( Qt::AlignTop );
00038 
00039     fKillDaemonOnExit = new QCheckBox( groupBox4, "fKillDaemonOnExit" );
00040 
00041     groupBox4Layout->addWidget( fKillDaemonOnExit, 1, 0 );
00042 
00043     fQuitAfterSync = new QCheckBox( groupBox4, "fQuitAfterSync" );
00044 
00045     groupBox4Layout->addWidget( fQuitAfterSync, 0, 0 );
00046 
00047     StartExitFormLayout->addWidget( groupBox4, 1, 0 );
00048 
00049     GroupBox1_2 = new QGroupBox( this, "GroupBox1_2" );
00050     GroupBox1_2->setColumnLayout(0, Qt::Vertical );
00051     GroupBox1_2->layout()->setSpacing( 6 );
00052     GroupBox1_2->layout()->setMargin( 11 );
00053     GroupBox1_2Layout = new QGridLayout( GroupBox1_2->layout() );
00054     GroupBox1_2Layout->setAlignment( Qt::AlignTop );
00055 
00056     fStartDaemonAtLogin = new QCheckBox( GroupBox1_2, "fStartDaemonAtLogin" );
00057 
00058     GroupBox1_2Layout->addWidget( fStartDaemonAtLogin, 0, 0 );
00059 
00060     fDockDaemon = new QCheckBox( GroupBox1_2, "fDockDaemon" );
00061 
00062     GroupBox1_2Layout->addWidget( fDockDaemon, 1, 0 );
00063 
00064     StartExitFormLayout->addWidget( GroupBox1_2, 0, 0 );
00065     spacer3 = new QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding );
00066     StartExitFormLayout->addItem( spacer3, 2, 0 );
00067     languageChange();
00068     resize( QSize(593, 323).expandedTo(minimumSizeHint()) );
00069     clearWState( WState_Polished );
00070 }
00071 
00072 /*
00073  *  Destroys the object and frees any allocated resources
00074  */
00075 StartExitConfigWidget::~StartExitConfigWidget()
00076 {
00077     // no need to delete child widgets, Qt does it all for us
00078 }
00079 
00080 /*
00081  *  Sets the strings of the subwidgets using the current
00082  *  language.
00083  */
00084 void StartExitConfigWidget::languageChange()
00085 {
00086     setCaption( tr2i18n( "KPilot Options" ) );
00087     groupBox4->setTitle( tr2i18n( "Exit Options" ) );
00088     fKillDaemonOnExit->setText( tr2i18n( "S&top KPilot's system tray application on exit" ) );
00089     QWhatsThis::add( fKillDaemonOnExit, tr2i18n( "<qt>Check this box to stop the KPilot daemon when you quit KPilot (only if KPilot started the daemon itself).</qt>" ) );
00090     fQuitAfterSync->setText( tr2i18n( "Quit &after HotSync" ) );
00091     QWhatsThis::add( fQuitAfterSync, tr2i18n( "<qt>Check this box to stop both KPilot and the KPilot daemon after the HotSync finishes. This may be useful for systems where KPilot is started by the USB daemon.</qt>" ) );
00092     GroupBox1_2->setTitle( tr2i18n( "Startup Options" ) );
00093     fStartDaemonAtLogin->setText( tr2i18n( "&Start KPilot at login" ) );
00094     QWhatsThis::add( fStartDaemonAtLogin, tr2i18n( "<qt>Check this box to start up the KPilot daemon every time you log in to KDE.</qt>" ) );
00095     fDockDaemon->setText( tr2i18n( "S&how KPilot in system tray" ) );
00096     QWhatsThis::add( fDockDaemon, tr2i18n( "<qt>Check this box to place a Kpilot icon in the system tray, which shows the daemon's status, and allows you to select the next sync type and to configure KPilot.</qt>" ) );
00097 }
00098 
00099 #include "kpilotConfigDialog_startup.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys