00001 #ifndef HWTABLE_H
00002 #define HWTABLE_H
00003
00004 #include <hwWidget.h>
00005 #include <vector>
00006
00007 class hwLabel;
00008
00009 class hwTable : public hwWidget
00010 {
00011 public:
00012
00013 hwTable();
00014
00015 ~hwTable();
00016
00017 string draw();
00018
00019 void setValue(unsigned int row, unsigned int col, hwWidget* w);
00020
00021 void setColumnLabel(unsigned int col, hwLabel* label);
00022
00023 hwWidget* getValue(unsigned int row, unsigned int col);
00024
00025 void clear();
00026
00027 private:
00028
00029 hwTable(const hwTable& source);
00030 hwTable& operator=(const hwTable& source);
00031
00032 vector<hwLabel*> myCols;
00033 vector<vector<hwWidget*> > myCells;
00034 };
00035
00036 #endif
00037