26#include <guichan/widget.hpp>
41 listener->modelUpdated(
false);
47 listener->modelUpdated(
true);
51#define WIDGET_AT(row, column) (((row) * mColumns) + (column))
52#define DYN_SIZE(h) ((h) >= 0)
virtual void set(int row, int column, gcn::Widget *widget)
Inserts a widget into the table model.
int getRowHeight() const override
Determines the height for each row.
std::vector< int > mWidths
gcn::Widget * getElementAt(int row, int column) const override
Retrieves the widget stored at the specified location within the table.
~StaticTableModel() override
int getRows() const override
Determines the number of rows (lines) in the table.
virtual void resize()
Resizes the table model.
int getColumnWidth(int index) const override
Determines the width of each individual column.
virtual int getWidth() const
virtual int getHeight() const
virtual void fixRowHeight(int height)
Fixes the row height; this overrides dynamic height inference.
int getColumns() const override
Determines the number of columns in each row.
StaticTableModel(int width, int height)
virtual void fixColumnWidth(int column, int width)
Fixes the column width for a given column; this overrides dynamic width inference.
std::vector< gcn::Widget * > mTableModel
void signalAfterUpdate()
Tells all listeners that the table has seen an update.
std::set< TableModelListener * > listeners
void removeListener(TableModelListener *listener)
void installListener(TableModelListener *listener)
void signalBeforeUpdate()
Tells all listeners that the table is about to see an update.
void delete_all(Container &c)
#define WIDGET_AT(row, column)