OpenMW
|
Subclass of QmimeData, augmented to contain and transport UniversalIds. More...
#include <tablemimedata.hpp>
Public Member Functions | |
TableMimeData (UniversalId id, const CSMDoc::Document &document) | |
TableMimeData (const std::vector< UniversalId > &id, const CSMDoc::Document &document) | |
~TableMimeData () | |
virtual QStringList | formats () const |
std::string | getIcon () const |
std::vector< UniversalId > | getData () const |
bool | holdsType (UniversalId::Type type) const |
bool | holdsType (CSMWorld::ColumnBase::Display type) const |
bool | fromDocument (const CSMDoc::Document &document) const |
UniversalId | returnMatching (UniversalId::Type type) const |
const CSMDoc::Document * | getDocumentPtr () const |
UniversalId | returnMatching (CSMWorld::ColumnBase::Display type) const |
Static Public Member Functions | |
static CSMWorld::UniversalId::Type | convertEnums (CSMWorld::ColumnBase::Display type) |
static CSMWorld::ColumnBase::Display | convertEnums (CSMWorld::UniversalId::Type type) |
static bool | isReferencable (CSMWorld::UniversalId::Type type) |
Private Member Functions | |
bool | isReferencable (CSMWorld::ColumnBase::Display type) const |
Private Attributes | |
std::vector< UniversalId > | mUniversalId |
QStringList | mObjectsFormats |
const CSMDoc::Document & | mDocument |
Subclass of QmimeData, augmented to contain and transport UniversalIds.
This class provides way to construct mimedata object holding the universalid copy Universalid is used in the majority of the tables to store type, id, argument types. This way universalid grants a way to retrieve record from the concrete table. Please note, that tablemimedata object can hold multiple universalIds in the vector.
CSMWorld::TableMimeData::TableMimeData | ( | UniversalId | id, |
const CSMDoc::Document & | document | ||
) |
CSMWorld::TableMimeData::TableMimeData | ( | const std::vector< UniversalId > & | id, |
const CSMDoc::Document & | document | ||
) |
CSMWorld::TableMimeData::~TableMimeData | ( | ) |
|
static |
|
static |
|
virtual |
bool CSMWorld::TableMimeData::fromDocument | ( | const CSMDoc::Document & | document | ) | const |
std::vector< CSMWorld::UniversalId > CSMWorld::TableMimeData::getData | ( | ) | const |
const CSMDoc::Document * CSMWorld::TableMimeData::getDocumentPtr | ( | ) | const |
std::string CSMWorld::TableMimeData::getIcon | ( | ) | const |
bool CSMWorld::TableMimeData::holdsType | ( | UniversalId::Type | type | ) | const |
bool CSMWorld::TableMimeData::holdsType | ( | CSMWorld::ColumnBase::Display | type | ) | const |
|
static |
|
private |
CSMWorld::UniversalId CSMWorld::TableMimeData::returnMatching | ( | UniversalId::Type | type | ) | const |
CSMWorld::UniversalId CSMWorld::TableMimeData::returnMatching | ( | CSMWorld::ColumnBase::Display | type | ) | const |
|
private |
|
private |
|
private |