I am fairly new to Juce, and I have come across something that is likely very simple, but nonetheless not clear to me.
In a simple (learning) project I have the following:
- PluginEditor (no components are inserted)
- Editor2 (some components are inserted)
- Editor3 (some components are inserted)
Editor 3 is inserted into Editor2, and Editor 2 is inserted into PluginEditor. Each of these inherit from AudioProcessorEditor, and are able to access the single instance of AudioProcessor.
Without using the AudioProcessor instance as an interface for the editors (which would seem a bit wrong), I am not sure how to make the editors talk to each other. What I would like to do is update some of the components in Editor 2 when updates happen (typically through user interaction) to components in Editor 3.
I thought about making them friends, subclassing AudioProcessorEditor so I could include some mechanism for communicating in this fashion, and a few other things. But, I keep thinking there is likely something I am just missing.
Do you know how I can make these editors talk to each other?
Thank you very much,