| 3031 | } |
| 3032 | |
| 3033 | void 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 | |
| 3049 | void MapEditorController::selectNothing() |
| 3050 | { |
nothing calls this directly
no test coverage detected