2013-07-08 13:12:50 +02:00
|
|
|
#include "regionmapsubview.hpp"
|
|
|
|
|
2014-04-10 22:12:09 +02:00
|
|
|
#include "regionmap.hpp"
|
2013-07-08 13:12:50 +02:00
|
|
|
|
|
|
|
CSVWorld::RegionMapSubView::RegionMapSubView (CSMWorld::UniversalId universalId,
|
|
|
|
CSMDoc::Document& document)
|
|
|
|
: CSVDoc::SubView (universalId)
|
|
|
|
{
|
2014-04-13 14:17:18 +02:00
|
|
|
mRegionMap = new RegionMap (universalId, document, this);
|
2013-07-08 13:12:50 +02:00
|
|
|
|
2014-04-10 22:12:09 +02:00
|
|
|
setWidget (mRegionMap);
|
2014-04-13 15:46:31 +02:00
|
|
|
|
|
|
|
connect (mRegionMap, SIGNAL (editRequest (const CSMWorld::UniversalId&, const std::string&)),
|
|
|
|
this, SLOT (editRequest (const CSMWorld::UniversalId&, const std::string&)));
|
2013-07-08 13:12:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CSVWorld::RegionMapSubView::setEditLock (bool locked)
|
|
|
|
{
|
2014-04-10 22:12:09 +02:00
|
|
|
mRegionMap->setEditLock (locked);
|
2014-04-13 15:46:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CSVWorld::RegionMapSubView::editRequest (const CSMWorld::UniversalId& id,
|
|
|
|
const std::string& hint)
|
|
|
|
{
|
|
|
|
focusId (id, hint);
|
2015-03-11 10:54:45 -04:00
|
|
|
}
|