kalzium
KalziumClassicTableType Class Reference
#include <kalziumtabletype.h>

Detailed Description
The class representing the "classic" periodic table, and its metrics.
Definition at line 169 of file kalziumtabletype.h.
Public Member Functions | |
| QByteArray | name () const |
| QString | description () const |
| QSize | size () const |
| int | elementAtCoords (const QPoint &coords) const |
| QRect | elementRect (const int numelem) const |
Static Public Member Functions | |
| static KalziumClassicTableType * | instance () |
Member Function Documentation
| KalziumClassicTableType * KalziumClassicTableType::instance | ( | ) | [static] |
Get its instance.
Reimplemented from KalziumTableType.
Definition at line 239 of file kalziumtabletype.cpp.
| QByteArray KalziumClassicTableType::name | ( | ) | const [virtual] |
Returns the ID of this table type.
Mainly used when saving/loading.
Implements KalziumTableType.
Definition at line 253 of file kalziumtabletype.cpp.
| QString KalziumClassicTableType::description | ( | ) | const [virtual] |
Returns the description of this table type.
Used in all the visible places.
Implements KalziumTableType.
Definition at line 258 of file kalziumtabletype.cpp.
| QSize KalziumClassicTableType::size | ( | ) | const [virtual] |
Returns the size of this table type.
Implements KalziumTableType.
Definition at line 263 of file kalziumtabletype.cpp.
| int KalziumClassicTableType::elementAtCoords | ( | const QPoint & | coords | ) | const [virtual] |
- Returns:
- the number of the element at the coordinates
coords.
If there is no element it will return 0. For example, for Carbon "6" will be returned
Implements KalziumTableType.
Definition at line 268 of file kalziumtabletype.cpp.
| QRect KalziumClassicTableType::elementRect | ( | const int | numelem | ) | const [virtual] |
Returns the rect for the element with atomic number numelem.
Implements KalziumTableType.
Definition at line 287 of file kalziumtabletype.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference