Mercurial > hg > octave-lyh
diff src/genprops.awk @ 7214:86d0b16f2bb2
[project @ 2007-11-29 03:40:04 by jwe]
author | jwe |
---|---|
date | Thu, 29 Nov 2007 03:40:04 +0000 |
parents | 4270ded9ddc6 |
children | 1f3e360c1bba |
line wrap: on
line diff
--- a/src/genprops.awk +++ b/src/genprops.awk @@ -94,6 +94,12 @@ ## constructor, which creates a new radio_property and so cannot ## preserve the old list of possible values. ## +## l: Add the line +## +## update_axis_limits ("NAME"); +## +## to the type-specific set function. +## ## m: Add the line ## ## set_NAMEmode ("manual"); @@ -140,6 +146,8 @@ { printf ("\n {\n if (! error_state)\n {\n %s = val;\n", name[i]); + if (limits[i]) + printf (" update_axis_limits (\"%s\");\n", name[i]); if (mode[i]) printf (" set_%smode (\"manual\");\n", name[i]); printf (" mark_modified ();\n }\n }\n\n"); @@ -205,6 +213,7 @@ type[idx] = $(field++); name[idx] = $(field++); + limits[idx] = 0; mode[idx] = 0; emit_get[idx] = "defn"; emit_set[idx] = "defn"; @@ -217,6 +226,9 @@ { quals = $field; + if (index (quals, "l")) + limits[idx] = 1; + if (index (quals, "m")) mode[idx] = 1;