| 3007 | } |
| 3008 | |
| 3009 | void MapEditorController::deselectObjectsClicked() |
| 3010 | { |
| 3011 | bool selection_changed = false; |
| 3012 | |
| 3013 | MapPart* part = map->getCurrentPart(); |
| 3014 | for (int i = 0, size = part->getNumObjects(); i < size; ++i) |
| 3015 | { |
| 3016 | Object* object = part->getObject(i); |
| 3017 | if (symbol_widget->isSymbolSelected(object->getSymbol()) && map->isObjectSelected(object)) |
| 3018 | { |
| 3019 | map->removeObjectFromSelection(object, false); |
| 3020 | selection_changed = true; |
| 3021 | } |
| 3022 | } |
| 3023 | |
| 3024 | if (selection_changed) |
| 3025 | { |
| 3026 | map->emitSelectionChanged(); |
| 3027 | |
| 3028 | if (current_tool && current_tool->isDrawTool()) |
| 3029 | setEditTool(); |
| 3030 | } |
| 3031 | } |
| 3032 | |
| 3033 | void MapEditorController::selectAll() |
| 3034 | { |
nothing calls this directly
no test coverage detected