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

kalzium

Avogadro::DrawTool

Avogadro::DrawTool Class Reference

#include <drawtool.h>

Inheritance diagram for Avogadro::DrawTool:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 51 of file drawtool.h.


Public Slots

void bondOrderChanged (int index)
void customElementChanged (int index)
void elementChanged (int index)
void setAddHydrogens (int state)
void setBondOrder (int i)
void setInsertFragmentMode (bool mode)

Public Member Functions

int addHydrogens () const
int bondOrder () const
 DrawTool (QObject *parent=0)
int element () const
virtual void readSettings (QSettings &settings)
void setElement (int i)
virtual QWidget * settingsWidget ()
virtual int usefulness () const
virtual void writeSettings (QSettings &settings) const
virtual ~DrawTool ()
Description methods
virtual QString description () const
virtual QString name () const
Tool Methods
virtual QUndoCommand * mouseMove (GLWidget *widget, const QMouseEvent *event)
virtual QUndoCommand * mousePress (GLWidget *widget, const QMouseEvent *event)
virtual QUndoCommand * mouseRelease (GLWidget *widget, const QMouseEvent *event)
virtual QUndoCommand * wheel (GLWidget *widget, const QWheelEvent *event)

Constructor & Destructor Documentation

Avogadro::DrawTool::DrawTool ( QObject *  parent = 0  ) 

Constructor.

Definition at line 51 of file drawtool.cpp.

Avogadro::DrawTool::~DrawTool (  )  [virtual]

Deconstructor.

Definition at line 80 of file drawtool.cpp.


Member Function Documentation

int Avogadro::DrawTool::addHydrogens (  )  const

Definition at line 621 of file drawtool.cpp.

int Avogadro::DrawTool::bondOrder (  )  const

Definition at line 611 of file drawtool.cpp.

void Avogadro::DrawTool::bondOrderChanged ( int  index  )  [slot]

Definition at line 601 of file drawtool.cpp.

void Avogadro::DrawTool::customElementChanged ( int  index  )  [slot]

Definition at line 557 of file drawtool.cpp.

virtual QString Avogadro::DrawTool::description (  )  const [inline, virtual]

Tool Description (ie. DrawTools atoms and bonds).

Reimplemented from Avogadro::Tool.

Definition at line 66 of file drawtool.h.

int Avogadro::DrawTool::element (  )  const

Definition at line 596 of file drawtool.cpp.

void Avogadro::DrawTool::elementChanged ( int  index  )  [slot]

Definition at line 541 of file drawtool.cpp.

QUndoCommand * Avogadro::DrawTool::mouseMove ( GLWidget *  widget,
const QMouseEvent *  event 
) [virtual]

Handle a mouse move (perhaps drawing a bond)

Implements Avogadro::Tool.

Definition at line 181 of file drawtool.cpp.

QUndoCommand * Avogadro::DrawTool::mousePress ( GLWidget *  widget,
const QMouseEvent *  event 
) [virtual]

Callback methods for ui.actions on the canvas.

Handle a mouse press (i.e., beginning of drawing)

List of hits from a selection/pick

Implements Avogadro::Tool.

Definition at line 93 of file drawtool.cpp.

QUndoCommand * Avogadro::DrawTool::mouseRelease ( GLWidget *  widget,
const QMouseEvent *  event 
) [virtual]

Handle a mouse release (i.e., the end of drawing)

Implements Avogadro::Tool.

Definition at line 332 of file drawtool.cpp.

virtual QString Avogadro::DrawTool::name (  )  const [inline, virtual]

Tool Name (ie DrawTool).

Implements Avogadro::Tool.

Definition at line 64 of file drawtool.h.

void Avogadro::DrawTool::readSettings ( QSettings &  settings  )  [virtual]

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

Reimplemented from Avogadro::Tool.

Definition at line 756 of file drawtool.cpp.

void Avogadro::DrawTool::setAddHydrogens ( int  state  )  [slot]

Definition at line 616 of file drawtool.cpp.

void Avogadro::DrawTool::setBondOrder ( int  i  )  [slot]

Definition at line 606 of file drawtool.cpp.

void Avogadro::DrawTool::setElement ( int  i  ) 

Definition at line 591 of file drawtool.cpp.

void Avogadro::DrawTool::setInsertFragmentMode ( bool  mode  )  [slot]

Definition at line 626 of file drawtool.cpp.

QWidget * Avogadro::DrawTool::settingsWidget (  )  [virtual]

Returns:
the settings widget for the tool.

Reimplemented from Avogadro::Tool.

Definition at line 631 of file drawtool.cpp.

int Avogadro::DrawTool::usefulness (  )  const [virtual]

The priority of the tool in the toolbar.

Reimplemented from Avogadro::Tool.

Definition at line 87 of file drawtool.cpp.

QUndoCommand * Avogadro::DrawTool::wheel ( GLWidget *  widget,
const QWheelEvent *  event 
) [virtual]

Handle a scroll wheel (i.e., zooming in and out of the canvas)

Implements Avogadro::Tool.

Definition at line 473 of file drawtool.cpp.

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

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

Reimplemented from Avogadro::Tool.

Definition at line 744 of file drawtool.cpp.


The documentation for this class was generated from the following files:
  • drawtool.h
  • drawtool.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