kleopatra
appearanceconfigpage.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
00025
00026
00027
00028
00029
00030
00031
00032
00033 #include <config-kleopatra.h>
00034
00035 #include "appearanceconfigpage.h"
00036
00037 #include "appearanceconfigwidget.h"
00038
00039 #include <kmessagebox.h>
00040 #include <klocale.h>
00041 #include <kdebug.h>
00042 #include <kcomponentdata.h>
00043
00044 #include <QLayout>
00045 #include <QVBoxLayout>
00046
00047 using namespace Kleo;
00048 using namespace Kleo::Config;
00049
00050 AppearanceConfigurationPage::AppearanceConfigurationPage( const KComponentData &instance, QWidget *parent, const QVariantList &args )
00051 : KCModule( instance, parent, args )
00052 {
00053 QVBoxLayout* lay = new QVBoxLayout( this );
00054 mWidget = new AppearanceConfigWidget( this );
00055 lay->addWidget( mWidget );
00056 connect( mWidget, SIGNAL(changed()), this, SLOT(changed()) );
00057
00058 #ifndef HAVE_UNBROKEN_KCMULTIDIALOG
00059 load();
00060 #endif
00061 }
00062
00063
00064 void AppearanceConfigurationPage::load()
00065 {
00066 mWidget->load();
00067 }
00068
00069 void AppearanceConfigurationPage::save()
00070 {
00071 mWidget->save();
00072
00073 }
00074
00075 void AppearanceConfigurationPage::defaults()
00076 {
00077 mWidget->defaults();
00078 }
00079
00080 extern "C"
00081 {
00082 KDE_EXPORT KCModule *create_kleopatra_config_appear( QWidget *parent=0, const QVariantList &args=QVariantList() )
00083 {
00084 AppearanceConfigurationPage *page =
00085 new AppearanceConfigurationPage( KComponentData( "kleopatra" ), parent, args );
00086 page->setObjectName( "kleopatra_config_appear" );
00087 return page;
00088 }
00089 }
00090
00091 #include "appearanceconfigpage.moc"