It’s been a while now that I am working with juce on a daily basis and it’s mostly a painless and intuitive process.
Thanks for that!
However if I think about the kind of repetitive code that I write every day, topic number one is clearly related to the Layout of widgets. I’m used to it and having total and explicit control is good.
Along time we’ve written various half-baked Component containers like VBox, HBox, Grid… to simplify our code but still most of the layout code is done manually and having automatic layout managers as Components is not the best solution. It creates unnecessarily deep Component hierarchies and scatters the control logic across many Components.
I’ve played with Qt recently and I had forgot how easy it was to work with its Layout mechanism.
- You don’t need to create new classes: Composition is better than inheritance
- Layouts can be recursive within a single widgets: no need to create nested Components just because of the layout.
- widgets have default, preferred, minimum and maximum sizes and stretch hints, this allows top-down and bottom-up UI size management whereas juce is biased toward top-down
I can’t see any reason why the same couldn’t be implemented in juce too? Is it a matter of time? Do you want help? Or do you have strong objections?