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

kalzium

KalziumNumerationType Class Reference

#include <kalziumnumerationtype.h>

Inheritance diagram for KalziumNumerationType:

Inheritance graph
[legend]

List of all members.


Detailed Description

Base class for a numeration type.

It's quite simple, as a numeration doesn't have many data to represent.

Author:
Pino Toscano

Definition at line 74 of file kalziumnumerationtype.h.


Public Member Functions

virtual ~KalziumNumerationType ()
virtual QByteArray name () const =0
virtual QString description () const =0
virtual QString item (const int num) const
virtual QStringList items () const

Static Public Member Functions

static KalziumNumerationType * instance ()

Protected Member Functions

 KalziumNumerationType ()

Protected Attributes

QStringList m_items

Constructor & Destructor Documentation

KalziumNumerationType::~KalziumNumerationType (  )  [virtual]

Definition at line 81 of file kalziumnumerationtype.cpp.

KalziumNumerationType::KalziumNumerationType (  )  [protected]

Definition at line 77 of file kalziumnumerationtype.cpp.


Member Function Documentation

KalziumNumerationType * KalziumNumerationType::instance (  )  [static]

Get its instance.

Reimplemented in KalziumNoneNumerationType, KalziumIUPACNumerationType, KalziumCASNumerationType, and KalziumOldIUPACNumerationType.

Definition at line 72 of file kalziumnumerationtype.cpp.

virtual QByteArray KalziumNumerationType::name (  )  const [pure virtual]

Returns the ID of this numeration type.

Mainly used when saving/loading.

Implemented in KalziumNoneNumerationType, KalziumIUPACNumerationType, KalziumCASNumerationType, and KalziumOldIUPACNumerationType.

virtual QString KalziumNumerationType::description (  )  const [pure virtual]

Returns the description of this numeration type.

Used in all the visible places.

Implemented in KalziumNoneNumerationType, KalziumIUPACNumerationType, KalziumCASNumerationType, and KalziumOldIUPACNumerationType.

QString KalziumNumerationType::item ( const int  num  )  const [virtual]

Returns the num 'th item of this numeration type.

Reimplemented in KalziumNoneNumerationType.

Definition at line 85 of file kalziumnumerationtype.cpp.

QStringList KalziumNumerationType::items (  )  const [virtual]

Returns all the items of this numeration type.

Reimplemented in KalziumNoneNumerationType.

Definition at line 93 of file kalziumnumerationtype.cpp.


Member Data Documentation

QStringList KalziumNumerationType::m_items [protected]

Definition at line 107 of file kalziumnumerationtype.h.


The documentation for this class was generated from the following files:
  • kalziumnumerationtype.h
  • kalziumnumerationtype.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
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
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