Diffstat (limited to 'noncore/apps/oxygen/dataTable.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/dataTable.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/noncore/apps/oxygen/dataTable.h b/noncore/apps/oxygen/dataTable.h index 00063d4..a4a3b18 100644 --- a/noncore/apps/oxygen/dataTable.h +++ b/noncore/apps/oxygen/dataTable.h | |||
@@ -7,25 +7,24 @@ | |||
7 | * ( at your option ) any later version. * | 7 | * ( at your option ) any later version. * |
8 | * * | 8 | * * |
9 | **************************************************************************/ | 9 | **************************************************************************/ |
10 | 10 | ||
11 | #ifndef _DATATABLE_H | 11 | #ifndef _DATATABLE_H |
12 | #define _DATATABLE_H | 12 | #define _DATATABLE_H |
13 | 13 | ||
14 | #include <qwidget.h> | 14 | #include <qwidget.h> |
15 | #include <qtable.h> | 15 | #include <qtable.h> |
16 | 16 | ||
17 | class QLabel; | 17 | class QLabel; |
18 | class OxydataTable; | 18 | class OxydataTable; |
19 | class QTableItem; | ||
20 | 19 | ||
21 | /* | 20 | /* |
22 | * A OxydataWidget shows all known data of an element. It can | 21 | * A OxydataWidget shows all known data of an element. It can |
23 | * be used for both the PSE and the pure Data-Dialog. It is | 22 | * be used for both the PSE and the pure Data-Dialog. It is |
24 | * a simple QHBox with 2 QStrings in it plus a OxydataTable | 23 | * a simple QHBox with 2 QStrings in it plus a OxydataTable |
25 | * which contains the rest of the data. | 24 | * which contains the rest of the data. |
26 | * | 25 | * |
27 | * Author: Carsten Niehaus <cniehaus@handhelds.org> | 26 | * Author: Carsten Niehaus <cniehaus@handhelds.org> |
28 | */ | 27 | */ |
29 | 28 | ||
30 | class OxydataWidget : public QWidget | 29 | class OxydataWidget : public QWidget |
31 | { | 30 | { |
@@ -51,31 +50,35 @@ class OxydataWidget : public QWidget | |||
51 | * | 50 | * |
52 | * Author: Carsten Niehaus <cniehaus@handhelds.org> | 51 | * Author: Carsten Niehaus <cniehaus@handhelds.org> |
53 | */ | 52 | */ |
54 | 53 | ||
55 | class OxydataTable : public QTable | 54 | class OxydataTable : public QTable |
56 | { | 55 | { |
57 | Q_OBJECT | 56 | Q_OBJECT |
58 | 57 | ||
59 | public: | 58 | public: |
60 | OxydataTable( int numRows, int numCols, | 59 | OxydataTable( int numRows, int numCols, |
61 | QWidget *parent = 0, const char *name = 0 ); | 60 | QWidget *parent = 0, const char *name = 0 ); |
62 | 61 | ||
63 | virtual int alignment() const; | ||
64 | // virtual QTableItem *item( int row, int col ) const; | ||
65 | |||
66 | protected: | 62 | protected: |
67 | /* | 63 | /* |
68 | * This method is reimplemented form QTable. It implements the colourisation | 64 | * This method is reimplemented form QTable. It implements the colourisation |
69 | * of every second row. | 65 | * of every second row. |
70 | */ | 66 | */ |
71 | virtual void paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected ); | 67 | virtual void paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected ); |
72 | }; | 68 | }; |
69 | /* | ||
70 | * A OxydataQTI is a QTableItem which has the ability to set an alignment. | ||
71 | * In Oxygen we only have two colums so I can use the simple col()%2. | ||
72 | * | ||
73 | * Author: Robert Gogolok <robertgogolok@gmx.de> | ||
74 | */ | ||
73 | 75 | ||
74 | //X class OxydataQTI : QTableItem | 76 | class OxydataQTI : public QTableItem |
75 | //X { | 77 | { |
76 | //X Q_OBJECT | 78 | public: |
77 | //X | 79 | OxydataQTI(QTable * table, EditType et, const QString & text ); |
78 | //X public: | 80 | |
79 | //X OxydataQTI( | 81 | virtual int alignment() const; |
82 | }; | ||
80 | 83 | ||
81 | #endif | 84 | #endif |