| 21 | } |
| 22 | |
| 23 | MapFileSelection MapFileManager::getMapFileSelection(bool open, |
| 24 | const std::string& title, |
| 25 | const std::string& type, |
| 26 | const std::string& defaultFile) |
| 27 | { |
| 28 | auto mode = open ? |
| 29 | radiant::FileSelectionRequest::Mode::Open : |
| 30 | radiant::FileSelectionRequest::Mode::Save; |
| 31 | |
| 32 | radiant::FileSelectionRequest request(mode, title, type, defaultFile); |
| 33 | GlobalRadiantCore().getMessageBus().sendMessage(request); |
| 34 | |
| 35 | MapFileSelection result; |
| 36 | |
| 37 | result.fullPath = request.getResult().fullPath; |
| 38 | result.mapFormatName = request.getResult().mapFormatName; |
| 39 | result.mapFormat = GlobalMapFormatManager().getMapFormatByName(request.getResult().mapFormatName); |
| 40 | |
| 41 | return result; |
| 42 | } |
| 43 | |
| 44 | } // namespace map |
nothing calls this directly
no test coverage detected