MCPcopy Create free account
hub / github.com/GuitarML/NeuralPi / labelTextChanged

Method labelTextChanged

Source/PluginEditor.cpp:902–928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

900}
901
902void NeuralPiAudioProcessorEditor::labelTextChanged(Label* labelThatHasChanged)
903{
904 if (labelThatHasChanged == &getInPortNumberField())
905 {
906 const int newPort = getInPortNumberField().getTextValue().toString().getIntValue();
907 oscReceiver.changePort(newPort);
908 updateInConnectedLabel();
909 }
910 else if (labelThatHasChanged == &getOutPortNumberField())
911 {
912 const int newPort = getOutPortNumberField().getTextValue().toString().getIntValue();
913 updateOutgoingPort(newPort);
914 }
915 else if (labelThatHasChanged == &getIPField())
916 {
917 const String newIP = getIPField().getTextValue().toString();
918 updateOutgoingIP(newIP);
919 }
920 /*
921 else if (labelThatHasChanged == getAmpNameField())
922 {
923 ampName = getAmpNameField().getTextValue().toString();
924 buildAddressPatterns();
925 oscReceiver.updateAmpName(getAmpNameField().getTextValue().toString());
926 }
927 */
928}
929
930void NeuralPiAudioProcessorEditor::updateInConnectedLabel()
931{

Callers

nothing calls this directly

Calls 1

changePortMethod · 0.80

Tested by

no test coverage detected