GenericUI: Update all input controls on preset load
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Fri, 29 Jul 2016 00:06:55 +0000 (02:06 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Fri, 29 Jul 2016 00:06:55 +0000 (02:06 +0200)
commit67cbdc6cf2dd03303a9a257096da7708aad085cb
treeff178e6c5b026b4a8991dd9b2299e8fe25c9314b
parent7e30161dc06483fd17ac9e19be1c478ead1b23f6
GenericUI: Update all input controls on preset load

The existing code relies on AutomationControls for getting parameter
changes and update the UI accordingly. One case where this doesn't yet
work is preset loading, where ARDOUR::Plugin is responsible for actually
loading the preset but doesn't notify the changes to AutomationControls.

Since the input_controls vector now contains all ControlUI's that rely on
AutomationControls to get updates, just listen to Plugin::PresetLoaded()
and trigger an update of all elements in input_controls.

This is temporary until a better solution is devised to make
AutomationControls aware of preset loading.
gtk2_ardour/generic_pluginui.cc
gtk2_ardour/plugin_ui.h