49 #define WIDGET_AT(row, column) (((row) * COLUMNS_NR) + (column))
102 for (
unsigned int r = 0, fsz =
CAST_U32(
103 player_names->size()); r < fsz; ++r)
105 const std::string name = (*player_names)[r];
127 if (choicebox ==
nullptr)
148 if ((
mPlayers ==
nullptr) || index < 0
151 return std::string();
void setSelected(int selected)
StringVect * getPlayers() const
RelationT getRelation(const std::string &name) const
void setRelation(const std::string &name, const RelationT relation)
std::vector< Widget * > mWidgets
int getRowHeight() const A_CONST
int getColumns() const A_CONST
Widget * getElementAt(int row, int column) const
PlayerTableModel(const Widget2 *const widget)
void updateModelInRow(const int row) const
std::string getPlayerAt(const int index) const
int getColumnWidth(const int index) const A_CONST
void playerRelationsUpdated()
PlayerRelationListModel * mListModel
virtual void signalAfterUpdate()
virtual void signalBeforeUpdate()
void delete_all(Container &c)
PlayerRelationsManager playerRelations
#define WIDGET_AT(row, column)
static const unsigned int NAME_COLUMN_WIDTH
static const unsigned int ROW_HEIGHT
static const int COLUMNS_NR
static const unsigned int RELATION_CHOICE_COLUMN
static const unsigned int RELATION_CHOICE_COLUMN_WIDTH
static const int NAME_COLUMN
std::vector< std::string > StringVect