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

Method TextEntryComplete

Source/OSCOutput.cpp:153–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void OSCOutput::TextEntryComplete(TextEntry* entry)
154{
155 int i = 0;
156 for (auto* iter : mLabelEntry)
157 {
158 if (iter == entry)
159 {
160 auto sliderIter = mSliders.begin();
161 advance(sliderIter, i);
162 (*sliderIter)->SetName(mLabels[i].c_str());
163 }
164 ++i;
165 }
166
167 if (entry == mOscOutAddressEntry || entry == mOscOutPortEntry)
168 {
169 mOscOut.disconnect();
170 mOscOut.connect(mOscOutAddress, mOscOutPort);
171 }
172}
173
174void OSCOutput::LoadLayout(const ofxJSONElement& moduleInfo)
175{

Callers

nothing calls this directly

Calls 1

SetNameMethod · 0.45

Tested by

no test coverage detected