Transforming argument from signal to slot
Sebastian Werner <[email protected]> Wed, 02 Jun 2004 20:39:23 +0200
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Message-ID | <[email protected]> |
Hi! I read the signals-and-slots documention already and ask me know if it's possible to transform the argument from the signal-function to the slot-function. I didn't find anything yet. One Example: I create a select-element <select name="foo"> <option value="hotel">hotel</option> <option value="plane">plane</option> <option value="car">car</option> </select> and I create a Layer which should also be only visible if "car" is selected. Both elements are single objects which don't know anything from each other. The select-element has a property "selection" which set/get the current selection. The Layer has a property "display", which is equal to the so named css-property. My simple thought was that I am able to connect the "setSelection" function to the "setDisplay" function and transform the value on the way: selection: hotel => none plane => none car => block Is something like this possible or planned? Some mapping of values or real transformation (math, ...). Many thanks and best regards, Sebastian Werner _______________________________________________ The netWindows developers list: [email protected] http://netwindows.org/mailman/listinfo/devel_netwindows.org