MCPcopy Create free account
hub / github.com/MyGUI/mygui / notifyEndDialog

Method notifyEndDialog

Tools/SkinEditor/EditorState.cpp:293–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291 }
292
293 void EditorState::notifyEndDialog(Dialog* _sender, bool _result)
294 {
295 if (_result)
296 {
297 if (mOpenSaveFileDialog->getMode() == "SaveAs")
298 {
299 RecentFilesManager::getInstance().setRecentFolder(mOpenSaveFileDialog->getCurrentFolder());
300 mFileName = common::concatenatePath(
301 mOpenSaveFileDialog->getCurrentFolder(),
302 mOpenSaveFileDialog->getFileName());
303 addUserTag("CurrentFileName", mFileName);
304
305 save();
306 updateCaption();
307 }
308 else if (mOpenSaveFileDialog->getMode() == "Load")
309 {
310 RecentFilesManager::getInstance().setRecentFolder(mOpenSaveFileDialog->getCurrentFolder());
311 mFileName = common::concatenatePath(
312 mOpenSaveFileDialog->getCurrentFolder(),
313 mOpenSaveFileDialog->getFileName());
314 addUserTag("CurrentFileName", mFileName);
315
316 load();
317 updateCaption();
318 }
319 }
320
321 mOpenSaveFileDialog->endModal();
322 }
323
324 void EditorState::notifyMessageBoxResultClear(MyGUI::Message* _sender, MyGUI::MessageBoxStyle _result)
325 {

Callers

nothing calls this directly

Calls 4

concatenatePathFunction · 0.85
addUserTagFunction · 0.85
setRecentFolderMethod · 0.45
endModalMethod · 0.45

Tested by

no test coverage detected