*** ericRajuin has joined #lv2 | 02:00 | |
*** trebmuh has quit IRC | 02:07 | |
*** artfwo has quit IRC | 02:27 | |
*** ericRajuin has quit IRC | 03:07 | |
*** ericRajuin has joined #lv2 | 03:07 | |
*** ericRajuin has quit IRC | 03:08 | |
*** ericRajuin has joined #lv2 | 03:08 | |
*** ericRajuin has quit IRC | 03:13 | |
*** edogawa has joined #lv2 | 06:11 | |
*** ensonic has joined #lv2 | 07:21 | |
*** unclechu has joined #lv2 | 07:44 | |
*** sigma6 has joined #lv2 | 07:53 | |
*** ocbtec has joined #lv2 | 08:01 | |
*** trebmuh has joined #lv2 | 10:38 | |
*** rncbc_jolla has joined #lv2 | 11:35 | |
*** unclechu has quit IRC | 12:39 | |
*** unclechu has joined #lv2 | 12:50 | |
*** rncbc_jolla has quit IRC | 13:00 | |
*** deva has joined #lv2 | 14:06 | |
*** artfwo has joined #lv2 | 14:46 | |
*** trebmuh has quit IRC | 14:52 | |
*** trebmuh has joined #lv2 | 14:54 | |
*** edogawa has quit IRC | 14:55 | |
*** edogawa has joined #lv2 | 15:46 | |
*** sigma6 has quit IRC | 16:14 | |
*** unclechu has quit IRC | 16:16 | |
*** ensonic has quit IRC | 16:40 | |
*** ricardocrudo has joined #lv2 | 16:55 | |
*** ricardocrudo has quit IRC | 17:03 | |
*** ricardocrudo has joined #lv2 | 17:04 | |
*** ricardocrudo has quit IRC | 17:10 | |
*** oofus has joined #lv2 | 17:18 | |
*** rncbc has joined #lv2 | 17:41 | |
*** ensonic has joined #lv2 | 17:51 | |
*** edogawa has quit IRC | 18:44 | |
*** artfwo has quit IRC | 18:55 | |
*** artfwo has joined #lv2 | 19:08 | |
*** ensonic has quit IRC | 19:11 | |
*** deva has quit IRC | 19:44 | |
*** deva has joined #lv2 | 19:44 | |
*** deva has quit IRC | 20:02 | |
*** ensonic has joined #lv2 | 20:13 | |
*** ensonic has quit IRC | 20:24 | |
*** falktx has joined #lv2 | 20:26 | |
*** falktx_ has joined #lv2 | 20:29 | |
*** falktx has quit IRC | 20:31 | |
*** ocbtec has quit IRC | 20:34 | |
*** edogawa has joined #lv2 | 21:12 | |
*** edogawa has quit IRC | 22:09 | |
*** oofus has quit IRC | 22:10 | |
*** rncbc has quit IRC | 22:17 | |
ssj71 | is such an else if tree necessary for such a thing? https://github.com/openAVproductions/openAV-Fabla2/blob/master/src/ui/fabla2_ui.cxx#L1184 | 22:33 |
---|---|---|
ssj71 | seems like a fairly brutish design | 22:34 |
ssj71 | I'd think you'd want each widget to have its own associated callback | 22:35 |
rgareus | ssj71: you could use switch() :) | 22:38 |
rgareus | ssj71: well, more seriously: every widget should implement that callback | 22:38 |
ssj71 | but the pointers to the widgets will be determined at runtime | 22:38 |
rgareus | and the top-level just have a virtual | 22:38 |
rgareus | assuming C++ | 22:38 |
rgareus | in C you could use function pointers. set them up when the widget is created. just call the function that's pointed to | 22:39 |
rgareus | I guess it's early prototying code from Harry. just start somewhere | 22:39 |
ssj71 | thats what I'd think. Perhaps this is actually his method for widgets to interact? | 22:39 |
ssj71 | so each widget would have its callback to manipulate its data, but if you want dial 1 to turn dial 2 or something you'd do it here | 22:40 |
rgareus | still, looks rather odd to me | 22:41 |
rgareus | one would normally use signals / slot | 22:41 |
ssj71 | I suppose that could still be accomplished with a per-widget array of function pointers. just run through the list and send your CB data to all the functions | 22:41 |
rgareus | widget 1 emits a signal. all interested widgets subscribe to it. | 22:42 |
ssj71 | I'm trying to crack the AVTK code, but afaik fabla2 is the only example | 22:42 |
rgareus | ssj71: or just shoot harry an email | 22:42 |
ssj71 | yes thats the next step I guess | 22:42 |
ssj71 | I keep considering rolling my own C version of AVTK, but thats a lot of punishment for not much gain | 22:48 |
*** trebmuh has quit IRC | 22:58 |
Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!