Avogadro
1.1.0
|
Interface for plugins. More...
#include <avogadro/plugin.h>
Public Types | |
enum | Type { EngineType = 0, ToolType, ExtensionType, ColorType, OtherType, TypeCount } |
Public Member Functions | |
Plugin (QObject *parent=NULL) | |
virtual | ~Plugin () |
virtual Plugin::Type | type () const =0 |
virtual QString | identifier () const =0 |
virtual QString | name () const =0 |
virtual QString | description () const |
virtual QString | license () const |
virtual QWidget * | settingsWidget () |
virtual void | writeSettings (QSettings &settings) const |
virtual void | readSettings (QSettings &settings) |
Interface for plugins.
This is a template class for plugins like tools, engines, extensions, colors, ...
Avogadro::Plugin::Plugin | ( | QObject * | parent = NULL | ) |
Constructor
Avogadro::Plugin::~Plugin | ( | ) | [virtual] |
Destructor
QString Avogadro::Plugin::description | ( | ) | const [virtual] |
Reimplemented in Avogadro::Engine, Avogadro::PythonExtension, Avogadro::PythonEngine, and Avogadro::PythonTool.
References QObject::tr().
Referenced by Avogadro::Tool::activateAction().
virtual QString Avogadro::Plugin::identifier | ( | ) | const [pure virtual] |
Implemented in Avogadro::Color, Avogadro::Engine, Avogadro::PythonExtension, Avogadro::PythonEngine, and Avogadro::PythonTool.
Referenced by Avogadro::ToolGroup::readSettings(), Avogadro::ToolGroup::setActiveTool(), Avogadro::GLWidget::setToolGroup(), and Avogadro::ToolGroup::writeSettings().
QString Avogadro::Plugin::license | ( | ) | const [virtual] |
References QObject::tr().
virtual QString Avogadro::Plugin::name | ( | ) | const [pure virtual] |
Reimplemented from QObject.
Implemented in Avogadro::Color, Avogadro::Engine, Avogadro::PythonExtension, Avogadro::PythonEngine, and Avogadro::PythonTool.
Referenced by Avogadro::Tool::activateAction().
void Avogadro::Plugin::readSettings | ( | QSettings & | settings | ) | [virtual] |
Read in the settings that have been saved for the plugin instance.
Reimplemented in Avogadro::Engine, Avogadro::Tool, Avogadro::Extension, Avogadro::PythonExtension, Avogadro::PythonTool, and Avogadro::PythonEngine.
QWidget * Avogadro::Plugin::settingsWidget | ( | ) | [virtual] |
Reimplemented in Avogadro::Engine, Avogadro::Tool, Avogadro::PythonTool, and Avogadro::PythonEngine.
virtual Plugin::Type Avogadro::Plugin::type | ( | ) | const [pure virtual] |
Implemented in Avogadro::Color, Avogadro::Engine, Avogadro::Extension, and Avogadro::Tool.
void Avogadro::Plugin::writeSettings | ( | QSettings & | settings | ) | const [virtual] |
Write the plugin settings so that they can be saved between sessions.
Reimplemented in Avogadro::Engine, Avogadro::Tool, Avogadro::Extension, Avogadro::PythonExtension, Avogadro::PythonTool, and Avogadro::PythonEngine.