MCPcopy Create free account
hub / github.com/audacity/audacity / openProject

Method openProject

au4/src/project/internal/projectactionscontroller.cpp:70–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70Ret ProjectActionsController::openProject(const ProjectFile& file)
71{
72 LOGI() << "Try open project: url = " << file.url.toString() << ", displayNameOverride = " << file.displayNameOverride;
73
74 if (file.isNull()) {
75 muse::io::path_t askedPath = selectOpeningFile();
76
77 if (askedPath.empty()) {
78 return make_ret(Ret::Code::Cancel);
79 }
80
81 return openProject(askedPath);
82 }
83
84 if (file.url.isLocalFile()) {
85 return openProject(file.path(), file.displayNameOverride);
86 }
87
88 // if (file.url.scheme() == AUDACITY_URL_SCHEME) {
89 // return openMuseScoreUrl(file.url);
90 // }
91
92 return make_ret(Err::UnsupportedUrl);
93}
94
95void ProjectActionsController::newProject()
96{

Callers

nothing calls this directly

Calls 10

QStringClass · 0.85
ProjectFileClass · 0.85
isNullMethod · 0.80
make_retFunction · 0.50
QUrlClass · 0.50
toStringMethod · 0.45
emptyMethod · 0.45
pathMethod · 0.45
currentProjectMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected