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

Method filesToSave

Gui/SequenceFileDialog.cpp:1813–1838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1811}
1812
1813std::string
1814SequenceFileDialog::filesToSave()
1815{
1816 assert(_dialogMode == eFileDialogModeSave);
1817 QString text = _selectionLineEdit->text();
1818 ///Find last dot position and remove everything after the extension which we might added on the line edit
1819 int lastDotPos = text.lastIndexOf( QLatin1Char('.') );
1820 QString ret;
1821 if (lastDotPos != -1) {
1822 int i = lastDotPos + 1;
1823 while ( i < text.size() && text.at(i) != QLatin1Char(' ') ) {
1824 ++i;
1825 }
1826 ret = text.mid(0, i);
1827 } else {
1828 ret = text;
1829 }
1830
1831#ifdef __NATRON_WIN32__
1832 if (appPTR->getCurrentSettings()->isDriveLetterToUNCPathConversionEnabled()) {
1833 ret = FileSystemModel::mapPathWithDriveLetterToPathWithNetworkShareName(ret);
1834 }
1835#endif
1836
1837 return ret.toStdString();
1838}
1839
1840QDir
1841SequenceFileDialog::currentDirectory() const

Callers 6

popSaveFileDialogMethod · 0.80
exportLayoutMethod · 0.80
open_fileMethod · 0.80
open_fileMethod · 0.80
saveFilenameDialogMethod · 0.80
saveSequenceDialogMethod · 0.80

Calls 5

atMethod · 0.80
getCurrentSettingsMethod · 0.80
toStdStringMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected