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

Method togglePreviewsForSelectedNodes

Gui/NodeGraph40.cpp:70–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68#include "Global/QtCompat.h"
69
70NATRON_NAMESPACE_ENTER
71void
72NodeGraph::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
90void
91NodeGraph::showSelectedNodeSettingsPanel()

Callers

nothing calls this directly

Calls 5

emptyMethod · 0.80
togglePreviewMethod · 0.80
toStdStringMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected