summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/oxygen.cpp
Unidiff
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
@@ -20,10 +20,8 @@
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 );
@@ -35,27 +33,25 @@ Oxygen::Oxygen()
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();