2014-02-01 18:06:41 +00:00
|
|
|
#include "tablemimedata.hpp"
|
2014-02-04 17:30:47 +00:00
|
|
|
#include <string>
|
2014-02-04 08:13:40 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
#include "universalid.hpp"
|
|
|
|
#include "columnbase.hpp"
|
|
|
|
|
2014-02-15 11:40:07 +00:00
|
|
|
CSMWorld::TableMimeData::TableMimeData (UniversalId id, const CSMDoc::Document& document) :
|
|
|
|
mDocument(document)
|
2014-02-04 08:13:40 +00:00
|
|
|
{
|
2014-02-13 09:21:49 +00:00
|
|
|
mUniversalId.push_back (id);
|
|
|
|
mObjectsFormats << QString::fromStdString ("tabledata/" + id.getTypeName());
|
2014-02-04 17:30:47 +00:00
|
|
|
}
|
|
|
|
|
2014-02-15 11:40:07 +00:00
|
|
|
CSMWorld::TableMimeData::TableMimeData (std::vector< CSMWorld::UniversalId >& id, const CSMDoc::Document& document) :
|
|
|
|
mUniversalId (id), mDocument(document)
|
2014-02-04 17:30:47 +00:00
|
|
|
{
|
2014-02-13 09:21:49 +00:00
|
|
|
for (std::vector<UniversalId>::iterator it (mUniversalId.begin()); it != mUniversalId.end(); ++it)
|
2014-02-04 17:30:47 +00:00
|
|
|
{
|
2014-02-13 09:21:49 +00:00
|
|
|
mObjectsFormats << QString::fromStdString ("tabledata/" + it->getTypeName());
|
2014-02-04 17:30:47 +00:00
|
|
|
}
|
2014-02-04 08:13:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QStringList CSMWorld::TableMimeData::formats() const
|
|
|
|
{
|
2014-02-04 17:30:47 +00:00
|
|
|
return mObjectsFormats;
|
2014-02-04 08:13:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CSMWorld::TableMimeData::~TableMimeData()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-02-04 17:30:47 +00:00
|
|
|
std::string CSMWorld::TableMimeData::getIcon() const
|
2014-02-04 08:13:40 +00:00
|
|
|
{
|
2014-02-04 17:30:47 +00:00
|
|
|
if (mUniversalId.empty())
|
|
|
|
{
|
2014-02-13 09:21:49 +00:00
|
|
|
throw ("TableMimeData holds no UniversalId");
|
2014-02-04 17:30:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
std::string tmpIcon;
|
|
|
|
bool firstIteration = true;
|
2014-02-13 09:21:49 +00:00
|
|
|
|
2014-02-04 17:30:47 +00:00
|
|
|
for (unsigned i = 0; i < mUniversalId.size(); ++i)
|
|
|
|
{
|
|
|
|
if (firstIteration)
|
|
|
|
{
|
|
|
|
firstIteration = false;
|
|
|
|
tmpIcon = mUniversalId[i].getIcon();
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (tmpIcon != mUniversalId[i].getIcon())
|
|
|
|
{
|
2014-02-13 18:14:17 +00:00
|
|
|
return ":/multitype.png"; //icon stolen from gnome
|
2014-02-04 17:30:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tmpIcon = mUniversalId[i].getIcon();
|
|
|
|
}
|
2014-02-13 09:21:49 +00:00
|
|
|
|
2014-02-04 17:30:47 +00:00
|
|
|
return mUniversalId.begin()->getIcon(); //All objects are of the same type;
|
|
|
|
}
|
2014-02-04 18:42:52 +00:00
|
|
|
|
|
|
|
std::vector< CSMWorld::UniversalId > CSMWorld::TableMimeData::getData() const
|
|
|
|
{
|
|
|
|
return mUniversalId;
|
2014-02-13 09:21:49 +00:00
|
|
|
}
|
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
bool CSMWorld::TableMimeData::holdsType (CSMWorld::UniversalId::Type type) const
|
|
|
|
{
|
|
|
|
for (std::vector<UniversalId>::const_iterator it = mUniversalId.begin(); it != mUniversalId.end(); ++it)
|
|
|
|
{
|
|
|
|
if (it->getType() == type)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2014-02-13 12:54:09 +00:00
|
|
|
bool CSMWorld::TableMimeData::holdsType (CSMWorld::ColumnBase::Display type) const
|
2014-02-13 09:21:49 +00:00
|
|
|
{
|
|
|
|
for (std::vector<UniversalId>::const_iterator it = mUniversalId.begin(); it != mUniversalId.end(); ++it)
|
|
|
|
{
|
|
|
|
if (it->getType() == convertEnums (type))
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CSMWorld::UniversalId CSMWorld::TableMimeData::returnMatching (CSMWorld::UniversalId::Type type) const
|
|
|
|
{
|
|
|
|
for (std::vector<UniversalId>::const_iterator it = mUniversalId.begin(); it != mUniversalId.end(); ++it)
|
|
|
|
{
|
|
|
|
if (it->getType() == type)
|
|
|
|
{
|
|
|
|
return *it;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
throw ("TableMimeData object does not hold object of the seeked type");
|
|
|
|
}
|
|
|
|
|
2014-02-13 12:54:09 +00:00
|
|
|
CSMWorld::UniversalId CSMWorld::TableMimeData::returnMatching (CSMWorld::ColumnBase::Display type) const
|
2014-02-13 09:21:49 +00:00
|
|
|
{
|
|
|
|
for (std::vector<UniversalId>::const_iterator it = mUniversalId.begin(); it != mUniversalId.end(); ++it)
|
|
|
|
{
|
|
|
|
if (it->getType() == convertEnums (type))
|
|
|
|
{
|
|
|
|
return *it;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
throw ("TableMimeData object does not hold object of the seeked type");
|
|
|
|
}
|
|
|
|
|
2014-02-15 11:40:07 +00:00
|
|
|
bool CSMWorld::TableMimeData::fromDocument (const CSMDoc::Document& document) const
|
|
|
|
{
|
|
|
|
return &document == &mDocument;
|
|
|
|
}
|
|
|
|
|
2014-02-19 10:22:47 +00:00
|
|
|
CSMWorld::UniversalId::Type CSMWorld::TableMimeData::convertEnums (CSMWorld::ColumnBase::Display type)
|
2014-02-13 09:21:49 +00:00
|
|
|
{
|
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case CSMWorld::ColumnBase::Display_Race:
|
|
|
|
return CSMWorld::UniversalId::Type_Race;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Skill:
|
|
|
|
return CSMWorld::UniversalId::Type_Skill;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Class:
|
|
|
|
return CSMWorld::UniversalId::Type_Class;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Faction:
|
|
|
|
return CSMWorld::UniversalId::Type_Faction;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Sound:
|
|
|
|
return CSMWorld::UniversalId::Type_Sound;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Region:
|
|
|
|
return CSMWorld::UniversalId::Type_Region;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Birthsign:
|
|
|
|
return CSMWorld::UniversalId::Type_Birthsign;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Spell:
|
|
|
|
return CSMWorld::UniversalId::Type_Spell;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Cell:
|
|
|
|
return CSMWorld::UniversalId::Type_Cell;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Referenceable:
|
|
|
|
return CSMWorld::UniversalId::Type_Referenceable;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Activator:
|
|
|
|
return CSMWorld::UniversalId::Type_Activator;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Potion:
|
|
|
|
return CSMWorld::UniversalId::Type_Potion;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Apparatus:
|
|
|
|
return CSMWorld::UniversalId::Type_Apparatus;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Armor:
|
|
|
|
return CSMWorld::UniversalId::Type_Armor;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Book:
|
|
|
|
return CSMWorld::UniversalId::Type_Book;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Clothing:
|
|
|
|
return CSMWorld::UniversalId::Type_Clothing;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Container:
|
|
|
|
return CSMWorld::UniversalId::Type_Container;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Creature:
|
|
|
|
return CSMWorld::UniversalId::Type_Creature;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Door:
|
|
|
|
return CSMWorld::UniversalId::Type_Door;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Ingredient:
|
|
|
|
return CSMWorld::UniversalId::Type_Ingredient;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_CreatureLevelledList:
|
|
|
|
return CSMWorld::UniversalId::Type_CreatureLevelledList;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_ItemLevelledList:
|
|
|
|
return CSMWorld::UniversalId::Type_ItemLevelledList;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Light:
|
|
|
|
return CSMWorld::UniversalId::Type_Light;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Lockpick:
|
|
|
|
return CSMWorld::UniversalId::Type_Lockpick;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Miscellaneous:
|
|
|
|
return CSMWorld::UniversalId::Type_Miscellaneous;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Npc:
|
|
|
|
return CSMWorld::UniversalId::Type_Npc;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Probe:
|
|
|
|
return CSMWorld::UniversalId::Type_Probe;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Repair:
|
|
|
|
return CSMWorld::UniversalId::Type_Repair;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Static:
|
|
|
|
return CSMWorld::UniversalId::Type_Static;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Weapon:
|
|
|
|
return CSMWorld::UniversalId::Type_Weapon;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Reference:
|
|
|
|
return CSMWorld::UniversalId::Type_Reference;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Filter:
|
|
|
|
return CSMWorld::UniversalId::Type_Filter;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Topic:
|
|
|
|
return CSMWorld::UniversalId::Type_Topic;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Journal:
|
|
|
|
return CSMWorld::UniversalId::Type_Journal;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_TopicInfo:
|
|
|
|
return CSMWorld::UniversalId::Type_TopicInfo;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_JournalInfo:
|
|
|
|
return CSMWorld::UniversalId::Type_JournalInfo;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Scene:
|
|
|
|
return CSMWorld::UniversalId::Type_Scene;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 12:54:09 +00:00
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Script:
|
|
|
|
return CSMWorld::UniversalId::Type_Script;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 12:54:09 +00:00
|
|
|
|
|
|
|
default:
|
|
|
|
return CSMWorld::UniversalId::Type_None;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-13 09:21:49 +00:00
|
|
|
}
|
|
|
|
}
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
CSMWorld::ColumnBase::Display CSMWorld::TableMimeData::convertEnums (CSMWorld::UniversalId::Type type)
|
|
|
|
{
|
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case CSMWorld::UniversalId::Type_Race:
|
|
|
|
return CSMWorld::ColumnBase::Display_Race;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Skill:
|
|
|
|
return CSMWorld::ColumnBase::Display_Skill;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Class:
|
|
|
|
return CSMWorld::ColumnBase::Display_Class;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Faction:
|
|
|
|
return CSMWorld::ColumnBase::Display_Faction;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Sound:
|
|
|
|
return CSMWorld::ColumnBase::Display_Sound;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Region:
|
|
|
|
return CSMWorld::ColumnBase::Display_Region;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Birthsign:
|
|
|
|
return CSMWorld::ColumnBase::Display_Birthsign;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Spell:
|
|
|
|
return CSMWorld::ColumnBase::Display_Spell;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Cell:
|
|
|
|
return CSMWorld::ColumnBase::Display_Cell;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Referenceable:
|
|
|
|
return CSMWorld::ColumnBase::Display_Referenceable;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Activator:
|
|
|
|
return CSMWorld::ColumnBase::Display_Activator;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Potion:
|
|
|
|
return CSMWorld::ColumnBase::Display_Potion;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Apparatus:
|
|
|
|
return CSMWorld::ColumnBase::Display_Apparatus;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Armor:
|
|
|
|
return CSMWorld::ColumnBase::Display_Armor;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Book:
|
|
|
|
return CSMWorld::ColumnBase::Display_Book;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Clothing:
|
|
|
|
return CSMWorld::ColumnBase::Display_Clothing;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Container:
|
|
|
|
return CSMWorld::ColumnBase::Display_Container;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Creature:
|
|
|
|
return CSMWorld::ColumnBase::Display_Creature;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Door:
|
|
|
|
return CSMWorld::ColumnBase::Display_Door;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Ingredient:
|
|
|
|
return CSMWorld::ColumnBase::Display_Ingredient;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_CreatureLevelledList:
|
|
|
|
return CSMWorld::ColumnBase::Display_CreatureLevelledList;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_ItemLevelledList:
|
|
|
|
return CSMWorld::ColumnBase::Display_ItemLevelledList;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Light:
|
|
|
|
return CSMWorld::ColumnBase::Display_Light;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Lockpick:
|
|
|
|
return CSMWorld::ColumnBase::Display_Lockpick;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Miscellaneous:
|
|
|
|
return CSMWorld::ColumnBase::Display_Miscellaneous;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Npc:
|
|
|
|
return CSMWorld::ColumnBase::Display_Npc;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Probe:
|
|
|
|
return CSMWorld::ColumnBase::Display_Probe;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Repair:
|
|
|
|
return CSMWorld::ColumnBase::Display_Repair;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Static:
|
|
|
|
return CSMWorld::ColumnBase::Display_Static;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Weapon:
|
|
|
|
return CSMWorld::ColumnBase::Display_Weapon;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Reference:
|
|
|
|
return CSMWorld::ColumnBase::Display_Reference;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Filter:
|
|
|
|
return CSMWorld::ColumnBase::Display_Filter;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Topic:
|
|
|
|
return CSMWorld::ColumnBase::Display_Topic;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Journal:
|
|
|
|
return CSMWorld::ColumnBase::Display_Journal;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_TopicInfo:
|
|
|
|
return CSMWorld::ColumnBase::Display_TopicInfo;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_JournalInfo:
|
|
|
|
return CSMWorld::ColumnBase::Display_JournalInfo;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Scene:
|
|
|
|
return CSMWorld::ColumnBase::Display_Scene;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Script:
|
|
|
|
return CSMWorld::ColumnBase::Display_Script;
|
2014-02-20 13:10:03 +00:00
|
|
|
|
2014-02-19 15:15:51 +00:00
|
|
|
|
|
|
|
default:
|
2014-02-20 18:27:51 +00:00
|
|
|
return CSMWorld::ColumnBase::Display_None;
|
2014-02-19 15:15:51 +00:00
|
|
|
}
|
|
|
|
}
|