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

Method filesToSave

Gui/SequenceFileDialog.cpp:1799–1824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1797}
1798
1799std::string
1800SequenceFileDialog::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
1826QDir
1827SequenceFileDialog::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