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

Method getRelativeChoiceProjectPath

Gui/SequenceFileDialog.cpp:890–910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888}
889
890bool
891SequenceFileDialog::getRelativeChoiceProjectPath(std::string& varName,
892 std::string& varValue) const
893{
894 int choice = _relativeChoice->activeIndex();
895
896 if (choice == 0) {
897 return false; //< absolute
898 } else {
899 --choice; //we skip the absolute choice
900 std::map<std::string, std::string> projectPaths;
901 _gui->getApp()->getProject()->getEnvironmentVariables(projectPaths);
902 std::map<std::string, std::string>::iterator it = projectPaths.begin();
903 assert( choice < (int)projectPaths.size() );
904 std::advance(it, choice);
905 varName = it->first;
906 varValue = it->second;
907
908 return true;
909 }
910}
911
912Qt::SortOrder
913SequenceFileDialog::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