[Clam-devel] PATCH: add ControlPrinterWidget

Zach Welch zach-clam-devel at splitstring.com
Sun Apr 8 21:38:36 PDT 2007


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.

Cheers,

Zach
-------------- next part --------------
A non-text attachment was scrubbed...
Name: control-printer.patch
Type: text/x-diff
Size: 3356 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070408/48686c18/attachment-0005.patch>


More information about the clam-devel mailing list