26 #include <tdelocale.h>
28 #include "configurewidget.h"
29 #include "extensionconfigdialog.h"
30 #include "extensionwidget.h"
32 ExtensionConfigDialog::ExtensionConfigDialog( KAB::ExtensionFactory *factory, TDEConfig *config,
33 TQWidget *parent, const char *name )
34 : KDialogBase( Plain, i18n( "Extension Settings" ), Ok | Cancel, Ok, parent,
35 name, true, true ), mWidget( 0 ), mConfig( config )
37 TQFrame *page = plainPage();
38 TQGridLayout *layout = new TQGridLayout( page, 1, 1, marginHint(), spacingHint() );
40 mWidget = factory->configureWidget( page, "ExtensionConfigWidget" );
41 layout->addWidget( mWidget, 0, 0 );
43 mWidget->restoreSettings( mConfig );
46 ExtensionConfigDialog::~ExtensionConfigDialog()
50 void ExtensionConfigDialog::slotOk()
52 mWidget->saveSettings( mConfig );
54 KDialogBase::slotOk();
57 #include "extensionconfigdialog.moc"
|