configdialog.cpp

00001 
00021 #include "configdialog.h"
00022 #include "configwidget.h"
00023 
00024 #include <klocale.h>
00025 
00026 #include <qvbox.h>
00027 
00028 using namespace KSpell2;
00029 
00030 class ConfigDialog::Private
00031 {
00032 public:
00033     ConfigWidget *ui;
00034 };
00035 
00036 ConfigDialog::ConfigDialog( Broker *broker, QWidget *parent )
00037     : KDialogBase( parent, "KSpell2ConfigDialog", true,
00038                    i18n( "KSpell2 Configuration" ),
00039                    KDialogBase::Ok|KDialogBase::Apply|KDialogBase::Cancel,
00040                    KDialogBase::Ok, true )
00041 {
00042     init( broker );
00043 }
00044 
00045 ConfigDialog::~ConfigDialog()
00046 {
00047     delete d; d = 0;
00048 }
00049 
00050 void ConfigDialog::init( Broker *broker )
00051 {
00052     d = new Private;
00053     QVBox *page = makeVBoxMainWidget();
00054     d->ui = new ConfigWidget( broker, page );
00055 }
00056 
00057 void ConfigDialog::slotOk()
00058 {
00059     d->ui->save();
00060     accept();
00061 }
00062 
00063 void ConfigDialog::slotApply()
00064 {
00065     d->ui->save();
00066 }
00067 
00068 
00069 #include "configdialog.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys