sudara / melatonin_inspector

A JUCE module that gives you the ability to inspect and visually edit (non-destructively) components in your UI.
MIT License
145 stars 17 forks source link

Refactor `Inspector` and `InspectorComponent` #64

Open sudara opened 1 year ago

sudara commented 1 year ago

Right now the inspector passes 5 callbacks to InspectorComponent.

InspectorComponent then passes those around or passes them into button callbacks, etc.

Essentially the root and the overlay not being accessible to InspectorComponent is the source of the trouble.

Refactoring the InspectorComponent to take references to those two things and encapsulating most of the logic left in Inspector might also open up the ability to do #56