| 822 | } |
| 823 | |
| 824 | void |
| 825 | KnobGuiPath::onOpenFileButtonClicked() |
| 826 | { |
| 827 | std::vector<std::string> filters; |
| 828 | SequenceFileDialog dialog( _mainContainer, filters, false, SequenceFileDialog::eFileDialogModeDir, _lastOpened.toStdString(), getGui(), true ); |
| 829 | |
| 830 | if ( dialog.exec() ) { |
| 831 | std::string dirPath = dialog.selectedDirectory(); |
| 832 | updateLastOpened( QString::fromUtf8( dirPath.c_str() ) ); |
| 833 | |
| 834 | KnobPathPtr knob = _knob.lock(); |
| 835 | if (!knob) { |
| 836 | return; |
| 837 | } |
| 838 | std::string oldValue = knob->getValue(); |
| 839 | |
| 840 | pushUndoCommand( new KnobUndoCommand<std::string>( shared_from_this(), oldValue, dirPath ) ); |
| 841 | } |
| 842 | } |
| 843 | |
| 844 | bool |
| 845 | KnobGuiPath::addNewUserEntry(QStringList& row) |
nothing calls this directly
no test coverage detected