MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / TextEntryComplete

Method TextEntryComplete

Source/MidiController.cpp:2078–2104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2076}
2077
2078void MidiController::TextEntryComplete(TextEntry* entry)
2079{
2080 for (auto iter = mConnections.begin(); iter != mConnections.end(); ++iter)
2081 {
2082 UIControlConnection* connection = *iter;
2083 if (entry == connection->mUIControlPathEntry)
2084 connection->SetUIControl(connection->mUIControlPathInput);
2085 if (entry == connection->mValueEntry)
2086 {
2087 if (mShouldSendControllerInfoStrings)
2088 {
2089 if (connection->mType == kControlType_SetValue ||
2090 connection->mType == kControlType_SetValueOnRelease)
2091 {
2092 SendControllerInfoString(connection->mControl, 1, connection->mUIControl->GetDisplayValue(connection->mValue));
2093 }
2094 }
2095 }
2096 }
2097
2098 if (entry == mOscInPortEntry)
2099 {
2100 OscController* osc = dynamic_cast<OscController*>(mNonstandardController);
2101 if (osc != nullptr)
2102 osc->SetInPort(mOscInPort);
2103 }
2104}
2105
2106void MidiController::PreRepatch(PatchCableSource* cableSource)
2107{

Callers

nothing calls this directly

Calls 3

SetInPortMethod · 0.80
SetUIControlMethod · 0.45
GetDisplayValueMethod · 0.45

Tested by

no test coverage detected