| 1185 | } |
| 1186 | |
| 1187 | void Map::exportMap(const cmd::ArgumentList& args) |
| 1188 | { |
| 1189 | auto fileInfo = MapFileManager::getMapFileSelection(false, _("Export Map"), filetype::TYPE_MAP_EXPORT); |
| 1190 | |
| 1191 | if (!fileInfo.fullPath.empty()) |
| 1192 | { |
| 1193 | if (!fileInfo.mapFormat) |
| 1194 | { |
| 1195 | fileInfo.mapFormat = getMapFormatForFilenameSafe(fileInfo.fullPath); |
| 1196 | } |
| 1197 | |
| 1198 | emitMapEvent(MapSaving); |
| 1199 | |
| 1200 | MapResource::saveFile(*fileInfo.mapFormat, |
| 1201 | GlobalSceneGraph().root(), |
| 1202 | scene::traverse, |
| 1203 | fileInfo.fullPath); |
| 1204 | |
| 1205 | emitMapEvent(MapSaved); |
| 1206 | } |
| 1207 | } |
| 1208 | |
| 1209 | void Map::exportSelection(const cmd::ArgumentList& args) |
| 1210 | { |
no test coverage detected