OpenPonk / openponk

The OpenPonk modeling platform
https://openponk.github.io/
MIT License
42 stars 9 forks source link

[Feature request] Indicate incomplete visibility of element type #91

Open sdasda7777 opened 1 year ago

sdasda7777 commented 1 year ago

I've noticed that the TypeShowHidePresenter is pretty misleading: it shows checkmark for every type where at least one item is visible, even if some are hidden.

On the following picture there are two associations, one of them being hidden, yet the TypeShowHidePresenter makes it seem like all should be visible.

image

The behaviour I would more hope for would be using a tristate checkbox, where checked state would only be shown if all elements are visible, unchecked only if none are visible, and the third state otherwise:

image

JanBliznicenko commented 1 year ago

Yes, it is misleading. Unfortunately, this is limitation of current implementation of Spec, Morphic and Athens. It would be awesome to have it, but it would take quite a lot of effort I think. It would probably need to change or create special case of SpCheckBoxTableColumn, SpMorphicTableColumnVisitor, SpMorphicTableCellBuilder, SpCheckBoxPresenter, SpMorphicCheckBoxAdapter, CheckboxMorph and CheckboxButtonMorph, incl. its method drawOnAthensCanvas: from Athens library.