|
The Gnome Chemistry Utils 0.12.8
|
Class for GChemPaint plugins. More...
#include <gcp/plugin.h>
Public Member Functions | |
| Plugin () | |
| virtual | ~Plugin () |
| virtual void | Populate (Application *App) |
| virtual void | Clear () |
Static Public Member Functions | |
| static void | LoadPlugins () |
| static void | UnloadPlugins () |
Class for GChemPaint plugins.
Every plugin should implement a new Plugin class derived from this one and create a unique static instance of the new class. The base class constructor will register the plugin. Such plugins are loaded on program startup.
| gcp::Plugin::Plugin | ( | ) |
The default constructor. Adds the new plugin to gcp::Plugins.
| virtual gcp::Plugin::~Plugin | ( | ) | [virtual] |
The destructor.
| virtual void gcp::Plugin::Clear | ( | ) | [virtual] |
Called by the framework so that the plugin can clean memory before exit
| static void gcp::Plugin::LoadPlugins | ( | ) | [static] |
Loads plugins from the GChemPaint plugin directory stored in the PLUGINSDIR variable.
| virtual void gcp::Plugin::Populate | ( | Application * | App | ) | [virtual] |
| App | the GChemPaint application. |
Called by the framework so that the plugin can add new UI elements to the application.
| static void gcp::Plugin::UnloadPlugins | ( | ) | [static] |
Unloads plugins.
1.7.4