• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kalzium

Avogadro::ToolGroup

Avogadro::ToolGroup Class Reference

#include <toolgroup.h>

Inheritance diagram for Avogadro::ToolGroup:

Inheritance graph
[legend]

List of all members.


Detailed Description

Manager for GLWidget Tools.

Author:
Donald Ephraim Curtis
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  ) 

Constructor.

Definition at line 56 of file toolgroup.cpp.

Avogadro::ToolGroup::~ToolGroup (  ) 

Deconstructor.

Definition at line 61 of file toolgroup.cpp.


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

Returns:
the active tool

Definition at line 123 of file toolgroup.cpp.

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]

Read the settings of the GLWidget and restore them.

Definition at line 187 of file toolgroup.cpp.

void Avogadro::ToolGroup::setActiveTool ( Tool *  tool  )  [slot]

Parameters:
tool pointer to the tool to set active

Definition at line 146 of file toolgroup.cpp.

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]

Parameters:
i index of the tool to set active

Definition at line 128 of file toolgroup.cpp.

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

const QList< Tool * > & Avogadro::ToolGroup::tools (  )  const

Returns:
constant list of the tools

Definition at line 159 of file toolgroup.cpp.

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:
  • src/toolgroup.h
  • toolgroup.cpp

kalzium

Skip menu "kalzium"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal