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

Method save

Tools/LayoutEditor/EditorState.cpp:328–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326 }
327
328 bool EditorState::save()
329 {
330 if (EditorWidgets::getInstance().save(mFileName))
331 {
332 if (mFileName != mDefaultFileName && !isProjectFile(mFileName))
333 RecentFilesManager::getInstance().addRecentFile(mFileName);
334
335 UndoManager::getInstance().addValue();
336 UndoManager::getInstance().setUnsaved(false);
337 return true;
338 }
339
340 /*MyGUI::Message* message = */ MessageBoxManager::getInstance().create(
341 replaceTags("Error"),
342 replaceTags("MessageFailedSaveFile"),
343 MyGUI::MessageBoxStyle::IconError | MyGUI::MessageBoxStyle::Ok);
344
345 return false;
346 }
347
348 void EditorState::updateCaption()
349 {

Callers 4

deleteItemFromProjectMethod · 0.45
renameItemInProjectMethod · 0.45
createProjectMethod · 0.45
addItemToProjectMethod · 0.45

Calls 5

replaceTagsFunction · 0.85
addValueMethod · 0.80
setUnsavedMethod · 0.80
addRecentFileMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected