[squeak-dev] variable assignments button

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Wed Jan 22 09:42:03 UTC 2020


> For example, you can select the instVar name (text) and use "References to it (N)" off the menu (or hot-key) to show all references to an instVar that way.  > It would be easy to add an additional menu entry for assignments only.


Hi Chris, good idea! I sent two commits regarding your proposal to the inbox.

However, I do not think that Ralphs original request got redundant per this proposal. The text morph menu is very horrible long, even if you can type to search, and there few more hotkeys free to use. In my opinion, the button row is exactly appropriate in order to provide a reduced set of operations to the overwhelmed user (such as me). I keep desiring a split button as mentioned below, maybe this dream can become reality someday ... :-)

Best,
Christoph
________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Chris Muller <asqueaker at gmail.com>
Gesendet: Montag, 20. Januar 2020 23:55:58
An: The general-purpose Squeak developers list
Cc: ralphpboland at gmail.com
Betreff: Re: [squeak-dev] variable assignments button

On Mon, Jan 20, 2020 at 12:51 PM Thiede, Christoph <Christoph.Thiede at student.hpi.uni-potsdam.de<mailto:Christoph.Thiede at student.hpi.uni-potsdam.de>> wrote:

Hi, this sounds great! It took me also a few months to find out that this feature "browse assignments" exists :)

On the other hand, I think this makes the button row look even more overfilled.

We have an unpleasant mix of a "command-oriented" UI, where you select a command (instead of an object) and THEN the system prompts you, modally, for the object to apply that command to -- we should be moving AWAY from this, not toward --

mixed along with with our "object-oriented" UI, where you select the object first, THEN the contextual command to apply to it (via button or menu or hot-key).

For example, you can select the instVar name (text) and use "References to it (N)" off the menu (or hot-key) to show all references to an instVar that way.  It would be easy to add an additional menu entry for assignments only.

Best,
  Chris



Another option might be to offer a pop-up menu similar to the code provenance button. This menu would have two items: 'references' and 'assignments'. Good for clarity, not so good for efficiency -- on the other hand, which person that wants to be efficient uses the button instead of <cmd>a?


A popular GUI element for such problems is the split button<https://docs.microsoft.com/en-us/windows/win32/windowsribbon/windowsribbon-controls-splitbutton>. Emphasises the default option of a series, but still provides fast access to the rest of series, too. But we don't have a pluggable implementation for this in Morphic so far, do we?

Best,
Christoph
________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org<mailto:squeak-dev-bounces at lists.squeakfoundation.org>> im Auftrag von Jakob Reschke <forums.jakob at resfarm.de<mailto:forums.jakob at resfarm.de>>
Gesendet: Montag, 20. Januar 2020 18:42:58
An: ralphpboland at gmail.com<mailto:ralphpboland at gmail.com>; The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] variable assignments button

Hi,

One can invoke this also with Cmd-a on the class, or somewhere in its pop-up menu.

A button for it could be nice on touch screens though. There is no button space for all our favorite features though.

Ralph, could you send a screenshot of your solution for a quick impression, please?

Kings regards,
Jakob


Ralph Boland <rpboland at gmail.com<mailto:rpboland at gmail.com>> schrieb am Mo., 20. Jan. 2020, 18:35:
In the Browsers there is a line of buttons:  "browse", "senders" etc.
One of the buttons is  "vars"  which when pressed brings up a GUI that
allows you to select a variable and then a list of all methods using
that variable
is brought up from which you can select a method to inspect.

Sometimes I only want to view the subset of the methods in which the
variable is assigned.
I have implemented this feature (new button to the right of "vars"
labeled  ":=")
and find it to be very useful.
I am wondering if this feature can be added to the next version of Squeak.
I can send my code changes if someone is willing to do this but the changes
required are small so my help may not be needed.

If some do not like this feature (it's great really!) then perhaps it
could be turned
on or off depending on a Preferences setting.

If this feature happens to be in  5.3 then my apologies for wasting
peoples time.

Ralph Boland


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200122/3c5800f7/attachment-0001.html>


More information about the Squeak-dev mailing list