diff --git a/src/app/Port.cpp b/src/app/Port.cpp index 8c0b80c6..df5a32b7 100644 --- a/src/app/Port.cpp +++ b/src/app/Port.cpp @@ -28,6 +28,8 @@ void Port::onMouseDownOpaque(int button) { } void Port::onDragEnd() { + // FIXME + // If the source Port is deleted, this will be called, removing the cable gRackWidget->wireContainer->commitActiveWire(); } diff --git a/src/core/AudioInterface.cpp b/src/core/AudioInterface.cpp index bd388801..eba28423 100644 --- a/src/core/AudioInterface.cpp +++ b/src/core/AudioInterface.cpp @@ -432,6 +432,11 @@ AudioInterfaceWidget::AudioInterfaceWidget() { addChild(panel); } + // addChild(createScrew(Vec(15, 0))); + // addChild(createScrew(Vec(box.size.x-30, 0))); + // addChild(createScrew(Vec(15, 365))); + // addChild(createScrew(Vec(box.size.x-30, 365))); + float margin = 5; float labelHeight = 15; float yPos = margin; diff --git a/src/core/Bridge.cpp b/src/core/Bridge.cpp new file mode 100644 index 00000000..b5f6edb9 --- /dev/null +++ b/src/core/Bridge.cpp @@ -0,0 +1,44 @@ +#include "core.hpp" + +using namespace rack; + + +struct Bridge : Module { + enum ParamIds { + NUM_PARAMS + }; + enum InputIds { + NUM_INPUTS + }; + enum OutputIds { + NUM_OUTPUTS + }; + + Bridge() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS) { + } + ~Bridge() { + } + void step(); +}; + + +void Bridge::step() { +} + + +BridgeWidget::BridgeWidget() { + Bridge *module = new Bridge(); + setModule(module); + box.size = Vec(15*8, 380); + + { + Panel *panel = new LightPanel(); + panel->box.size = box.size; + addChild(panel); + } + + addChild(createScrew(Vec(15, 0))); + addChild(createScrew(Vec(box.size.x-30, 0))); + addChild(createScrew(Vec(15, 365))); + addChild(createScrew(Vec(box.size.x-30, 365))); +} diff --git a/src/core/core.cpp b/src/core/core.cpp index 7fe507cc..b5befe3e 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -7,4 +7,5 @@ void init(rack::Plugin *plugin) { plugin->homepageUrl = "https://vcvrack.com/"; createModel(plugin, "AudioInterface", "Audio Interface"); createModel(plugin, "MidiInterface", "MIDI Interface"); + // createModel(plugin, "Bridge", "Bridge"); } diff --git a/src/core/core.hpp b/src/core/core.hpp index be7939b3..eadc8d56 100644 --- a/src/core/core.hpp +++ b/src/core/core.hpp @@ -16,3 +16,7 @@ struct MidiInterfaceWidget : ModuleWidget { MidiInterfaceWidget(); void step(); }; + +struct BridgeWidget : ModuleWidget { + BridgeWidget(); +};