48 for (std::set<TableModelListener *>::const_iterator it =
listeners.begin();
51 (*it)->modelUpdated(
false);
57 for (std::set<TableModelListener *>::const_iterator it =
listeners.begin();
61 (*it)->modelUpdated(
true);
66 #define WIDGET_AT(row, column) (((row) * mColumns) + (column))
67 #define DYN_SIZE(h) ((h) >= 0)
97 if ((widget ==
nullptr) || row >=
mRows || row < 0
126 const int column)
const
133 if (width < 0 || column < 0 || column >=
mColumns)
154 if (column < 0 || column >=
mColumns)
174 for (
size_t i = 0, sz =
mWidths.size(); i < sz; i++)
void fixRowHeight(const int height)
StaticTableModel(const int width, const int height)
std::vector< int > mWidths
int getColumnWidth(const int index) const
std::vector< Widget * > mTableModel
void set(const int row, const int column, Widget *const widget)
Widget * getElementAt(const int row, const int column) const
void fixColumnWidth(const int column, const int width)
virtual void removeListener(TableModelListener *const listener)
virtual void signalAfterUpdate()
std::set< TableModelListener * > listeners
virtual void installListener(TableModelListener *const listener)
virtual void signalBeforeUpdate()
void delete_all(Container &c)
#define WIDGET_AT(row, column)