#include <resourcetable.hpp>
|
| | ResourceTable (const Resources *resources, unsigned int features=0) |
| |
| virtual | ~ResourceTable () |
| |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| |
| virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| |
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| |
| virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| |
| virtual bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
| |
| virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
| |
| virtual QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| |
| virtual QModelIndex | parent (const QModelIndex &index) const |
| |
| virtual QModelIndex | getModelIndex (const std::string &id, int column) const |
| |
| virtual int | searchColumnIndex (Columns::ColumnId id) const |
| |
| virtual int | findColumnIndex (Columns::ColumnId id) const |
| |
virtual std::pair< UniversalId,
std::string > | view (int row) const |
| |
| virtual bool | isDeleted (const std::string &id) const |
| | Is id flagged as deleted? More...
|
| |
| virtual int | getColumnId (int column) const |
| |
| void | beginReset () |
| | Signal Qt that the data is about to change. More...
|
| |
| void | endReset () |
| | Signal Qt that the data has been changed. More...
|
| |
| | IdTableBase (unsigned int features) |
| |
| unsigned int | getFeatures () const |
| |
| CSMWorld::ResourceTable::ResourceTable |
( |
const Resources * |
resources, |
|
|
unsigned int |
features = 0 |
|
) |
| |
- Note
- The feature Feature_Constant will be added implicitly.
| CSMWorld::ResourceTable::~ResourceTable |
( |
| ) |
|
|
virtual |
| void CSMWorld::ResourceTable::beginReset |
( |
| ) |
|
Signal Qt that the data is about to change.
| int CSMWorld::ResourceTable::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
| QVariant CSMWorld::ResourceTable::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
| void CSMWorld::ResourceTable::endReset |
( |
| ) |
|
Signal Qt that the data has been changed.
Return index of column with the given id. If no such column exists, an exception is thrown.
Implements CSMWorld::IdTableBase.
| Qt::ItemFlags CSMWorld::ResourceTable::flags |
( |
const QModelIndex & |
index | ) |
const |
|
virtual |
| int CSMWorld::ResourceTable::getColumnId |
( |
int |
column | ) |
const |
|
virtual |
| QModelIndex CSMWorld::ResourceTable::getModelIndex |
( |
const std::string & |
id, |
|
|
int |
column |
|
) |
| const |
|
virtual |
| QVariant CSMWorld::ResourceTable::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
| QModelIndex CSMWorld::ResourceTable::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
|
virtual |
| bool CSMWorld::ResourceTable::isDeleted |
( |
const std::string & |
id | ) |
const |
|
virtual |
| QModelIndex CSMWorld::ResourceTable::parent |
( |
const QModelIndex & |
index | ) |
const |
|
virtual |
| int CSMWorld::ResourceTable::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
Return index of column with the given id. If no such column exists, -1 is returned.
Implements CSMWorld::IdTableBase.
| bool CSMWorld::ResourceTable::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
virtual |
| const Resources* CSMWorld::ResourceTable::mResources |
|
private |
The documentation for this class was generated from the following files: