> Christian Boulanger schrieb:
>> 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.
>
> Yes, but what's if there are multile editor components for example where
> each supports "execute-paste". Do we maybe need something like
> namespaces, parts, components (what ever is the correct name for this in
> this case), too?
>

In this case, the focus would decide which one gets pasted to, and each
widget could dedide by itself whether the clipboard content is really
meant for it. But probably there are other cases in which your concerns
are more relevant.

C.


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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to