00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
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 #include "kcombobox.h"
00024
00025
00026
00027
00028
00029 Akregator::SettingsAdvancedBase::SettingsAdvancedBase( QWidget* parent, const char* name, WFlags fl )
00030 : QWidget( parent, name, fl )
00031 {
00032 if ( !name )
00033 setName( "SettingsAdvanced" );
00034 SettingsAdvancedLayout = new QGridLayout( this, 1, 1, 11, 6, "SettingsAdvancedLayout");
00035
00036 groupBox3_3_2 = new QGroupBox( this, "groupBox3_3_2" );
00037 groupBox3_3_2->setColumnLayout(0, Qt::Vertical );
00038 groupBox3_3_2->layout()->setSpacing( 6 );
00039 groupBox3_3_2->layout()->setMargin( 11 );
00040 groupBox3_3_2Layout = new QHBoxLayout( groupBox3_3_2->layout() );
00041 groupBox3_3_2Layout->setAlignment( Qt::AlignTop );
00042
00043 textLabel1 = new QLabel( groupBox3_3_2, "textLabel1" );
00044 groupBox3_3_2Layout->addWidget( textLabel1 );
00045
00046 cbBackend = new KComboBox( FALSE, groupBox3_3_2, "cbBackend" );
00047 groupBox3_3_2Layout->addWidget( cbBackend );
00048
00049 pbBackendConfigure = new QPushButton( groupBox3_3_2, "pbBackendConfigure" );
00050 groupBox3_3_2Layout->addWidget( pbBackendConfigure );
00051
00052 SettingsAdvancedLayout->addWidget( groupBox3_3_2, 0, 0 );
00053
00054 groupBox3_3 = new QGroupBox( this, "groupBox3_3" );
00055 groupBox3_3->setColumnLayout(0, Qt::Vertical );
00056 groupBox3_3->layout()->setSpacing( 6 );
00057 groupBox3_3->layout()->setMargin( 11 );
00058 groupBox3_3Layout = new QGridLayout( groupBox3_3->layout() );
00059 groupBox3_3Layout->setAlignment( Qt::AlignTop );
00060
00061 kcfg_MarkReadDelay = new QSpinBox( groupBox3_3, "kcfg_MarkReadDelay" );
00062 kcfg_MarkReadDelay->setEnabled( TRUE );
00063 kcfg_MarkReadDelay->setValue( 0 );
00064
00065 groupBox3_3Layout->addWidget( kcfg_MarkReadDelay, 0, 1 );
00066 spacer4 = new QSpacerItem( 174, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00067 groupBox3_3Layout->addItem( spacer4, 0, 2 );
00068
00069 kcfg_ResetQuickFilterOnNodeChange = new QCheckBox( groupBox3_3, "kcfg_ResetQuickFilterOnNodeChange" );
00070 kcfg_ResetQuickFilterOnNodeChange->setChecked( TRUE );
00071 kcfg_ResetQuickFilterOnNodeChange->setTristate( FALSE );
00072
00073 groupBox3_3Layout->addMultiCellWidget( kcfg_ResetQuickFilterOnNodeChange, 1, 1, 0, 1 );
00074
00075 kcfg_UseMarkReadDelay = new QCheckBox( groupBox3_3, "kcfg_UseMarkReadDelay" );
00076 kcfg_UseMarkReadDelay->setChecked( TRUE );
00077
00078 groupBox3_3Layout->addWidget( kcfg_UseMarkReadDelay, 0, 0 );
00079
00080 SettingsAdvancedLayout->addWidget( groupBox3_3, 1, 0 );
00081 spacer2 = new QSpacerItem( 21, 260, QSizePolicy::Minimum, QSizePolicy::Expanding );
00082 SettingsAdvancedLayout->addItem( spacer2, 2, 0 );
00083 languageChange();
00084 resize( QSize(476, 486).expandedTo(minimumSizeHint()) );
00085 clearWState( WState_Polished );
00086
00087
00088 connect( kcfg_UseMarkReadDelay, SIGNAL( toggled(bool) ), kcfg_MarkReadDelay, SLOT( setEnabled(bool) ) );
00089 }
00090
00091
00092
00093
00094 Akregator::SettingsAdvancedBase::~SettingsAdvancedBase()
00095 {
00096
00097 }
00098
00099
00100
00101
00102
00103 void Akregator::SettingsAdvancedBase::languageChange()
00104 {
00105 setCaption( tr2i18n( "SettingsAdvanced" ) );
00106 groupBox3_3_2->setTitle( tr2i18n( "Archive" ) );
00107 textLabel1->setText( tr2i18n( "Archive backend:" ) );
00108 pbBackendConfigure->setText( tr2i18n( "&Configure..." ) );
00109 groupBox3_3->setTitle( tr2i18n( "Article List" ) );
00110 kcfg_MarkReadDelay->setSuffix( tr2i18n( " sec" ) );
00111 kcfg_ResetQuickFilterOnNodeChange->setText( tr2i18n( "Reset search bar when changing feeds" ) );
00112 kcfg_UseMarkReadDelay->setText( tr2i18n( "Mar&k selected article read after" ) );
00113 }
00114
00115 #include "settings_advancedbase.moc"