| 876 | } |
| 877 | |
| 878 | bool |
| 879 | SequenceFileDialog::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 | |
| 900 | Qt::SortOrder |
| 901 | SequenceFileDialog::sortIndicatorOrder() const |
nothing calls this directly
no test coverage detected