kalzium
Avogadro::ToolGroup Class Reference
#include <toolgroup.h>
Inheritance diagram for Avogadro::ToolGroup:

Detailed Description
Manager for GLWidget Tools.This class is a collection of Tools which allow manipulation of the GLWidget area.
Definition at line 45 of file src/toolgroup.h.
Public Slots | |
| void | readSettings (QSettings &settings) |
| void | setActiveTool (Tool *tool) |
| void | setActiveTool (const QString &name) |
| void | setActiveTool (int i) |
| void | setMolecule (Molecule *molecule) |
| void | writeSettings (QSettings &settings) const |
Signals | |
| void | toolActivated (Tool *tool) |
Public Member Functions | |
| const QActionGroup * | activateActions () const |
| Tool * | activeTool () const |
| void | load () |
| Tool * | tool (int i) const |
| ToolGroup (QObject *parent=0) | |
| const QList< Tool * > & | tools () const |
| ~ToolGroup () | |
Constructor & Destructor Documentation
| Avogadro::ToolGroup::ToolGroup | ( | QObject * | parent = 0 |
) |
| Avogadro::ToolGroup::~ToolGroup | ( | ) |
Member Function Documentation
| const QActionGroup * Avogadro::ToolGroup::activateActions | ( | ) | const |
- Returns:
- constant QActionGroup of all the tool select actions
Definition at line 164 of file toolgroup.cpp.
| Tool * Avogadro::ToolGroup::activeTool | ( | ) | const |
| void Avogadro::ToolGroup::load | ( | ) |
Search and load plugins from the following paths: /usr/lib/avogadro/tools /usr/local/lib/avogadro/tools.
You can set the AVOGADRO_PATH to designate a path at runtime.
Definition at line 66 of file toolgroup.cpp.
| void Avogadro::ToolGroup::readSettings | ( | QSettings & | settings | ) | [slot] |
| void Avogadro::ToolGroup::setActiveTool | ( | Tool * | tool | ) | [slot] |
| void Avogadro::ToolGroup::setActiveTool | ( | const QString & | name | ) | [slot] |
- Parameters:
-
name the name of the tool to set active (if it's found)
Definition at line 136 of file toolgroup.cpp.
| void Avogadro::ToolGroup::setActiveTool | ( | int | i | ) | [slot] |
| void Avogadro::ToolGroup::setMolecule | ( | Molecule * | molecule | ) | [slot] |
- Parameters:
-
molecule pointer to the molecule tools in this group should use
Definition at line 169 of file toolgroup.cpp.
| Tool* Avogadro::ToolGroup::tool | ( | int | i | ) | const |
- Parameters:
-
i index of the tool to return
- Returns:
- tool at index i
| void Avogadro::ToolGroup::toolActivated | ( | Tool * | tool | ) | [signal] |
- Parameters:
-
the activated tool
| void Avogadro::ToolGroup::writeSettings | ( | QSettings & | settings | ) | const [slot] |
Write the settings of the GLWidget in order to save them to disk.
Definition at line 177 of file toolgroup.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference