author | cniehaus <cniehaus> | 2002-09-15 17:09:54 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-09-15 17:09:54 (UTC) |
commit | 33ec9ead7ce30bf9450b9048506f0bda49ba4791 (patch) (side-by-side diff) | |
tree | 1683b16a3cb06d7773427193fc4ea5284bf3bdaa /noncore/apps/oxygen/oxygen.cpp | |
parent | 7a8dc6b0a16db160a1e50fde8f298eb9e3cb0099 (diff) | |
download | opie-33ec9ead7ce30bf9450b9048506f0bda49ba4791.zip opie-33ec9ead7ce30bf9450b9048506f0bda49ba4791.tar.gz opie-33ec9ead7ce30bf9450b9048506f0bda49ba4791.tar.bz2 |
Fell free to shoot me if I messed up CVS again... *fingercrossed*
Diffstat (limited to 'noncore/apps/oxygen/oxygen.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/oxygen.cpp | 53 |
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 @@ +/*************************************************************************** + * * + * 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 <qmenubar.h> +#include <qstatusbar.h> +#include <qpopupmenu.h> +#include <qlabel.h> +#include <qapplication.h> +#include <qpushbutton.h> +#include <qfile.h> +#include <qdir.h> +#include <qvbox.h> +#include "calcdlg.h" +#include "calcdlgui.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(){ }; + |