svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=511442
{
return m_parentElementSymbol ? m_parentElementSymbol->value().toString() : QString();
}
+
+void Isotope::setNucleons( int number )
+{
+ m_nucleons = number;
+}
+
+int Isotope::nucleons() const
+{
+ return m_nucleons;
+}
void addData( ChemicalDataObject* o );
+ void setNucleons( int number );
+ int nucleons() const;
+
private:
/**
* the symbol of the element the isotope belongs to
*/
ChemicalDataObject* m_halflife;
+ int m_nucleons;
};
#endif // ISOTOPE_H
//X kDebug() << "setting inIsotope true!" << endl;
d->currentIsotope = new Isotope();
d->inIsotope = true;
+ for (int i = 0; i < attrs.length(); ++i)
+ {
+ if ( attrs.localName( i ) == "number" )
+ d->currentIsotope->setNucleons( attrs.value( i ).toInt() );
+ }
} else if (d->inIsotope && localName == "bo:spin") {
//X kDebug() << "bo:spin" << endl;
d->inSpin = true;