parts/uimode/uichooser_part.cpp
Go to the documentation of this file.00001
#include "uichooser_part.h"
00002
00003
#include <qvbox.h>
00004
00005
#include <kdialogbase.h>
00006
#include <kdevgenericfactory.h>
00007
#include <kiconloader.h>
00008
#include <klocale.h>
00009
00010
#include "kdevcore.h"
00011
00012
#include "uichooser_widget.h"
00013
00014
00015 typedef KDevGenericFactory<UIChooserPart> UIChooserFactory;
00016
static const KAboutData data(
"kdevuichooser",
I18N_NOOP(
"User Interface"),
"1.0");
00017 K_EXPORT_COMPONENT_FACTORY( libkdevuichooser,
UIChooserFactory( &data ) )
00018
00019
UIChooserPart::
UIChooserPart(
QObject *parent, const
char *name, const
QStringList &)
00020 :
KDevPlugin( "
UIChooser", "uichooser", parent, name ? name : "
UIChooserPart")
00021 {
00022 setInstance(UIChooserFactory::instance());
00023
00024 connect(core(), SIGNAL(configWidget(
KDialogBase*)),
this, SLOT(configWidget(
KDialogBase*)));
00025 }
00026
00027
00028 UIChooserPart::~UIChooserPart()
00029 {
00030 }
00031
00032
00033 void UIChooserPart::configWidget(
KDialogBase *dlg)
00034 {
00035
QVBox *vbox = dlg->
addVBoxPage(i18n(
"User Interface"));
00036
UIChooserWidget *w =
new UIChooserWidget(vbox);
00037 w->
setPart(
this);
00038 connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
00039 }
00040
00041
00042
00043
#include "uichooser_part.moc"
This file is part of the documentation for KDevelop Version 3.0.4.