diff options
author | Ira Rice <irarice@gmail.com> | 2009-02-03 14:38:40 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-03 14:38:40 -0700 |
commit | 8857a59c3818c1ce6eeb6c054cb5543bfc35c087 (patch) | |
tree | 792fca4acae0c9372cf145a4f0b4cb995b1c3c78 /src/gui/table_model.h | |
parent | 6c5d9cd16b750ae9404407171a5641b5e0ee78b5 (diff) | |
download | mana-8857a59c3818c1ce6eeb6c054cb5543bfc35c087.tar.gz mana-8857a59c3818c1ce6eeb6c054cb5543bfc35c087.tar.bz2 mana-8857a59c3818c1ce6eeb6c054cb5543bfc35c087.tar.xz mana-8857a59c3818c1ce6eeb6c054cb5543bfc35c087.zip |
Fixed up table class to allow for different background colors, as well
as defining whether the given table is opaque or not.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/table_model.h')
-rw-r--r-- | src/gui/table_model.h | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/src/gui/table_model.h b/src/gui/table_model.h index 1c36ca46..a2a93887 100644 --- a/src/gui/table_model.h +++ b/src/gui/table_model.h @@ -100,8 +100,7 @@ private: class StaticTableModel : public TableModel { public: - StaticTableModel(int width, int height, gcn::Color background = 0xffffff, - bool opacity = true); + StaticTableModel(int width, int height); virtual ~StaticTableModel(void); /** @@ -130,22 +129,6 @@ public: */ virtual void resize(void); - /** - * Sets the table to be opaque, that is sets the table - * to display its background. - * - * @param opaque True if the table should be opaque, false otherwise. - */ - virtual void setOpaque(bool opaque); - - /** - * Checks if the scroll area is opaque, that is if the scroll area - * displays its background. - * - * @return True if the scroll area is opaque, false otherwise. - */ - virtual bool isOpaque() const; - virtual int getRows(void); virtual int getColumns(void); virtual int getRowHeight(void); @@ -158,22 +141,8 @@ public: protected: int mRows, mColumns; int mHeight; - bool mOpaque; std::vector<gcn::Widget *> mTableModel; std::vector<int> mWidths; - - /** - * Holds the background color of the table. - */ - gcn::Color mBackgroundColor; - - /** - * Draws the background of the table, that is - * the area behind the content. - * - * @param graphics a Graphics object to draw with. - */ - virtual void drawBackground(gcn::Graphics *graphics); }; #endif /* !defined(TABLE_MODEL_H) */ |