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

Method selectAll

src/gui/map/map_editor.cpp:3033–3047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3031}
3032
3033void MapEditorController::selectAll()
3034{
3035 auto num_selected_objects = map->getNumSelectedObjects();
3036 map->clearObjectSelection(false);
3037 map->getCurrentPart()->applyOnAllObjects([this](Object* object) {
3038 map->addObjectToSelection(object, false);
3039 });
3040
3041 if (map->getNumSelectedObjects() != num_selected_objects)
3042 {
3043 map->emitSelectionChanged();
3044 if (current_tool && current_tool->isDrawTool())
3045 setEditTool();
3046 }
3047}
3048
3049void MapEditorController::selectNothing()
3050{

Callers

nothing calls this directly

Calls 7

getNumSelectedObjectsMethod · 0.80
clearObjectSelectionMethod · 0.80
getCurrentPartMethod · 0.80
addObjectToSelectionMethod · 0.80
emitSelectionChangedMethod · 0.80
isDrawToolMethod · 0.80
applyOnAllObjectsMethod · 0.45

Tested by

no test coverage detected