-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 | |||
@@ -1,149 +1,149 @@ | |||
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 | 17 | ||
18 | #include <qpe/config.h> | 18 | #include <qpe/config.h> |
19 | 19 | ||
20 | #include "dataTable.h" | 20 | #include "dataTable.h" |
21 | #include <qwidget.h> | 21 | #include <qwidget.h> |
22 | #include <qhbox.h> | 22 | #include <qhbox.h> |
23 | #include <qlabel.h> | 23 | #include <qlabel.h> |
24 | #include <qfont.h> | 24 | #include <qfont.h> |
25 | #include <qlayout.h> | 25 | #include <qlayout.h> |
26 | #include <qpe/qpeapplication.h> | 26 | #include <qpe/qpeapplication.h> |
27 | 27 | ||
28 | OxydataWidget::OxydataWidget(QWidget *parent) : QWidget(parent) | 28 | OxydataWidget::OxydataWidget(QWidget *parent) : QWidget(parent) |
29 | { | 29 | { |
30 | QGridLayout *qgrid = new QGridLayout( this, 2,1 ); | 30 | QGridLayout *qgrid = new QGridLayout( this, 2,1 ); |
31 | 31 | ||
32 | QHBox *hbox = new QHBox( this ); | 32 | QHBox *hbox = new QHBox( this ); |
33 | left = new QLabel( hbox ); | 33 | left = new QLabel( hbox ); |
34 | middle = new QLabel( hbox ); | 34 | middle = new QLabel( hbox ); |
35 | right = new QLabel( hbox ); | 35 | right = new QLabel( hbox ); |
36 | 36 | ||
37 | right->setAlignment( AlignRight ); | 37 | right->setAlignment( AlignRight ); |
38 | middle->setAlignment( AlignHCenter ); | 38 | middle->setAlignment( AlignHCenter ); |
39 | 39 | ||
40 | QFont bf; | 40 | QFont bf; |
41 | bf.setBold( true ); | 41 | bf.setBold( true ); |
42 | bf.setPointSize( bf.pointSize()+2 ); | 42 | bf.setPointSize( bf.pointSize()+2 ); |
43 | middle->setFont( bf ); | 43 | middle->setFont( bf ); |
44 | 44 | ||
45 | DataTable = new OxydataTable( 9,2, this ); | 45 | DataTable = new OxydataTable( 9,2, this ); |
46 | setTable(); | 46 | setTable(); |
47 | 47 | ||
48 | qgrid->addWidget( hbox,0,0 ); | 48 | qgrid->addWidget( hbox,0,0 ); |
49 | qgrid->addWidget( DataTable,1,0 ); | 49 | qgrid->addWidget( DataTable,1,0 ); |
50 | } | 50 | } |
51 | 51 | ||
52 | void OxydataWidget::setElement( int el ) | 52 | void OxydataWidget::setElement( int el ) |
53 | { | 53 | { |
54 | Config configobj( QPEApplication::qpeDir() +"share/oxygen/oxygendata", Config::File ); | 54 | Config configobj( QPEApplication::qpeDir() +"share/oxygen/oxygendata", Config::File ); |
55 | 55 | ||
56 | configobj.setGroup( QString::number( el+1 )); | 56 | configobj.setGroup( QString::number( el+1 )); |
57 | 57 | ||
58 | left->setText( configobj.readEntry( "Symbol" ) ); | 58 | left->setText( configobj.readEntry( "Symbol" ) ); |
59 | middle->setText( configobj.readEntry( "Name" ) ); | 59 | middle->setText( configobj.readEntry( "Name" ) ); |
60 | right->setText( QString::number( el+1 ) ); | 60 | right->setText( QString::number( el+1 ) ); |
61 | 61 | ||
62 | 62 | ||
63 | DataTable->setText( 0,1,tr( "%1 u" ).arg( configobj.readEntry( "Weight" ) ) ); | 63 | DataTable->setText( 0,1,tr( "%1 u" ).arg( configobj.readEntry( "Weight" ) ) ); |
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" ) ) ); |
72 | } | 72 | } |
73 | 73 | ||
74 | void OxydataWidget::setTable() const | 74 | void OxydataWidget::setTable() const |
75 | { | 75 | { |
76 | DataTable->setText( 0,0, tr( "Weight:" ) ); | 76 | DataTable->setText( 0,0, tr( "Weight:" ) ); |
77 | DataTable->setText( 1,0, tr( "Block" )) ; | 77 | DataTable->setText( 1,0, tr( "Block" )) ; |
78 | DataTable->setText( 2,0, tr( "Group" )) ; | 78 | DataTable->setText( 2,0, tr( "Group" )) ; |
79 | DataTable->setText( 3,0, tr( "Electronegativity" )) ; | 79 | DataTable->setText( 3,0, tr( "Electronegativity" )) ; |
80 | DataTable->setText( 4,0, tr( "Atomic radius" )) ; | 80 | DataTable->setText( 4,0, tr( "Atomic radius" )) ; |
81 | DataTable->setText( 5,0, tr( "Ionizationenergie" )) ; | 81 | DataTable->setText( 5,0, tr( "Ionizationenergie" )) ; |
82 | DataTable->setText( 6,0, tr( "Density" )) ; | 82 | DataTable->setText( 6,0, tr( "Density" )) ; |
83 | DataTable->setText( 7,0, tr( "Boilingpoint" ) ); | 83 | DataTable->setText( 7,0, tr( "Boilingpoint" ) ); |
84 | DataTable->setText( 8,0, tr( "Meltingpoint" ) ); | 84 | DataTable->setText( 8,0, tr( "Meltingpoint" ) ); |
85 | } | 85 | } |
86 | 86 | ||
87 | void OxydataWidget::setLayout() | 87 | void OxydataWidget::setLayout() |
88 | { | 88 | { |
89 | #warning this is not working and I have no idea why! | 89 | #warning this is not working and I have no idea why! |
90 | // DataTable->setColumnWidth ( 0 , this->width()/2 ); | 90 | // DataTable->setColumnWidth ( 0 , this->width()/2 ); |
91 | // DataTable->setColumnWidth ( 1 , this->width()/2 ); | 91 | // DataTable->setColumnWidth ( 1 , this->width()/2 ); |
92 | 92 | ||
93 | //X DataTable->setColumnWidth ( 0 , 110 ); | 93 | //X DataTable->setColumnWidth ( 0 , 110 ); |
94 | //X DataTable->setColumnWidth ( 1 , 110 ); | 94 | //X DataTable->setColumnWidth ( 1 , 110 ); |
95 | } | 95 | } |
96 | 96 | ||
97 | OxydataTable::OxydataTable(int numRows, int numCols, QWidget *parent, | 97 | OxydataTable::OxydataTable(int numRows, int numCols, QWidget *parent, |
98 | const char *name) : QTable(numRows, numCols,parent, name) | 98 | const char *name) : QTable(numRows, numCols,parent, name) |
99 | { | 99 | { |
100 | 100 | ||
101 | for (int zeile = 0; zeile < numRows; zeile++) | 101 | for (int zeile = 0; zeile < numRows; zeile++) |
102 | for ( int spalte = 0; spalte < numCols; spalte++ ) | 102 | for ( int spalte = 0; spalte < numCols; spalte++ ) |
103 | { | 103 | { |
104 | OxydataQTI *testus = new OxydataQTI (this, OxydataQTI::Never, "hm" ); | 104 | OxydataQTI *testus = new OxydataQTI (this, OxydataQTI::Never, "hm" ); |
105 | setItem(zeile, spalte, (QTableItem*)testus); | 105 | setItem(zeile, spalte, (QTableItem*)testus); |
106 | } | 106 | } |
107 | 107 | ||
108 | 108 | ||
109 | this->setShowGrid( false ); | 109 | this->setShowGrid( false ); |
110 | this->setHScrollBarMode(QScrollView::AlwaysOff); | 110 | this->setHScrollBarMode(QScrollView::AlwaysOff); |
111 | this->horizontalHeader()->hide(); | 111 | this->horizontalHeader()->hide(); |
112 | this->verticalHeader()->hide(); | 112 | this->verticalHeader()->hide(); |
113 | this->setTopMargin( 0 ); | 113 | this->setTopMargin( 0 ); |
114 | this->setLeftMargin( 0 ); | 114 | this->setLeftMargin( 0 ); |
115 | } | 115 | } |
116 | 116 | ||
117 | void OxydataTable::paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected) | 117 | void OxydataTable::paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected) |
118 | { | 118 | { |
119 | if ( cr.width() == 0 || cr.height() == 0 ) | 119 | if ( cr.width() == 0 || cr.height() == 0 ) |
120 | return; | 120 | return; |
121 | selected = FALSE; | 121 | selected = FALSE; |
122 | 122 | ||
123 | QTableItem *itm = item( row, col ); | 123 | QTableItem *itm = item( row, col ); |
124 | QColorGroup colgrp = colorGroup(); | 124 | QColorGroup colgrp = colorGroup(); |
125 | if ( itm ) | 125 | if ( itm ) |
126 | { | 126 | { |
127 | if ( row%2 ) | 127 | if ( row%2 ) |
128 | colgrp.setColor( QColorGroup::Base, QColor( 180,200,210 ) ); | 128 | colgrp.setColor( QColorGroup::Base, QColor( 180,200,210 ) ); |
129 | else | 129 | else |
130 | colgrp.setColor( QColorGroup::Base, QColor( 230,235,235 ) ); | 130 | colgrp.setColor( QColorGroup::Base, QColor( 230,235,235 ) ); |
131 | p->save(); | 131 | p->save(); |
132 | itm->paint( p, colgrp, cr, selected ); | 132 | itm->paint( p, colgrp, cr, selected ); |
133 | p->restore(); | 133 | p->restore(); |
134 | } | 134 | } |
135 | } | 135 | } |
136 | 136 | ||
137 | OxydataQTI::OxydataQTI(QTable * table, EditType et, const QString & text ) | 137 | OxydataQTI::OxydataQTI(QTable * table, EditType et, const QString & text ) |
138 | : QTableItem ( table, et, text ) | 138 | : QTableItem ( table, et, text ) |
139 | { | 139 | { |
140 | } | 140 | } |
141 | 141 | ||
142 | int OxydataQTI::alignment() const | 142 | int OxydataQTI::alignment() const |
143 | { | 143 | { |
144 | if ( col()%2 ) | 144 | if ( col()%2 ) |
145 | { | 145 | { |
146 | return AlignRight | AlignVCenter; | 146 | return AlignRight | AlignVCenter; |
147 | }else return AlignLeft | AlignVCenter; | 147 | }else return AlignLeft | AlignVCenter; |
148 | }; | 148 | }; |
149 | 149 | ||
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 | |||
@@ -1,39 +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 | #include <qvaluelist.h> | ||
22 | |||
21 | #include "calcdlg.h" | 23 | #include "calcdlg.h" |
22 | #include "calcdlgui.h" | 24 | #include "calcdlgui.h" |
23 | #include "datawidgetui.h" | 25 | #include "datawidgetui.h" |
24 | #include "psewidget.h" | 26 | #include "psewidget.h" |
25 | 27 | ||
28 | |||
26 | Oxygen::Oxygen() : QMainWindow() | 29 | Oxygen::Oxygen() : QMainWindow() |
27 | { | 30 | { |
28 | PSEWidget *pse = new PSEWidget(); | 31 | PSEWidget *pse = new PSEWidget(); |
29 | calcDlgUI *CalcDlgUI = new calcDlgUI(); | 32 | calcDlgUI *CalcDlgUI = new calcDlgUI(); |
30 | dataWidgetUI *DataWidgetUI = new dataWidgetUI(); | 33 | dataWidgetUI *DataWidgetUI = new dataWidgetUI(); |
31 | 34 | ||
32 | this->setCaption( tr( "Oxygen" ) ); | 35 | this->setCaption( tr( "Oxygen" ) ); |
33 | 36 | ||
34 | QTabWidget *tabw = new QTabWidget( this , "qtab" ); | 37 | QTabWidget *tabw = new QTabWidget( this , "qtab" ); |
35 | tabw->addTab( pse, tr( "PSE" )); | 38 | tabw->addTab( pse, tr( "PSE" )); |
36 | tabw->addTab( DataWidgetUI , tr( "Data" ) ); | 39 | tabw->addTab( DataWidgetUI , tr( "Data" ) ); |
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 | |||
@@ -1,18 +1,24 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * * | 2 | * * |
3 | * This program is free software; you can redistribute it and/or modify * | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | * it under the terms of the GNU General Public License as published by * | 4 | * it under the terms of the GNU General Public License as published by * |
5 | * the Free Software Foundation; either version 2 of the License, or * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * ( at your option ) any later version. * | 6 | * ( at your option ) any later version. * |
7 | * * | 7 | * * |
8 | **************************************************************************/ | 8 | **************************************************************************/ |
9 | 9 | ||
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 | { |
14 | Q_OBJECT | 16 | Q_OBJECT |
15 | 17 | ||
16 | public: | 18 | public: |
17 | Oxygen(); | 19 | Oxygen(); |
20 | QStringList *names; | ||
21 | |||
22 | private: | ||
23 | void loadNames(); | ||
18 | }; | 24 | }; |