From ffb701b9a482ca30eda8901506c0c39ad8461e4c Mon Sep 17 00:00:00 2001 From: cniehaus Date: Sun, 15 Sep 2002 14:02:04 +0000 Subject: Ok, this is what I have so far. I know it is not really working thus it is not in the toplevel-Makefile. I am putting as much work in it as possible. Currently I am doing the kmol-port, after that the PSE-stuff. --- (limited to 'noncore/apps/checkbook/oxygen.cpp') diff --git a/noncore/apps/checkbook/oxygen.cpp b/noncore/apps/checkbook/oxygen.cpp new file mode 100644 index 0000000..a86374b --- a/dev/null +++ b/noncore/apps/checkbook/oxygen.cpp @@ -0,0 +1,52 @@ +/*************************************************************************** + * * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include "calcdlg.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 *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::slotSettings(){ }; +void Oxygen::slotPSE(){ }; + -- cgit v0.9.0.2