<div dir="auto">Maybe while you’re looking at this we could also think how to implement menus in such a way that packages could add items to the world menu and to tool menus (browser, workspace, etc). I think having something like that would help to improve modularity. I personally don’t use most of the items in the browser and workspace menus and remove many of them in my images, but I do this by overriding the *menuOptions methods and it would be nice to have a cleaner way to do it.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 27 May 2022 at 4:16 PM Hilaire Fernandes 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)">
<div text="#000000" bgcolor="#FFFFFF">
<p><font size="4" style="color:rgb(0,0,0)">Hi, <br>
</font></p>
<p><font size="4" style="color:rgb(0,0,0)">I would like to raise questions on the WorldMenu.</font></p>
<p><font size="4" style="color:rgb(0,0,0)">I we want multiple WorldMorph (target is the
dynabook ;-), we may want different instantiation of WorldMenu
populated with very different menus, or even menu not looking
like the traditional menu (think my extravagant circular toolbar
menu).<br>
</font></p>
<p><font size="4" style="color:rgb(0,0,0)">I will throw a few ideas and questions, just to
start the exchange of ideas.<br>
</font></p>
<ul>
<li><font size="4" style="color:rgb(0,0,0)">TheWorldMenu knows about its WorldMorph, but
should it not be the other way?</font></li>
<li><font size="4" style="color:rgb(0,0,0)">Or a WorldMorph should know about a more
general object WorldState to hold state information about the
World and among them its menu?</font></li>
<li><font size="4" style="color:rgb(0,0,0)">World menu build up searches methods given a
name but it lacks information about order, parent menu, etc.
Therefore the method code needs to provide it, its makes code
more complex a bit. I fell like using pragma with appropriate
parameters will simplify a lot the code<br>
</font></li>
</ul>
<p>Pharo has a very interesting implementation to learn from. See
MenuRegistration class. I used happily, and contributed a very
very little to for end-user application world menu.</p>
<p>Hilaire</p></div><div text="#000000" bgcolor="#FFFFFF"><p><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>
</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>