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) (unidiff)
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) (show 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 @@
13#include <qwidget.h> 13#include <qwidget.h>
14 14
15class QGridLayout; 15class QGridLayout;
16 16class OxydataWidget;
17class Element
18{
19 public:
20 Element(const QString &elnum);
21 ~Element();
22
23 void setName( QString c){ name = c;};
24 void setWeight( QString c){ weight = c;};
25 void setDensityName( QString c){density = c;};
26 void setGroup( QString c){group = c;};
27 void setIE( QString c){ie = c;};
28 void setNum( QString c){num = c;};
29 void setAZ( QString c){az = c;};
30 void setDate( QString c){date = c;};
31 void setEN( QString c){en = c;};
32 void setMP( QString c){mp = c;};
33 void setBP( QString c){bp = c;};
34 void setAR( QString c){ar = c;};
35
36 QString elname() const{ return name; };
37 QString elweight() const{ return weight; };
38 QString eldensity() const{ return density; };
39 QString elgroup() const{ return group; };
40 QString elie() const{ return ie; };
41 QString elnum() const{ return num; };
42 QString elaz() const{ return az; };
43 QString eldate() const{ return date; };
44 QString elen() const{ return en; };
45 QString elmp() const{ return mp; };
46 QString elbp() const{ return bp; };
47 QString elar() const{ return ar; };
48
49 private:
50 QString name, // The name of the element
51 weight, // weight
52 density, // density
53 group, // group
54 ie, // ionisationenergie
55 num, // number ( e.g. Carbon is 6 )
56 az, // state of aggregation
57 date, // date of discovery
58 en, // electronegativity
59 mp, // meltingpoint
60 bp, // boilingpoint
61 ar; // atomic radius
62};
63
64class QGridLayout;
65 17
66class PSEWidget : public QWidget 18class PSEWidget : public QWidget
67{ 19{
@@ -70,6 +22,7 @@ class PSEWidget : public QWidget
70 public: 22 public:
71 PSEWidget(); 23 PSEWidget();
72 QGridLayout *bottom_grid; 24 QGridLayout *bottom_grid;
25 OxydataWidget *oxyDW;
73 26
74 private: 27 private:
75 QGridLayout *maingrid; 28 QGridLayout *maingrid;
@@ -77,7 +30,7 @@ class PSEWidget : public QWidget
77 void position( int, int&, int& ); 30 void position( int, int&, int& );
78 31
79 public slots: 32 public slots:
80 void slotShowElement(); 33 void slotShowElement(QString);
81 34
82}; 35};
83 36