MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / getRelativeChoiceProjectPath

Method getRelativeChoiceProjectPath

Gui/SequenceFileDialog.cpp:878–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876}
877
878bool
879SequenceFileDialog::getRelativeChoiceProjectPath(std::string& varName,
880 std::string& varValue) const
881{
882 int choice = _relativeChoice->activeIndex();
883
884 if (choice == 0) {
885 return false; //< absolute
886 } else {
887 --choice; //we skip the absolute choice
888 std::map<std::string, std::string> projectPaths;
889 _gui->getApp()->getProject()->getEnvironmentVariables(projectPaths);
890 std::map<std::string, std::string>::iterator it = projectPaths.begin();
891 assert( choice < (int)projectPaths.size() );
892 std::advance(it, choice);
893 varName = it->first;
894 varValue = it->second;
895
896 return true;
897 }
898}
899
900Qt::SortOrder
901SequenceFileDialog::sortIndicatorOrder() const

Callers

nothing calls this directly

Calls 6

getProjectMethod · 0.80
activeIndexMethod · 0.45
getAppMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected