summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen
authorcniehaus <cniehaus>2002-12-28 16:10:28 (UTC)
committer cniehaus <cniehaus>2002-12-28 16:10:28 (UTC)
commitd6fb3096228e13a3de41b1c888a154c4f9ec3f16 (patch) (unidiff)
tree0b910b125b59f2cfc076d8f5cc4068fb85f76d7c /noncore/apps/oxygen
parentcc3544acf067f3cb4fe78d95298ba42c9faa14d5 (diff)
downloadopie-d6fb3096228e13a3de41b1c888a154c4f9ec3f16.zip
opie-d6fb3096228e13a3de41b1c888a154c4f9ec3f16.tar.gz
opie-d6fb3096228e13a3de41b1c888a154c4f9ec3f16.tar.bz2
small fix
Diffstat (limited to 'noncore/apps/oxygen') (more/less context) (show 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
@@ -11,49 +11,49 @@
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") );