-rw-r--r-- | noncore/apps/oxygen/oxygen.cpp | 2 |
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 | ||
28 | Oxygen::Oxygen() : QMainWindow() | 28 | Oxygen::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 | ||
44 | void Oxygen::loadNames() | 44 | void 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") ); |