[Clam-devel] PATCH: add ControlPrinterWidget

Pau Arumi parumi at iua.upf.edu
Tue Apr 10 07:15:27 PDT 2007


En/na Zach Welch ha escrit:
> On Saturday 07 April 2007 12:10, Zach Welch wrote:
>> Hi all,
>>
>> The attached patch provides a new ControlPrinterWidget class that displays
>> the input control value inside the processing widget.  Its design allows it
>> to be embedded into any Processing widget (e.g. for debugging purposes),
>> and it can handle any number of input controls.  This will allow it to be
>> re-used without changes in a ControlPrinterArray class, or something
>> similar.
> 
> I went ahead and added a NumberOfInputs attribute to ControlPrinterConfig, 
> with the default of 1.  With the default of one input, the control preserves 
> the exists behavior; however, it now supports printing a list of values.  The 
> previous widget patch should transparently handle this change.  Altogether, 
> this obviates the need for a separate ControlPrinterArray class.

nice one! committed revision 9983.

ps: clam programming convention of the day:
if (...)
{
}
else
{
}

not that i dislike other styles at all but "coherent" code style
reads better.




More information about the clam-devel mailing list