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

Method onSettingsPanelClosed

Gui/MultiInstancePanel.cpp:1087–1112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1085}
1086
1087void
1088MultiInstancePanel::onSettingsPanelClosed(bool closed)
1089{
1090 std::list<Node*> selection;
1091
1092 getSelectedInstances(&selection);
1093
1094 std::list<Node*>::iterator next = selection.begin();
1095 if ( next != selection.end() ) {
1096 ++next;
1097 }
1098 for (std::list<Node*>::iterator it = selection.begin();
1099 it != selection.end();
1100 ++it) {
1101 if (closed) {
1102 (*it)->hideKeyframesFromTimeline( next == selection.end() );
1103 } else {
1104 (*it)->showKeyframesOnTimeline( next == selection.end() );
1105 }
1106
1107 // increment for next iteration
1108 if ( next != selection.end() ) {
1109 ++next;
1110 }
1111 } // for(it)
1112}
1113
1114void
1115MultiInstancePanel::onSelectionChanged(const QItemSelection & newSelection,

Callers

nothing calls this directly

Calls 4

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected