Yes, a bus systems sounds good. But keep the ability to send data with the
event, this is very useful!

Of course, my example xml wasn't taking the event system idea seriously
enough. It should be:

>> <qx:menuButton
>>                 label="Paste"
>>                 icon="icons/16/edit-paste.png"
>>                 enabled="false"
>>                 enableOnGlobalEvent="allow-paste">
                   <qx:command>
                       <qx:eventListener type="execute"
dispatch="execute-paste"/>
                   </qx:command>
>> </qx:menuButton>

This is already implemented in PHP QxBuilder.

Use case: all widgets listen for the "execute-paste" event. If they have
the focus, they try to insert the content of the clipboard. On the global
level, you don't need to know anything about what widgets exist and what
they'll do with the clipboard content. Very flexible.

Cheers,

Christian



All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to