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.cpp53
1 files changed, 53 insertions, 0 deletions
diff --git a/noncore/apps/oxygen/oxygen.cpp b/noncore/apps/oxygen/oxygen.cpp
new file mode 100644
index 0000000..81897e9
--- a/dev/null
+++ b/noncore/apps/oxygen/oxygen.cpp
@@ -0,0 +1,53 @@
1/***************************************************************************
2 * *
3 * 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 *
5 * the Free Software Foundation; either version 2 of the License, or *
6 * ( at your option ) any later version. *
7 * *
8 * ***********************************************************************/
9#include "oxygen.h"
10
11#include <qmenubar.h>
12#include <qstatusbar.h>
13#include <qpopupmenu.h>
14#include <qlabel.h>
15#include <qapplication.h>
16#include <qpushbutton.h>
17#include <qfile.h>
18#include <qdir.h>
19#include <qvbox.h>
20#include "calcdlg.h"
21#include "calcdlgui.h"
22
23Oxygen::Oxygen()
24 : QMainWindow()
25{
26 this->setCaption( "Oxygen" );
27 vbox = new QVBox( this );
28 QPushButton *setButton = new QPushButton( "Settings", vbox );
29 connect ( setButton, SIGNAL( clicked() ), this, SLOT( slotSettings() ) );
30 QPushButton *calcButton = new QPushButton( "Calculations", vbox );
31 connect ( calcButton, SIGNAL( clicked() ), this, SLOT( slotCalculations() ) );
32 QPushButton *pseButton = new QPushButton( "PSE", vbox );
33 connect ( pseButton, SIGNAL( clicked() ), this, SLOT( slotPSE() ) );
34
35 setCentralWidget( vbox );
36}
37
38
39void Oxygen::close()
40{
41 QApplication::exit();
42}
43
44//SLOTS
45
46void Oxygen::slotCalculations(){
47 calcDlgUI *CalcDlgUI = new calcDlgUI();
48 CalcDlgUI->show();
49};
50
51void Oxygen::slotSettings(){ };
52void Oxygen::slotPSE(){ };
53