|
|
|
@ -64,6 +64,7 @@ std::vector< CSMWorld::UniversalId > CSMWorld::TableMimeData::getData() const
|
|
|
|
|
return mUniversalId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool CSMWorld::TableMimeData::holdsType (CSMWorld::UniversalId::Type type) const
|
|
|
|
|
{
|
|
|
|
|
for (std::vector<UniversalId>::const_iterator it = mUniversalId.begin(); it != mUniversalId.end(); ++it)
|
|
|
|
@ -282,4 +283,165 @@ CSMWorld::UniversalId::Type CSMWorld::TableMimeData::convertEnums (CSMWorld::Col
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// kate: indent-mode cstyle; indent-width 4; replace-tabs on;
|
|
|
|
|
|
|
|
|
|
CSMWorld::ColumnBase::Display CSMWorld::TableMimeData::convertEnums (CSMWorld::UniversalId::Type type)
|
|
|
|
|
{
|
|
|
|
|
switch (type)
|
|
|
|
|
{
|
|
|
|
|
case CSMWorld::UniversalId::Type_Race:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Race;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Skill:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Skill;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Class:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Class;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Faction:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Faction;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Sound:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Sound;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Region:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Region;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Birthsign:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Birthsign;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Spell:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Spell;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Cell:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Cell;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Referenceable:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Referenceable;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Activator:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Activator;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Potion:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Potion;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Apparatus:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Apparatus;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Armor:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Armor;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Book:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Book;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Clothing:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Clothing;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Container:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Container;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Creature:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Creature;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Door:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Door;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Ingredient:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Ingredient;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_CreatureLevelledList:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_CreatureLevelledList;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_ItemLevelledList:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_ItemLevelledList;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Light:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Light;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Lockpick:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Lockpick;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Miscellaneous:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Miscellaneous;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Npc:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Npc;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Probe:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Probe;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Repair:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Repair;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Static:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Static;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Weapon:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Weapon;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Reference:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Reference;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Filter:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Filter;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Topic:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Topic;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Journal:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Journal;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_TopicInfo:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_TopicInfo;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_JournalInfo:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_JournalInfo;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Scene:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Scene;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case CSMWorld::UniversalId::Type_Script:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_Script;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
return CSMWorld::ColumnBase::Display_String;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|