| 1104 | } |
| 1105 | |
| 1106 | void |
| 1107 | ViewerTab::connectToInput(int inputNb, |
| 1108 | bool isASide) |
| 1109 | { |
| 1110 | InspectorNode* node = dynamic_cast<InspectorNode*>( getInternalNode()->getNode().get() ); |
| 1111 | |
| 1112 | assert(node); |
| 1113 | if (!node) { |
| 1114 | return; |
| 1115 | } |
| 1116 | bool isAutoWipeEnabled = appPTR->getCurrentSettings()->isAutoWipeEnabled(); |
| 1117 | if (isAutoWipeEnabled) { |
| 1118 | getInternalNode()->setActivateInputChangeRequestedFromViewer(true); |
| 1119 | } |
| 1120 | node->setActiveInputAndRefresh(inputNb, isASide); |
| 1121 | if (isAutoWipeEnabled) { |
| 1122 | getInternalNode()->setActivateInputChangeRequestedFromViewer(false); |
| 1123 | } |
| 1124 | } |
| 1125 | |
| 1126 | void |
| 1127 | ViewerTab::connectToAInput(int inputNb) |
nothing calls this directly
no test coverage detected