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

Method UpdateDropdownContents

Source/SongBuilder.cpp:707–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707void SongBuilder::ControlValue::UpdateDropdownContents(ControlTarget* target)
708{
709 if (target->mDisplayType == ControlTarget::DisplayType::Dropdown)
710 {
711 DropdownList* targetList = dynamic_cast<DropdownList*>(target->GetTarget());
712 if (targetList)
713 targetList->CopyContentsTo(mValueSelector);
714 RadioButton* targetRadio = dynamic_cast<RadioButton*>(target->GetTarget());
715 if (targetRadio)
716 targetRadio->CopyContentsTo(mValueSelector);
717 }
718}
719
720void SongBuilder::DropdownUpdated(DropdownList* list, int oldVal, double time)
721{

Callers 3

PollMethod · 0.80
DropdownClickedMethod · 0.80
TargetControlUpdatedMethod · 0.80

Calls 2

GetTargetMethod · 0.45
CopyContentsToMethod · 0.45

Tested by

no test coverage detected