| 142 | } |
| 143 | |
| 144 | void ProjectControl::command_ProjectLoad(const MyGUI::UString& _commandName, bool& _result) |
| 145 | { |
| 146 | if (!checkCommand()) |
| 147 | return; |
| 148 | |
| 149 | mOpenSaveFileDialog->setCurrentFolder(RecentFilesManager::getInstance().getRecentFolder()); |
| 150 | mOpenSaveFileDialog->setRecentFolders(RecentFilesManager::getInstance().getRecentFolders()); |
| 151 | mOpenSaveFileDialog->setDialogInfo(replaceTags("CaptionOpenFile"), replaceTags("ButtonOpenFile")); |
| 152 | mOpenSaveFileDialog->setMode("Load"); |
| 153 | mOpenSaveFileDialog->doModal(); |
| 154 | |
| 155 | _result = true; |
| 156 | } |
| 157 | |
| 158 | void ProjectControl::command_ProjectClose(const MyGUI::UString& _commandName, bool& _result) |
| 159 | { |
nothing calls this directly
no test coverage detected