author | cniehaus <cniehaus> | 2002-09-20 19:24:32 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-09-20 19:24:32 (UTC) |
commit | 681e6e75efaa5577d376d0bb191afdf323cb4e75 (patch) (unidiff) | |
tree | d35ee106655e5b288e73491a2701ddc0141f4fde /noncore/apps/oxygen/dataTable.h | |
parent | c958d7cb5069e06b5cf9e9df6e78bcb644ce26a2 (diff) | |
download | opie-681e6e75efaa5577d376d0bb191afdf323cb4e75.zip opie-681e6e75efaa5577d376d0bb191afdf323cb4e75.tar.gz opie-681e6e75efaa5577d376d0bb191afdf323cb4e75.tar.bz2 |
before starting to hack QTableItem I wanted to have a safe point in cvs
Diffstat (limited to 'noncore/apps/oxygen/dataTable.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/dataTable.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/noncore/apps/oxygen/dataTable.h b/noncore/apps/oxygen/dataTable.h index ccc4300..00063d4 100644 --- a/noncore/apps/oxygen/dataTable.h +++ b/noncore/apps/oxygen/dataTable.h | |||
@@ -1,70 +1,81 @@ | |||
1 | 1 | ||
2 | /*************************************************************************** | 2 | /*************************************************************************** |
3 | * * | 3 | * * |
4 | * This program is free software; you can redistribute it and/or modify * | 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 * | 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 * | 6 | * the Free Software Foundation; either version 2 of the License, or * |
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; | ||
19 | 20 | ||
20 | /* | 21 | /* |
21 | * A OxydataWidget shows all known data of an element. It can | 22 | * A OxydataWidget shows all known data of an element. It can |
22 | * be used for both the PSE and the pure Data-Dialog. It is | 23 | * be used for both the PSE and the pure Data-Dialog. It is |
23 | * a simple QHBox with 2 QStrings in it plus a OxydataTable | 24 | * a simple QHBox with 2 QStrings in it plus a OxydataTable |
24 | * which contains the rest of the data. | 25 | * which contains the rest of the data. |
25 | * | 26 | * |
26 | * Author: Carsten Niehaus <cniehaus@handhelds.org> | 27 | * Author: Carsten Niehaus <cniehaus@handhelds.org> |
27 | */ | 28 | */ |
28 | 29 | ||
29 | class OxydataWidget : public QWidget | 30 | class OxydataWidget : public QWidget |
30 | { | 31 | { |
31 | Q_OBJECT | 32 | Q_OBJECT |
32 | 33 | ||
33 | public: | 34 | public: |
34 | OxydataWidget(QWidget *parent=0); | 35 | OxydataWidget(QWidget *parent=0); |
35 | 36 | ||
36 | QLabel *left, *middle, *right; | 37 | QLabel *left, *middle, *right; |
37 | 38 | ||
38 | private: | 39 | private: |
39 | OxydataTable *DataTable; | 40 | OxydataTable *DataTable; |
40 | void setTable() const; | 41 | void setTable() const; |
41 | 42 | ||
42 | public slots: | 43 | public slots: |
43 | void setElement( int ); | 44 | void setElement( int ); |
44 | }; | 45 | }; |
45 | 46 | ||
46 | /* | 47 | /* |
47 | * A OxydataTable is derived from QTable. I recoded the paintCell to have | 48 | * A OxydataTable is derived from QTable. I recoded the paintCell to have |
48 | * different colors in the backgound. Furthermore this widget never has a | 49 | * different colors in the backgound. Furthermore this widget never has a |
49 | * grid, thus I removed that code in paintCell. | 50 | * grid, thus I removed that code in paintCell. |
50 | * | 51 | * |
51 | * Author: Carsten Niehaus <cniehaus@handhelds.org> | 52 | * Author: Carsten Niehaus <cniehaus@handhelds.org> |
52 | */ | 53 | */ |
53 | 54 | ||
54 | class OxydataTable : public QTable | 55 | class OxydataTable : public QTable |
55 | { | 56 | { |
56 | Q_OBJECT | 57 | Q_OBJECT |
57 | 58 | ||
58 | public: | 59 | public: |
59 | OxydataTable( int numRows, int numCols, | 60 | OxydataTable( int numRows, int numCols, |
60 | QWidget *parent = 0, const char *name = 0 ); | 61 | QWidget *parent = 0, const char *name = 0 ); |
61 | 62 | ||
63 | virtual int alignment() const; | ||
64 | // virtual QTableItem *item( int row, int col ) const; | ||
65 | |||
62 | protected: | 66 | protected: |
63 | /* | 67 | /* |
64 | * This method is reimplemented form QTable. It implements the colourisation | 68 | * This method is reimplemented form QTable. It implements the colourisation |
65 | * of every second row. | 69 | * of every second row. |
66 | */ | 70 | */ |
67 | virtual void paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected ); | 71 | virtual void paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected ); |
68 | }; | 72 | }; |
69 | 73 | ||
74 | //X class OxydataQTI : QTableItem | ||
75 | //X { | ||
76 | //X Q_OBJECT | ||
77 | //X | ||
78 | //X public: | ||
79 | //X OxydataQTI( | ||
80 | |||
70 | #endif | 81 | #endif |