From b888c7edb54e483ec0e3c2e2ce0eafd73acdcc65 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 15:57:00 -0500 Subject: Initial import from kshowmail 3.3.1 sources --- doc/html/OptionDlg_8cpp-source.html | 579 ++++++++++++++++++++++++++++++++++++ 1 file changed, 579 insertions(+) create mode 100644 doc/html/OptionDlg_8cpp-source.html (limited to 'doc/html/OptionDlg_8cpp-source.html') diff --git a/doc/html/OptionDlg_8cpp-source.html b/doc/html/OptionDlg_8cpp-source.html new file mode 100644 index 0000000..116e509 --- /dev/null +++ b/doc/html/OptionDlg_8cpp-source.html @@ -0,0 +1,579 @@ + + +kshowmail: kshowmail/OptionDlg.cpp Source File + + + + +
+
+ +

OptionDlg.cpp

00001 #include <kdialog.h>
+00002 #include <klocale.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 <qvariant.h>
+00015 #include <qpushbutton.h>
+00016 #include <qgroupbox.h>
+00017 #include <qlabel.h>
+00018 #include <qcombobox.h>
+00019 #include <qtabwidget.h>
+00020 #include <qwidget.h>
+00021 #include <qcheckbox.h>
+00022 #include <qspinbox.h>
+00023 #include <qlineedit.h>
+00024 #include <qlayout.h>
+00025 #include <qtooltip.h>
+00026 #include <qwhatsthis.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( QWidget* parent, const char* name, bool modal, WFlags fl )
+00036     : QDialog( parent, name, modal, fl )
+00037 {
+00038     if ( !name )
+00039        setName( "OptionDlg" );
+00040     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) );
+00041     setSizeGripEnabled( FALSE );
+00042     OptionDlgLayout = new QVBoxLayout( this, 11, 6, "OptionDlgLayout"); 
+00043 
+00044     QGroupBox_1 = new QGroupBox( this, "QGroupBox_1" );
+00045     QGroupBox_1->setMinimumSize( QSize( 380, 130 ) );
+00046     QGroupBox_1->setColumnLayout(0, Qt::Vertical );
+00047     QGroupBox_1->layout()->setSpacing( 6 );
+00048     QGroupBox_1->layout()->setMargin( 11 );
+00049     QGroupBox_1Layout = new QGridLayout( QGroupBox_1->layout() );
+00050     QGroupBox_1Layout->setAlignment( Qt::AlignTop );
+00051 
+00052     QLabel_1 = new QLabel( QGroupBox_1, "QLabel_1" );
+00053 
+00054     QGroupBox_1Layout->addWidget( QLabel_1, 0, 0 );
+00055     spacer4 = new QSpacerItem( 40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00056     QGroupBox_1Layout->addItem( spacer4, 1, 4 );
+00057 
+00058     m_ButtonDelete = new QPushButton( QGroupBox_1, "m_ButtonDelete" );
+00059 
+00060     QGroupBox_1Layout->addWidget( m_ButtonDelete, 1, 3 );
+00061 
+00062     m_ButtonCopy = new QPushButton( QGroupBox_1, "m_ButtonCopy" );
+00063 
+00064     QGroupBox_1Layout->addWidget( m_ButtonCopy, 1, 2 );
+00065 
+00066     m_ButtonEdit = new QPushButton( QGroupBox_1, "m_ButtonEdit" );
+00067 
+00068     QGroupBox_1Layout->addWidget( m_ButtonEdit, 1, 1 );
+00069 
+00070     m_ButtonAdd = new QPushButton( QGroupBox_1, "m_ButtonAdd" );
+00071 
+00072     QGroupBox_1Layout->addWidget( m_ButtonAdd, 1, 0 );
+00073 
+00074     m_ComboAccount = new QComboBox( FALSE, QGroupBox_1, "m_ComboAccount" );
+00075     m_ComboAccount->setFocusPolicy( QComboBox::TabFocus );
+00076     m_ComboAccount->setInsertionPolicy( QComboBox::AtTop );
+00077 
+00078     QGroupBox_1Layout->addMultiCellWidget( m_ComboAccount, 0, 0, 1, 3 );
+00079     spacer2 = new QSpacerItem( 360, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00080     QGroupBox_1Layout->addItem( spacer2, 0, 4 );
+00081     OptionDlgLayout->addWidget( QGroupBox_1 );
+00082 
+00083     layout3 = new QVBoxLayout( 0, 0, 6, "layout3"); 
+00084 
+00085     TabWidget2 = new QTabWidget( this, "TabWidget2" );
+00086     TabWidget2->setMinimumSize( QSize( 380, 209 ) );
+00087 
+00088     tab = new QWidget( TabWidget2, "tab" );
+00089     tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); 
+00090 
+00091     m_CheckSavePassword = new QCheckBox( tab, "m_CheckSavePassword" );
+00092 
+00093     tabLayout->addMultiCellWidget( m_CheckSavePassword, 0, 0, 0, 1 );
+00094 
+00095     m_CheckStartMinimized = new QCheckBox( tab, "m_CheckStartMinimized" );
+00096 
+00097     tabLayout->addMultiCellWidget( m_CheckStartMinimized, 0, 0, 2, 3 );
+00098 
+00099     m_CheckConfirmDelete = new QCheckBox( tab, "m_CheckConfirmDelete" );
+00100 
+00101     tabLayout->addMultiCellWidget( m_CheckConfirmDelete, 1, 1, 0, 1 );
+00102 
+00103     QLabel_2 = new QLabel( tab, "QLabel_2" );
+00104 
+00105     tabLayout->addWidget( QLabel_2, 3, 0 );
+00106 
+00107     QLabel_3 = new QLabel( tab, "QLabel_3" );
+00108 
+00109     tabLayout->addWidget( QLabel_3, 3, 2 );
+00110 
+00111     QLabel_6 = new QLabel( tab, "QLabel_6" );
+00112 
+00113     tabLayout->addWidget( QLabel_6, 4, 0 );
+00114 
+00115     QLabel_4 = new QLabel( tab, "QLabel_4" );
+00116 
+00117     tabLayout->addWidget( QLabel_4, 4, 2 );
+00118 
+00119     m_SpinPop3Timer = new QSpinBox( tab, "m_SpinPop3Timer" );
+00120     m_SpinPop3Timer->setMouseTracking( FALSE );
+00121     m_SpinPop3Timer->setFocusPolicy( QSpinBox::StrongFocus );
+00122     m_SpinPop3Timer->setAcceptDrops( FALSE );
+00123     m_SpinPop3Timer->setMaxValue( 300 );
+00124 
+00125     tabLayout->addWidget( m_SpinPop3Timer, 4, 1 );
+00126 
+00127     m_SpinInitTimer = new QSpinBox( tab, "m_SpinInitTimer" );
+00128     m_SpinInitTimer->setFocusPolicy( QSpinBox::StrongFocus );
+00129     m_SpinInitTimer->setMaxValue( 120 );
+00130 
+00131     tabLayout->addWidget( m_SpinInitTimer, 3, 1 );
+00132 
+00133     m_SpinIntervalTimer = new QSpinBox( tab, "m_SpinIntervalTimer" );
+00134     m_SpinIntervalTimer->setFocusPolicy( QSpinBox::StrongFocus );
+00135     m_SpinIntervalTimer->setMaxValue( 1440 );
+00136 
+00137     tabLayout->addWidget( m_SpinIntervalTimer, 3, 3 );
+00138 
+00139     m_SpinMaxSize = new QSpinBox( tab, "m_SpinMaxSize" );
+00140     m_SpinMaxSize->setFocusPolicy( QSpinBox::StrongFocus );
+00141     m_SpinMaxSize->setMaxValue( 9999 );
+00142 
+00143     tabLayout->addWidget( m_SpinMaxSize, 4, 3 );
+00144 
+00145     _checkConfirmClose = new QCheckBox( tab, "_checkConfirmClose" );
+00146 
+00147     tabLayout->addWidget( _checkConfirmClose, 0, 4 );
+00148 
+00149     m_CheckKeepNewMail = new QCheckBox( tab, "m_CheckKeepNewMail" );
+00150 
+00151     tabLayout->addMultiCellWidget( m_CheckKeepNewMail, 1, 1, 2, 3 );
+00152 
+00153     m_CheckCloseMinimizes = new QCheckBox( tab, "m_CheckCloseMinimizes" );
+00154 
+00155     tabLayout->addWidget( m_CheckCloseMinimizes, 1, 4 );
+00156 
+00157     m_CheckMinimizeToTray = new QCheckBox( tab, "m_CheckMinimizeToTray" );
+00158 
+00159     tabLayout->addMultiCellWidget( m_CheckMinimizeToTray, 2, 2, 0, 1 );
+00160     TabWidget2->insertTab( tab, QString::fromLatin1("") );
+00161 
+00162     tab_2 = new QWidget( TabWidget2, "tab_2" );
+00163     tabLayout_2 = new QHBoxLayout( tab_2, 11, 6, "tabLayout_2"); 
+00164 
+00165     GroupBox3 = new QGroupBox( tab_2, "GroupBox3" );
+00166     GroupBox3->setColumnLayout(0, Qt::Vertical );
+00167     GroupBox3->layout()->setSpacing( 6 );
+00168     GroupBox3->layout()->setMargin( 11 );
+00169     GroupBox3Layout = new QVBoxLayout( GroupBox3->layout() );
+00170     GroupBox3Layout->setAlignment( Qt::AlignTop );
+00171 
+00172     m_CheckActive = new QCheckBox( GroupBox3, "m_CheckActive" );
+00173     m_CheckActive->setChecked( TRUE );
+00174     GroupBox3Layout->addWidget( m_CheckActive );
+00175 
+00176     m_CheckAccount1 = new QCheckBox( GroupBox3, "m_CheckAccount1" );
+00177     m_CheckAccount1->setChecked( TRUE );
+00178     GroupBox3Layout->addWidget( m_CheckAccount1 );
+00179 
+00180     m_CheckServer = new QCheckBox( GroupBox3, "m_CheckServer" );
+00181     m_CheckServer->setChecked( TRUE );
+00182     GroupBox3Layout->addWidget( m_CheckServer );
+00183 
+00184     m_CheckUser = new QCheckBox( GroupBox3, "m_CheckUser" );
+00185     m_CheckUser->setChecked( TRUE );
+00186     GroupBox3Layout->addWidget( m_CheckUser );
+00187 
+00188     m_CheckMessages = new QCheckBox( GroupBox3, "m_CheckMessages" );
+00189     m_CheckMessages->setChecked( TRUE );
+00190     GroupBox3Layout->addWidget( m_CheckMessages );
+00191 
+00192     m_CheckSize1 = new QCheckBox( GroupBox3, "m_CheckSize1" );
+00193     m_CheckSize1->setChecked( TRUE );
+00194     GroupBox3Layout->addWidget( m_CheckSize1 );
+00195     tabLayout_2->addWidget( GroupBox3 );
+00196 
+00197     GroupBox2 = new QGroupBox( tab_2, "GroupBox2" );
+00198     GroupBox2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, GroupBox2->sizePolicy().hasHeightForWidth() ) );
+00199     GroupBox2->setColumnLayout(0, Qt::Vertical );
+00200     GroupBox2->layout()->setSpacing( 6 );
+00201     GroupBox2->layout()->setMargin( 11 );
+00202     GroupBox2Layout = new QVBoxLayout( GroupBox2->layout() );
+00203     GroupBox2Layout->setAlignment( Qt::AlignTop );
+00204 
+00205     m_CheckNumber = new QCheckBox( GroupBox2, "m_CheckNumber" );
+00206     m_CheckNumber->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckNumber->sizePolicy().hasHeightForWidth() ) );
+00207     m_CheckNumber->setChecked( TRUE );
+00208     GroupBox2Layout->addWidget( m_CheckNumber );
+00209 
+00210     m_CheckAccount2 = new QCheckBox( GroupBox2, "m_CheckAccount2" );
+00211     m_CheckAccount2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckAccount2->sizePolicy().hasHeightForWidth() ) );
+00212     m_CheckAccount2->setChecked( TRUE );
+00213     GroupBox2Layout->addWidget( m_CheckAccount2 );
+00214 
+00215     m_CheckFrom = new QCheckBox( GroupBox2, "m_CheckFrom" );
+00216     m_CheckFrom->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckFrom->sizePolicy().hasHeightForWidth() ) );
+00217     m_CheckFrom->setChecked( TRUE );
+00218     GroupBox2Layout->addWidget( m_CheckFrom );
+00219 
+00220     m_CheckTo = new QCheckBox( GroupBox2, "m_CheckTo" );
+00221     m_CheckTo->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckTo->sizePolicy().hasHeightForWidth() ) );
+00222     m_CheckTo->setChecked( TRUE );
+00223     GroupBox2Layout->addWidget( m_CheckTo );
+00224 
+00225     m_CheckSubject = new QCheckBox( GroupBox2, "m_CheckSubject" );
+00226     m_CheckSubject->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckSubject->sizePolicy().hasHeightForWidth() ) );
+00227     m_CheckSubject->setChecked( TRUE );
+00228     GroupBox2Layout->addWidget( m_CheckSubject );
+00229 
+00230     m_CheckDate = new QCheckBox( GroupBox2, "m_CheckDate" );
+00231     m_CheckDate->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckDate->sizePolicy().hasHeightForWidth() ) );
+00232     m_CheckDate->setChecked( TRUE );
+00233     GroupBox2Layout->addWidget( m_CheckDate );
+00234 
+00235     m_CheckSize2 = new QCheckBox( GroupBox2, "m_CheckSize2" );
+00236     m_CheckSize2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckSize2->sizePolicy().hasHeightForWidth() ) );
+00237     m_CheckSize2->setChecked( TRUE );
+00238     GroupBox2Layout->addWidget( m_CheckSize2 );
+00239 
+00240     m_CheckContent = new QCheckBox( GroupBox2, "m_CheckContent" );
+00241     m_CheckContent->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, m_CheckContent->sizePolicy().hasHeightForWidth() ) );
+00242     m_CheckContent->setChecked( TRUE );
+00243     GroupBox2Layout->addWidget( m_CheckContent );
+00244 
+00245     m_CheckState = new QCheckBox( GroupBox2, "m_CheckState" );
+00246     m_CheckState->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::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 QGroupBox( tab_2, "groupBox4" );
+00252     groupBox4->setColumnLayout(0, Qt::Vertical );
+00253     groupBox4->layout()->setSpacing( 6 );
+00254     groupBox4->layout()->setMargin( 11 );
+00255     groupBox4Layout = new QVBoxLayout( groupBox4->layout() );
+00256     groupBox4Layout->setAlignment( Qt::AlignTop );
+00257 
+00258     m_checkHTML = new QCheckBox( groupBox4, "m_checkHTML" );
+00259     groupBox4Layout->addWidget( m_checkHTML );
+00260     tabLayout_2->addWidget( groupBox4 );
+00261     TabWidget2->insertTab( tab_2, QString::fromLatin1("") );
+00262 
+00263     tab_3 = new QWidget( TabWidget2, "tab_3" );
+00264     tabLayout_3 = new QVBoxLayout( tab_3, 11, 6, "tabLayout_3"); 
+00265 
+00266     m_CheckMinimizeNoMail = new QCheckBox( tab_3, "m_CheckMinimizeNoMail" );
+00267     tabLayout_3->addWidget( m_CheckMinimizeNoMail );
+00268 
+00269     m_CheckTerminateNoMail = new QCheckBox( tab_3, "m_CheckTerminateNoMail" );
+00270     tabLayout_3->addWidget( m_CheckTerminateNoMail );
+00271     TabWidget2->insertTab( tab_3, QString::fromLatin1("") );
+00272 
+00273     tab_4 = new QWidget( TabWidget2, "tab_4" );
+00274     tabLayout_4 = new QGridLayout( tab_4, 1, 1, 11, 6, "tabLayout_4"); 
+00275 
+00276     m_CheckBeep = new QCheckBox( tab_4, "m_CheckBeep" );
+00277 
+00278     tabLayout_4->addMultiCellWidget( m_CheckBeep, 0, 0, 2, 3 );
+00279 
+00280     m_CheckShowMainWindow = new QCheckBox( tab_4, "m_CheckShowMainWindow" );
+00281 
+00282     tabLayout_4->addMultiCellWidget( m_CheckShowMainWindow, 1, 1, 0, 1 );
+00283 
+00284     m_CheckSound = new QCheckBox( tab_4, "m_CheckSound" );
+00285 
+00286     tabLayout_4->addMultiCellWidget( m_CheckSound, 1, 1, 2, 3 );
+00287 
+00288     m_CheckExternalProg = new QCheckBox( tab_4, "m_CheckExternalProg" );
+00289 
+00290     tabLayout_4->addMultiCellWidget( m_CheckExternalProg, 2, 2, 0, 1 );
+00291 
+00292     m_ButtonSelectSoundFile = new QPushButton( tab_4, "m_ButtonSelectSoundFile" );
+00293 
+00294     tabLayout_4->addWidget( m_ButtonSelectSoundFile, 3, 0 );
+00295 
+00296     m_ButtonSoundTest = new QPushButton( tab_4, "m_ButtonSoundTest" );
+00297 
+00298     tabLayout_4->addWidget( m_ButtonSoundTest, 3, 3 );
+00299 
+00300     QLabel_5 = new QLabel( tab_4, "QLabel_5" );
+00301 
+00302     tabLayout_4->addWidget( QLabel_5, 4, 0 );
+00303 
+00304     m_ComboExternalProg = new QComboBox( FALSE, tab_4, "m_ComboExternalProg" );
+00305     m_ComboExternalProg->setInsertionPolicy( QComboBox::AtTop );
+00306 
+00307     tabLayout_4->addMultiCellWidget( m_ComboExternalProg, 4, 4, 1, 2 );
+00308 
+00309     m_ButtonExternalProgTest = new QPushButton( tab_4, "m_ButtonExternalProgTest" );
+00310 
+00311     tabLayout_4->addWidget( m_ButtonExternalProgTest, 4, 3 );
+00312 
+00313     m_EditSoundFile = new QLineEdit( tab_4, "m_EditSoundFile" );
+00314 
+00315     tabLayout_4->addMultiCellWidget( m_EditSoundFile, 3, 3, 1, 2 );
+00316 
+00317     m_CheckShowMessagebox = new QCheckBox( tab_4, "m_CheckShowMessagebox" );
+00318 
+00319     tabLayout_4->addMultiCellWidget( m_CheckShowMessagebox, 0, 0, 0, 1 );
+00320     TabWidget2->insertTab( tab_4, QString::fromLatin1("") );
+00321     layout3->addWidget( TabWidget2 );
+00322 
+00323     layout2 = new QHBoxLayout( 0, 0, 6, "layout2"); 
+00324     Spacer70 = new QSpacerItem( 477, 16, QSizePolicy::Expanding, QSizePolicy::Minimum );
+00325     layout2->addItem( Spacer70 );
+00326 
+00327     m_ButtonOk = new QPushButton( this, "m_ButtonOk" );
+00328     layout2->addWidget( m_ButtonOk );
+00329 
+00330     m_ButtonCancel = new QPushButton( this, "m_ButtonCancel" );
+00331     layout2->addWidget( m_ButtonCancel );
+00332     layout3->addLayout( layout2 );
+00333     OptionDlgLayout->addLayout( layout3 );
+00334     languageChange();
+00335     resize( QSize(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) ), QLabel_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, Qt 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     QGroupBox_1->setTitle( tr2i18n( "Accounts" ) );
+00407     QLabel_1->setText( tr2i18n( "Name:" ) );
+00408     QToolTip::add( QLabel_1, tr2i18n( "Select a pop3 account" ) );
+00409     m_ButtonDelete->setText( tr2i18n( "Delete" ) );
+00410     QToolTip::add( m_ButtonDelete, tr2i18n( "Delete account" ) );
+00411     m_ButtonCopy->setText( tr2i18n( "Cop&y" ) );
+00412     QToolTip::add( m_ButtonCopy, tr2i18n( "copy account" ) );
+00413     m_ButtonEdit->setText( tr2i18n( "Edit" ) );
+00414     QToolTip::add( m_ButtonEdit, tr2i18n( "Edit account" ) );
+00415     m_ButtonAdd->setText( tr2i18n( "&Add" ) );
+00416     QToolTip::add( m_ButtonAdd, tr2i18n( "Add new account" ) );
+00417     QToolTip::add( m_ComboAccount, tr2i18n( "Select a pop3 account" ) );
+00418     m_CheckSavePassword->setText( tr2i18n( "Save Password" ) );
+00419     QToolTip::add( m_CheckSavePassword, tr2i18n( "Save password (not recommended !)" ) );
+00420     m_CheckStartMinimized->setText( tr2i18n( "Start Minimi&zed" ) );
+00421     QToolTip::add( m_CheckStartMinimized, tr2i18n( "Application is started as icon" ) );
+00422     m_CheckConfirmDelete->setText( tr2i18n( "Confirm delete" ) );
+00423     QToolTip::add( m_CheckConfirmDelete, tr2i18n( "If checked, message delete must be confirmed" ) );
+00424     QLabel_2->setText( tr2i18n( "Initial Timer:" ) );
+00425     QToolTip::add( QLabel_2, tr2i18n( "Seconds until first automatic logon (0 = no automatic)" ) );
+00426     QLabel_3->setText( tr2i18n( "Interval Timer:" ) );
+00427     QToolTip::add( QLabel_3, tr2i18n( "Minutes between automatic logon (0 = no automatic)" ) );
+00428     QLabel_6->setText( tr2i18n( "Pop3 Timer" ) );
+00429     QToolTip::add( QLabel_6, tr2i18n( "Pop3 timeout" ) );
+00430     QLabel_4->setText( tr2i18n( "Max Size:" ) );
+00431     QToolTip::add( QLabel_4, tr2i18n( "Maximal size of downloaded mail body in kilobytes" ) );
+00432     QToolTip::add( m_SpinPop3Timer, tr2i18n( "Pop3 timeout" ) );
+00433     QToolTip::add( m_SpinInitTimer, tr2i18n( "Seconds until first automatic logon (0 = no automatic)" ) );
+00434     QToolTip::add( m_SpinIntervalTimer, tr2i18n( "Minutes between automatic logon (0 = no automatic)" ) );
+00435     QToolTip::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( QKeySequence( tr2i18n( "Alt+K" ) ) );
+00439     QToolTip::add( m_CheckKeepNewMail, tr2i18n( "Keep mail as new until termination" ) );
+00440     m_CheckCloseMinimizes->setText( tr2i18n( "Close to tray" ) );
+00441     m_CheckCloseMinimizes->setAccel( QKeySequence( QString::null ) );
+00442     QToolTip::add( m_CheckCloseMinimizes, tr2i18n( "Close button leaves the application running in tray" ) );
+00443     m_CheckMinimizeToTray->setText( tr2i18n( "Minimize to tray" ) );
+00444     m_CheckMinimizeToTray->setAccel( QKeySequence( QString::null ) );
+00445     QToolTip::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     QToolTip::add( m_CheckMinimizeNoMail, tr2i18n( "Minimize window if no new mail" ) );
+00469     m_CheckTerminateNoMail->setText( tr2i18n( "Terminate" ) );
+00470     QToolTip::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     QToolTip::add( m_CheckBeep, tr2i18n( "Beeps the internal speaker if new mail" ) );
+00474     m_CheckShowMainWindow->setText( tr2i18n( "Show main window" ) );
+00475     QToolTip::add( m_CheckShowMainWindow, tr2i18n( "Show main window if new mail arrives" ) );
+00476     m_CheckSound->setText( tr2i18n( "Sound" ) );
+00477     QToolTip::add( m_CheckSound, tr2i18n( "Plays sound if new mail" ) );
+00478     m_CheckExternalProg->setText( tr2i18n( "E&xternal Program" ) );
+00479     QToolTip::add( m_CheckExternalProg, tr2i18n( "Starts external program if new mail" ) );
+00480     m_ButtonSelectSoundFile->setText( tr2i18n( "Sound File:" ) );
+00481     QToolTip::add( m_ButtonSelectSoundFile, tr2i18n( "Press to select sound file" ) );
+00482     m_ButtonSoundTest->setText( tr2i18n( "Test" ) );
+00483     QToolTip::add( m_ButtonSoundTest, tr2i18n( "Play the selected sound file" ) );
+00484     QLabel_5->setText( tr2i18n( "Command:" ) );
+00485     QToolTip::add( QLabel_5, tr2i18n( "Select external command" ) );
+00486     QToolTip::add( m_ComboExternalProg, tr2i18n( "Select external command" ) );
+00487     m_ButtonExternalProgTest->setText( tr2i18n( "Test" ) );
+00488     QToolTip::add( m_ButtonExternalProgTest, tr2i18n( "Start the selected program" ) );
+00489     QToolTip::add( m_EditSoundFile, tr2i18n( "Enter sound file" ) );
+00490     m_CheckShowMessagebox->setText( tr2i18n( "Show message box" ) );
+00491     QToolTip::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     qWarning( "OptionDlg::slotExternalProgTest(): Not implemented yet" );
+00500 }
+00501 
+00502 void OptionDlg::slotAccountActivated(int)
+00503 {
+00504     qWarning( "OptionDlg::slotAccountActivated(int): Not implemented yet" );
+00505 }
+00506 
+00507 void OptionDlg::slotButtonAddClicked()
+00508 {
+00509     qWarning( "OptionDlg::slotButtonAddClicked(): Not implemented yet" );
+00510 }
+00511 
+00512 void OptionDlg::slotButtonCopyClicked()
+00513 {
+00514     qWarning( "OptionDlg::slotButtonCopyClicked(): Not implemented yet" );
+00515 }
+00516 
+00517 void OptionDlg::slotButtonDeleteClicked()
+00518 {
+00519     qWarning( "OptionDlg::slotButtonDeleteClicked(): Not implemented yet" );
+00520 }
+00521 
+00522 void OptionDlg::slotButtonEditClicked()
+00523 {
+00524     qWarning( "OptionDlg::slotButtonEditClicked(): Not implemented yet" );
+00525 }
+00526 
+00527 void OptionDlg::slotButtonOkClicked()
+00528 {
+00529     qWarning( "OptionDlg::slotButtonOkClicked(): Not implemented yet" );
+00530 }
+00531 
+00532 void OptionDlg::slotButtonSelectSoundFile()
+00533 {
+00534     qWarning( "OptionDlg::slotButtonSelectSoundFile(): Not implemented yet" );
+00535 }
+00536 
+00537 void OptionDlg::slotMinimizeNoMailClicked()
+00538 {
+00539     qWarning( "OptionDlg::slotMinimizeNoMailClicked(): Not implemented yet" );
+00540 }
+00541 
+00542 void OptionDlg::slotSavePasswordToggled()
+00543 {
+00544     qWarning( "OptionDlg::slotSavePasswordToggled(): Not implemented yet" );
+00545 }
+00546 
+00547 void OptionDlg::slotSoundTest()
+00548 {
+00549     qWarning( "OptionDlg::slotSoundTest(): Not implemented yet" );
+00550 }
+00551 
+00552 void OptionDlg::slotTerminateNoMailClicked()
+00553 {
+00554     qWarning( "OptionDlg::slotTerminateNoMailClicked(): Not implemented yet" );
+00555 }
+00556 
+00557 #include "OptionDlg.moc"
+

Generated on Wed May 16 21:15:19 2007 for kshowmail by  + +doxygen 1.5.0
+ + -- cgit v1.2.3