2008/3/19, bulia byak <buliabyak@...400...>:
On Wed, Mar 19, 2008 at 5:50 AM, Aubanel MONNIER
repr->_setParent(father);
I think you need to use
parent->appendChild(child);
instead of this
Yes, it works ! Where should I look for sample popup code ?
"change" value and reset the combo to no preset... So unless I mark
somewhere (e.g. an ugly static flag) the change comes from the preset
combo
and check when I come back and do nothing in this case, I need to find another way.
Well, all the controls in the bar have their callbacks - so you can just add a call like update_presets_list to each such callback.
Mmmh, I should have guessed that, thanks.
By the way, please make sure that presets store not only numeric
params but also the boolean state of the buttons such as use pressure sensitivity and trace background. It's an important part of the tool behavior as well.
At first I was against that, but a second thought makes me feel you are right, so I'll do it.