| 1797 | } |
| 1798 | |
| 1799 | std::string |
| 1800 | SequenceFileDialog::filesToSave() |
| 1801 | { |
| 1802 | assert(_dialogMode == eFileDialogModeSave); |
| 1803 | QString text = _selectionLineEdit->text(); |
| 1804 | ///Find last dot position and remove everything after the extension which we might added on the line edit |
| 1805 | int lastDotPos = text.lastIndexOf( QLatin1Char('.') ); |
| 1806 | QString ret; |
| 1807 | if (lastDotPos != -1) { |
| 1808 | int i = lastDotPos + 1; |
| 1809 | while ( i < text.size() && text.at(i) != QLatin1Char(' ') ) { |
| 1810 | ++i; |
| 1811 | } |
| 1812 | ret = text.mid(0, i); |
| 1813 | } else { |
| 1814 | ret = text; |
| 1815 | } |
| 1816 | |
| 1817 | #ifdef __NATRON_WIN32__ |
| 1818 | if (appPTR->getCurrentSettings()->isDriveLetterToUNCPathConversionEnabled()) { |
| 1819 | ret = FileSystemModel::mapPathWithDriveLetterToPathWithNetworkShareName(ret); |
| 1820 | } |
| 1821 | #endif |
| 1822 | |
| 1823 | return ret.toStdString(); |
| 1824 | } |
| 1825 | |
| 1826 | QDir |
| 1827 | SequenceFileDialog::currentDirectory() const |
no test coverage detected