Avogadro  1.1.0
Public Slots | Public Member Functions
Avogadro::PythonExtension Class Reference
Inheritance diagram for Avogadro::PythonExtension:
Inheritance graph
[legend]

List of all members.

Public Slots

void dockWidgetDestroyed ()
bool paint (GLWidget *widget)

Public Member Functions

 PythonExtension (QObject *parent=0, const QString &filename=QString(""))
 Constructor.
virtual ~PythonExtension ()
 Deconstructor.
To python delegated functions
QString identifier () const
QString name () const
QString description () const
QList< QAction * > actions () const
QString menuPath (QAction *action) const
QUndoCommandperformAction (QAction *action, GLWidget *widget)
QDockWidgetdockWidget ()
void writeSettings (QSettings &settings) const
void readSettings (QSettings &settings)

Member Function Documentation

Returns:
a list of actions which this widget can perform

Implements Avogadro::Extension.

References QObject::setParent().

Returns:
A description of the plugin.

Reimplemented from Avogadro::Plugin.

References name(), and QObject::tr().

Returns:
A QDockWidget associated with this extension
Deprecated:
Use dockWidgets() instead. This function will return the first dockWidget in the dockWidgets() list or NULL in its default implementation.

Reimplemented from Avogadro::Extension.

References QObject::connect(), QObject::destroyed(), QObject::setObjectName(), and QDockWidget::windowTitle.

Returns:
The unique, untranslated identifier for the plugin.

Implements Avogadro::Plugin.

QString Avogadro::PythonExtension::menuPath ( QAction action) const [virtual]
Returns:
the menu path for the specified action

Reimplemented from Avogadro::Extension.

References QObject::tr().

Returns:
The translated name of the plugin.

Implements Avogadro::Plugin.

References QObject::tr().

Referenced by description().

QUndoCommand * Avogadro::PythonExtension::performAction ( QAction action,
GLWidget widget 
) [virtual]
Parameters:
actionthe action that triggered the calls
widgetthe currently active GLWidget feedback to the user)
Returns:
an undo command for this action

Implements Avogadro::Extension.

void Avogadro::PythonExtension::readSettings ( QSettings settings) [virtual]

read settings for this extension

Parameters:
settingssettings variable to read settings from

Reimplemented from Avogadro::Extension.

void Avogadro::PythonExtension::writeSettings ( QSettings settings) const [virtual]

save settings for this extension

Parameters:
settingssettings variable to write settings to

Reimplemented from Avogadro::Extension.


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