00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "kpilotConfigDialog_startup.h"
00013
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <qgroupbox.h>
00017 #include <qcheckbox.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021
00022
00023
00024
00025
00026 StartExitConfigWidget::StartExitConfigWidget( QWidget* parent, const char* name, WFlags fl )
00027 : QWidget( parent, name, fl )
00028 {
00029 if ( !name )
00030 setName( "StartExitForm" );
00031 StartExitFormLayout = new QGridLayout( this, 1, 1, 0, 6, "StartExitFormLayout");
00032
00033 groupBox4 = new QGroupBox( this, "groupBox4" );
00034 groupBox4->setColumnLayout(0, Qt::Vertical );
00035 groupBox4->layout()->setSpacing( 6 );
00036 groupBox4->layout()->setMargin( 11 );
00037 groupBox4Layout = new QGridLayout( groupBox4->layout() );
00038 groupBox4Layout->setAlignment( Qt::AlignTop );
00039
00040 fKillDaemonOnExit = new QCheckBox( groupBox4, "fKillDaemonOnExit" );
00041
00042 groupBox4Layout->addWidget( fKillDaemonOnExit, 1, 0 );
00043
00044 fQuitAfterSync = new QCheckBox( groupBox4, "fQuitAfterSync" );
00045
00046 groupBox4Layout->addWidget( fQuitAfterSync, 0, 0 );
00047
00048 StartExitFormLayout->addWidget( groupBox4, 1, 0 );
00049
00050 GroupBox1_2 = new QGroupBox( this, "GroupBox1_2" );
00051 GroupBox1_2->setColumnLayout(0, Qt::Vertical );
00052 GroupBox1_2->layout()->setSpacing( 6 );
00053 GroupBox1_2->layout()->setMargin( 11 );
00054 GroupBox1_2Layout = new QGridLayout( GroupBox1_2->layout() );
00055 GroupBox1_2Layout->setAlignment( Qt::AlignTop );
00056
00057 fStartDaemonAtLogin = new QCheckBox( GroupBox1_2, "fStartDaemonAtLogin" );
00058
00059 GroupBox1_2Layout->addWidget( fStartDaemonAtLogin, 0, 0 );
00060
00061 fDockDaemon = new QCheckBox( GroupBox1_2, "fDockDaemon" );
00062
00063 GroupBox1_2Layout->addWidget( fDockDaemon, 1, 0 );
00064
00065 StartExitFormLayout->addWidget( GroupBox1_2, 0, 0 );
00066 spacer3 = new QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding );
00067 StartExitFormLayout->addItem( spacer3, 2, 0 );
00068 languageChange();
00069 resize( QSize(593, 323).expandedTo(minimumSizeHint()) );
00070 clearWState( WState_Polished );
00071 }
00072
00073
00074
00075
00076 StartExitConfigWidget::~StartExitConfigWidget()
00077 {
00078
00079 }
00080
00081
00082
00083
00084
00085 void StartExitConfigWidget::languageChange()
00086 {
00087 setCaption( tr2i18n( "KPilot Options" ) );
00088 groupBox4->setTitle( tr2i18n( "Exit Options" ) );
00089 fKillDaemonOnExit->setText( tr2i18n( "S&top KPilot's system tray application on exit" ) );
00090 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>" ) );
00091 fQuitAfterSync->setText( tr2i18n( "Quit &after HotSync" ) );
00092 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>" ) );
00093 GroupBox1_2->setTitle( tr2i18n( "Startup Options" ) );
00094 fStartDaemonAtLogin->setText( tr2i18n( "&Start KPilot at login" ) );
00095 QWhatsThis::add( fStartDaemonAtLogin, tr2i18n( "<qt>Check this box to start up the KPilot daemon every time you log in to KDE.</qt>" ) );
00096 fDockDaemon->setText( tr2i18n( "S&how KPilot in system tray" ) );
00097 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>" ) );
00098 }
00099
00100 #include "kpilotConfigDialog_startup.moc"