00001 #ifndef HWTABLELAYOUT_H
00002 #define HWTABLELAYOUT_H
00003
00004 #include <hwWidget.h>
00005 #include <vector>
00006
00007 class hwTableLayout : public hwWidget
00008 {
00009 public:
00010
00011 hwTableLayout();
00012
00013 ~hwTableLayout();
00014
00015 void add(hwWidget* widget, unsigned int row, unsigned int col);
00016
00017 string draw();
00018
00019 private:
00020
00021 typedef struct
00022 {
00023 unsigned int row;
00024 unsigned int col;
00025 hwWidget* widget;
00026 }
00027 child_t;
00028
00029 hwTableLayout(const hwTableLayout& source);
00030 hwTableLayout& operator=(const hwTableLayout& source);
00031
00032 hwWidget* getChild(unsigned int row, unsigned int col);
00033
00034 vector<child_t*> myChildList;
00035 unsigned int myNumCols;
00036 unsigned int myNumRows;
00037 };
00038
00039 #endif
00040