MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / comboBoxChanged

Method comboBoxChanged

Source/UIComponents/CtrlrMIDI/CtrlrMIDIBuffer.cpp:461–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461void CtrlrMIDIBuffer::comboBoxChanged (juce::ComboBox* comboBoxThatHasChanged)
462{
463 //[UsercomboBoxChanged_Pre]
464 //[/UsercomboBoxChanged_Pre]
465
466 if (comboBoxThatHasChanged == bufferSource.get())
467 {
468 //[UserComboBoxCode_bufferSource] -- add your combo box handling code here..
469 switch (bufferSource->getSelectedId())
470 {
471 case 1:
472 break;
473 case 2:
474 loadBinFile(File());
475 break;
476 case 3:
477 loadTextFile(File());
478 break;
479 default:
480 break;
481 }
482 //[/UserComboBoxCode_bufferSource]
483 }
484
485 //[UsercomboBoxChanged_Post]
486 //[/UsercomboBoxChanged_Post]
487}
488
489void CtrlrMIDIBuffer::labelTextChanged (juce::Label* labelThatHasChanged)
490{

Callers

nothing calls this directly

Calls 3

FileClass · 0.85
getMethod · 0.45
getSelectedIdMethod · 0.45

Tested by

no test coverage detected