Mana
|
A model for a regular table of widgets. More...
#include <tablemodel.h>
Public Member Functions | |
virtual | ~TableModel () |
virtual int | getRows () const =0 |
Determines the number of rows (lines) in the table. | |
virtual int | getColumns () const =0 |
Determines the number of columns in each row. | |
virtual int | getRowHeight () const =0 |
Determines the height for each row. | |
virtual int | getColumnWidth (int index) const =0 |
Determines the width of each individual column. | |
virtual gcn::Widget * | getElementAt (int row, int column) const =0 |
Retrieves the widget stored at the specified location within the table. | |
void | installListener (TableModelListener *listener) |
void | removeListener (TableModelListener *listener) |
Protected Member Functions | |
void | signalBeforeUpdate () |
Tells all listeners that the table is about to see an update. | |
void | signalAfterUpdate () |
Tells all listeners that the table has seen an update. | |
Private Attributes | |
std::set< TableModelListener * > | listeners |
A model for a regular table of widgets.
Definition at line 49 of file tablemodel.h.
|
inlinevirtual |
Definition at line 52 of file tablemodel.h.
|
pure virtual |
Determines the number of columns in each row.
Implemented in PlayerTableModel, and StaticTableModel.
|
pure virtual |
Determines the width of each individual column.
Implemented in PlayerTableModel, and StaticTableModel.
|
pure virtual |
Retrieves the widget stored at the specified location within the table.
Implemented in PlayerTableModel, and StaticTableModel.
|
pure virtual |
Determines the height for each row.
Implemented in PlayerTableModel, and StaticTableModel.
|
pure virtual |
Determines the number of rows (lines) in the table.
Implemented in PlayerTableModel, and StaticTableModel.
void TableModel::installListener | ( | TableModelListener * | listener | ) |
Definition at line 28 of file tablemodel.cpp.
void TableModel::removeListener | ( | TableModelListener * | listener | ) |
Definition at line 33 of file tablemodel.cpp.
|
protected |
Tells all listeners that the table has seen an update.
Definition at line 44 of file tablemodel.cpp.
|
protected |
Tells all listeners that the table is about to see an update.
Definition at line 38 of file tablemodel.cpp.
|
private |
Definition at line 94 of file tablemodel.h.