26 #include <tdeaboutdata.h>
28 #include <tdelocale.h>
30 #include "kabconfigwidget.h"
32 #include "kcmkabconfig.h"
34 #include <tdemacros.h>
38 TDE_EXPORT TDECModule *create_kabconfig( TQWidget *parent, const char * ) {
39 return new KCMKabConfig( parent, "kcmkabconfig" );
43 KCMKabConfig::KCMKabConfig( TQWidget *parent, const char *name )
44 : TDECModule( parent, name )
46 TQVBoxLayout *layout = new TQVBoxLayout( this );
47 mConfigWidget = new KABConfigWidget( this, "mConfigWidget" );
48 layout->addWidget( mConfigWidget );
50 connect( mConfigWidget, TQ_SIGNAL( changed( bool ) ), TQ_SIGNAL( changed( bool ) ) );
54 TDEAboutData *about = new TDEAboutData( I18N_NOOP( "kcmkabconfig" ),
55 I18N_NOOP( "KAddressBook Configure Dialog" ),
56 0, 0, TDEAboutData::License_GPL,
57 I18N_NOOP( "(c), 2003 - 2004 Tobias Koenig" ) );
59 about->addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );
60 setAboutData( about );
63 void KCMKabConfig::load()
65 mConfigWidget->restoreSettings();
68 void KCMKabConfig::save()
70 mConfigWidget->saveSettings();
73 void KCMKabConfig::defaults()
75 mConfigWidget->defaults();
78 #include "kcmkabconfig.moc"
|