summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/oxygen.cpp
authorcniehaus <cniehaus>2002-09-19 20:47:36 (UTC)
committer cniehaus <cniehaus>2002-09-19 20:47:36 (UTC)
commit65ba4e3610c94ba1de71a41dd6bf69662555e206 (patch) (unidiff)
tree696c3d7317a3c5a13f14160d9281fe4e889cf5bc /noncore/apps/oxygen/oxygen.cpp
parentf4162d2283ebf0327645e0ac66b539cf87565d0b (diff)
downloadopie-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.cpp14
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
@@ -17,47 +17,43 @@
17#include "datawidgetui.h" 17#include "datawidgetui.h"
18#include "psewidget.h" 18#include "psewidget.h"
19 19
20Oxygen::Oxygen() 20Oxygen::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 );
30 connect ( calcButton, SIGNAL( clicked() ), this, SLOT( slotCalculations() ) ); 28 connect ( calcButton, SIGNAL( clicked() ), this, SLOT( slotCalculations() ) );
31 QPushButton *pseButton = new QPushButton( "PSE", vbox ); 29 QPushButton *pseButton = new QPushButton( "PSE", vbox );
32 connect ( pseButton, SIGNAL( clicked() ), this, SLOT( slotPSE() ) ); 30 connect ( pseButton, SIGNAL( clicked() ), this, SLOT( slotPSE() ) );
33 31
34 setCentralWidget( vbox ); 32 setCentralWidget( vbox );
35} 33}
36 34
37 35
38void Oxygen::close() 36void Oxygen::close() const
39{ 37{
40 QApplication::exit(); 38 QApplication::exit();
41} 39}
42 40
43//SLOTS 41//SLOTS
44 42
45void Oxygen::slotCalculations(){ 43void Oxygen::slotCalculations() const{
46 calcDlgUI *CalcDlgUI = new calcDlgUI(); 44 calcDlgUI *CalcDlgUI = new calcDlgUI();
47 CalcDlgUI->show(); 45 CalcDlgUI->show();
48}; 46};
49 47
50void Oxygen::slotData(){ 48void 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
56void Oxygen::slotSettings(){ }; 54void Oxygen::slotPSE() const{
57
58void Oxygen::slotPSE(){
59 PSEWidget *pse = new PSEWidget(); 55 PSEWidget *pse = new PSEWidget();
60 pse->showMaximized(); 56 pse->showMaximized();
61 pse->show(); 57 pse->show();
62}; 58};
63 59