author | cniehaus <cniehaus> | 2002-09-19 20:47:36 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-09-19 20:47:36 (UTC) |
commit | 65ba4e3610c94ba1de71a41dd6bf69662555e206 (patch) (unidiff) | |
tree | 696c3d7317a3c5a13f14160d9281fe4e889cf5bc /noncore/apps/oxygen/oxygen.cpp | |
parent | f4162d2283ebf0327645e0ac66b539cf87565d0b (diff) | |
download | opie-65ba4e3610c94ba1de71a41dd6bf69662555e206.zip opie-65ba4e3610c94ba1de71a41dd6bf69662555e206.tar.gz opie-65ba4e3610c94ba1de71a41dd6bf69662555e206.tar.bz2 |
* codecleanup
* adding some const
* if you click on a "element" you will now really get the information
* removed obsolete class
Diffstat (limited to 'noncore/apps/oxygen/oxygen.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/oxygen.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/noncore/apps/oxygen/oxygen.cpp b/noncore/apps/oxygen/oxygen.cpp index 2574841..4e293c7 100644 --- a/noncore/apps/oxygen/oxygen.cpp +++ b/noncore/apps/oxygen/oxygen.cpp | |||
@@ -20,10 +20,8 @@ | |||
20 | Oxygen::Oxygen() | 20 | Oxygen::Oxygen() |
21 | : QMainWindow() | 21 | : QMainWindow() |
22 | { | 22 | { |
23 | this->setCaption( "Oxygen" ); | 23 | this->setCaption( tr( "Oxygen" ) ); |
24 | vbox = new QVBox( this ); | 24 | vbox = new QVBox( this ); |
25 | QPushButton *setButton = new QPushButton( "Settings", vbox ); | ||
26 | connect ( setButton, SIGNAL( clicked() ), this, SLOT( slotSettings() ) ); | ||
27 | QPushButton *dataButton = new QPushButton( "Data", vbox ); | 25 | QPushButton *dataButton = new QPushButton( "Data", vbox ); |
28 | connect ( dataButton, SIGNAL( clicked() ), this, SLOT( slotData() ) ); | 26 | connect ( dataButton, SIGNAL( clicked() ), this, SLOT( slotData() ) ); |
29 | QPushButton *calcButton = new QPushButton( "Calculations", vbox ); | 27 | QPushButton *calcButton = new QPushButton( "Calculations", vbox ); |
@@ -35,27 +33,25 @@ Oxygen::Oxygen() | |||
35 | } | 33 | } |
36 | 34 | ||
37 | 35 | ||
38 | void Oxygen::close() | 36 | void Oxygen::close() const |
39 | { | 37 | { |
40 | QApplication::exit(); | 38 | QApplication::exit(); |
41 | } | 39 | } |
42 | 40 | ||
43 | //SLOTS | 41 | //SLOTS |
44 | 42 | ||
45 | void Oxygen::slotCalculations(){ | 43 | void Oxygen::slotCalculations() const{ |
46 | calcDlgUI *CalcDlgUI = new calcDlgUI(); | 44 | calcDlgUI *CalcDlgUI = new calcDlgUI(); |
47 | CalcDlgUI->show(); | 45 | CalcDlgUI->show(); |
48 | }; | 46 | }; |
49 | 47 | ||
50 | void Oxygen::slotData(){ | 48 | void Oxygen::slotData() const{ |
51 | dataWidgetUI *DataWidgetUI = new dataWidgetUI(); | 49 | dataWidgetUI *DataWidgetUI = new dataWidgetUI(); |
52 | DataWidgetUI->showMaximized(); | 50 | DataWidgetUI->showMaximized(); |
53 | DataWidgetUI->show(); | 51 | DataWidgetUI->show(); |
54 | }; | 52 | }; |
55 | 53 | ||
56 | void Oxygen::slotSettings(){ }; | 54 | void Oxygen::slotPSE() const{ |
57 | |||
58 | void Oxygen::slotPSE(){ | ||
59 | PSEWidget *pse = new PSEWidget(); | 55 | PSEWidget *pse = new PSEWidget(); |
60 | pse->showMaximized(); | 56 | pse->showMaximized(); |
61 | pse->show(); | 57 | pse->show(); |