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