Kate
exporterplugin.cpp
Go to the documentation of this file.
00001 00020 #include "exporterplugin.h" 00021 00022 #include <kpluginloader.h> 00023 00024 #include <ktexteditor/view.h> 00025 00026 #include "exporterpluginview.h" 00027 00028 K_PLUGIN_FACTORY_DEFINITION(ExporterPluginFactory, 00029 registerPlugin<ExporterPlugin>("ktexteditor_exporter"); 00030 ) 00031 K_EXPORT_PLUGIN(ExporterPluginFactory("ktexteditor_exporter", "ktexteditor_plugins")) 00032 00033 ExporterPlugin::ExporterPlugin(QObject *parent, const QVariantList &args) 00034 : KTextEditor::Plugin(parent) 00035 { 00036 Q_UNUSED(args); 00037 } 00038 00039 ExporterPlugin::~ExporterPlugin() 00040 { 00041 } 00042 00043 void ExporterPlugin::addView(KTextEditor::View *view) 00044 { 00045 // need to keep track of, since the plugin might get disabled and we have to delete the views 00046 m_views[view] = new ExporterPluginView(view); 00047 } 00048 00049 void ExporterPlugin::removeView(KTextEditor::View* view) 00050 { 00051 delete m_views.take(view); 00052 } 00053 00054 #include "exporterplugin.moc" 00055 00056 // kate: space-indent on; indent-width 2; replace-tabs on;
KDE 4.6 API Reference