akregator/src

settings_advancedbase.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './settings_advancedbase.ui'
00005 **
00006 ** Created: Thu Mar 29 06:02:51 2007
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "settings_advancedbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <qgroupbox.h>
00017 #include <qlabel.h>
00018 #include <kcombobox.h>
00019 #include <qspinbox.h>
00020 #include <qcheckbox.h>
00021 #include <qlayout.h>
00022 #include <qtooltip.h>
00023 #include <qwhatsthis.h>
00024 #include "kcombobox.h"
00025 
00026 /*
00027  *  Constructs a Akregator::SettingsAdvancedBase as a child of 'parent', with the
00028  *  name 'name' and widget flags set to 'f'.
00029  */
00030 Akregator::SettingsAdvancedBase::SettingsAdvancedBase( QWidget* parent, const char* name, WFlags fl )
00031     : QWidget( parent, name, fl )
00032 {
00033     if ( !name )
00034     setName( "SettingsAdvanced" );
00035     SettingsAdvancedLayout = new QGridLayout( this, 1, 1, 11, 6, "SettingsAdvancedLayout"); 
00036 
00037     groupBox3_3_2 = new QGroupBox( this, "groupBox3_3_2" );
00038     groupBox3_3_2->setColumnLayout(0, Qt::Vertical );
00039     groupBox3_3_2->layout()->setSpacing( 6 );
00040     groupBox3_3_2->layout()->setMargin( 11 );
00041     groupBox3_3_2Layout = new QHBoxLayout( groupBox3_3_2->layout() );
00042     groupBox3_3_2Layout->setAlignment( Qt::AlignTop );
00043 
00044     textLabel1 = new QLabel( groupBox3_3_2, "textLabel1" );
00045     groupBox3_3_2Layout->addWidget( textLabel1 );
00046 
00047     cbBackend = new KComboBox( FALSE, groupBox3_3_2, "cbBackend" );
00048     groupBox3_3_2Layout->addWidget( cbBackend );
00049 
00050     pbBackendConfigure = new QPushButton( groupBox3_3_2, "pbBackendConfigure" );
00051     groupBox3_3_2Layout->addWidget( pbBackendConfigure );
00052 
00053     SettingsAdvancedLayout->addWidget( groupBox3_3_2, 0, 0 );
00054 
00055     groupBox3_3 = new QGroupBox( this, "groupBox3_3" );
00056     groupBox3_3->setColumnLayout(0, Qt::Vertical );
00057     groupBox3_3->layout()->setSpacing( 6 );
00058     groupBox3_3->layout()->setMargin( 11 );
00059     groupBox3_3Layout = new QGridLayout( groupBox3_3->layout() );
00060     groupBox3_3Layout->setAlignment( Qt::AlignTop );
00061 
00062     kcfg_MarkReadDelay = new QSpinBox( groupBox3_3, "kcfg_MarkReadDelay" );
00063     kcfg_MarkReadDelay->setEnabled( TRUE );
00064     kcfg_MarkReadDelay->setValue( 0 );
00065 
00066     groupBox3_3Layout->addWidget( kcfg_MarkReadDelay, 0, 1 );
00067     spacer4 = new QSpacerItem( 174, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00068     groupBox3_3Layout->addItem( spacer4, 0, 2 );
00069 
00070     kcfg_ResetQuickFilterOnNodeChange = new QCheckBox( groupBox3_3, "kcfg_ResetQuickFilterOnNodeChange" );
00071     kcfg_ResetQuickFilterOnNodeChange->setChecked( TRUE );
00072     kcfg_ResetQuickFilterOnNodeChange->setTristate( FALSE );
00073 
00074     groupBox3_3Layout->addMultiCellWidget( kcfg_ResetQuickFilterOnNodeChange, 1, 1, 0, 1 );
00075 
00076     kcfg_UseMarkReadDelay = new QCheckBox( groupBox3_3, "kcfg_UseMarkReadDelay" );
00077     kcfg_UseMarkReadDelay->setChecked( TRUE );
00078 
00079     groupBox3_3Layout->addWidget( kcfg_UseMarkReadDelay, 0, 0 );
00080 
00081     SettingsAdvancedLayout->addWidget( groupBox3_3, 1, 0 );
00082     spacer2 = new QSpacerItem( 21, 260, QSizePolicy::Minimum, QSizePolicy::Expanding );
00083     SettingsAdvancedLayout->addItem( spacer2, 2, 0 );
00084     languageChange();
00085     resize( QSize(476, 486).expandedTo(minimumSizeHint()) );
00086     clearWState( WState_Polished );
00087 
00088     // signals and slots connections
00089     connect( kcfg_UseMarkReadDelay, SIGNAL( toggled(bool) ), kcfg_MarkReadDelay, SLOT( setEnabled(bool) ) );
00090 }
00091 
00092 /*
00093  *  Destroys the object and frees any allocated resources
00094  */
00095 Akregator::SettingsAdvancedBase::~SettingsAdvancedBase()
00096 {
00097     // no need to delete child widgets, Qt does it all for us
00098 }
00099 
00100 /*
00101  *  Sets the strings of the subwidgets using the current
00102  *  language.
00103  */
00104 void Akregator::SettingsAdvancedBase::languageChange()
00105 {
00106     setCaption( tr2i18n( "SettingsAdvanced" ) );
00107     groupBox3_3_2->setTitle( tr2i18n( "Archive" ) );
00108     textLabel1->setText( tr2i18n( "Archive backend:" ) );
00109     pbBackendConfigure->setText( tr2i18n( "&Configure..." ) );
00110     groupBox3_3->setTitle( tr2i18n( "Article List" ) );
00111     kcfg_MarkReadDelay->setSuffix( tr2i18n( " sec" ) );
00112     kcfg_ResetQuickFilterOnNodeChange->setText( tr2i18n( "Reset search bar when changing feeds" ) );
00113     kcfg_UseMarkReadDelay->setText( tr2i18n( "Mar&k selected article read after" ) );
00114 }
00115 
00116 #include "settings_advancedbase.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys