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

Method popSaveFileDialog

Gui/Gui20.cpp:1415–1434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1413}
1414
1415std::string
1416Gui::popSaveFileDialog(bool sequenceDialog,
1417 const std::vector<std::string> & initialfilters,
1418 const std::string & initialDir,
1419 bool allowRelativePaths)
1420{
1421 SequenceFileDialog dialog(this, initialfilters, sequenceDialog, SequenceFileDialog::eFileDialogModeSave, initialDir, this, allowRelativePaths);
1422
1423 if ( dialog.exec() ) {
1424 if (sequenceDialog) {
1425 _imp->_lastSaveSequenceOpenedDir = dialog.currentDirectory().absolutePath();
1426 } else {
1427 _imp->_lastSaveProjectOpenedDir = dialog.currentDirectory().absolutePath();
1428 }
1429
1430 return dialog.filesToSave();
1431 } else {
1432 return "";
1433 }
1434}
1435
1436void
1437Gui::autoSave()

Callers 1

Calls 4

absolutePathMethod · 0.80
currentDirectoryMethod · 0.80
filesToSaveMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected