silx-kit / silx

silx toolkit
http://www.silx.org/doc/silx/latest/
MIT License
130 stars 73 forks source link

Mask improvement #292

Closed vallsv closed 7 years ago

vallsv commented 8 years ago

Here is some proposal after few time of observation on BM02, and own experience.

mask-proposal

While it is very important for pyFAI, i can fix most of it.

t20100 commented 8 years ago

+1

vallsv commented 8 years ago

I talk about the border of the image. We dont really know where the image start.

mask-image-border

dnaudet commented 8 years ago

Interesting!

Just my 2c for A and B : I'm not too fond of having a menu to toggle between two exclusive (and mandatory, as in "one is always active") states. Instead of clicking once you have to click twice, it makes things a bit tedious. If we really want to display two separate actions I would rather have two checkable actions grouped in a QGroupAction (kinda like text alignment in most text editors). I would consider using a menu when, for example, I need to choose between a set of exclusive tools or shapes that can then be turned on or off (mix a menu with a checkable action : a long press on the action drops the menu, a click on the action activates/deactivates the tool). Or when you have actions you select once and run repeatedly like "build", "build and run", "run tests" : you pick one in the menu, then click on the action to run it.

vallsv commented 8 years ago

That's also nice. And i have no idea what is better cause i don't know the users. But i would prefer to not convert 2 icons on the tool bar into 4 for something which will not often used (i guess 1 time a session). Plus I already implement my proposal. Then i would say, at least it is an improvement.

vallsv commented 8 years ago

BTW here is the PR https://github.com/silx-kit/silx/pull/323 It does not fix the mouse behaviour, which is maybe quite tricky to edit.

vasole commented 8 years ago

My opinion is that if one does not know what option is better and there are already user interfaces applying one of the options, one should keep the option already implemented.

vasole commented 8 years ago

If your doubt is between a) the state + pull down menu and b) duplicating the number of icons, then I prefer a).

vasole commented 7 years ago

@vallsv @t20100 Is this ready to be closed?

vallsv commented 7 years ago

Yes. We can talk about mouse interaction into another issue. Iv got another improvments now i know other features of the plot. I close it