author | cniehaus <cniehaus> | 2002-11-22 18:21:07 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-11-22 18:21:07 (UTC) |
commit | 47fe0e6d2e50171cd068e68b724a9d159ab9922e (patch) (unidiff) | |
tree | 187759035b9af3f57ed67c7203c2b6fd30acae53 /noncore/apps | |
parent | 85af9693eaa9d7ed1651883ba078d1622bd88639 (diff) | |
download | opie-47fe0e6d2e50171cd068e68b724a9d159ab9922e.zip opie-47fe0e6d2e50171cd068e68b724a9d159ab9922e.tar.gz opie-47fe0e6d2e50171cd068e68b724a9d159ab9922e.tar.bz2 |
mmh, how do I now use these information?
Well, I fixed 3 content-bugs :))
-rw-r--r-- | noncore/apps/oxygen/dataTable.cpp | 6 | ||||
-rw-r--r-- | noncore/apps/oxygen/oxygen.cpp | 118 | ||||
-rw-r--r-- | noncore/apps/oxygen/oxygen.h | 6 |
3 files changed, 127 insertions, 3 deletions
diff --git a/noncore/apps/oxygen/dataTable.cpp b/noncore/apps/oxygen/dataTable.cpp index 16aa462..f3984be 100644 --- a/noncore/apps/oxygen/dataTable.cpp +++ b/noncore/apps/oxygen/dataTable.cpp | |||
@@ -64,8 +64,8 @@ void OxydataWidget::setElement( int el ) | |||
64 | DataTable->setText( 1,1,configobj.readEntry( "Block" ) ); | 64 | DataTable->setText( 1,1,configobj.readEntry( "Block" ) ); |
65 | DataTable->setText( 2,1,configobj.readEntry( "Group" ) ); | 65 | DataTable->setText( 2,1,configobj.readEntry( "Group" ) ); |
66 | DataTable->setText( 3,1,tr( "%1 J").arg( configobj.readEntry( "EN" ) ) ); | 66 | DataTable->setText( 3,1,configobj.readEntry( "EN" ) ); |
67 | DataTable->setText( 4,1,tr( "%1 nm" ).arg( configobj.readEntry( "AR" ) ) ) ; | 67 | DataTable->setText( 4,1,tr( "%1 pm" ).arg( configobj.readEntry( "AR" ) ) ) ; |
68 | DataTable->setText( 5,1,tr( "%1 J" ).arg( configobj.readEntry( "IE" ) ) ); | 68 | DataTable->setText( 5,1,tr( "%1 J" ).arg( configobj.readEntry( "IE" ) ) ); |
69 | DataTable->setText( 6,1,configobj.readEntry( "Density" ) ); | 69 | DataTable->setText( 6,1,tr( "%1 g/cm^3" ).arg( configobj.readEntry( "Density" ) ) ); |
70 | DataTable->setText( 7,1,tr( "%1 K" ).arg( configobj.readEntry( "BP" ) ) ); | 70 | DataTable->setText( 7,1,tr( "%1 K" ).arg( configobj.readEntry( "BP" ) ) ); |
71 | DataTable->setText( 8,1,tr( "%1 K" ).arg( configobj.readEntry( "MP" ) ) ); | 71 | DataTable->setText( 8,1,tr( "%1 K" ).arg( configobj.readEntry( "MP" ) ) ); |
diff --git a/noncore/apps/oxygen/oxygen.cpp b/noncore/apps/oxygen/oxygen.cpp index a16bc77..b1b5db5 100644 --- a/noncore/apps/oxygen/oxygen.cpp +++ b/noncore/apps/oxygen/oxygen.cpp | |||
@@ -19,4 +19,6 @@ | |||
19 | #include <qapplication.h> | 19 | #include <qapplication.h> |
20 | #include <qtabwidget.h> | 20 | #include <qtabwidget.h> |
21 | #include <qvaluelist.h> | ||
22 | |||
21 | #include "calcdlg.h" | 23 | #include "calcdlg.h" |
22 | #include "calcdlgui.h" | 24 | #include "calcdlgui.h" |
@@ -24,4 +26,5 @@ | |||
24 | #include "psewidget.h" | 26 | #include "psewidget.h" |
25 | 27 | ||
28 | |||
26 | Oxygen::Oxygen() : QMainWindow() | 29 | Oxygen::Oxygen() : QMainWindow() |
27 | { | 30 | { |
@@ -37,3 +40,118 @@ Oxygen::Oxygen() : QMainWindow() | |||
37 | tabw->addTab( CalcDlgUI, tr( "Calculations" ) ); | 40 | tabw->addTab( CalcDlgUI, tr( "Calculations" ) ); |
38 | setCentralWidget( tabw ); | 41 | setCentralWidget( tabw ); |
42 | |||
43 | names = newQStringList(); | ||
44 | } | ||
45 | |||
46 | void Oxygen::loadNames() | ||
47 | { | ||
48 | names->append( tr("Hydrogen") ); | ||
49 | names->append( tr("Helium") ); | ||
50 | names->append( tr("Lithium") ); | ||
51 | names->append( tr("Beryllium") ); | ||
52 | names->append( tr("Boron") ); | ||
53 | names->append( tr("Carbon") ); | ||
54 | names->append( tr("Nitrogen") ); | ||
55 | names->append( tr("Oxygen") ); | ||
56 | names->append( tr("Fluorine") ); | ||
57 | names->append( tr("Neon") ); | ||
58 | names->append( tr("Sodium") ); | ||
59 | names->append( tr("Magnesium") ); | ||
60 | names->append( tr("Aluminum") ); | ||
61 | names->append( tr("Silicon") ); | ||
62 | names->append( tr("Phosphorus") ); | ||
63 | names->append( tr("Sulfur") ); | ||
64 | names->append( tr("Chlorine") ); | ||
65 | names->append( tr("Argon") ); | ||
66 | names->append( tr("Potassium") ); | ||
67 | names->append( tr("Calcium") ); | ||
68 | names->append( tr("Scandium") ); | ||
69 | names->append( tr("Titanium") ); | ||
70 | names->append( tr("Vanadium") ); | ||
71 | names->append( tr("Chromium") ); | ||
72 | names->append( tr("Manganese") ); | ||
73 | names->append( tr("Iron") ); | ||
74 | names->append( tr("Cobalt") ); | ||
75 | names->append( tr("Nickel") ); | ||
76 | names->append( tr("Copper") ); | ||
77 | names->append( tr("Zinc") ); | ||
78 | names->append( tr("Gallium") ); | ||
79 | names->append( tr("Germanium") ); | ||
80 | names->append( tr("Arsenic") ); | ||
81 | names->append( tr("Selenium") ); | ||
82 | names->append( tr("Bromine") ); | ||
83 | names->append( tr("Krypton") ); | ||
84 | names->append( tr("Rubidium") ); | ||
85 | names->append( tr("Strontium") ); | ||
86 | names->append( tr("Yttrium") ); | ||
87 | names->append( tr("Zirconium") ); | ||
88 | names->append( tr("Niobium") ); | ||
89 | names->append( tr("Molybdenum") ); | ||
90 | names->append( tr("Technetium") ); | ||
91 | names->append( tr("Ruthenium") ); | ||
92 | names->append( tr("Rhodium") ); | ||
93 | names->append( tr("Palladium") ); | ||
94 | names->append( tr("Silver") ); | ||
95 | names->append( tr("Cadmium") ); | ||
96 | names->append( tr("Indium") ); | ||
97 | names->append( tr("Tin") ); | ||
98 | names->append( tr("Antimony") ); | ||
99 | names->append( tr("Tellurium") ); | ||
100 | names->append( tr("Iodine") ); | ||
101 | names->append( tr("Xenon") ); | ||
102 | names->append( tr("Cesium") ); | ||
103 | names->append( tr("Barium") ); | ||
104 | names->append( tr("Lanthanum") ); | ||
105 | names->append( tr("Cerium") ); | ||
106 | names->append( tr("Praseodymium") ); | ||
107 | names->append( tr("Neodymium") ); | ||
108 | names->append( tr("Promethium") ); | ||
109 | names->append( tr("Samarium") ); | ||
110 | names->append( tr("Europium") ); | ||
111 | names->append( tr("Gadolinium") ); | ||
112 | names->append( tr("Terbium") ); | ||
113 | names->append( tr("Dysprosium") ); | ||
114 | names->append( tr("Holmium") ); | ||
115 | names->append( tr("Erbium") ); | ||
116 | names->append( tr("Thulium") ); | ||
117 | names->append( tr("Ytterbium") ); | ||
118 | names->append( tr("Lutetium") ); | ||
119 | names->append( tr("Hafnium") ); | ||
120 | names->append( tr("Tantalum") ); | ||
121 | names->append( tr("Tungsten") ); | ||
122 | names->append( tr("Rhenium") ); | ||
123 | names->append( tr("Osmium") ); | ||
124 | names->append( tr("Iridium") ); | ||
125 | names->append( tr("Platinum") ); | ||
126 | names->append( tr("Gold") ); | ||
127 | names->append( tr("Mercury") ); | ||
128 | names->append( tr("Thallium") ); | ||
129 | names->append( tr("Lead") ); | ||
130 | names->append( tr("Bismuth") ); | ||
131 | names->append( tr("Polonium") ); | ||
132 | names->append( tr("Astatine") ); | ||
133 | names->append( tr("Radon") ); | ||
134 | names->append( tr("Francium") ); | ||
135 | names->append( tr("Radium") ); | ||
136 | names->append( tr("Actinium") ); | ||
137 | names->append( tr("Thorium") ); | ||
138 | names->append( tr("Protactinium") ); | ||
139 | names->append( tr("Uranium") ); | ||
140 | names->append( tr("Neptunium") ); | ||
141 | names->append( tr("Plutonium") ); | ||
142 | names->append( tr("Americium") ); | ||
143 | names->append( tr("Curium") ); | ||
144 | names->append( tr("Berkelium") ); | ||
145 | names->append( tr("Californium") ); | ||
146 | names->append( tr("Einsteinium") ); | ||
147 | names->append( tr("Fermium") ); | ||
148 | names->append( tr("Mendelevium") ); | ||
149 | names->append( tr("Nobelium") ); | ||
150 | names->append( tr("Lawrencium") ); | ||
151 | names->append( tr("Rutherfordium") ); | ||
152 | names->append( tr("Dubnium") ); | ||
153 | names->append( tr("Seaborgium") ); | ||
154 | names->append( tr("Bohrium") ); | ||
155 | names->append( tr("Hassium") ); | ||
156 | names->append( tr("Meitnerium") ); | ||
39 | } | 157 | } |
diff --git a/noncore/apps/oxygen/oxygen.h b/noncore/apps/oxygen/oxygen.h index 782cc3e..0b7655a 100644 --- a/noncore/apps/oxygen/oxygen.h +++ b/noncore/apps/oxygen/oxygen.h | |||
@@ -10,4 +10,6 @@ | |||
10 | #include <qmainwindow.h> | 10 | #include <qmainwindow.h> |
11 | 11 | ||
12 | class QStringList; | ||
13 | |||
12 | class Oxygen : public QMainWindow | 14 | class Oxygen : public QMainWindow |
13 | { | 15 | { |
@@ -16,3 +18,7 @@ class Oxygen : public QMainWindow | |||
16 | public: | 18 | public: |
17 | Oxygen(); | 19 | Oxygen(); |
20 | QStringList *names; | ||
21 | |||
22 | private: | ||
23 | void loadNames(); | ||
18 | }; | 24 | }; |