Index: util/pcblib-param.cgi =================================================================== --- util/pcblib-param.cgi (revision 449) +++ util/pcblib-param.cgi (revision 450) @@ -46,7 +46,7 @@ } # build PPROP[paramname,propname], e.g. PPROP[pin_mask, dim]=1 -/@@optional:/ || /@@dim:/ { +/@@optional:/ || /@@dim:/ || /@@bool:/ { key = $0 sub("^.*@@", "", key) val = key @@ -86,6 +86,11 @@ next } +function thumb(prv) +{ + print "" +} + END { if (header) { print "" HELP["@@purpose"] "" @@ -127,7 +132,8 @@ print "" PDATAV[name, v] if (PDATA[name, "preview_args"] != "") { prv= fp_base "(" PDATA[name, "preview_args"] "," name "=" PDATAK[name, v] ")" - print "" + print "" + thumb(prv) } } print "" @@ -136,9 +142,23 @@ if (PPROP[name, "dim"]) { print "Dimension: a number with an optional unit (mm or mil, default is mil)" if (PDATA[name, "default"] != "") - print "
Default: " PDATA[name, "default"] "" + print "
Default: " PDATA[name, "default"] "" vdone++ } + if (PPROP[name, "bool"]) { + print "Boolean: yes/no, true/false, 1/0" + if (PDATA[name, "default"] != "") + print "; Default: " PDATA[name, "default"] "" + if (PDATA[name, "preview_args"] != "") { + print "
" + print "" + print "
true:" + thumb(fp_base "(" PDATA[name, "preview_args"] "," name "=" 1 ")") + print "false:" + thumb(fp_base "(" PDATA[name, "preview_args"] "," name "=" 0 ")") + print "
" + } + } if (!vdone) print " " }