[Cuis-dev] Decentralized menu definition
Mariano Montone
marianomontone at gmail.com
Thu Jul 21 08:56:45 PDT 2022
El 21/7/22 a las 12:32, Hilaire Fernandes via Cuis-dev escribió:
>
> Now, if it please you, you can replace menu by command. In the
> implementation of MenuRecord I used a MenuItem instance variable as a
> drop place to put attributes, to avoid adding a third class Command or
> attributes to MenuRecord
>
> It is completely neutral, so we can have:
>
> MenuBuilder -> CommandBuilder
>
> MenuRecord -> CommandRecord
>
> And invoked as:
>
> (CommandBuilder on: #exampleCommand) getMenu popUpInWorld
>
> one may extend it to respond to:
>
> (CommandBuilder on: #exampleCommand) getCircularMorph openInWorld
>
>
> (CommandBuilder on: #exampleCommand) getToolbar
>
You have my vote :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220721/ca9a3c29/attachment.htm>
More information about the Cuis-dev
mailing list