|
OpenMW
|
#include <idtable.hpp>
Classes | |
| struct | ImportResults |
Public Member Functions | |
| LandTextureIdTable (CollectionBase *idCollection, unsigned int features=0) | |
| ImportResults | importTextures (const std::vector< std::string > &ids) |
| Finds and maps/recreates the specified ids. More... | |
Public Member Functions inherited from CSMWorld::IdTable | |
| IdTable (CollectionBase *idCollection, unsigned int features=0) | |
| The ownership of idCollection is not transferred. More... | |
| virtual | ~IdTable () |
| 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 bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
| virtual QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| virtual QModelIndex | parent (const QModelIndex &index) const |
| void | addRecord (const std::string &id, UniversalId::Type type=UniversalId::Type_None) |
| void | addRecordWithData (const std::string &id, const std::map< int, QVariant > &data, UniversalId::Type type=UniversalId::Type_None) |
| void | cloneRecord (const std::string &origin, const std::string &destination, UniversalId::Type type=UniversalId::Type_None) |
| bool | touchRecord (const std::string &id) |
| Will change the record state to modified, if it is not already. More... | |
| std::string | getId (int row) const |
| virtual QModelIndex | getModelIndex (const std::string &id, int column) const |
| This method can return only indexes to the top level table cells. More... | |
| void | setRecord (const std::string &id, const RecordBase &record, UniversalId::Type type=UniversalId::Type_None) |
| Add record or overwrite existing record. More... | |
| const RecordBase & | getRecord (const std::string &id) const |
| virtual int | searchColumnIndex (Columns::ColumnId id) const |
| Return index of column with the given id. If no such column exists, -1 is returned. More... | |
| virtual int | findColumnIndex (Columns::ColumnId id) const |
| void | reorderRows (int baseIndex, const std::vector< int > &newOrder) |
| 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 |
Public Member Functions inherited from CSMWorld::IdTableBase | |
| IdTableBase (unsigned int features) | |
| unsigned int | getFeatures () const |
Additional Inherited Members | |
Public Types inherited from CSMWorld::IdTableBase | |
| enum | Features { Feature_ReorderWithinTopic = 1, Feature_ViewId = 2, Feature_ViewCell = 4, Feature_View = Feature_ViewId | Feature_ViewCell, Feature_Preview = 8, Feature_Constant = 16, Feature_AllowTouch = 32 } |
Protected Member Functions inherited from CSMWorld::IdTable | |
| virtual CollectionBase * | idCollection () const |
An IdTable customized to handle the more unique needs of LandTextureId's which behave differently from other records. The major difference is that base records cannot be modified.
| CSMWorld::LandTextureIdTable::LandTextureIdTable | ( | CollectionBase * | idCollection, |
| unsigned int | features = 0 |
||
| ) |
| CSMWorld::LandTextureIdTable::ImportResults CSMWorld::LandTextureIdTable::importTextures | ( | const std::vector< std::string > & | ids | ) |
Finds and maps/recreates the specified ids.
1.8.6