23#ifndef BCETABLEMODEL_HPP
24#define BCETABLEMODEL_HPP
27#include <QAbstractTableModel>
53 Qt::ItemFlags
flags(
const QModelIndex & index)
const
54 {
return Qt::ItemIsEditable | Qt::ItemIsEnabled | Qt::ItemIsSelectable; }
58 { emit layoutChanged(); }
int getNumStates() const
Returns the number of states.
Definition: bceabstractgame.hpp:247
The base class for games of incomplete information.
Definition: bcegame.hpp:40
Table models for BCEViewer.
Definition: bcetablemodel.hpp:40
bool setState(int newState)
Sets the state to newState.
Definition: bcetablemodel.hpp:61
BCETableModel(BCEGame *_game, int _state)
Constructor.
Definition: bcetablemodel.hpp:45
int state
The state that the model is associated with.
Definition: bcetablemodel.hpp:71
Qt::ItemFlags flags(const QModelIndex &index) const
Returns flags.
Definition: bcetablemodel.hpp:53
void emitLayoutChanged()
Emits layoutChanged signal.
Definition: bcetablemodel.hpp:57
BCEGame * game
Pointer to the associated game.
Definition: bcetablemodel.hpp:73