From The Mana World
(parameters in the slot function.)
 
(type information)
Line 1: Line 1:
I have seen you proposal for a signal-slot system and I have one remark to make: I'ld like to see the "event" that triggered the signal being given as parameter to the signal handler (slot) function. It allows one handler for all key up and down events on an object. (Do you want separate a-up, b-up, a-down, b-down functions?)
I have seen you proposal for a signal-slot system and I have one remark to make: I'ld like to see the "event" that triggered the signal being given as parameter to the signal handler (slot) function. It allows one handler for all key up and down events on an object. (Do you want separate a-up, b-up, a-down, b-down functions?)
--[[User:MathFox|MathFox]] 13:33, 4 July 2009 (UTC)
--[[User:MathFox|MathFox]] 13:33, 4 July 2009 (UTC)
Following up, not all handlers make sense in every situation... So you'ld have to be careful in what you present to the user (keep type information with the signals and slots.)
--[[User:MathFox|MathFox]] 13:42, 4 July 2009 (UTC)

Revision as of 13:42, 4 July 2009

I have seen you proposal for a signal-slot system and I have one remark to make: I'ld like to see the "event" that triggered the signal being given as parameter to the signal handler (slot) function. It allows one handler for all key up and down events on an object. (Do you want separate a-up, b-up, a-down, b-down functions?) --MathFox 13:33, 4 July 2009 (UTC) Following up, not all handlers make sense in every situation... So you'ld have to be careful in what you present to the user (keep type information with the signals and slots.) --MathFox 13:42, 4 July 2009 (UTC)