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

kalzium

Avogadro::ElementDetail

Avogadro::ElementDetail Class Reference

#include <periodictableview.h>

Inheritance diagram for Avogadro::ElementDetail:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Marcus D.

Hanwell An item box displaying more detailed information on the element.

This class implements a QGraphicsItem for displaying a larger box that gives greater detail about the selected element such as its full name, proton number and average atomic mass.

Definition at line 106 of file libavogadro-kalzium/src/periodictableview.h.


Public Slots

void elementChanged (int element)

Public Member Functions

QRectF boundingRect () const
 ElementDetail (int elementNumber=0)
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
QPainterPath shape () const

Constructor & Destructor Documentation

Avogadro::ElementDetail::ElementDetail ( int  elementNumber = 0  ) 

Constructor.

Should be called with the element number for this item.

Definition at line 108 of file libavogadro-kalzium/src/periodictableview.cpp.


Member Function Documentation

QRectF Avogadro::ElementDetail::boundingRect (  )  const

Returns:
the bounding rectangle of the element item.

Definition at line 114 of file libavogadro-kalzium/src/periodictableview.cpp.

void Avogadro::ElementDetail::elementChanged ( int  element  )  [slot]

This slot can be used to indicate the active element has changed which will cause this item to redraw with the details of the new element.

Definition at line 195 of file libavogadro-kalzium/src/periodictableview.cpp.

void Avogadro::ElementDetail::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)

This is where most of the action takes place.

The element box is drawn along with its symbol, proton number, mass and full name.

Reimplemented from QGraphicsItem.

Definition at line 126 of file libavogadro-kalzium/src/periodictableview.cpp.

QPainterPath Avogadro::ElementDetail::shape (  )  const

Returns:
the painter path which is also a rectangle in this case.

Definition at line 119 of file libavogadro-kalzium/src/periodictableview.cpp.


The documentation for this class was generated from the following files:
  • libavogadro-kalzium/src/periodictableview.h
  • libavogadro-kalzium/src/periodictableview.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