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

kalzium

KalziumBlocksSchemeType Class Reference

#include <kalziumschemetype.h>

Inheritance diagram for KalziumBlocksSchemeType:

Inheritance graph
[legend]

List of all members.


Detailed Description

The scheme by element block.

Author:
Pino Toscano

Definition at line 147 of file kalziumschemetype.h.


Public Member Functions

QString description () const
QBrush elementBrush (int el, const QRect &elrect) const
QList< legendPair > legendItems () const
QByteArray name () const
QColor textColor (int el) const

Static Public Member Functions

static KalziumBlocksSchemeType * instance ()

Member Function Documentation

QString KalziumBlocksSchemeType::description (  )  const [virtual]

Returns the description of this scheme.

Used in all the visible places.

Implements KalziumSchemeType.

Definition at line 149 of file kalziumschemetype.cpp.

QBrush KalziumBlocksSchemeType::elementBrush ( int  el,
const QRect &  elrect 
) const [virtual]

Returns the brush with which the element with number el should be painted.

Parameters:
el Element number
elrect is the rect designed for the element
Returns:
A brush for painting in elrect

Implements KalziumSchemeType.

Definition at line 154 of file kalziumschemetype.cpp.

KalziumBlocksSchemeType * KalziumBlocksSchemeType::instance (  )  [static]

Get its instance.

Reimplemented from KalziumSchemeType.

Definition at line 138 of file kalziumschemetype.cpp.

QList< legendPair > KalziumBlocksSchemeType::legendItems (  )  const [virtual]

Returns a list with the legend of the current scheme.

Implements KalziumSchemeType.

Definition at line 179 of file kalziumschemetype.cpp.

QByteArray KalziumBlocksSchemeType::name (  )  const [virtual]

Returns the ID of this scheme.

Mainly used when saving/loading.

Implements KalziumSchemeType.

Definition at line 144 of file kalziumschemetype.cpp.

QColor KalziumBlocksSchemeType::textColor ( int  el  )  const [virtual]

Returns the color which will be used to draw the texts for the element with atomic number el.

Implements KalziumSchemeType.

Definition at line 173 of file kalziumschemetype.cpp.


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