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

Method editUserEntry

Gui/KnobGuiFile.cpp:869–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867}
868
869bool
870KnobGuiPath::editUserEntry(QStringList& row)
871{
872 std::vector<std::string> filters;
873 SequenceFileDialog dialog(getGui(), filters, false, SequenceFileDialog::eFileDialogModeDir, row[1].toStdString(), getGui(), true );
874
875 if ( dialog.exec() ) {
876 std::string dirPath = dialog.selectedDirectory();
877 if ( !dirPath.empty() && (dirPath[dirPath.size() - 1] == '/') ) {
878 dirPath.erase(dirPath.size() - 1, 1);
879 }
880 QString path = QString::fromUtf8( dirPath.c_str() );
881 updateLastOpened(path);
882 row[1] = path;
883
884 return true;
885 }
886
887 return false;
888}
889
890void
891KnobGuiPath::entryRemoved(const QStringList& row)

Callers

nothing calls this directly

Calls 7

getGuiFunction · 0.85
toStdStringMethod · 0.80
selectedDirectoryMethod · 0.80
emptyMethod · 0.80
execMethod · 0.45
sizeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected