Avogadro
1.1.0
|
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 |
QUndoCommand * | mouseEvent (const QString &what, GLWidget *widget, QMouseEvent *event) |
QUndoCommand * | mousePressEvent (GLWidget *widget, QMouseEvent *event) |
QUndoCommand * | mouseReleaseEvent (GLWidget *widget, QMouseEvent *event) |
QUndoCommand * | mouseMoveEvent (GLWidget *widget, QMouseEvent *event) |
QUndoCommand * | mouseDoubleClickEvent (GLWidget *widget, QMouseEvent *event) |
QUndoCommand * | wheelEvent (GLWidget *widget, QWheelEvent *event) |
bool | paint (GLWidget *widget) |
QWidget * | settingsWidget () |
void | writeSettings (QSettings &settings) const |
void | readSettings (QSettings &settings) |
QString Avogadro::PythonTool::description | ( | ) | const [virtual] |
QString Avogadro::PythonTool::identifier | ( | ) | const [virtual] |
Implements Avogadro::Plugin.
QUndoCommand * Avogadro::PythonTool::mouseDoubleClickEvent | ( | GLWidget * | widget, |
QMouseEvent * | event | ||
) | [virtual] |
Response to a user double-click
widget | the GLWidget where the event occurred |
event | the mouse event information |
Implements Avogadro::Tool.
QUndoCommand * Avogadro::PythonTool::mouseMoveEvent | ( | GLWidget * | widget, |
QMouseEvent * | event | ||
) | [virtual] |
Response to mouse movement
widget | the GLWidget where the event occurred |
event | the mouse event information |
Implements Avogadro::Tool.
QUndoCommand * Avogadro::PythonTool::mousePressEvent | ( | GLWidget * | widget, |
QMouseEvent * | event | ||
) | [virtual] |
Response to mouse press
widget | the GLWidget where the even occurred |
event | the mouse event information |
Implements Avogadro::Tool.
QUndoCommand * Avogadro::PythonTool::mouseReleaseEvent | ( | GLWidget * | widget, |
QMouseEvent * | event | ||
) | [virtual] |
Response to mouse release
widget | the GLWidget where the even occurred |
event | the mouse event information |
Implements Avogadro::Tool.
QString Avogadro::PythonTool::name | ( | ) | const [virtual] |
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.
widget | the 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.
QString Avogadro::PythonTool::settingsTitle | ( | ) | const [virtual] |
Implements Avogadro::Tool.
References QObject::tr().
QWidget * Avogadro::PythonTool::settingsWidget | ( | ) | [virtual] |
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
widget | the GLWidget where the event occurred |
event | the 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.