else
v = QString::number( val );
}
- else if ( type == RADIUS ) // its a length
+ else if ( type == RADIUS || IONICRADIUS ) // its a length
{
- val = radius();
+ if ( type == RADIUS )
+ val = radius();
+ else if ( type == IONICRADIUS )
+ val = ionicValue();
if ( val == -1 )
v = i18n( "Value unknown" );
double bp = domElement.namedItem( "boilingpoint" ).toElement().text().toDouble();
double density = domElement.namedItem( "density" ).toElement().text().toDouble();
double atomic_radius = domElement.namedItem( "radius" ).namedItem( "atomic" ).toElement().text().toDouble();
+ double ionic_radius = domElement.namedItem( "radius" ).namedItem( "ionic" ).toElement().text().toDouble();
+ QString ionic_charge = domElement.namedItem( "radius" ).namedItem( "ionic" ).toElement().attributeNode( "charge" ).value();
+
+ kdDebug() << "Charge: " << ionic_charge << " Value: " << ionic_radius << endl;
int bio = domElement.namedItem( "biologicalmeaning" ).toElement().text().toInt();
int az = domElement.namedItem( "aggregation" ).toElement().text().toInt();
QString scientist = domElement.namedItem( "date" ).toElement().attributeNode( "scientist" ).value();
QString crystal = domElement.namedItem( "crystalstructure" ).toElement().text();
- QString name = domElement.namedItem( "name" ).toElement().text();
+
+ QDomElement nameE = domElement.namedItem( "name" ).toElement();
+ QString name = nameE.text();
+ QString origin = nameE.attributeNode( "origin" ).value();
+
QString block = domElement.namedItem( "block" ).toElement().text();
QString group = domElement.namedItem( "group" ).toElement().text();
QString family = domElement.namedItem( "family" ).toElement().text();
e->setBiologicalMeaning(bio);
e->setAggregation(az);
e->setNumber( number );
+ e->setIonicValues( ionic_radius, ionic_charge );
e->setScientist(scientist);
e->setCrysatalstructure( crystal );
e->setName(name);
+ e->setOrigin(origin);
e->setBlock(block);
e->setGroup(group);
e->setFamily(family);
int number() const {
return m_number;
}
+
+ void setIonicValues(double v, const QString& c){
+ m_ionic_value = v;
+ m_ionic_charge = c;
+ }
+
+ QString ionicCharge() const{
+ return m_ionic_charge;
+ }
+
+ double ionicValue() const{
+ return m_ionic_value;
+ }
+
+ QString nameOrigin() const{
+ return m_origin;
+ }
void setMass( double value ) { m_mass = value; }
void setEN( double value ) { m_EN = value; }
void setScientist( const QString& value ) { m_scientist = value; }
void setCrysatalstructure( const QString& value ) { m_crystalstructure = value; }
void setName( const QString& value ) { m_name = value; }
+ void setOrigin( const QString& value ) { m_origin = value; }
void setBlock( const QString& value ) { m_block = value; }
void setGroup( const QString& value ) { m_group = value; }
void setFamily( const QString& value ) { m_family = value; }
{
NOGRADIENT = 0,
RADIUS,
+ IONICRADIUS,
MASS,
DENSITY,
BOILINGPOINT,
m_BP,
m_EN,
m_Density,
- m_AR;
+ m_AR,
+ m_ionic_value;
int m_number,
m_date,
QString m_symbol,
m_name,
+ m_origin,
m_oxstage,
m_block,
m_group,
m_orbits,
m_isotopes,
m_scientist,
- m_crystalstructure;
+ m_crystalstructure,
+ m_ionic_charge;
doubleList m_ionenergies;