author | cniehaus <cniehaus> | 2002-12-27 12:31:35 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-12-27 12:31:35 (UTC) |
commit | c432e5eaca0ada1ede2b2966ae86be045e8c3f9b (patch) (unidiff) | |
tree | 621dd6cf0b3f2a69cb1693963f5f92e69d4cb7ea /noncore/apps/oxygen/datawidgetui.cpp | |
parent | 36c8b8ffff2c8a7a454aa1b8afbe96bd9b1535f9 (diff) | |
download | opie-c432e5eaca0ada1ede2b2966ae86be045e8c3f9b.zip opie-c432e5eaca0ada1ede2b2966ae86be045e8c3f9b.tar.gz opie-c432e5eaca0ada1ede2b2966ae86be045e8c3f9b.tar.bz2 |
juhu, this should be fully translatable now :)
Diffstat (limited to 'noncore/apps/oxygen/datawidgetui.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/datawidgetui.cpp | 120 |
1 files changed, 2 insertions, 118 deletions
diff --git a/noncore/apps/oxygen/datawidgetui.cpp b/noncore/apps/oxygen/datawidgetui.cpp index 91d669f..e1d6e41 100644 --- a/noncore/apps/oxygen/datawidgetui.cpp +++ b/noncore/apps/oxygen/datawidgetui.cpp | |||
@@ -26,11 +26,9 @@ | |||
26 | #include <qlabel.h> | 26 | #include <qlabel.h> |
27 | #include <qpe/qpeapplication.h> | 27 | #include <qpe/qpeapplication.h> |
28 | 28 | ||
29 | dataWidgetUI::dataWidgetUI() : QWidget() | 29 | dataWidgetUI::dataWidgetUI(const QStringList &list) : QWidget() |
30 | { | 30 | { |
31 | 31 | names = list; | |
32 | names = 0; | ||
33 | loadNames(); | ||
34 | 32 | ||
35 | this->setCaption( tr( "Chemical Data" )); | 33 | this->setCaption( tr( "Chemical Data" )); |
36 | QGridLayout *qgrid = new QGridLayout( this, 2,1 ); | 34 | QGridLayout *qgrid = new QGridLayout( this, 2,1 ); |
@@ -43,7 +41,6 @@ dataWidgetUI::dataWidgetUI() : QWidget() | |||
43 | { | 41 | { |
44 | dataCombo->insertItem( QString::number( i+1 )+" - "+*it ); | 42 | dataCombo->insertItem( QString::number( i+1 )+" - "+*it ); |
45 | } | 43 | } |
46 | QStringList::ConstIterator it = names.begin(); | ||
47 | OxydataWidget *oxyDW = new OxydataWidget(this, "OxydataWidget_oxyDW", names); | 44 | OxydataWidget *oxyDW = new OxydataWidget(this, "OxydataWidget_oxyDW", names); |
48 | connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) ); | 45 | connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) ); |
49 | oxyDW->setElement( 0 ); | 46 | oxyDW->setElement( 0 ); |
@@ -53,117 +50,4 @@ dataWidgetUI::dataWidgetUI() : QWidget() | |||
53 | qgrid->addWidget( oxyDW , 1,0 ); | 50 | qgrid->addWidget( oxyDW , 1,0 ); |
54 | } | 51 | } |
55 | 52 | ||
56 | void dataWidgetUI::loadNames() | ||
57 | { | ||
58 | names.clear(); | ||
59 | names.append( tr("Hydrogen") ); | ||
60 | names.append( tr("Helium") ); | ||
61 | names.append( tr("Lithium") ); | ||
62 | names.append( tr("Beryllium") ); | ||
63 | names.append( tr("Boron") ); | ||
64 | names.append( tr("Carbon") ); | ||
65 | names.append( tr("Nitrogen") ); | ||
66 | names.append( tr("Oxygen") ); | ||
67 | names.append( tr("Fluorine") ); | ||
68 | names.append( tr("Neon") ); | ||
69 | names.append( tr("Sodium") ); | ||
70 | names.append( tr("Magnesium") ); | ||
71 | names.append( tr("Aluminum") ); | ||
72 | names.append( tr("Silicon") ); | ||
73 | names.append( tr("Phosphorus") ); | ||
74 | names.append( tr("Sulfur") ); | ||
75 | names.append( tr("Chlorine") ); | ||
76 | names.append( tr("Argon") ); | ||
77 | names.append( tr("Potassium") ); | ||
78 | names.append( tr("Calcium") ); | ||
79 | names.append( tr("Scandium") ); | ||
80 | names.append( tr("Titanium") ); | ||
81 | names.append( tr("Vanadium") ); | ||
82 | names.append( tr("Chromium") ); | ||
83 | names.append( tr("Manganese") ); | ||
84 | names.append( tr("Iron") ); | ||
85 | names.append( tr("Cobalt") ); | ||
86 | names.append( tr("Nickel") ); | ||
87 | names.append( tr("Copper") ); | ||
88 | names.append( tr("Zinc") ); | ||
89 | names.append( tr("Gallium") ); | ||
90 | names.append( tr("Germanium") ); | ||
91 | names.append( tr("Arsenic") ); | ||
92 | names.append( tr("Selenium") ); | ||
93 | names.append( tr("Bromine") ); | ||
94 | names.append( tr("Krypton") ); | ||
95 | names.append( tr("Rubidium") ); | ||
96 | names.append( tr("Strontium") ); | ||
97 | names.append( tr("Yttrium") ); | ||
98 | names.append( tr("Zirconium") ); | ||
99 | names.append( tr("Niobium") ); | ||
100 | names.append( tr("Molybdenum") ); | ||
101 | names.append( tr("Technetium") ); | ||
102 | names.append( tr("Ruthenium") ); | ||
103 | names.append( tr("Rhodium") ); | ||
104 | names.append( tr("Palladium") ); | ||
105 | names.append( tr("Silver") ); | ||
106 | names.append( tr("Cadmium") ); | ||
107 | names.append( tr("Indium") ); | ||
108 | names.append( tr("Tin") ); | ||
109 | names.append( tr("Antimony") ); | ||
110 | names.append( tr("Tellurium") ); | ||
111 | names.append( tr("Iodine") ); | ||
112 | names.append( tr("Xenon") ); | ||
113 | names.append( tr("Cesium") ); | ||
114 | names.append( tr("Barium") ); | ||
115 | names.append( tr("Lanthanum") ); | ||
116 | names.append( tr("Cerium") ); | ||
117 | names.append( tr("Praseodymium") ); | ||
118 | names.append( tr("Neodymium") ); | ||
119 | names.append( tr("Promethium") ); | ||
120 | names.append( tr("Samarium") ); | ||
121 | names.append( tr("Europium") ); | ||
122 | names.append( tr("Gadolinium") ); | ||
123 | names.append( tr("Terbium") ); | ||
124 | names.append( tr("Dysprosium") ); | ||
125 | names.append( tr("Holmium") ); | ||
126 | names.append( tr("Erbium") ); | ||
127 | names.append( tr("Thulium") ); | ||
128 | names.append( tr("Ytterbium") ); | ||
129 | names.append( tr("Lutetium") ); | ||
130 | names.append( tr("Hafnium") ); | ||
131 | names.append( tr("Tantalum") ); | ||
132 | names.append( tr("Tungsten") ); | ||
133 | names.append( tr("Rhenium") ); | ||
134 | names.append( tr("Osmium") ); | ||
135 | names.append( tr("Iridium") ); | ||
136 | names.append( tr("Platinum") ); | ||
137 | names.append( tr("Gold") ); | ||
138 | names.append( tr("Mercury") ); | ||
139 | names.append( tr("Thallium") ); | ||
140 | names.append( tr("Lead") ); | ||
141 | names.append( tr("Bismuth") ); | ||
142 | names.append( tr("Polonium") ); | ||
143 | names.append( tr("Astatine") ); | ||
144 | names.append( tr("Radon") ); | ||
145 | names.append( tr("Francium") ); | ||
146 | names.append( tr("Radium") ); | ||
147 | names.append( tr("Actinium") ); | ||
148 | names.append( tr("Thorium") ); | ||
149 | names.append( tr("Protactinium") ); | ||
150 | names.append( tr("Uranium") ); | ||
151 | names.append( tr("Neptunium") ); | ||
152 | names.append( tr("Plutonium") ); | ||
153 | names.append( tr("Americium") ); | ||
154 | names.append( tr("Curium") ); | ||
155 | names.append( tr("Berkelium") ); | ||
156 | names.append( tr("Californium") ); | ||
157 | names.append( tr("Einsteinium") ); | ||
158 | names.append( tr("Fermium") ); | ||
159 | names.append( tr("Mendelevium") ); | ||
160 | names.append( tr("Nobelium") ); | ||
161 | names.append( tr("Lawrencium") ); | ||
162 | names.append( tr("Rutherfordium") ); | ||
163 | names.append( tr("Dubnium") ); | ||
164 | names.append( tr("Seaborgium") ); | ||
165 | names.append( tr("Bohrium") ); | ||
166 | names.append( tr("Hassium") ); | ||
167 | names.append( tr("Meitnerium") ); | ||
168 | } | ||
169 | 53 | ||