From: Carsten Niehaus Date: Sun, 17 Jul 2005 10:54:41 +0000 (+0000) Subject: * update ChangeLog X-Git-Tag: v3.80.2~300^2~66 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=6750a062711a7deed36d7871c2db92bd928ff84b;p=libqmvoc.git * update ChangeLog * apply rareearth-patch from Eloy Cuadra * add one small API-doc svn path=/trunk/KDE/kdeedu/kalzium/src/element.cpp; revision=435541 --- diff --git a/kalzium/src/element.cpp b/kalzium/src/element.cpp index 3a6f030..5f6bb6f 100644 --- a/kalzium/src/element.cpp +++ b/kalzium/src/element.cpp @@ -483,14 +483,15 @@ int Element::xPos() const int Element::yPos() const { -// original -// return ( y-1 )*ELEMENTSIZE + ELEMENTSIZE; - int tmp_y = ( y-1 )*ELEMENTSIZE + ELEMENTSIZE; + // mind the small gap over rare earth! + int tmp_y = ( y-1 )*ELEMENTSIZE + ELEMENTSIZE; - if ( (m_number > 57 && m_number < 72) || (m_number > 89 && m_number < 104) ) - tmp_y += ELEMENTSIZE/3; + // 57=Lanthanum, 72=Hafnium, 89=Actinium & 104=Rutherfordium (i.e., if + // n_number is in rare earth's block) + if ( (m_number > 57 && m_number < 72) || (m_number > 89 && m_number < 104) ) + tmp_y += ELEMENTSIZE/3; - return tmp_y; + return tmp_y; } QPoint Element::pos() const diff --git a/kalzium/src/element.h b/kalzium/src/element.h index 59ba522..c843faa 100644 --- a/kalzium/src/element.h +++ b/kalzium/src/element.h @@ -36,6 +36,12 @@ typedef QValueList EList; typedef QValueList CList; typedef QValueList doubleList; +/** + * @author Carsten Niehaus + * @author Jörg Buchwald + * + * This class represents an Isotope with all its properties + */ class Isotope { public: @@ -95,9 +101,11 @@ class Isotope double decayenergy() const{ return m_decayenergy; } + QString spin() const{ return m_spin; } + double magmoment() const{ return m_magmoment; }