summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/oxygen.cpp
authorcniehaus <cniehaus>2002-09-21 21:45:32 (UTC)
committer cniehaus <cniehaus>2002-09-21 21:45:32 (UTC)
commitf4a389bf66404f7c7474c4ef27491f5910da550b (patch) (side-by-side diff)
tree3371d43fb78359eb406797918eeabf85cb59d30a /noncore/apps/oxygen/oxygen.cpp
parent2e6dd40a0ba17ccf5503fa02bec810b0eeb82f8c (diff)
downloadopie-f4a389bf66404f7c7474c4ef27491f5910da550b.zip
opie-f4a389bf66404f7c7474c4ef27491f5910da550b.tar.gz
opie-f4a389bf66404f7c7474c4ef27491f5910da550b.tar.bz2
Now that I understand Harlekin I like his idea: Tabs
Diffstat (limited to 'noncore/apps/oxygen/oxygen.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/oxygen/oxygen.cpp49
1 files changed, 12 insertions, 37 deletions
diff --git a/noncore/apps/oxygen/oxygen.cpp b/noncore/apps/oxygen/oxygen.cpp
index b3392e1..bc99d89 100644
--- a/noncore/apps/oxygen/oxygen.cpp
+++ b/noncore/apps/oxygen/oxygen.cpp
@@ -20,48 +20,23 @@
#include <qapplication.h>
#include <qpushbutton.h>
#include <qvbox.h>
+#include <qtabwidget.h>
#include "calcdlg.h"
#include "calcdlgui.h"
#include "datawidgetui.h"
#include "psewidget.h"
-Oxygen::Oxygen()
- : QMainWindow()
+Oxygen::Oxygen() : QMainWindow()
{
- this->setCaption( tr( "Oxygen" ) );
- vbox = new QVBox( this );
- 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() const
-{
- QApplication::exit();
-}
-
-//SLOTS
-
-void Oxygen::slotCalculations() const{
+ PSEWidget *pse = new PSEWidget();
calcDlgUI *CalcDlgUI = new calcDlgUI();
- CalcDlgUI->show();
-};
-
-void Oxygen::slotData() const{
dataWidgetUI *DataWidgetUI = new dataWidgetUI();
- DataWidgetUI->showMaximized();
- DataWidgetUI->show();
-};
-
-void Oxygen::slotPSE() const{
- PSEWidget *pse = new PSEWidget();
- pse->showMaximized();
- pse->show();
-};
-
+
+ this->setCaption( tr( "Oxygen" ) );
+
+ QTabWidget *tabw = new QTabWidget( this , "qtab" );
+ tabw->addTab( pse, tr( "PSE" ));
+ tabw->addTab( DataWidgetUI , tr( "Data" ) );
+ tabw->addTab( CalcDlgUI, tr( "Calculations" ) );
+ setCentralWidget( tabw );
+}