Diffstat (limited to 'noncore/apps/oxygen/oxygen.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/oxygen.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/apps/oxygen/oxygen.cpp b/noncore/apps/oxygen/oxygen.cpp index 4e293c7..b3392e1 100644 --- a/noncore/apps/oxygen/oxygen.cpp +++ b/noncore/apps/oxygen/oxygen.cpp | |||
@@ -1,59 +1,67 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | application: : Oxygen | ||
3 | |||
4 | begin : September 2002 | ||
5 | copyright : ( C ) 2002 by Carsten Niehaus | ||
6 | email : cniehaus@handhelds.org | ||
7 | **************************************************************************/ | ||
8 | |||
9 | /*************************************************************************** | ||
2 | * * | 10 | * * |
3 | * 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 * |
4 | * 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 * |
5 | * the Free Software Foundation; either version 2 of the License, or * | 13 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * ( at your option ) any later version. * | 14 | * ( at your option ) any later version. * |
7 | * * | 15 | * * |
8 | **************************************************************************/ | 16 | **************************************************************************/ |
9 | #include "oxygen.h" | 17 | #include "oxygen.h" |
10 | 18 | ||
11 | #include <qlabel.h> | 19 | #include <qlabel.h> |
12 | #include <qapplication.h> | 20 | #include <qapplication.h> |
13 | #include <qpushbutton.h> | 21 | #include <qpushbutton.h> |
14 | #include <qvbox.h> | 22 | #include <qvbox.h> |
15 | #include "calcdlg.h" | 23 | #include "calcdlg.h" |
16 | #include "calcdlgui.h" | 24 | #include "calcdlgui.h" |
17 | #include "datawidgetui.h" | 25 | #include "datawidgetui.h" |
18 | #include "psewidget.h" | 26 | #include "psewidget.h" |
19 | 27 | ||
20 | Oxygen::Oxygen() | 28 | Oxygen::Oxygen() |
21 | : QMainWindow() | 29 | : QMainWindow() |
22 | { | 30 | { |
23 | this->setCaption( tr( "Oxygen" ) ); | 31 | this->setCaption( tr( "Oxygen" ) ); |
24 | vbox = new QVBox( this ); | 32 | vbox = new QVBox( this ); |
25 | QPushButton *dataButton = new QPushButton( "Data", vbox ); | 33 | QPushButton *dataButton = new QPushButton( "Data", vbox ); |
26 | connect ( dataButton, SIGNAL( clicked() ), this, SLOT( slotData() ) ); | 34 | connect ( dataButton, SIGNAL( clicked() ), this, SLOT( slotData() ) ); |
27 | QPushButton *calcButton = new QPushButton( "Calculations", vbox ); | 35 | QPushButton *calcButton = new QPushButton( "Calculations", vbox ); |
28 | connect ( calcButton, SIGNAL( clicked() ), this, SLOT( slotCalculations() ) ); | 36 | connect ( calcButton, SIGNAL( clicked() ), this, SLOT( slotCalculations() ) ); |
29 | QPushButton *pseButton = new QPushButton( "PSE", vbox ); | 37 | QPushButton *pseButton = new QPushButton( "PSE", vbox ); |
30 | connect ( pseButton, SIGNAL( clicked() ), this, SLOT( slotPSE() ) ); | 38 | connect ( pseButton, SIGNAL( clicked() ), this, SLOT( slotPSE() ) ); |
31 | 39 | ||
32 | setCentralWidget( vbox ); | 40 | setCentralWidget( vbox ); |
33 | } | 41 | } |
34 | 42 | ||
35 | 43 | ||
36 | void Oxygen::close() const | 44 | void Oxygen::close() const |
37 | { | 45 | { |
38 | QApplication::exit(); | 46 | QApplication::exit(); |
39 | } | 47 | } |
40 | 48 | ||
41 | //SLOTS | 49 | //SLOTS |
42 | 50 | ||
43 | void Oxygen::slotCalculations() const{ | 51 | void Oxygen::slotCalculations() const{ |
44 | calcDlgUI *CalcDlgUI = new calcDlgUI(); | 52 | calcDlgUI *CalcDlgUI = new calcDlgUI(); |
45 | CalcDlgUI->show(); | 53 | CalcDlgUI->show(); |
46 | }; | 54 | }; |
47 | 55 | ||
48 | void Oxygen::slotData() const{ | 56 | void Oxygen::slotData() const{ |
49 | dataWidgetUI *DataWidgetUI = new dataWidgetUI(); | 57 | dataWidgetUI *DataWidgetUI = new dataWidgetUI(); |
50 | DataWidgetUI->showMaximized(); | 58 | DataWidgetUI->showMaximized(); |
51 | DataWidgetUI->show(); | 59 | DataWidgetUI->show(); |
52 | }; | 60 | }; |
53 | 61 | ||
54 | void Oxygen::slotPSE() const{ | 62 | void Oxygen::slotPSE() const{ |
55 | PSEWidget *pse = new PSEWidget(); | 63 | PSEWidget *pse = new PSEWidget(); |
56 | pse->showMaximized(); | 64 | pse->showMaximized(); |
57 | pse->show(); | 65 | pse->show(); |
58 | }; | 66 | }; |
59 | 67 | ||