]> Git trees. - libqmvoc.git/commitdiff
* add one more tag the the xml-file
authorCarsten Niehaus <cniehaus@gmx.de>
Fri, 22 Jul 2005 13:12:52 +0000 (13:12 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Fri, 22 Jul 2005 13:12:52 +0000 (13:12 +0000)
* add the xml-reading for that tag
* add some more api-doc

svn path=/trunk/KDE/kdeedu/kalzium/src/element.h; revision=437587

kalzium/src/element.h

index c40578c2c43a39b0ecd5b893a9695b7ece7ef6a3..f475c3a4b5554145429eae3c86201cf6b43f8654 100644 (file)
@@ -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