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