summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/oxygen/dataTable.cpp5
-rw-r--r--noncore/apps/oxygen/dataTable.h2
-rw-r--r--noncore/apps/oxygen/oxyframe.cpp16
-rw-r--r--noncore/apps/oxygen/oxyframe.h26
-rw-r--r--noncore/apps/oxygen/oxygen.pro2
-rw-r--r--noncore/apps/oxygen/psewidget.cpp5
-rw-r--r--noncore/apps/oxygen/psewidget.h8
7 files changed, 52 insertions, 12 deletions
diff --git a/noncore/apps/oxygen/dataTable.cpp b/noncore/apps/oxygen/dataTable.cpp
index 6c6b9dc..bb786ea 100644
--- a/noncore/apps/oxygen/dataTable.cpp
+++ b/noncore/apps/oxygen/dataTable.cpp
@@ -6,10 +6,8 @@
6 * ( at your option ) any later version. * 6 * ( at your option ) any later version. *
7 * * 7 * *
8 **************************************************************************/ 8 **************************************************************************/
9#include "oxygen.h"
10 9
11#include "dataTable.h" 10#include "dataTable.h"
12#include <qtable.h>
13 11
14OxydataTable::OxydataTable(int numRows, int numCols, QWidget *parent, 12OxydataTable::OxydataTable(int numRows, int numCols, QWidget *parent,
15 const char *name) : QTable(numRows, numRows, parent, name) 13 const char *name) : QTable(numRows, numRows, parent, name)
@@ -22,9 +20,6 @@ void OxydataTable::paintCell( QPainter *p, int row, int col, const QRect &cr, b
22 return; 20 return;
23 selected = FALSE; 21 selected = FALSE;
24 22
25 int w = cr.width();
26 int h = cr.height();
27
28 QTableItem *itm = item( row, col ); 23 QTableItem *itm = item( row, col );
29 QColorGroup colgrp = colorGroup(); 24 QColorGroup colgrp = colorGroup();
30 if ( itm ) 25 if ( itm )
diff --git a/noncore/apps/oxygen/dataTable.h b/noncore/apps/oxygen/dataTable.h
index 5adbcc2..908d241 100644
--- a/noncore/apps/oxygen/dataTable.h
+++ b/noncore/apps/oxygen/dataTable.h
@@ -11,7 +11,6 @@
11#ifndef _DATATABLE_H 11#ifndef _DATATABLE_H
12#define _DATATABLE_H 12#define _DATATABLE_H
13 13
14
15#include <qtable.h> 14#include <qtable.h>
16 15
17class OxydataTable : public QTable 16class OxydataTable : public QTable
@@ -19,7 +18,6 @@ class OxydataTable : public QTable
19 Q_OBJECT 18 Q_OBJECT
20 19
21 public: 20 public:
22 OxydataTable();
23 OxydataTable( int numRows, int numCols, 21 OxydataTable( int numRows, int numCols,
24 QWidget *parent = 0, const char *name = 0 ); 22 QWidget *parent = 0, const char *name = 0 );
25 23
diff --git a/noncore/apps/oxygen/oxyframe.cpp b/noncore/apps/oxygen/oxyframe.cpp
new file mode 100644
index 0000000..060f9ca
--- a/dev/null
+++ b/noncore/apps/oxygen/oxyframe.cpp
@@ -0,0 +1,16 @@
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 <qpe/config.h>
12#include "oxyframe.h"
13
14OxyFrame::OxyFrame(QWidget *parent, const char *name) : QFrame(parent,name)
15{
16}
diff --git a/noncore/apps/oxygen/oxyframe.h b/noncore/apps/oxygen/oxyframe.h
new file mode 100644
index 0000000..01f888d
--- a/dev/null
+++ b/noncore/apps/oxygen/oxyframe.h
@@ -0,0 +1,26 @@
1
2/***************************************************************************
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * ( at your option ) any later version. *
8 * *
9 **************************************************************************/
10#ifndef _OXYFRAME_H
11#define _OXYFRAME_H
12
13
14#include <qframe.h>
15
16class OxyFrame : public QFrame
17{
18 Q_OBJECT
19
20 public:
21 OxyFrame( QWidget *parent=0, const char *name=0);
22
23
24};
25
26#endif
diff --git a/noncore/apps/oxygen/oxygen.pro b/noncore/apps/oxygen/oxygen.pro
index c447330..8f9e4ea 100644
--- a/noncore/apps/oxygen/oxygen.pro
+++ b/noncore/apps/oxygen/oxygen.pro
@@ -6,6 +6,7 @@ HEADERS = oxygen.h \
6 calcdlgui.h \ 6 calcdlgui.h \
7 dataTable.h \ 7 dataTable.h \
8 psewidget.h \ 8 psewidget.h \
9 oxyframe.h \
9 datawidgetui.h 10 datawidgetui.h
10 11
11 SOURCES = main.cpp \ 12 SOURCES = main.cpp \
@@ -15,6 +16,7 @@ SOURCES = main.cpp \
15 kmolelements.cpp \ 16 kmolelements.cpp \
16 dataTable.cpp \ 17 dataTable.cpp \
17 psewidget.cpp \ 18 psewidget.cpp \
19 oxyframe.cpp \
18 datawidgetui.cpp 20 datawidgetui.cpp
19INCLUDEPATH += $(OPIEDIR)/include 21INCLUDEPATH += $(OPIEDIR)/include
20DEPENDPATH += $(OPIEDIR)/include 22DEPENDPATH += $(OPIEDIR)/include
diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp
index 66450be..f48cebe 100644
--- a/noncore/apps/oxygen/psewidget.cpp
+++ b/noncore/apps/oxygen/psewidget.cpp
@@ -6,11 +6,14 @@
6 * ( at your option ) any later version. * 6 * ( at your option ) any later version. *
7 * * 7 * *
8 **************************************************************************/ 8 **************************************************************************/
9#include "oxygen.h"
10 9
11#include <qpe/config.h> 10#include <qpe/config.h>
11#include <qlayout.h>
12#include "psewidget.h" 12#include "psewidget.h"
13#include "oxyframe.h"
13 14
14PSEWidget::PSEWidget() : QWidget() 15PSEWidget::PSEWidget() : QWidget()
15{ 16{
17 maingrid = new QGridLayout( 18 , 10 , -1 , "maingridlayout" );
18 OxyFrame *test = new OxyFrame(this);
16} 19}
diff --git a/noncore/apps/oxygen/psewidget.h b/noncore/apps/oxygen/psewidget.h
index ebdec94..a0ab701 100644
--- a/noncore/apps/oxygen/psewidget.h
+++ b/noncore/apps/oxygen/psewidget.h
@@ -12,10 +12,7 @@
12 12
13#include <qwidget.h> 13#include <qwidget.h>
14 14
15class QTable; 15class QGridLayout;
16class QComboBox;
17class QLabel;
18
19 16
20class PSEWidget : public QWidget 17class PSEWidget : public QWidget
21{ 18{
@@ -24,6 +21,9 @@ class PSEWidget : public QWidget
24 public: 21 public:
25 PSEWidget(); 22 PSEWidget();
26 23
24 private:
25 QGridLayout *maingrid;
26
27}; 27};
28 28
29#endif 29#endif