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

Method command_ProjectCreate

Tools/LayoutEditor/ProjectControl.cpp:130–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 void ProjectControl::command_ProjectCreate(const MyGUI::UString& _commandName, bool& _result)
131 {
132 if (!checkCommand())
133 return;
134
135 mOpenSaveFileDialog->setCurrentFolder(RecentFilesManager::getInstance().getRecentFolder());
136 mOpenSaveFileDialog->setRecentFolders(RecentFilesManager::getInstance().getRecentFolders());
137 mOpenSaveFileDialog->setDialogInfo(replaceTags("CaptionCreateFile"), replaceTags("ButtonCreateFile"));
138 mOpenSaveFileDialog->setMode("Create");
139 mOpenSaveFileDialog->doModal();
140
141 _result = true;
142 }
143
144 void ProjectControl::command_ProjectLoad(const MyGUI::UString& _commandName, bool& _result)
145 {

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