| 888 | } |
| 889 | |
| 890 | bool |
| 891 | SequenceFileDialog::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 | |
| 912 | Qt::SortOrder |
| 913 | SequenceFileDialog::sortIndicatorOrder() const |
nothing calls this directly
no test coverage detected