summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/psewidget.h
authorcniehaus <cniehaus>2002-09-19 20:47:36 (UTC)
committer cniehaus <cniehaus>2002-09-19 20:47:36 (UTC)
commit65ba4e3610c94ba1de71a41dd6bf69662555e206 (patch) (side-by-side diff)
tree696c3d7317a3c5a13f14160d9281fe4e889cf5bc /noncore/apps/oxygen/psewidget.h
parentf4162d2283ebf0327645e0ac66b539cf87565d0b (diff)
downloadopie-65ba4e3610c94ba1de71a41dd6bf69662555e206.zip
opie-65ba4e3610c94ba1de71a41dd6bf69662555e206.tar.gz
opie-65ba4e3610c94ba1de71a41dd6bf69662555e206.tar.bz2
* codecleanup
* adding some const * if you click on a "element" you will now really get the information * removed obsolete class
Diffstat (limited to 'noncore/apps/oxygen/psewidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/oxygen/psewidget.h53
1 files changed, 3 insertions, 50 deletions
diff --git a/noncore/apps/oxygen/psewidget.h b/noncore/apps/oxygen/psewidget.h
index 2a1e85c..a7a8603 100644
--- a/noncore/apps/oxygen/psewidget.h
+++ b/noncore/apps/oxygen/psewidget.h
@@ -13,55 +13,7 @@
#include <qwidget.h>
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 QGridLayout;
+class OxydataWidget;
class PSEWidget : public QWidget
{
@@ -70,6 +22,7 @@ class PSEWidget : public QWidget
public:
PSEWidget();
QGridLayout *bottom_grid;
+ OxydataWidget *oxyDW;
private:
QGridLayout *maingrid;
@@ -77,7 +30,7 @@ class PSEWidget : public QWidget
void position( int, int&, int& );
public slots:
- void slotShowElement();
+ void slotShowElement(QString);
};