summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/oxygen.cpp
blob: a9c22766c4213180944988a8ea2ec745482142d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/***************************************************************************
 *                                                                         *
 * This program is free software; you can redistribute it and/or modify    *
 * it under the terms of the GNU General Public License as published by    *
 * the Free Software Foundation; either version 2 of the License, or       *
 * ( at your option ) any later version.                                   *
 *                                                                         *
 **************************************************************************/
#include "oxygen.h"

#include <qlabel.h>
#include <qapplication.h>
#include <qpushbutton.h>
#include <qvbox.h>
#include "calcdlg.h"
#include "calcdlgui.h"
#include "datawidgetui.h"

Oxygen::Oxygen()
  : QMainWindow()
{
    this->setCaption( "Oxygen" );
    vbox = new QVBox( this );
    QPushButton *setButton = new QPushButton( "Settings", vbox );
    connect ( setButton, SIGNAL( clicked() ), this, SLOT( slotSettings() ) );
    QPushButton *dataButton = new QPushButton( "Data", vbox );
    connect ( dataButton, SIGNAL( clicked() ), this, SLOT( slotData() ) );
    QPushButton *calcButton = new QPushButton( "Calculations", vbox );
    connect ( calcButton, SIGNAL( clicked() ), this, SLOT( slotCalculations() ) );
    QPushButton *pseButton = new QPushButton( "PSE", vbox );
    connect ( pseButton, SIGNAL( clicked() ), this, SLOT( slotPSE() ) );

    setCentralWidget( vbox );
}


void Oxygen::close()
{
  QApplication::exit();
}

//SLOTS

void Oxygen::slotCalculations(){ 
    calcDlgUI *CalcDlgUI = new calcDlgUI();
    CalcDlgUI->show();
};

void Oxygen::slotData(){ 
    dataWidgetUI *DataWidgetUI = new dataWidgetUI();
    DataWidgetUI->show();
};

void Oxygen::slotSettings(){ };
void Oxygen::slotPSE(){ };