akregator
akregator_config_general.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "akregator_config_general.h"
00025 #include "akregatorconfig.h"
00026
00027 #include "ui_settings_general.h"
00028
00029 #include <KAboutData>
00030 #include <KConfigDialogManager>
00031 #include <KGenericFactory>
00032 #include <KLocalizedString>
00033 #include <kdemacros.h>
00034
00035 #include <QVBoxLayout>
00036
00037 using namespace Akregator;
00038
00039 K_PLUGIN_FACTORY(KCMAkregatorGeneralConfigFactory, registerPlugin<KCMAkregatorGeneralConfig>();)
00040 K_EXPORT_PLUGIN(KCMAkregatorGeneralConfigFactory( "kcmakrgeneralconfig" ))
00041
00042 KCMAkregatorGeneralConfig::KCMAkregatorGeneralConfig( QWidget* parent, const QVariantList& args )
00043 : KCModule( KCMAkregatorGeneralConfigFactory::componentData(), parent, args ), m_widget( new QWidget )
00044 {
00045 Ui::SettingsGeneral ui;
00046 ui.setupUi( m_widget );
00047
00048 QVBoxLayout* layout = new QVBoxLayout( this );
00049 layout->addWidget( m_widget );
00050
00051 connect( ui.kcfg_UseIntervalFetch, SIGNAL( toggled( bool ) ),
00052 ui.kcfg_AutoFetchInterval, SLOT( setEnabled( bool ) ) );
00053 connect( ui.kcfg_UseIntervalFetch, SIGNAL( toggled( bool ) ),
00054 ui.autoFetchIntervalLabel, SLOT( setEnabled( bool ) ) );
00055
00056 KAboutData *about = new KAboutData( I18N_NOOP( "kcmakrgeneralconfig" ), 0,
00057 ki18n( "Configure Feeds" ),
00058 0, KLocalizedString(), KAboutData::License_GPL,
00059 ki18n( "(c), 2004 - 2008 Frank Osterfeld" ) );
00060
00061 about->addAuthor( ki18n( "Frank Osterfeld" ), KLocalizedString(), "osterfeld@kde.org" );
00062 setAboutData( about );
00063
00064 addConfig( Settings::self(), m_widget );
00065 }
00066
00067 #include "akregator_config_general.moc"