118
119
A_DELETE_COPY(StaticTableModel)
120
virtual ~StaticTableModel();
123
124
* Inserts a widget into the table model.
124
125
* The model is resized to accomodate the widget's width and height,
125
126
* unless column width / row height have been fixed.
127
virtual void set(const int row, const int column,
128
gcn::Widget *const widget);
128
void set(const int row, const int column, gcn::Widget *const widget);
131
131
* Fixes the column width for a given column; this overrides dynamic width
134
134
* Semantics are undefined for width 0.
136
virtual void fixColumnWidth(const int column, const int width);
136
void fixColumnWidth(const int column, const int width);
139
139
* Fixes the row height; this overrides dynamic height inference.
141
141
* Semantics are undefined for width 0.
143
virtual void fixRowHeight(const int height);
143
void fixRowHeight(const int height);
146
146
* Resizes the table model
148
virtual void resize();
150
virtual int getRows() const override A_WARN_UNUSED;
151
virtual int getColumns() const override A_WARN_UNUSED;
152
virtual int getRowHeight() const override A_WARN_UNUSED;
153
virtual int getWidth() const A_WARN_UNUSED;
154
virtual int getHeight() const A_WARN_UNUSED;
155
virtual int getColumnWidth(const int index) const override A_WARN_UNUSED;
156
virtual gcn::Widget *getElementAt(const int row, const int column)
157
const override A_WARN_UNUSED;
150
int getRows() const override A_WARN_UNUSED;
151
int getColumns() const override A_WARN_UNUSED;
152
int getRowHeight() const override A_WARN_UNUSED;
153
int getWidth() const A_WARN_UNUSED;
154
int getHeight() const A_WARN_UNUSED;
155
int getColumnWidth(const int index) const override A_WARN_UNUSED;
156
gcn::Widget *getElementAt(const int row, const int column)
157
const override A_WARN_UNUSED;
160
160
int mRows, mColumns;