| 68 | #include "Global/QtCompat.h" |
| 69 | |
| 70 | NATRON_NAMESPACE_ENTER |
| 71 | void |
| 72 | NodeGraph::togglePreviewsForSelectedNodes() |
| 73 | { |
| 74 | bool empty = false; |
| 75 | { |
| 76 | QMutexLocker l(&_imp->_nodesMutex); |
| 77 | empty = _imp->_selection.empty(); |
| 78 | for (NodesGuiList::iterator it = _imp->_selection.begin(); |
| 79 | it != _imp->_selection.end(); |
| 80 | ++it) { |
| 81 | (*it)->togglePreview(); |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | if (empty) { |
| 86 | Dialogs::warningDialog( tr("Toggle Preview").toStdString(), tr("You must select a node first").toStdString() ); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | void |
| 91 | NodeGraph::showSelectedNodeSettingsPanel() |
nothing calls this directly
no test coverage detected