summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/psewidget.h
blob: 3ea58e3e2f4680cb9a45c958b37dbaf208782ae2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81

/***************************************************************************
 *                                                                         *
 * This program is free software; you can redistribute it and/or modify    *
 * it under the terms of the GNU General Public License as published by    *
 * the Free Software Foundation; either version 2 of the License, or       *
 * ( at your option ) any later version.                                   *
 *                                                                         *
 **************************************************************************/
#ifndef _PSEWIDGET_H
#define _PSEWIDGET_H

#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 PSEWidget : public QWidget
{
	Q_OBJECT
	
    public:
		PSEWidget();
        QGridLayout *bottom_grid;

    private:
        QGridLayout *maingrid;
        
        void position( int, int&, int& );

};

#endif