| 84 | |
| 85 | |
| 86 | struct LinksWidget : ModuleWidget { |
| 87 | LinksWidget(Links* module) { |
| 88 | setModule(module); |
| 89 | setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Links.svg"))); |
| 90 | |
| 91 | addChild(createWidget<ScrewSilver>(Vec(15, 0))); |
| 92 | addChild(createWidget<ScrewSilver>(Vec(15, 365))); |
| 93 | |
| 94 | addInput(createInput<PJ301MPort>(Vec(4, 75), module, Links::A1_INPUT)); |
| 95 | addOutput(createOutput<PJ301MPort>(Vec(31, 75), module, Links::A1_OUTPUT)); |
| 96 | addOutput(createOutput<PJ301MPort>(Vec(4, 113), module, Links::A2_OUTPUT)); |
| 97 | addOutput(createOutput<PJ301MPort>(Vec(31, 113), module, Links::A3_OUTPUT)); |
| 98 | |
| 99 | addInput(createInput<PJ301MPort>(Vec(4, 177), module, Links::B1_INPUT)); |
| 100 | addInput(createInput<PJ301MPort>(Vec(31, 177), module, Links::B2_INPUT)); |
| 101 | addOutput(createOutput<PJ301MPort>(Vec(4, 214), module, Links::B1_OUTPUT)); |
| 102 | addOutput(createOutput<PJ301MPort>(Vec(31, 214), module, Links::B2_OUTPUT)); |
| 103 | |
| 104 | addInput(createInput<PJ301MPort>(Vec(4, 278), module, Links::C1_INPUT)); |
| 105 | addInput(createInput<PJ301MPort>(Vec(31, 278), module, Links::C2_INPUT)); |
| 106 | addInput(createInput<PJ301MPort>(Vec(4, 316), module, Links::C3_INPUT)); |
| 107 | addOutput(createOutput<PJ301MPort>(Vec(31, 316), module, Links::C1_OUTPUT)); |
| 108 | |
| 109 | addChild(createLight<SmallLight<GreenRedLight>>(Vec(26, 59), module, Links::A_LIGHT)); |
| 110 | addChild(createLight<SmallLight<GreenRedLight>>(Vec(26, 161), module, Links::B_LIGHT)); |
| 111 | addChild(createLight<SmallLight<GreenRedLight>>(Vec(26, 262), module, Links::C_LIGHT)); |
| 112 | } |
| 113 | }; |
| 114 | |
| 115 | |
| 116 | Model* modelLinks = createModel<Links, LinksWidget>("Links"); |
nothing calls this directly
no outgoing calls
no test coverage detected