<div dir="auto">Yes, it would be great to address those issues, and also unify different ways to define commands/actions/services on models that can be triggered by buttons, menues and keyboard shortcuts, and do it in a way that can be easily extended by packages. Currently we have SimpleServiceEntry for FileList, I think these could eventually be reimplemented in terms of a new (more general and simpler) commands/actions/services thing.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 19 Jul 2022 at 21:22 Juan Vuletich via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><u></u>
<div bgcolor="#ffffff" text="#000000">
On 7/15/2022 12:53 PM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote type="cite">
<p><font size="4" style="color:rgb(0,0,0)">Hi, <br>
</font></p>
<p><font size="4" style="color:rgb(0,0,0)">Here is a first iteration for decentralized menu
definitions . <br>
</font></p>
<p><font size="4" style="color:rgb(0,0,0)">Check the comment of the MenuBuilder class and
its example to execute. <br>
</font></p>
<p><font size="4" style="color:rgb(0,0,0)">Then check its example class methods to read how
write definition of the menu.</font></p>
<p><font size="4" style="color:rgb(0,0,0)">In theory, this should let third party package
smoothly adds entries in Cuis menus.</font></p>
<p><font size="4" style="color:rgb(0,0,0)">There is place for improvements and to make menu
definition more compact, but its already gives a general idea.</font></p>
<p><font size="4" style="color:rgb(0,0,0)">Thanks</font></p>
<p><font size="4" style="color:rgb(0,0,0)">Hilaire</font><br>
</p>
<pre cols="72" style="font-family:monospace">--
GNU Dr. Geo
<a href="http://drgeo.eu" target="_blank" style="font-family:monospace">http://drgeo.eu</a>
<a href="http://blog.drgeo.eu" target="_blank" style="font-family:monospace">http://blog.drgeo.eu</a></pre>
</blockquote>
<br>
Hi Hilaire,<br>
<br>
This is interesting. But if we are to change how menus are built in
the base image, adding a mechanism that packages will depend on, I'd
like it to also address these:<br>
- Keyboard shortcuts. Today, these are even in a worse shape than
menus. There's no way to tweak them, and we already ran out of them.<br>
- Context. Different gui controls in different apps will need
different menus / shortcuts. Even depending on state or mode.<br>
- Scope of context. Some menus / shortcuts may apply to a leaf
morph, like a text editor or list. Others apply to a window or other
composite morph. Others are global.<br>
<br>
Actually, we are talking about user commands and how to issue them.
So, some questions are:<br>
- which user commands are available on a certain morph in a certain
moment<br>
- how do we group them in menus<br>
- how (if) we assign them a keyboard shortcut<br>
<br>
Everyone, please chime in and share your ideas or possible
approaches. It would be great if we can find a general solution.<br>
<br>
Thanks!<br>
<pre cols="72" style="font-family:monospace">--
Juan Vuletich
<a href="http://www.cuis-smalltalk.org" target="_blank" style="font-family:monospace">www.cuis-smalltalk.org</a>
<a href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev" target="_blank" style="font-family:monospace">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a href="https://github.com/jvuletich" target="_blank" style="font-family:monospace">https://github.com/jvuletich</a>
<a href="https://www.linkedin.com/in/juan-vuletich-75611b3" target="_blank" style="font-family:monospace">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
<a href="https://independent.academia.edu/JuanVuletich" target="_blank" style="font-family:monospace">https://independent.academia.edu/JuanVuletich</a>
<a href="https://www.researchgate.net/profile/Juan-Vuletich" target="_blank" style="font-family:monospace">https://www.researchgate.net/profile/Juan-Vuletich</a>
<a href="https://patents.justia.com/inventor/juan-manuel-vuletich" target="_blank" style="font-family:monospace">https://patents.justia.com/inventor/juan-manuel-vuletich</a>
<a href="https://twitter.com/JuanVuletich" target="_blank" style="font-family:monospace">https://twitter.com/JuanVuletich</a></pre>
</div>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div></div>