• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

akregator

akregator_config_browser.cpp

Go to the documentation of this file.
00001 /*
00002     This file is part of Akregator.
00003     Copyright (c) 2008 Frank Osterfeld <osterfeld@kde.org>
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program; if not, write to the Free Software
00017     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00018 
00019     As a special exception, permission is given to link this program
00020     with any edition of Qt, and distribute the resulting executable,
00021     without including the source code for Qt in the source distribution.
00022 */
00023 
00024 #include "akregator_config_browser.h"
00025 #include "akregatorconfig.h"
00026 
00027 #include "ui_settings_browser.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(KCMAkregatorBrowserConfigFactory, registerPlugin<KCMAkregatorBrowserConfig>();)
00040 K_EXPORT_PLUGIN(KCMAkregatorBrowserConfigFactory( "kcmakrbrowserconfig" ))
00041 
00042 KCMAkregatorBrowserConfig::KCMAkregatorBrowserConfig( QWidget* parent, const QVariantList& args )
00043     : KCModule( KCMAkregatorBrowserConfigFactory::componentData(), parent, args ), m_widget( new QWidget )
00044 {  
00045     Ui::SettingsBrowser ui;
00046     ui.setupUi( m_widget );
00047 
00048     QVBoxLayout* layout = new QVBoxLayout( this );
00049     layout->addWidget( m_widget );
00050     
00051     connect( ui.kcfg_ExternalBrowserUseCustomCommand, SIGNAL( toggled( bool ) ), 
00052              ui.kcfg_ExternalBrowserCustomCommand, SLOT( setEnabled( bool ) ) );
00053 
00054     KAboutData *about = new KAboutData( I18N_NOOP( "kcmakrbrowserconfig" ), 0,
00055                                         ki18n( "Configure Feed Reader Browser" ),
00056                                         0, KLocalizedString(), KAboutData::License_GPL,
00057                                         ki18n( "(c), 2004 - 2008 Frank Osterfeld" ) );
00058 
00059     about->addAuthor( ki18n( "Frank Osterfeld" ), KLocalizedString(), "osterfeld@kde.org" );
00060     setAboutData( about );
00061 
00062     addConfig( Settings::self(), m_widget );
00063 }
00064 
00065 #include "akregator_config_browser.moc"

akregator

Skip menu "akregator"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal