• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

kapptemplate

  • sources
  • kde-4.12
  • kdesdk
  • kapptemplate
  • templates
  • C++
  • flake
flake/%{APPNAME}Plugin.cpp
Go to the documentation of this file.
1 #include "%{APPNAME}Plugin.h"
2 #include <KoShapeRegistry.h>
3 #include <KoToolRegistry.h>
4 #include "%{APPNAME}ShapeFactory.h"
5 #include "%{APPNAME}ToolFactory.h"
6 #include <KPluginFactory>
7 
8 K_PLUGIN_FACTORY(%{APPNAME}PluginFactory, registerPlugin<%{APPNAME}Plugin>(); )
9 K_EXPORT_PLUGIN(%{APPNAME}PluginFactory("%{APPNAME}"))
10 
11 %{APPNAME}Plugin::%{APPNAME}Plugin(QObject *parent, const QVariantList&) : QObject(parent)
12 {
13  KoShapeRegistry::instance()->add(new %{APPNAME}ShapeFactory(parent));
14  KoToolRegistry::instance()->add(new %{APPNAME}ToolFactory(parent));
15 }
%{APPNAME}ToolFactory.h
ShapeFactory
class @1 ShapeFactory(QObject *parent)
Plugin
class @0 Plugin(QObject *parent, const QVariantList &args)
APPNAME
main APPNAME
%{APPNAME}ShapeFactory.h
%{APPNAME}Plugin.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kapptemplate

Skip menu "kapptemplate"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal