summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/oxygen/oxygen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/oxygen/oxygen.cpp b/noncore/apps/oxygen/oxygen.cpp
index 215cc19..5999cb0 100644
--- a/noncore/apps/oxygen/oxygen.cpp
+++ b/noncore/apps/oxygen/oxygen.cpp
@@ -1,157 +1,157 @@
1/*************************************************************************** 1/***************************************************************************
2 application: : Oxygen 2 application: : Oxygen
3 3
4 begin : September 2002 4 begin : September 2002
5 copyright : ( C ) 2002 by Carsten Niehaus 5 copyright : ( C ) 2002 by Carsten Niehaus
6 email : cniehaus@handhelds.org 6 email : cniehaus@handhelds.org
7 **************************************************************************/ 7 **************************************************************************/
8 8
9/*************************************************************************** 9/***************************************************************************
10 * * 10 * *
11 * This program is free software; you can redistribute it and/or modify * 11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by * 12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or * 13 * the Free Software Foundation; either version 2 of the License, or *
14 * ( at your option ) any later version. * 14 * ( at your option ) any later version. *
15 * * 15 * *
16 **************************************************************************/ 16 **************************************************************************/
17#include "oxygen.h" 17#include "oxygen.h"
18 18
19#include <qapplication.h> 19#include <qapplication.h>
20#include <qtabwidget.h> 20#include <qtabwidget.h>
21 21
22#include "calcdlg.h" 22#include "calcdlg.h"
23#include "calcdlgui.h" 23#include "calcdlgui.h"
24#include "datawidgetui.h" 24#include "datawidgetui.h"
25#include "psewidget.h" 25#include "psewidget.h"
26 26
27 27
28Oxygen::Oxygen() : QMainWindow() 28Oxygen::Oxygen() : QMainWindow()
29{ 29{
30 loadNames(); 30 loadNames();
31 calcDlgUI *CalcDlgUI = new calcDlgUI(); 31 calcDlgUI *CalcDlgUI = new calcDlgUI();
32 PSEWidget *pse = new PSEWidget(names); 32 PSEWidget *pse = new PSEWidget(names);
33 dataWidgetUI *DataWidgetUI = new dataWidgetUI(names); 33 dataWidgetUI *DataWidgetUI = new dataWidgetUI(names);
34 34
35 this->setCaption( tr( "Oxygen" ) ); 35 setCaption( tr( "Oxygen" ) );
36 36
37 QTabWidget *tabw = new QTabWidget( this , "qtab" ); 37 QTabWidget *tabw = new QTabWidget( this , "qtab" );
38 tabw->addTab( pse, tr( "PSE" )); 38 tabw->addTab( pse, tr( "PSE" ));
39 tabw->addTab( DataWidgetUI , tr( "Data" ) ); 39 tabw->addTab( DataWidgetUI , tr( "Data" ) );
40 tabw->addTab( CalcDlgUI, tr( "Calculations" ) ); 40 tabw->addTab( CalcDlgUI, tr( "Calculations" ) );
41 setCentralWidget( tabw ); 41 setCentralWidget( tabw );
42} 42}
43 43
44void Oxygen::loadNames() 44void Oxygen::loadNames()
45{ 45{
46 names.clear(); 46 names.clear();
47 names.append( tr("Hydrogen") ); 47 names.append( tr("Hydrogen") );
48 names.append( tr("Helium") ); 48 names.append( tr("Helium") );
49 names.append( tr("Lithium") ); 49 names.append( tr("Lithium") );
50 names.append( tr("Beryllium") ); 50 names.append( tr("Beryllium") );
51 names.append( tr("Boron") ); 51 names.append( tr("Boron") );
52 names.append( tr("Carbon") ); 52 names.append( tr("Carbon") );
53 names.append( tr("Nitrogen") ); 53 names.append( tr("Nitrogen") );
54 names.append( tr("Oxygen") ); 54 names.append( tr("Oxygen") );
55 names.append( tr("Fluorine") ); 55 names.append( tr("Fluorine") );
56 names.append( tr("Neon") ); 56 names.append( tr("Neon") );
57 names.append( tr("Sodium") ); 57 names.append( tr("Sodium") );
58 names.append( tr("Magnesium") ); 58 names.append( tr("Magnesium") );
59 names.append( tr("Aluminum") ); 59 names.append( tr("Aluminum") );
60 names.append( tr("Silicon") ); 60 names.append( tr("Silicon") );
61 names.append( tr("Phosphorus") ); 61 names.append( tr("Phosphorus") );
62 names.append( tr("Sulfur") ); 62 names.append( tr("Sulfur") );
63 names.append( tr("Chlorine") ); 63 names.append( tr("Chlorine") );
64 names.append( tr("Argon") ); 64 names.append( tr("Argon") );
65 names.append( tr("Potassium") ); 65 names.append( tr("Potassium") );
66 names.append( tr("Calcium") ); 66 names.append( tr("Calcium") );
67 names.append( tr("Scandium") ); 67 names.append( tr("Scandium") );
68 names.append( tr("Titanium") ); 68 names.append( tr("Titanium") );
69 names.append( tr("Vanadium") ); 69 names.append( tr("Vanadium") );
70 names.append( tr("Chromium") ); 70 names.append( tr("Chromium") );
71 names.append( tr("Manganese") ); 71 names.append( tr("Manganese") );
72 names.append( tr("Iron") ); 72 names.append( tr("Iron") );
73 names.append( tr("Cobalt") ); 73 names.append( tr("Cobalt") );
74 names.append( tr("Nickel") ); 74 names.append( tr("Nickel") );
75 names.append( tr("Copper") ); 75 names.append( tr("Copper") );
76 names.append( tr("Zinc") ); 76 names.append( tr("Zinc") );
77 names.append( tr("Gallium") ); 77 names.append( tr("Gallium") );
78 names.append( tr("Germanium") ); 78 names.append( tr("Germanium") );
79 names.append( tr("Arsenic") ); 79 names.append( tr("Arsenic") );
80 names.append( tr("Selenium") ); 80 names.append( tr("Selenium") );
81 names.append( tr("Bromine") ); 81 names.append( tr("Bromine") );
82 names.append( tr("Krypton") ); 82 names.append( tr("Krypton") );
83 names.append( tr("Rubidium") ); 83 names.append( tr("Rubidium") );
84 names.append( tr("Strontium") ); 84 names.append( tr("Strontium") );
85 names.append( tr("Yttrium") ); 85 names.append( tr("Yttrium") );
86 names.append( tr("Zirconium") ); 86 names.append( tr("Zirconium") );
87 names.append( tr("Niobium") ); 87 names.append( tr("Niobium") );
88 names.append( tr("Molybdenum") ); 88 names.append( tr("Molybdenum") );
89 names.append( tr("Technetium") ); 89 names.append( tr("Technetium") );
90 names.append( tr("Ruthenium") ); 90 names.append( tr("Ruthenium") );
91 names.append( tr("Rhodium") ); 91 names.append( tr("Rhodium") );
92 names.append( tr("Palladium") ); 92 names.append( tr("Palladium") );
93 names.append( tr("Silver") ); 93 names.append( tr("Silver") );
94 names.append( tr("Cadmium") ); 94 names.append( tr("Cadmium") );
95 names.append( tr("Indium") ); 95 names.append( tr("Indium") );
96 names.append( tr("Tin") ); 96 names.append( tr("Tin") );
97 names.append( tr("Antimony") ); 97 names.append( tr("Antimony") );
98 names.append( tr("Tellurium") ); 98 names.append( tr("Tellurium") );
99 names.append( tr("Iodine") ); 99 names.append( tr("Iodine") );
100 names.append( tr("Xenon") ); 100 names.append( tr("Xenon") );
101 names.append( tr("Cesium") ); 101 names.append( tr("Cesium") );
102 names.append( tr("Barium") ); 102 names.append( tr("Barium") );
103 names.append( tr("Lanthanum") ); 103 names.append( tr("Lanthanum") );
104 names.append( tr("Cerium") ); 104 names.append( tr("Cerium") );
105 names.append( tr("Praseodymium") ); 105 names.append( tr("Praseodymium") );
106 names.append( tr("Neodymium") ); 106 names.append( tr("Neodymium") );
107 names.append( tr("Promethium") ); 107 names.append( tr("Promethium") );
108 names.append( tr("Samarium") ); 108 names.append( tr("Samarium") );
109 names.append( tr("Europium") ); 109 names.append( tr("Europium") );
110 names.append( tr("Gadolinium") ); 110 names.append( tr("Gadolinium") );
111 names.append( tr("Terbium") ); 111 names.append( tr("Terbium") );
112 names.append( tr("Dysprosium") ); 112 names.append( tr("Dysprosium") );
113 names.append( tr("Holmium") ); 113 names.append( tr("Holmium") );
114 names.append( tr("Erbium") ); 114 names.append( tr("Erbium") );
115 names.append( tr("Thulium") ); 115 names.append( tr("Thulium") );
116 names.append( tr("Ytterbium") ); 116 names.append( tr("Ytterbium") );
117 names.append( tr("Lutetium") ); 117 names.append( tr("Lutetium") );
118 names.append( tr("Hafnium") ); 118 names.append( tr("Hafnium") );
119 names.append( tr("Tantalum") ); 119 names.append( tr("Tantalum") );
120 names.append( tr("Tungsten") ); 120 names.append( tr("Tungsten") );
121 names.append( tr("Rhenium") ); 121 names.append( tr("Rhenium") );
122 names.append( tr("Osmium") ); 122 names.append( tr("Osmium") );
123 names.append( tr("Iridium") ); 123 names.append( tr("Iridium") );
124 names.append( tr("Platinum") ); 124 names.append( tr("Platinum") );
125 names.append( tr("Gold") ); 125 names.append( tr("Gold") );
126 names.append( tr("Mercury") ); 126 names.append( tr("Mercury") );
127 names.append( tr("Thallium") ); 127 names.append( tr("Thallium") );
128 names.append( tr("Lead") ); 128 names.append( tr("Lead") );
129 names.append( tr("Bismuth") ); 129 names.append( tr("Bismuth") );
130 names.append( tr("Polonium") ); 130 names.append( tr("Polonium") );
131 names.append( tr("Astatine") ); 131 names.append( tr("Astatine") );
132 names.append( tr("Radon") ); 132 names.append( tr("Radon") );
133 names.append( tr("Francium") ); 133 names.append( tr("Francium") );
134 names.append( tr("Radium") ); 134 names.append( tr("Radium") );
135 names.append( tr("Actinium") ); 135 names.append( tr("Actinium") );
136 names.append( tr("Thorium") ); 136 names.append( tr("Thorium") );
137 names.append( tr("Protactinium") ); 137 names.append( tr("Protactinium") );
138 names.append( tr("Uranium") ); 138 names.append( tr("Uranium") );
139 names.append( tr("Neptunium") ); 139 names.append( tr("Neptunium") );
140 names.append( tr("Plutonium") ); 140 names.append( tr("Plutonium") );
141 names.append( tr("Americium") ); 141 names.append( tr("Americium") );
142 names.append( tr("Curium") ); 142 names.append( tr("Curium") );
143 names.append( tr("Berkelium") ); 143 names.append( tr("Berkelium") );
144 names.append( tr("Californium") ); 144 names.append( tr("Californium") );
145 names.append( tr("Einsteinium") ); 145 names.append( tr("Einsteinium") );
146 names.append( tr("Fermium") ); 146 names.append( tr("Fermium") );
147 names.append( tr("Mendelevium") ); 147 names.append( tr("Mendelevium") );
148 names.append( tr("Nobelium") ); 148 names.append( tr("Nobelium") );
149 names.append( tr("Lawrencium") ); 149 names.append( tr("Lawrencium") );
150 names.append( tr("Rutherfordium") ); 150 names.append( tr("Rutherfordium") );
151 names.append( tr("Dubnium") ); 151 names.append( tr("Dubnium") );
152 names.append( tr("Seaborgium") ); 152 names.append( tr("Seaborgium") );
153 names.append( tr("Bohrium") ); 153 names.append( tr("Bohrium") );
154 names.append( tr("Hassium") ); 154 names.append( tr("Hassium") );
155 names.append( tr("Meitnerium") ); 155 names.append( tr("Meitnerium") );
156} 156}
157 157