OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
CSMWorld::TableMimeData Class Reference

Subclass of QmimeData, augmented to contain and transport UniversalIds. More...

#include <tablemimedata.hpp>

Inheritance diagram for CSMWorld::TableMimeData:
Collaboration diagram for CSMWorld::TableMimeData:

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< UniversalIdgetData () 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::DocumentgetDocumentPtr () 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< UniversalIdmUniversalId
 
QStringList mObjectsFormats
 
const CSMDoc::DocumentmDocument
 

Detailed Description

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.

Constructor & Destructor Documentation

CSMWorld::TableMimeData::TableMimeData ( UniversalId  id,
const CSMDoc::Document document 
)
CSMWorld::TableMimeData::TableMimeData ( const std::vector< UniversalId > &  id,
const CSMDoc::Document document 
)
CSMWorld::TableMimeData::~TableMimeData ( )

Member Function Documentation

CSMWorld::UniversalId::Type CSMWorld::TableMimeData::convertEnums ( CSMWorld::ColumnBase::Display  type)
static

Here is the caller graph for this function:

CSMWorld::ColumnBase::Display CSMWorld::TableMimeData::convertEnums ( CSMWorld::UniversalId::Type  type)
static
QStringList CSMWorld::TableMimeData::formats ( ) const
virtual
bool CSMWorld::TableMimeData::fromDocument ( const CSMDoc::Document document) const

Here is the caller graph for this function:

std::vector< CSMWorld::UniversalId > CSMWorld::TableMimeData::getData ( ) const

Here is the caller graph for this function:

const CSMDoc::Document * CSMWorld::TableMimeData::getDocumentPtr ( ) const

Here is the caller graph for this function:

std::string CSMWorld::TableMimeData::getIcon ( ) const

Here is the caller graph for this function:

bool CSMWorld::TableMimeData::holdsType ( UniversalId::Type  type) const

Here is the caller graph for this function:

bool CSMWorld::TableMimeData::holdsType ( CSMWorld::ColumnBase::Display  type) const
bool CSMWorld::TableMimeData::isReferencable ( CSMWorld::UniversalId::Type  type)
static

Here is the caller graph for this function:

bool CSMWorld::TableMimeData::isReferencable ( CSMWorld::ColumnBase::Display  type) const
private
CSMWorld::UniversalId CSMWorld::TableMimeData::returnMatching ( UniversalId::Type  type) const

Here is the caller graph for this function:

CSMWorld::UniversalId CSMWorld::TableMimeData::returnMatching ( CSMWorld::ColumnBase::Display  type) const

Member Data Documentation

const CSMDoc::Document& CSMWorld::TableMimeData::mDocument
private
QStringList CSMWorld::TableMimeData::mObjectsFormats
private
std::vector<UniversalId> CSMWorld::TableMimeData::mUniversalId
private

The documentation for this class was generated from the following files: