Mercurial > octave-nkf
diff doc/interpreter/genpropdoc.m @ 20628:3af34e1ef330
Preliminary inclusion of uixx objects properties in the manual (bug #46076)
* doc/interpreter/genpropdoc.m: add uixx objects to the list of supported graphics objects
* doc/interpreter/genpropdoc.m (get_doc): add uixx objects and their specific properties (currently empty documentation)
* doc/interpreter/plot.txi("Interacting with Plots"): add a note and a reference about ui* family of functions.
* doc/interpreter/plot.txi("Interacting with Plots"): for consistency, remove "uimenu" reference. All the other uixx are already in the gui section
* doc/interpreter/plot.txi("graphics data structure"): add uixx objects
* doc/interpreter/gui.txi("UI Elements"): add "uimenu" function reference
* doc/module.mk: add rules to build uixx properties texi files.
* graphics.in.h: make uixx "__object__" property (Octave internal) hidden so that it does not appear in the documentation.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Fri, 09 Oct 2015 16:25:27 +0200 |
parents | a9a1f021d96b |
children |
line wrap: on
line diff
--- a/doc/interpreter/genpropdoc.m Fri Oct 09 19:29:28 2015 -0700 +++ b/doc/interpreter/genpropdoc.m Fri Oct 09 16:25:27 2015 +0200 @@ -30,7 +30,9 @@ function genpropdoc (objname, fname) objnames = {"root", "figure", "axes", "line", ... - "text", "image", "patch", "surface"}; + "text", "image", "patch", "surface", ... + "uimenu", "uicontextmenu", "uipanel", ... + "uicontrol", "uitoolbar", "uipushtool", "uitoggletool"}; ## Base properties base = getstructure ("base"); @@ -1235,6 +1237,140 @@ s.valid = valid_vecmat; endswitch + + ## uimenu properties + elseif (strcmp (objname, "uimenu")) + switch (field) + ## Overridden shared properties + case "buttondownfcn" + s.doc = doc_unused; + + ## Specific properties + case "accelerator" + case "callback" + case "checked" + case "enable" + case "foregroundcolor" + case "label" + case "position" + case "separator" + + endswitch + + ## uicontextmenu properties + elseif (strcmp (objname, "uicontextmenu")) + switch (field) + ## Overridden shared properties + case "buttondownfcn" + s.doc = doc_unused; + + ## Specific properties + case "callback" + case "position" + + endswitch + + ## uipanel properties + elseif (strcmp (objname, "uipanel")) + switch (field) + ## Overridden shared properties + + ## Specific properties + case "backgroundcolor" + case "bordertype" + case "borderwidth" + case "fontangle" + case "fontname" + case "fontsize" + case "fontunits" + case "fontweight" + case "foregroundcolor" + case "highlightcolor" + case "position" + case "resizefcn" + case "shadowcolor" + case "title" + case "titleposition" + case "units" + + endswitch + + ## uicontrol properties + elseif (strcmp (objname, "uicontrol")) + switch (field) + ## Overridden shared properties + + ## Specific properties + case "backgroundcolor" + case "callback" + case "cdata" + case "enable" + case "extent" + case "fontangle" + case "fontname" + case "fontsize" + case "fontunits" + case "fontweight" + case "foregroundcolor" + case "horizontalalignment" + case "keypressfcn" + case "listboxtop" + case "max" + case "min" + case "position" + case "sliderstep" + case "string" + case "style" + case "tooltipstring" + case "units" + case "value" + case "verticalalignment" + + endswitch + + ## uitoolbar properties + elseif (strcmp (objname, "uitoolbar")) + switch (field) + ## Overridden shared properties + case "buttondownfcn" + s.doc = doc_unused; + + endswitch + + ## uipushtool properties + elseif (strcmp (objname, "uipushtool")) + switch (field) + ## Overridden shared properties + case "buttondownfcn" + s.doc = doc_unused; + + ## Specific properties + case "cdata" + case "clickedcallback" + case "enable" + case "separator" + case "tooltipstring" + + endswitch + + ## uitoggletool properties + elseif (strcmp (objname, "uitoggletool")) + switch (field) + ## Overridden shared properties + case "buttondownfcn" + s.doc = doc_unused; + + ## Specific properties + case "cdata" + case "clickedcallback" + case "enable" + case "offcallback" + case "oncallback" + case "separator" + case "state" + case "tooltipstring" + + endswitch endif ## Replace keywords