2013-07-08 13:12:50 +02:00
|
|
|
#include "regionmapsubview.hpp"
|
|
|
|
|
2022-10-19 19:02:00 +02:00
|
|
|
#include <apps/opencs/view/doc/subview.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
|
|
|
|
2022-08-22 23:28:58 -03:00
|
|
|
connect(mRegionMap, &RegionMap::editRequest, this, &RegionMapSubView::editRequest);
|
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
|
|
|
}
|