| 3053 | } |
| 3054 | |
| 3055 | void MapEditorController::invertSelection() |
| 3056 | { |
| 3057 | auto selection = Map::ObjectSelection{ map->selectedObjects() }; |
| 3058 | map->clearObjectSelection(false); |
| 3059 | map->getCurrentPart()->applyOnAllObjects([this, &selection](Object* object) { |
| 3060 | if (selection.find(object) == end(selection)) |
| 3061 | map->addObjectToSelection(object, false); |
| 3062 | }); |
| 3063 | |
| 3064 | if (map->getCurrentPart()->getNumObjects() > 0) |
| 3065 | { |
| 3066 | map->emitSelectionChanged(); |
| 3067 | if (current_tool && current_tool->isDrawTool()) |
| 3068 | setEditTool(); |
| 3069 | } |
| 3070 | } |
| 3071 | |
| 3072 | void MapEditorController::selectByCurrentSymbols() |
| 3073 | { |
nothing calls this directly
no test coverage detected