ComputationalBiomechanicsLab / opensim-creator

A UI for building OpenSim models
https://opensimcreator.com
Apache License 2.0
153 stars 18 forks source link

Refactor panels into `osc::PanelizedWidget<TWidget>` #693

Open adamkewley opened 1 year ago

adamkewley commented 1 year ago

So that new panels can be composed from multiple panel-sized widgets.

The issue is that osc::ModelEditorViewerPanel is already a panel, so if I want to create a new panel that composes the contents of ModelEditorViewerPanel with the contents of another panel, no dice.

adamkewley commented 1 month ago

This might not be as necessary if we move to using a generic Widget API. The decorator pattern could then be used to panel-ize a widget.