kalzium
Avogadro::ElementDetail Class Reference
#include <periodictableview.h>

Detailed Description
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:
KDE 4.2 API Reference