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

Method command_ProjectLoad

Tools/LayoutEditor/ProjectControl.cpp:144–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 6

replaceTagsFunction · 0.85
setCurrentFolderMethod · 0.45
setRecentFoldersMethod · 0.45
setDialogInfoMethod · 0.45
setModeMethod · 0.45
doModalMethod · 0.45

Tested by

no test coverage detected