| 151 | } |
| 152 | |
| 153 | void 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 | |
| 174 | void OSCOutput::LoadLayout(const ofxJSONElement& moduleInfo) |
| 175 | { |