The Gnome Chemistry Utils  0.14.0
Public Member Functions | Static Public Member Functions | List of all members
gcp::Plugin Class Reference

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 ()

Detailed Description

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.

Definition at line 44 of file plugin.h.

Constructor & Destructor Documentation

gcp::Plugin::Plugin ( )

The default constructor. Adds the new plugin to gcp::Plugins.

virtual gcp::Plugin::~Plugin ( )
virtual

The destructor.

Member Function Documentation

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
Parameters
Appthe 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.


The documentation for this class was generated from the following file: