From: Carsten Niehaus Date: Fri, 22 Jul 2005 13:12:52 +0000 (+0000) Subject: * add one more tag the the xml-file X-Git-Tag: v3.80.2~300^2~32 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=53b78145b7216124ad07e985b375165cc82a4551;p=libqmvoc.git * add one more tag the the xml-file * add the xml-reading for that tag * add some more api-doc svn path=/trunk/KDE/kdeedu/kalzium/src/element.h; revision=437587 --- diff --git a/kalzium/src/element.h b/kalzium/src/element.h index c40578c..f475c3a 100644 --- a/kalzium/src/element.h +++ b/kalzium/src/element.h @@ -98,6 +98,7 @@ class Element{ void setRadius( RADIUSTYPE type, double value, const QString& name = 0 ); void setDate( int date ) { m_date = date; } + void setPeriod( int period ){ m_period = period; } void setBiologicalMeaning( int value ) { m_biological = value; } void setNumber( int num ){ m_number = num; } @@ -415,7 +416,8 @@ class Element{ int m_number, m_date, - m_biological; + m_biological, + m_period; QString m_symbol, m_name, @@ -437,7 +439,13 @@ class Element{ doubleList m_ionenergies; public: - virtual void drawGradient( QPainter* p, const QString& value, const QColor& ); + /** + * draw the rectangle with the information + * @param p painter to do the drawing on + * @param value the value to display as text + * @param c the color used to paint the element + */ + virtual void drawGradient( QPainter* p, const QString& value, const QColor& c); /** * draw the rectangle with the information