author | cniehaus <cniehaus> | 2002-09-19 13:54:25 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-09-19 13:54:25 (UTC) |
commit | 477a620e5745bd30222fe72d9c9b842785c285ab (patch) (side-by-side diff) | |
tree | d458aefeacb29d2d863db693349328a0a29e8bb4 /noncore/apps/oxygen/psewidget.h | |
parent | 71af43c57ea311efbd1cc9b9b18996718a48b3a1 (diff) | |
download | opie-477a620e5745bd30222fe72d9c9b842785c285ab.zip opie-477a620e5745bd30222fe72d9c9b842785c285ab.tar.gz opie-477a620e5745bd30222fe72d9c9b842785c285ab.tar.bz2 |
will continue in some hours... The new class Element should work now. Data
storage is still lacking
Diffstat (limited to 'noncore/apps/oxygen/psewidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/psewidget.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/noncore/apps/oxygen/psewidget.h b/noncore/apps/oxygen/psewidget.h index a0ab701..9f574ce 100644 --- a/noncore/apps/oxygen/psewidget.h +++ b/noncore/apps/oxygen/psewidget.h @@ -16,2 +16,49 @@ class QGridLayout; +class Element +{ + public: + Element(const QString &elnum); + ~Element(); + + void setName( QString c){ name = c;}; + void setWeight( QString c){ weight = c;}; + void setDensityName( QString c){density = c;}; + void setGroup( QString c){group = c;}; + void setIE( QString c){ie = c;}; + void setNum( QString c){num = c;}; + void setAZ( QString c){az = c;}; + void setDate( QString c){date = c;}; + void setEN( QString c){en = c;}; + void setMP( QString c){mp = c;}; + void setBP( QString c){bp = c;}; + void setAR( QString c){ar = c;}; + + QString elname() const{ return name; }; + QString elweight() const{ return weight; }; + QString eldensity() const{ return density; }; + QString elgroup() const{ return group; }; + QString elie() const{ return ie; }; + QString elnum() const{ return num; }; + QString elaz() const{ return az; }; + QString eldate() const{ return date; }; + QString elen() const{ return en; }; + QString elmp() const{ return mp; }; + QString elbp() const{ return bp; }; + QString elar() const{ return ar; }; + + private: + QString name, // The name of the element + weight, // weight + density, // density + group, // group + ie, // ionisationenergie + num, // number ( e.g. Carbon is 6 ) + az, // state of aggregation + date, // date of discovery + en, // electronegativity + mp, // meltingpoint + bp, // boilingpoint + ar; // atomic radius +}; + class PSEWidget : public QWidget |