| 1373 | } |
| 1374 | |
| 1375 | std::string |
| 1376 | Gui::popOpenFileDialog(bool sequenceDialog, |
| 1377 | const std::vector<std::string> & initialfilters, |
| 1378 | const std::string & initialDir, |
| 1379 | bool allowRelativePaths) |
| 1380 | { |
| 1381 | SequenceFileDialog dialog(this, initialfilters, sequenceDialog, SequenceFileDialog::eFileDialogModeOpen, initialDir, this, allowRelativePaths); |
| 1382 | |
| 1383 | if ( dialog.exec() ) { |
| 1384 | if (sequenceDialog) { |
| 1385 | _imp->_lastLoadSequenceOpenedDir = dialog.currentDirectory().absolutePath(); |
| 1386 | } else { |
| 1387 | _imp->_lastLoadProjectOpenedDir = dialog.currentDirectory().absolutePath(); |
| 1388 | } |
| 1389 | return dialog.selectedFiles(); |
| 1390 | } else { |
| 1391 | return std::string(); |
| 1392 | } |
| 1393 | } |
| 1394 | |
| 1395 | std::string |
| 1396 | Gui::openImageSequenceDialog() |
no test coverage detected