Diffstat (limited to 'noncore/apps/oxygen/dataTable.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/dataTable.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/noncore/apps/oxygen/dataTable.h b/noncore/apps/oxygen/dataTable.h index 624e8bd..bdcaa99 100644 --- a/noncore/apps/oxygen/dataTable.h +++ b/noncore/apps/oxygen/dataTable.h | |||
@@ -1,61 +1,70 @@ | |||
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 | 19 | ||
20 | /* | ||
21 | * 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 | * a simple QHBox with 2 QStrings in it plus a OxydataTable | ||
24 | * which contains the rest of the data. | ||
25 | * | ||
26 | * Author: Carsten Niehaus <cniehaus@handhelds.org> | ||
27 | */ | ||
28 | |||
20 | class OxydataWidget : public QWidget | 29 | class OxydataWidget : public QWidget |
21 | { | 30 | { |
22 | Q_OBJECT | 31 | Q_OBJECT |
23 | 32 | ||
24 | public: | 33 | public: |
25 | OxydataWidget(QWidget *parent=0); | 34 | OxydataWidget(QWidget *parent=0); |
26 | 35 | ||
27 | QLabel *left, *middle, *right; | 36 | QLabel *left, *middle, *right; |
28 | 37 | ||
29 | private: | 38 | private: |
30 | OxydataTable *DataTable; | 39 | OxydataTable *DataTable; |
31 | void setTable(); | 40 | void setTable(); |
32 | 41 | ||
33 | public slots: | 42 | public slots: |
34 | void setElement( int ); | 43 | void setElement( int ); |
35 | }; | 44 | }; |
36 | 45 | ||
37 | /* | 46 | /* |
38 | * A OxydataTable is derived from QTable. I recoded the paintCell to have | 47 | * A OxydataTable is derived from QTable. I recoded the paintCell to have |
39 | * different colors in the backgound. Furthermore this widget never has a | 48 | * different colors in the backgound. Furthermore this widget never has a |
40 | * grid, thus I removed that code in paintCell. | 49 | * grid, thus I removed that code in paintCell. |
41 | * | 50 | * |
42 | * Author: Carsten Niehaus <cniehaus@handhelds.org> | 51 | * Author: Carsten Niehaus <cniehaus@handhelds.org> |
43 | */ | 52 | */ |
44 | 53 | ||
45 | class OxydataTable : public QTable | 54 | class OxydataTable : public QTable |
46 | { | 55 | { |
47 | Q_OBJECT | 56 | Q_OBJECT |
48 | 57 | ||
49 | public: | 58 | public: |
50 | OxydataTable( int numRows, int numCols, | 59 | OxydataTable( int numRows, int numCols, |
51 | QWidget *parent = 0, const char *name = 0 ); | 60 | QWidget *parent = 0, const char *name = 0 ); |
52 | 61 | ||
53 | protected: | 62 | protected: |
54 | /* | 63 | /* |
55 | * This method is reimplemented form QTable. It implements the colourisation | 64 | * This method is reimplemented form QTable. It implements the colourisation |
56 | * of every second row. | 65 | * of every second row. |
57 | */ | 66 | */ |
58 | 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 ); |
59 | }; | 68 | }; |
60 | 69 | ||
61 | #endif | 70 | #endif |