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