MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / comboBoxChanged

Method comboBoxChanged

Source/PluginEditor.cpp:797–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795}
796
797void FireAudioProcessorEditor::comboBoxChanged(juce::ComboBox* combobox)
798{
799 if (combobox == stateComponent.getPresetBox())
800 {
801 int selectedId = combobox->getSelectedId();
802
803 // do this because open and close GUI will use this function, but will reset the value if the presetbox is not "init"
804 // next, previous, change combobox will change the selectedId, but currentId will change only after this.
805 // and then, it will load the preset.
806
807 if (stateComponent.getProcStatePresets()->getCurrentPresetId() != selectedId)
808 {
809 stateComponent.updatePresetBox(selectedId);
810 }
811 multiband.resortAndRedrawLines();
812 }
813}
814
815void FireAudioProcessorEditor::setLinearSlider(juce::Slider& slider)
816{

Callers

nothing calls this directly

Calls 5

getPresetBoxMethod · 0.80
getCurrentPresetIdMethod · 0.80
getProcStatePresetsMethod · 0.80
updatePresetBoxMethod · 0.80
resortAndRedrawLinesMethod · 0.80

Tested by

no test coverage detected