pharo-spec / Spec

Spec is a framework in Pharo for describing user interfaces.
MIT License
61 stars 63 forks source link

New dialog to select multiple items using checkboxes #1548

Closed carolahp closed 3 weeks ago

carolahp commented 1 month ago

The new dialog is displayed below. Its api is the same as SpSelectDialog. Three examples were added.

image

This presenter is used in Pharo PR#16637

demarey commented 1 month ago

This presenter is nice but it looks to be a duplicate of SpChooserPresenter. The new dialog also misses a filter for items.

carolahp commented 1 month ago

@demarey I think the SpChooserPresenter is designed to selecting items from a long lists (as in the image), while the presenter I propose works best for a short list of items.

image

You are right that my presenter is missing a filter. I can add it

demarey commented 1 month ago

Hi @carolahp I agree your presenter is better for a few items but I still think the same presenter can do both jobs:

carolahp commented 1 month ago

Hi @demarey Modifying SpChoosedPresenter to do both jobs would implies: