Avogadro  1.1.0
Public Member Functions
Avogadro::PythonTool Class Reference
Inheritance diagram for Avogadro::PythonTool:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 PythonTool (QObject *parent=0, const QString &filename=QString(""))
 Constructor.
virtual ~PythonTool ()
 Destructor.
To python delegated functions
QString identifier () const
QString name () const
QString description () const
QString settingsTitle () const
QUndoCommandmouseEvent (const QString &what, GLWidget *widget, QMouseEvent *event)
QUndoCommandmousePressEvent (GLWidget *widget, QMouseEvent *event)
QUndoCommandmouseReleaseEvent (GLWidget *widget, QMouseEvent *event)
QUndoCommandmouseMoveEvent (GLWidget *widget, QMouseEvent *event)
QUndoCommandmouseDoubleClickEvent (GLWidget *widget, QMouseEvent *event)
QUndoCommandwheelEvent (GLWidget *widget, QWheelEvent *event)
bool paint (GLWidget *widget)
QWidgetsettingsWidget ()
void writeSettings (QSettings &settings) const
void readSettings (QSettings &settings)

Member Function Documentation

Returns:
A description of the plugin.

Reimplemented from Avogadro::Plugin.

References QObject::tr().

Returns:
The unique, untranslated identifier for the plugin.

Implements Avogadro::Plugin.

Response to a user double-click

Parameters:
widgetthe GLWidget where the event occurred
eventthe mouse event information
Since:
version 1.1

Implements Avogadro::Tool.

QUndoCommand * Avogadro::PythonTool::mouseMoveEvent ( GLWidget widget,
QMouseEvent event 
) [virtual]

Response to mouse movement

Parameters:
widgetthe GLWidget where the event occurred
eventthe mouse event information

Implements Avogadro::Tool.

Response to mouse press

Parameters:
widgetthe GLWidget where the even occurred
eventthe mouse event information

Implements Avogadro::Tool.

Response to mouse release

Parameters:
widgetthe GLWidget where the even occurred
eventthe mouse event information

Implements Avogadro::Tool.

QString Avogadro::PythonTool::name ( ) const [virtual]
Returns:
The translated name of the plugin.

Implements Avogadro::Plugin.

References QObject::tr().

bool Avogadro::PythonTool::paint ( GLWidget widget) [virtual]

Called by the GLWidget allowing overlay painting by the tool. Tools get painted last in the overall scheme.

Parameters:
widgetthe GLWidget to paint to

Reimplemented from Avogadro::Tool.

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

Read in the settings that have been saved for the tool instance.

Reimplemented from Avogadro::Tool.

Returns:
The translated name of the settings widget

Implements Avogadro::Tool.

References QObject::tr().

Returns:
The settings widget for the tool.

Reimplemented from Avogadro::Tool.

References QLayout::addWidget(), QObject::connect(), QObject::destroyed(), QWidget::layout(), and QWidget::setLayout().

QUndoCommand * Avogadro::PythonTool::wheelEvent ( GLWidget widget,
QWheelEvent event 
) [virtual]

Response to mouse wheel movement

Parameters:
widgetthe GLWidget where the event occurred
eventthe mouse wheel event information

Reimplemented from Avogadro::Tool.

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

Write the tool settings so that they can be saved between sessions.

Reimplemented from Avogadro::Tool.


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