Plugin Example


This plugin is a simple example of plugin. It aims to help you understand:
You may use it as a starting point to create your own plugin, and replace this page with your documentation.

Components


Create your own plugin

Suppose you want to create a plugin called YourPlugin. The easiest way is to apply the following steps:
  1. copy and rename the PluginExample example directory to YourPlugin
  2. rename PluginExample.pro to YourPlugin.pro, and PluginExample.txt to YourPlugin.txt
  3. replace PluginExample with YourPlugin in the following files:
  4. compile the plugin
  5. run the plugin.

Add, rename, remove component classes

To add a class

  1. create the .h and .cpp files (as well as a .inl if the class is template)
  2. add them to the project in the .pro file
  3. declare the class in the initPlugin.cpp file

To rename a class

To remove a class


Document the code using Doxygen

Doxygen can automatically create code documentation. Run doxygen using the above Doxyfile if the previous link was broken.