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

Method createProject

Tools/LayoutEditor/ProjectControl.cpp:561–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559 }
560
561 void ProjectControl::createProject(const MyGUI::UString& _filePath, const MyGUI::UString& _fileName)
562 {
563 clear();
564
565 RecentFilesManager::getInstance().setRecentFolder(_filePath);
566 setFileName(_filePath, _fileName);
567
568 MyGUI::xml::Document doc;
569 doc.createDeclaration();
570 MyGUI::xml::Element* root = doc.createRoot("MyGUI");
571 root->addAttribute("type", "Resource");
572
573 MyGUI::UString fileName = common::concatenatePath(mProjectPath, mProjectName);
574 doc.save(fileName);
575
576 RecentFilesManager::getInstance().addRecentProject(fileName);
577
578 updateCaption();
579 }
580
581 void ProjectControl::notifyListSelectAccept(MyGUI::ListBox* _sender, size_t _index)
582 {

Callers

nothing calls this directly

Calls 8

clearFunction · 0.85
concatenatePathFunction · 0.85
createDeclarationMethod · 0.80
createRootMethod · 0.80
addAttributeMethod · 0.80
addRecentProjectMethod · 0.80
setRecentFolderMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected