MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / changeMapPart

Method changeMapPart

src/gui/map/map_editor.cpp:3907–3914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3905}
3906
3907void MapEditorController::changeMapPart(int index)
3908{
3909 if (index >= 0)
3910 {
3911 map->setCurrentPartIndex(std::size_t(index));
3912 window->showStatusBarMessage(tr("Switched to map part '%1'.").arg(map->getCurrentPart()->getName()), 1000);
3913 }
3914}
3915
3916void MapEditorController::reassignObjectsToMapPart(int target)
3917{

Callers

nothing calls this directly

Calls 3

setCurrentPartIndexMethod · 0.80
showStatusBarMessageMethod · 0.80
getCurrentPartMethod · 0.80

Tested by

no test coverage detected