| 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 | { |
nothing calls this directly
no test coverage detected