From: Carsten Niehaus Date: Sun, 24 Jul 2005 15:42:45 +0000 (+0000) Subject: * rename one method X-Git-Tag: v3.80.2~300^2~25 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=da9746eb5d503c72ab1d72154653dd69a5ff01a6;p=libqmvoc.git * rename one method * adding some api-docs again * adding the accessors for the percentage-values of the decay svn path=/trunk/KDE/kdeedu/kalzium/src/isotope.h; revision=438195 --- diff --git a/kalzium/src/isotope.cpp b/kalzium/src/isotope.cpp index 3f2881f..802fdf3 100644 --- a/kalzium/src/isotope.cpp +++ b/kalzium/src/isotope.cpp @@ -43,7 +43,7 @@ Isotope::Isotope( int neutrons, double percentage, double weight, double halflif m_betaplusdecay = betapluspercentage; } -QString Isotope::halflifeToHtml() +QString Isotope::halflifeAsString() { QString halflife; diff --git a/kalzium/src/isotope.h b/kalzium/src/isotope.h index 7bba33d..5969669 100644 --- a/kalzium/src/isotope.h +++ b/kalzium/src/isotope.h @@ -103,7 +103,33 @@ class Isotope return m_magmoment; } - QString halflifeToHtml(); + /** + * @return the halflife as a QString. The format will be + * appended, for example "seconds" or "years" depending + * on the timeframe + */ + QString halflifeAsString(); + + /** + * @return the percentage of the betaminus decay + */ + double betaminuspercentage() const{ + return m_betaminuspercentage; + } + + /** + * @return the percentage of the betaplus decay + */ + double betapluspercentage() const{ + return m_betapluspercentage; + } + + /** + * @return the percentage of the alpha decay + */ + double alphapercentage() const{ + return m_alphapercentage; + } private: /**