- Main Page
- Namespaces
- Classes
- Files
- Directories

# OptionDlg.cpp

    00001 #include <kdialog.h>
    00002 #include <tdelocale.h>
    00003 /****************************************************************************
    00004 ** Form implementation generated from reading ui file '/home/kuddel/Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/OptionDlg.ui'
    00005 **
    00006 ** Created: Di Mai 15 19:57:54 2007
    00007 **      by: The User Interface Compiler ($Id: OptionDlg_8cpp-source.html,v 1.8 2007/05/16 20:11:59 kuddel-fl Exp $)
    00008 **
    00009 ** WARNING! All changes made in this file will be lost!
    00010 ****************************************************************************/
    00011
    00012 #include "OptionDlg.h"
    00013
    00014 #include <ntqvariant.h>
    00015 #include <ntqpushbutton.h>
    00016 #include <ntqgroupbox.h>
    00017 #include <ntqlabel.h>
    00018 #include <ntqcombobox.h>
    00019 #include <ntqtabwidget.h>
    00020 #include <ntqwidget.h>
    00021 #include <ntqcheckbox.h>
    00022 #include <ntqspinbox.h>
    00023 #include <ntqlineedit.h>
    00024 #include <ntqlayout.h>
    00025 #include <ntqtooltip.h>
    00026 #include <ntqwhatsthis.h>
    00027
    00028 /*
    00029  *  Constructs a OptionDlg as a child of 'parent', with the
    00030  *  name 'name' and widget flags set to 'f'.
    00031  *
    00032  *  The dialog will by default be modeless, unless you set 'modal' to
    00033  *  TRUE to construct a modal dialog.
    00034  */
    00035 OptionDlg::OptionDlg( TQWidget* parent, const char* name, bool modal, WFlags fl )
    00036     : TQDialog( parent, name, modal, fl )
    00037 {
    00038     if ( !name )
    00039        setName( "OptionDlg" );
    00040     setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) );
    00041     setSizeGripEnabled( FALSE );
    00042     OptionDlgLayout = new TQVBoxLayout( this, 11, 6, "OptionDlgLayout");
    00043
    00044     TQGroupBox_1 = new TQGroupBox( this, "TQGroupBox_1" );
    00045     TQGroupBox_1->setMinimumSize( TQSize( 380, 130 ) );
    00046     TQGroupBox_1->setColumnLayout(0, TQt::Vertical );
    00047     TQGroupBox_1->layout()->setSpacing( 6 );
    00048     TQGroupBox_1->layout()->setMargin( 11 );
    00049     TQGroupBox_1Layout = new TQGridLayout( TQGroupBox_1->layout() );
    00050     TQGroupBox_1Layout->setAlignment( TQt::AlignTop );
    00051
    00052     TQLabel_1 = new TQLabel( TQGroupBox_1, "TQLabel_1" );
    00053
    00054     TQGroupBox_1Layout->addWidget( TQLabel_1, 0, 0 );
    00055     spacer4 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    00056     TQGroupBox_1Layout->addItem( spacer4, 1, 4 );
    00057
    00058     m_ButtonDelete = new TQPushButton( TQGroupBox_1, "m_ButtonDelete" );
    00059
    00060     TQGroupBox_1Layout->addWidget( m_ButtonDelete, 1, 3 );
    00061
    00062     m_ButtonCopy = new TQPushButton( TQGroupBox_1, "m_ButtonCopy" );
    00063
    00064     TQGroupBox_1Layout->addWidget( m_ButtonCopy, 1, 2 );
    00065
    00066     m_ButtonEdit = new TQPushButton( TQGroupBox_1, "m_ButtonEdit" );
    00067
    00068     TQGroupBox_1Layout->addWidget( m_ButtonEdit, 1, 1 );
    00069
    00070     m_ButtonAdd = new TQPushButton( TQGroupBox_1, "m_ButtonAdd" );
    00071
    00072     TQGroupBox_1Layout->addWidget( m_ButtonAdd, 1, 0 );
    00073
    00074     m_ComboAccount = new TQComboBox( FALSE, TQGroupBox_1, "m_ComboAccount" );
    00075     m_ComboAccount->setFocusPolicy( TQComboBox::TabFocus );
    00076     m_ComboAccount->setInsertionPolicy( TQComboBox::AtTop );
    00077
    00078     TQGroupBox_1Layout->addMultiCellWidget( m_ComboAccount, 0, 0, 1, 3 );
    00079     spacer2 = new TQSpacerItem( 360, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    00080     TQGroupBox_1Layout->addItem( spacer2, 0, 4 );
    00081     OptionDlgLayout->addWidget( TQGroupBox_1 );
    00082
    00083     layout3 = new TQVBoxLayout( 0, 0, 6, "layout3");
    00084
    00085     TabWidget2 = new TQTabWidget( this, "TabWidget2" );
    00086     TabWidget2->setMinimumSize( TQSize( 380, 209 ) );
    00087
    00088     tab = new TQWidget( TabWidget2, "tab" );
    00089     tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout");
    00090
    00091     m_CheckSavePassword = new TQCheckBox( tab, "m_CheckSavePassword" );
    00092
    00093     tabLayout->addMultiCellWidget( m_CheckSavePassword, 0, 0, 0, 1 );
    00094
    00095     m_CheckStartMinimized = new TQCheckBox( tab, "m_CheckStartMinimized" );
    00096
    00097     tabLayout->addMultiCellWidget( m_CheckStartMinimized, 0, 0, 2, 3 );
    00098
    00099     m_CheckConfirmDelete = new TQCheckBox( tab, "m_CheckConfirmDelete" );
    00100
    00101     tabLayout->addMultiCellWidget( m_CheckConfirmDelete, 1, 1, 0, 1 );
    00102
    00103     TQLabel_2 = new TQLabel( tab, "TQLabel_2" );
    00104
    00105     tabLayout->addWidget( TQLabel_2, 3, 0 );
    00106
    00107     TQLabel_3 = new TQLabel( tab, "TQLabel_3" );
    00108
    00109     tabLayout->addWidget( TQLabel_3, 3, 2 );
    00110
    00111     TQLabel_6 = new TQLabel( tab, "TQLabel_6" );
    00112
    00113     tabLayout->addWidget( TQLabel_6, 4, 0 );
    00114
    00115     TQLabel_4 = new TQLabel( tab, "TQLabel_4" );
    00116
    00117     tabLayout->addWidget( TQLabel_4, 4, 2 );
    00118
    00119     m_SpinPop3Timer = new TQSpinBox( tab, "m_SpinPop3Timer" );
    00120     m_SpinPop3Timer->setMouseTracking( FALSE );
    00121     m_SpinPop3Timer->setFocusPolicy( TQSpinBox::StrongFocus );
    00122     m_SpinPop3Timer->setAcceptDrops( FALSE );
    00123     m_SpinPop3Timer->setMaxValue( 300 );
    00124
    00125     tabLayout->addWidget( m_SpinPop3Timer, 4, 1 );
    00126
    00127     m_SpinInitTimer = new TQSpinBox( tab, "m_SpinInitTimer" );
    00128     m_SpinInitTimer->setFocusPolicy( TQSpinBox::StrongFocus );
    00129     m_SpinInitTimer->setMaxValue( 120 );
    00130
    00131     tabLayout->addWidget( m_SpinInitTimer, 3, 1 );
    00132
    00133     m_SpinIntervalTimer = new TQSpinBox( tab, "m_SpinIntervalTimer" );
    00134     m_SpinIntervalTimer->setFocusPolicy( TQSpinBox::StrongFocus );
    00135     m_SpinIntervalTimer->setMaxValue( 1440 );
    00136
    00137     tabLayout->addWidget( m_SpinIntervalTimer, 3, 3 );
    00138
    00139     m_SpinMaxSize = new TQSpinBox( tab, "m_SpinMaxSize" );
    00140     m_SpinMaxSize->setFocusPolicy( TQSpinBox::StrongFocus );
    00141     m_SpinMaxSize->setMaxValue( 9999 );
    00142
    00143     tabLayout->addWidget( m_SpinMaxSize, 4, 3 );
    00144
    00145     _checkConfirmClose = new TQCheckBox( tab, "_checkConfirmClose" );
    00146
    00147     tabLayout->addWidget( _checkConfirmClose, 0, 4 );
    00148
    00149     m_CheckKeepNewMail = new TQCheckBox( tab, "m_CheckKeepNewMail" );
    00150
    00151     tabLayout->addMultiCellWidget( m_CheckKeepNewMail, 1, 1, 2, 3 );
    00152
    00153     m_CheckCloseMinimizes = new TQCheckBox( tab, "m_CheckCloseMinimizes" );
    00154
    00155     tabLayout->addWidget( m_CheckCloseMinimizes, 1, 4 );
    00156
    00157     m_CheckMinimizeToTray = new TQCheckBox( tab, "m_CheckMinimizeToTray" );
    00158
    00159     tabLayout->addMultiCellWidget( m_CheckMinimizeToTray, 2, 2, 0, 1 );
    00160     TabWidget2->insertTab( tab, TQString::fromLatin1("") );
    00161
    00162     tab_2 = new TQWidget( TabWidget2, "tab_2" );
    00163     tabLayout_2 = new TQHBoxLayout( tab_2, 11, 6, "tabLayout_2");
    00164
    00165     GroupBox3 = new TQGroupBox( tab_2, "GroupBox3" );
    00166     GroupBox3->setColumnLayout(0, TQt::Vertical );
    00167     GroupBox3->layout()->setSpacing( 6 );
    00168     GroupBox3->layout()->setMargin( 11 );
    00169     GroupBox3Layout = new TQVBoxLayout( GroupBox3->layout() );
    00170     GroupBox3Layout->setAlignment( TQt::AlignTop );
    00171
    00172     m_CheckActive = new TQCheckBox( GroupBox3, "m_CheckActive" );
    00173     m_CheckActive->setChecked( TRUE );
    00174     GroupBox3Layout->addWidget( m_CheckActive );
    00175
    00176     m_CheckAccount1 = new TQCheckBox( GroupBox3, "m_CheckAccount1" );
    00177     m_CheckAccount1->setChecked( TRUE );
    00178     GroupBox3Layout->addWidget( m_CheckAccount1 );
    00179
    00180     m_CheckServer = new TQCheckBox( GroupBox3, "m_CheckServer" );
    00181     m_CheckServer->setChecked( TRUE );
    00182     GroupBox3Layout->addWidget( m_CheckServer );
    00183
    00184     m_CheckUser = new TQCheckBox( GroupBox3, "m_CheckUser" );
    00185     m_CheckUser->setChecked( TRUE );
    00186     GroupBox3Layout->addWidget( m_CheckUser );
    00187
    00188     m_CheckMessages = new TQCheckBox( GroupBox3, "m_CheckMessages" );
    00189     m_CheckMessages->setChecked( TRUE );
    00190     GroupBox3Layout->addWidget( m_CheckMessages );
    00191
    00192     m_CheckSize1 = new TQCheckBox( GroupBox3, "m_CheckSize1" );
    00193     m_CheckSize1->setChecked( TRUE );
    00194     GroupBox3Layout->addWidget( m_CheckSize1 );
    00195     tabLayout_2->addWidget( GroupBox3 );
    00196
    00197     GroupBox2 = new TQGroupBox( tab_2, "GroupBox2" );
    00198     GroupBox2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, GroupBox2->sizePolicy().hasHeightForWidth() ) );
    00199     GroupBox2->setColumnLayout(0, TQt::Vertical );
    00200     GroupBox2->layout()->setSpacing( 6 );
    00201     GroupBox2->layout()->setMargin( 11 );
    00202     GroupBox2Layout = new TQVBoxLayout( GroupBox2->layout() );
    00203     GroupBox2Layout->setAlignment( TQt::AlignTop );
    00204
    00205     m_CheckNumber = new TQCheckBox( GroupBox2, "m_CheckNumber" );
    00206     m_CheckNumber->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, m_CheckNumber->sizePolicy().hasHeightForWidth() ) );
    00207     m_CheckNumber->setChecked( TRUE );
    00208     GroupBox2Layout->addWidget( m_CheckNumber );
    00209
    00210     m_CheckAccount2 = new TQCheckBox( GroupBox2, "m_CheckAccount2" );
    00211     m_CheckAccount2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, m_CheckAccount2->sizePolicy().hasHeightForWidth() ) );
    00212     m_CheckAccount2->setChecked( TRUE );
    00213     GroupBox2Layout->addWidget( m_CheckAccount2 );
    00214
    00215     m_CheckFrom = new TQCheckBox( GroupBox2, "m_CheckFrom" );
    00216     m_CheckFrom->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, m_CheckFrom->sizePolicy().hasHeightForWidth() ) );
    00217     m_CheckFrom->setChecked( TRUE );
    00218     GroupBox2Layout->addWidget( m_CheckFrom );
    00219
    00220     m_CheckTo = new TQCheckBox( GroupBox2, "m_CheckTo" );
    00221     m_CheckTo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, m_CheckTo->sizePolicy().hasHeightForWidth() ) );
    00222     m_CheckTo->setChecked( TRUE );
    00223     GroupBox2Layout->addWidget( m_CheckTo );
    00224
    00225     m_CheckSubject = new TQCheckBox( GroupBox2, "m_CheckSubject" );
    00226     m_CheckSubject->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, m_CheckSubject->sizePolicy().hasHeightForWidth() ) );
    00227     m_CheckSubject->setChecked( TRUE );
    00228     GroupBox2Layout->addWidget( m_CheckSubject );
    00229
    00230     m_CheckDate = new TQCheckBox( GroupBox2, "m_CheckDate" );
    00231     m_CheckDate->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, m_CheckDate->sizePolicy().hasHeightForWidth() ) );
    00232     m_CheckDate->setChecked( TRUE );
    00233     GroupBox2Layout->addWidget( m_CheckDate );
    00234
    00235     m_CheckSize2 = new TQCheckBox( GroupBox2, "m_CheckSize2" );
    00236     m_CheckSize2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, m_CheckSize2->sizePolicy().hasHeightForWidth() ) );
    00237     m_CheckSize2->setChecked( TRUE );
    00238     GroupBox2Layout->addWidget( m_CheckSize2 );
    00239
    00240     m_CheckContent = new TQCheckBox( GroupBox2, "m_CheckContent" );
    00241     m_CheckContent->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, m_CheckContent->sizePolicy().hasHeightForWidth() ) );
    00242     m_CheckContent->setChecked( TRUE );
    00243     GroupBox2Layout->addWidget( m_CheckContent );
    00244
    00245     m_CheckState = new TQCheckBox( GroupBox2, "m_CheckState" );
    00246     m_CheckState->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, m_CheckState->sizePolicy().hasHeightForWidth() ) );
    00247     m_CheckState->setChecked( TRUE );
    00248     GroupBox2Layout->addWidget( m_CheckState );
    00249     tabLayout_2->addWidget( GroupBox2 );
    00250
    00251     groupBox4 = new TQGroupBox( tab_2, "groupBox4" );
    00252     groupBox4->setColumnLayout(0, TQt::Vertical );
    00253     groupBox4->layout()->setSpacing( 6 );
    00254     groupBox4->layout()->setMargin( 11 );
    00255     groupBox4Layout = new TQVBoxLayout( groupBox4->layout() );
    00256     groupBox4Layout->setAlignment( TQt::AlignTop );
    00257
    00258     m_checkHTML = new TQCheckBox( groupBox4, "m_checkHTML" );
    00259     groupBox4Layout->addWidget( m_checkHTML );
    00260     tabLayout_2->addWidget( groupBox4 );
    00261     TabWidget2->insertTab( tab_2, TQString::fromLatin1("") );
    00262
    00263     tab_3 = new TQWidget( TabWidget2, "tab_3" );
    00264     tabLayout_3 = new TQVBoxLayout( tab_3, 11, 6, "tabLayout_3");
    00265
    00266     m_CheckMinimizeNoMail = new TQCheckBox( tab_3, "m_CheckMinimizeNoMail" );
    00267     tabLayout_3->addWidget( m_CheckMinimizeNoMail );
    00268
    00269     m_CheckTerminateNoMail = new TQCheckBox( tab_3, "m_CheckTerminateNoMail" );
    00270     tabLayout_3->addWidget( m_CheckTerminateNoMail );
    00271     TabWidget2->insertTab( tab_3, TQString::fromLatin1("") );
    00272
    00273     tab_4 = new TQWidget( TabWidget2, "tab_4" );
    00274     tabLayout_4 = new TQGridLayout( tab_4, 1, 1, 11, 6, "tabLayout_4");
    00275
    00276     m_CheckBeep = new TQCheckBox( tab_4, "m_CheckBeep" );
    00277
    00278     tabLayout_4->addMultiCellWidget( m_CheckBeep, 0, 0, 2, 3 );
    00279
    00280     m_CheckShowMainWindow = new TQCheckBox( tab_4, "m_CheckShowMainWindow" );
    00281
    00282     tabLayout_4->addMultiCellWidget( m_CheckShowMainWindow, 1, 1, 0, 1 );
    00283
    00284     m_CheckSound = new TQCheckBox( tab_4, "m_CheckSound" );
    00285
    00286     tabLayout_4->addMultiCellWidget( m_CheckSound, 1, 1, 2, 3 );
    00287
    00288     m_CheckExternalProg = new TQCheckBox( tab_4, "m_CheckExternalProg" );
    00289
    00290     tabLayout_4->addMultiCellWidget( m_CheckExternalProg, 2, 2, 0, 1 );
    00291
    00292     m_ButtonSelectSoundFile = new TQPushButton( tab_4, "m_ButtonSelectSoundFile" );
    00293
    00294     tabLayout_4->addWidget( m_ButtonSelectSoundFile, 3, 0 );
    00295
    00296     m_ButtonSoundTest = new TQPushButton( tab_4, "m_ButtonSoundTest" );
    00297
    00298     tabLayout_4->addWidget( m_ButtonSoundTest, 3, 3 );
    00299
    00300     TQLabel_5 = new TQLabel( tab_4, "TQLabel_5" );
    00301
    00302     tabLayout_4->addWidget( TQLabel_5, 4, 0 );
    00303
    00304     m_ComboExternalProg = new TQComboBox( FALSE, tab_4, "m_ComboExternalProg" );
    00305     m_ComboExternalProg->setInsertionPolicy( TQComboBox::AtTop );
    00306
    00307     tabLayout_4->addMultiCellWidget( m_ComboExternalProg, 4, 4, 1, 2 );
    00308
    00309     m_ButtonExternalProgTest = new TQPushButton( tab_4, "m_ButtonExternalProgTest" );
    00310
    00311     tabLayout_4->addWidget( m_ButtonExternalProgTest, 4, 3 );
    00312
    00313     m_EditSoundFile = new TQLineEdit( tab_4, "m_EditSoundFile" );
    00314
    00315     tabLayout_4->addMultiCellWidget( m_EditSoundFile, 3, 3, 1, 2 );
    00316
    00317     m_CheckShowMessagebox = new TQCheckBox( tab_4, "m_CheckShowMessagebox" );
    00318
    00319     tabLayout_4->addMultiCellWidget( m_CheckShowMessagebox, 0, 0, 0, 1 );
    00320     TabWidget2->insertTab( tab_4, TQString::fromLatin1("") );
    00321     layout3->addWidget( TabWidget2 );
    00322
    00323     layout2 = new TQHBoxLayout( 0, 0, 6, "layout2");
    00324     Spacer70 = new TQSpacerItem( 477, 16, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    00325     layout2->addItem( Spacer70 );
    00326
    00327     m_ButtonOk = new TQPushButton( this, "m_ButtonOk" );
    00328     layout2->addWidget( m_ButtonOk );
    00329
    00330     m_ButtonCancel = new TQPushButton( this, "m_ButtonCancel" );
    00331     layout2->addWidget( m_ButtonCancel );
    00332     layout3->addLayout( layout2 );
    00333     OptionDlgLayout->addLayout( layout3 );
    00334     languageChange();
    00335     resize( TQSize(554, 566).expandedTo(minimumSizeHint()) );
    00336     clearWState( WState_Polished );
    00337
    00338     // signals and slots connections
    00339     connect( m_ButtonEdit, SIGNAL( clicked() ), this, SLOT( slotButtonEditClicked() ) );
    00340     connect( m_ButtonCopy, SIGNAL( clicked() ), this, SLOT( slotButtonCopyClicked() ) );
    00341     connect( m_ButtonAdd, SIGNAL( clicked() ), this, SLOT( slotButtonAddClicked() ) );
    00342     connect( m_ButtonDelete, SIGNAL( clicked() ), this, SLOT( slotButtonDeleteClicked() ) );
    00343     connect( m_ButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
    00344     connect( m_ButtonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
    00345     connect( m_ButtonOk, SIGNAL( clicked() ), this, SLOT( slotButtonOkClicked() ) );
    00346     connect( m_CheckSound, SIGNAL( toggled(bool) ), m_ButtonSelectSoundFile, SLOT( setEnabled(bool) ) );
    00347     connect( m_CheckSound, SIGNAL( toggled(bool) ), m_EditSoundFile, SLOT( setEnabled(bool) ) );
    00348     connect( m_CheckSound, SIGNAL( toggled(bool) ), m_ButtonSoundTest, SLOT( setEnabled(bool) ) );
    00349     connect( m_CheckExternalProg, SIGNAL( toggled(bool) ), TQLabel_5, SLOT( setEnabled(bool) ) );
    00350     connect( m_CheckExternalProg, SIGNAL( toggled(bool) ), m_ComboExternalProg, SLOT( setEnabled(bool) ) );
    00351     connect( m_CheckExternalProg, SIGNAL( toggled(bool) ), m_ButtonExternalProgTest, SLOT( setEnabled(bool) ) );
    00352     connect( m_ComboAccount, SIGNAL( activated(int) ), this, SLOT( slotAccountActivated(int) ) );
    00353     connect( m_CheckSavePassword, SIGNAL( clicked() ), this, SLOT( slotSavePasswordToggled() ) );
    00354     connect( m_ButtonSelectSoundFile, SIGNAL( clicked() ), this, SLOT( slotButtonSelectSoundFile() ) );
    00355     connect( m_CheckTerminateNoMail, SIGNAL( clicked() ), this, SLOT( slotTerminateNoMailClicked() ) );
    00356     connect( m_CheckMinimizeNoMail, SIGNAL( clicked() ), this, SLOT( slotMinimizeNoMailClicked() ) );
    00357     connect( m_ButtonSoundTest, SIGNAL( clicked() ), this, SLOT( slotSoundTest() ) );
    00358     connect( m_ButtonExternalProgTest, SIGNAL( clicked() ), this, SLOT( slotExternalProgTest() ) );
    00359
    00360     // tab order
    00361     setTabOrder( m_ComboAccount, m_ButtonAdd );
    00362     setTabOrder( m_ButtonAdd, m_ButtonEdit );
    00363     setTabOrder( m_ButtonEdit, m_ButtonCopy );
    00364     setTabOrder( m_ButtonCopy, m_ButtonDelete );
    00365     setTabOrder( m_ButtonDelete, TabWidget2 );
    00366     setTabOrder( TabWidget2, m_CheckSavePassword );
    00367     setTabOrder( m_CheckSavePassword, m_CheckStartMinimized );
    00368     setTabOrder( m_CheckStartMinimized, m_CheckConfirmDelete );
    00369     setTabOrder( m_CheckConfirmDelete, m_CheckKeepNewMail );
    00370     setTabOrder( m_CheckKeepNewMail, m_SpinInitTimer );
    00371     setTabOrder( m_SpinInitTimer, m_SpinIntervalTimer );
    00372     setTabOrder( m_SpinIntervalTimer, m_SpinIntervalTimer );
    00373     setTabOrder( m_SpinIntervalTimer, m_SpinPop3Timer );
    00374     setTabOrder( m_SpinPop3Timer, m_SpinMaxSize );
    00375     setTabOrder( m_SpinMaxSize, m_CheckMinimizeNoMail );
    00376     setTabOrder( m_CheckMinimizeNoMail, m_CheckTerminateNoMail );
    00377     setTabOrder( m_CheckTerminateNoMail, m_CheckShowMessagebox );
    00378     setTabOrder( m_CheckShowMessagebox, m_CheckShowMainWindow );
    00379     setTabOrder( m_CheckShowMainWindow, m_CheckExternalProg );
    00380     setTabOrder( m_CheckExternalProg, m_CheckBeep );
    00381     setTabOrder( m_CheckBeep, m_CheckSound );
    00382     setTabOrder( m_CheckSound, m_ButtonSelectSoundFile );
    00383     setTabOrder( m_ButtonSelectSoundFile, m_EditSoundFile );
    00384     setTabOrder( m_EditSoundFile, m_ButtonSoundTest );
    00385     setTabOrder( m_ButtonSoundTest, m_ComboExternalProg );
    00386     setTabOrder( m_ComboExternalProg, m_ButtonExternalProgTest );
    00387     setTabOrder( m_ButtonExternalProgTest, m_ButtonOk );
    00388     setTabOrder( m_ButtonOk, m_ButtonCancel );
    00389 }
    00390
    00391 /*
    00392  *  Destroys the object and frees any allocated resources
    00393  */
    00394 OptionDlg::~OptionDlg()
    00395 {
    00396     // no need to delete child widgets, TQt does it all for us
    00397 }
    00398
    00399 /*
    00400  *  Sets the strings of the subwidgets using the current
    00401  *  language.
    00402  */
    00403 void OptionDlg::languageChange()
    00404 {
    00405     setCaption( tr2i18n( "Options" ) );
    00406     TQGroupBox_1->setTitle( tr2i18n( "Accounts" ) );
    00407     TQLabel_1->setText( tr2i18n( "Name:" ) );
    00408     TQToolTip::add( TQLabel_1, tr2i18n( "Select a pop3 account" ) );
    00409     m_ButtonDelete->setText( tr2i18n( "Delete" ) );
    00410     TQToolTip::add( m_ButtonDelete, tr2i18n( "Delete account" ) );
    00411     m_ButtonCopy->setText( tr2i18n( "Cop&y" ) );
    00412     TQToolTip::add( m_ButtonCopy, tr2i18n( "copy account" ) );
    00413     m_ButtonEdit->setText( tr2i18n( "Edit" ) );
    00414     TQToolTip::add( m_ButtonEdit, tr2i18n( "Edit account" ) );
    00415     m_ButtonAdd->setText( tr2i18n( "&Add" ) );
    00416     TQToolTip::add( m_ButtonAdd, tr2i18n( "Add new account" ) );
    00417     TQToolTip::add( m_ComboAccount, tr2i18n( "Select a pop3 account" ) );
    00418     m_CheckSavePassword->setText( tr2i18n( "Save Password" ) );
    00419     TQToolTip::add( m_CheckSavePassword, tr2i18n( "Save password (not recommended !)" ) );
    00420     m_CheckStartMinimized->setText( tr2i18n( "Start Minimi&zed" ) );
    00421     TQToolTip::add( m_CheckStartMinimized, tr2i18n( "Application is started as icon" ) );
    00422     m_CheckConfirmDelete->setText( tr2i18n( "Confirm delete" ) );
    00423     TQToolTip::add( m_CheckConfirmDelete, tr2i18n( "If checked, message delete must be confirmed" ) );
    00424     TQLabel_2->setText( tr2i18n( "Initial Timer:" ) );
    00425     TQToolTip::add( TQLabel_2, tr2i18n( "Seconds until first automatic logon (0 = no automatic)" ) );
    00426     TQLabel_3->setText( tr2i18n( "Interval Timer:" ) );
    00427     TQToolTip::add( TQLabel_3, tr2i18n( "Minutes between automatic logon (0 = no automatic)" ) );
    00428     TQLabel_6->setText( tr2i18n( "Pop3 Timer" ) );
    00429     TQToolTip::add( TQLabel_6, tr2i18n( "Pop3 timeout" ) );
    00430     TQLabel_4->setText( tr2i18n( "Max Size:" ) );
    00431     TQToolTip::add( TQLabel_4, tr2i18n( "Maximal size of downloaded mail body in kilobytes" ) );
    00432     TQToolTip::add( m_SpinPop3Timer, tr2i18n( "Pop3 timeout" ) );
    00433     TQToolTip::add( m_SpinInitTimer, tr2i18n( "Seconds until first automatic logon (0 = no automatic)" ) );
    00434     TQToolTip::add( m_SpinIntervalTimer, tr2i18n( "Minutes between automatic logon (0 = no automatic)" ) );
    00435     TQToolTip::add( m_SpinMaxSize, tr2i18n( "Maximal size of downloaded mail body in kilobytes" ) );
    00436     _checkConfirmClose->setText( tr2i18n( "Confirm Close" ) );
    00437     m_CheckKeepNewMail->setText( tr2i18n( "&Keep mail as new" ) );
    00438     m_CheckKeepNewMail->setAccel( TQKeySequence( tr2i18n( "Alt+K" ) ) );
    00439     TQToolTip::add( m_CheckKeepNewMail, tr2i18n( "Keep mail as new until termination" ) );
    00440     m_CheckCloseMinimizes->setText( tr2i18n( "Close to tray" ) );
    00441     m_CheckCloseMinimizes->setAccel( TQKeySequence( TQString::null ) );
    00442     TQToolTip::add( m_CheckCloseMinimizes, tr2i18n( "Close button leaves the application running in tray" ) );
    00443     m_CheckMinimizeToTray->setText( tr2i18n( "Minimize to tray" ) );
    00444     m_CheckMinimizeToTray->setAccel( TQKeySequence( TQString::null ) );
    00445     TQToolTip::add( m_CheckMinimizeToTray, tr2i18n( "Minimizes to the tray rather than to the taskbar" ) );
    00446     TabWidget2->changeTab( tab, tr2i18n( "&General Options" ) );
    00447     GroupBox3->setTitle( tr2i18n( "Account list" ) );
    00448     m_CheckActive->setText( tr2i18n( "Active" ) );
    00449     m_CheckAccount1->setText( tr2i18n( "Account" ) );
    00450     m_CheckServer->setText( tr2i18n( "Server" ) );
    00451     m_CheckUser->setText( tr2i18n( "User" ) );
    00452     m_CheckMessages->setText( tr2i18n( "Messages" ) );
    00453     m_CheckSize1->setText( tr2i18n( "Si&ze" ) );
    00454     GroupBox2->setTitle( tr2i18n( "Mail list" ) );
    00455     m_CheckNumber->setText( tr2i18n( "Number" ) );
    00456     m_CheckAccount2->setText( tr2i18n( "Account" ) );
    00457     m_CheckFrom->setText( tr2i18n( "From" ) );
    00458     m_CheckTo->setText( tr2i18n( "To" ) );
    00459     m_CheckSubject->setText( tr2i18n( "Su&bject" ) );
    00460     m_CheckDate->setText( tr2i18n( "Date" ) );
    00461     m_CheckSize2->setText( tr2i18n( "Size" ) );
    00462     m_CheckContent->setText( tr2i18n( "Content" ) );
    00463     m_CheckState->setText( tr2i18n( "State" ) );
    00464     groupBox4->setTitle( tr2i18n( "Mail content" ) );
    00465     m_checkHTML->setText( tr2i18n( "Allow HTML" ) );
    00466     TabWidget2->changeTab( tab_2, tr2i18n( "Display Options" ) );
    00467     m_CheckMinimizeNoMail->setText( tr2i18n( "Minimi&ze" ) );
    00468     TQToolTip::add( m_CheckMinimizeNoMail, tr2i18n( "Minimize window if no new mail" ) );
    00469     m_CheckTerminateNoMail->setText( tr2i18n( "Terminate" ) );
    00470     TQToolTip::add( m_CheckTerminateNoMail, tr2i18n( "Terminate kshowmail if no new mail" ) );
    00471     TabWidget2->changeTab( tab_3, tr2i18n( "Action if &no mail" ) );
    00472     m_CheckBeep->setText( tr2i18n( "&Beep" ) );
    00473     TQToolTip::add( m_CheckBeep, tr2i18n( "Beeps the internal speaker if new mail" ) );
    00474     m_CheckShowMainWindow->setText( tr2i18n( "Show main window" ) );
    00475     TQToolTip::add( m_CheckShowMainWindow, tr2i18n( "Show main window if new mail arrives" ) );
    00476     m_CheckSound->setText( tr2i18n( "Sound" ) );
    00477     TQToolTip::add( m_CheckSound, tr2i18n( "Plays sound if new mail" ) );
    00478     m_CheckExternalProg->setText( tr2i18n( "E&xternal Program" ) );
    00479     TQToolTip::add( m_CheckExternalProg, tr2i18n( "Starts external program if new mail" ) );
    00480     m_ButtonSelectSoundFile->setText( tr2i18n( "Sound File:" ) );
    00481     TQToolTip::add( m_ButtonSelectSoundFile, tr2i18n( "Press to select sound file" ) );
    00482     m_ButtonSoundTest->setText( tr2i18n( "Test" ) );
    00483     TQToolTip::add( m_ButtonSoundTest, tr2i18n( "Play the selected sound file" ) );
    00484     TQLabel_5->setText( tr2i18n( "Command:" ) );
    00485     TQToolTip::add( TQLabel_5, tr2i18n( "Select external command" ) );
    00486     TQToolTip::add( m_ComboExternalProg, tr2i18n( "Select external command" ) );
    00487     m_ButtonExternalProgTest->setText( tr2i18n( "Test" ) );
    00488     TQToolTip::add( m_ButtonExternalProgTest, tr2i18n( "Start the selected program" ) );
    00489     TQToolTip::add( m_EditSoundFile, tr2i18n( "Enter sound file" ) );
    00490     m_CheckShowMessagebox->setText( tr2i18n( "Show message box" ) );
    00491     TQToolTip::add( m_CheckShowMessagebox, tr2i18n( "Show message if new mail arrives" ) );
    00492     TabWidget2->changeTab( tab_4, tr2i18n( "Action if new &mail" ) );
    00493     m_ButtonOk->setText( tr2i18n( "&OK" ) );
    00494     m_ButtonCancel->setText( tr2i18n( "Cancel" ) );
    00495 }
    00496
    00497 void OptionDlg::slotExternalProgTest()
    00498 {
    00499     tqWarning( "OptionDlg::slotExternalProgTest(): Not implemented yet" );
    00500 }
    00501
    00502 void OptionDlg::slotAccountActivated(int)
    00503 {
    00504     tqWarning( "OptionDlg::slotAccountActivated(int): Not implemented yet" );
    00505 }
    00506
    00507 void OptionDlg::slotButtonAddClicked()
    00508 {
    00509     tqWarning( "OptionDlg::slotButtonAddClicked(): Not implemented yet" );
    00510 }
    00511
    00512 void OptionDlg::slotButtonCopyClicked()
    00513 {
    00514     tqWarning( "OptionDlg::slotButtonCopyClicked(): Not implemented yet" );
    00515 }
    00516
    00517 void OptionDlg::slotButtonDeleteClicked()
    00518 {
    00519     tqWarning( "OptionDlg::slotButtonDeleteClicked(): Not implemented yet" );
    00520 }
    00521
    00522 void OptionDlg::slotButtonEditClicked()
    00523 {
    00524     tqWarning( "OptionDlg::slotButtonEditClicked(): Not implemented yet" );
    00525 }
    00526
    00527 void OptionDlg::slotButtonOkClicked()
    00528 {
    00529     tqWarning( "OptionDlg::slotButtonOkClicked(): Not implemented yet" );
    00530 }
    00531
    00532 void OptionDlg::slotButtonSelectSoundFile()
    00533 {
    00534     tqWarning( "OptionDlg::slotButtonSelectSoundFile(): Not implemented yet" );
    00535 }
    00536
    00537 void OptionDlg::slotMinimizeNoMailClicked()
    00538 {
    00539     tqWarning( "OptionDlg::slotMinimizeNoMailClicked(): Not implemented yet" );
    00540 }
    00541
    00542 void OptionDlg::slotSavePasswordToggled()
    00543 {
    00544     tqWarning( "OptionDlg::slotSavePasswordToggled(): Not implemented yet" );
    00545 }
    00546
    00547 void OptionDlg::slotSoundTest()
    00548 {
    00549     tqWarning( "OptionDlg::slotSoundTest(): Not implemented yet" );
    00550 }
    00551
    00552 void OptionDlg::slotTerminateNoMailClicked()
    00553 {
    00554     tqWarning( "OptionDlg::slotTerminateNoMailClicked(): Not implemented yet" );
    00555 }
    00556
    00557 #include "OptionDlg.moc"