]> Git trees. - libqmvoc.git/commitdiff
* update ChangeLog
authorCarsten Niehaus <cniehaus@gmx.de>
Sun, 17 Jul 2005 10:54:41 +0000 (10:54 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Sun, 17 Jul 2005 10:54:41 +0000 (10:54 +0000)
* apply rareearth-patch from Eloy Cuadra
* add one small API-doc

svn path=/trunk/KDE/kdeedu/kalzium/src/element.cpp; revision=435541

kalzium/src/element.cpp
kalzium/src/element.h

index 3a6f030603fc22be9179f501487336d2a241b501..5f6bb6f5ea1b627e519aec4b93b622a0a3bb02f8 100644 (file)
@@ -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
index 59ba522b052c4f8f6f213538aa8a732498340224..c843faa4be231e498dd0ddae4725b36f064e92af 100644 (file)
@@ -36,6 +36,12 @@ typedef QValueList<Element*> EList;
 typedef QValueList<coordinate> CList;
 typedef QValueList<double> 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;
                }