diff options
-rw-r--r-- | doc/treectrl.html | 13 | ||||
-rw-r--r-- | doc/treectrl.man | 11 | ||||
-rw-r--r-- | doc/treectrl.n | 11 |
3 files changed, 22 insertions, 13 deletions
diff --git a/doc/treectrl.html b/doc/treectrl.html index 66fa696..7a36cb8 100644 --- a/doc/treectrl.html +++ b/doc/treectrl.html @@ -1,10 +1,10 @@ -<! -- Copyright (c) 2002-2003 Christian Krone. -- -- See the file "license.terms" for information on usage and redistribution -- of this file, and for a DISCLAIMER OF ALL WARRANTIES. -- -- $Id: treectrl.html,v 1.32 2006/09/05 21:55:29 treectrl Exp $ +<! -- Copyright (c) 2002-2003 Christian Krone. -- -- See the file "license.terms" for information on usage and redistribution -- of this file, and for a DISCLAIMER OF ALL WARRANTIES. -- -- $Id: treectrl.html,v 1.33 2006/09/08 22:10:04 treectrl Exp $ --><html><head> <title>treectrl - Tk Commands </title> </head> <! -- Generated from file 'doc/treectrl.man' by tcllib/doctools with format 'html' --> -<! -- CVS: $Id: treectrl.html,v 1.32 2006/09/05 21:55:29 treectrl Exp $ treectrl.n +<! -- CVS: $Id: treectrl.html,v 1.33 2006/09/08 22:10:04 treectrl Exp $ treectrl.n --> <body> @@ -102,7 +102,7 @@ package require <b>treectrl 2.1.1</b><br> <tr valign=top ><td ><a href="#56"><i class='arg'>pathName</i> <b class='cmd'>item compare</b> <i class='arg'>itemDesc1</i> <i class='arg'>op</i> <i class='arg'>itemDesc2</i></a></td></tr> <tr valign=top ><td ><a href="#57"><i class='arg'>pathName</i> <b class='cmd'>item complex</b> <i class='arg'>itemDesc</i> ?<i class='arg'>list...</i>?</a></td></tr> <tr valign=top ><td ><a href="#58"><i class='arg'>pathName</i> <b class='cmd'>item configure</b> <i class='arg'>itemDesc</i> ?<i class='arg'>option</i>? ?<i class='arg'>value</i>? ?<i class='arg'>option value ...</i>?</a></td></tr> -<tr valign=top ><td ><a href="#59"><i class='arg'>pathName</i> <b class='cmd'>item count</b></a></td></tr> +<tr valign=top ><td ><a href="#59"><i class='arg'>pathName</i> <b class='cmd'>item count</b> ?<i class='arg'>-visible</i>?</a></td></tr> <tr valign=top ><td ><a href="#60"><i class='arg'>pathName</i> <b class='cmd'>item create</b> ?<i class='arg'>option value ...</i>?</a></td></tr> <tr valign=top ><td ><a href="#61"><i class='arg'>pathName</i> <b class='cmd'>item delete</b> <i class='arg'>first</i> ?<i class='arg'>last</i>?</a></td></tr> <tr valign=top ><td ><a href="#62"><i class='arg'>pathName</i> <b class='cmd'>item dump</b> <i class='arg'>itemDesc</i></a></td></tr> @@ -1387,12 +1387,15 @@ the meaning of each option): </dl> -<dt><a name="59"><i class='arg'>pathName</i> <b class='cmd'>item count</b></a><dd> +<dt><a name="59"><i class='arg'>pathName</i> <b class='cmd'>item count</b> ?<i class='arg'>-visible</i>?</a><dd> Returns a decimal string giving the number of items created by the <b class='cmd'>item create</b> widget command which haven't been deleted by the <b class='cmd'>item delete</b> widget command, plus 1 for the ever-present -root item. +root item. If the optional argument <i class='arg'>-visible</i> is given, only the items +whose ancestors are expanded, and whose -visible option is true, get counted. +Additionally, for the root item, the treectrl option <strong>-showroot</strong> must +be true for the root item to be counted. <br><br> <dt><a name="60"><i class='arg'>pathName</i> <b class='cmd'>item create</b> ?<i class='arg'>option value ...</i>?</a><dd> diff --git a/doc/treectrl.man b/doc/treectrl.man index 333272b..6dc91cb 100644 --- a/doc/treectrl.man +++ b/doc/treectrl.man @@ -3,7 +3,7 @@ See the file "license.terms" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. - $Id: treectrl.man,v 1.33 2006/09/05 21:55:29 treectrl Exp $} + $Id: treectrl.man,v 1.34 2006/09/08 22:10:04 treectrl Exp $} ][manpage_begin treectrl n 2.1.1] [moddesc {Tk Commands}] [titledesc {Create and manipulate hierarchical multicolumn widgets}] @@ -934,11 +934,14 @@ the meaning of each option): [list_end] -[call [arg pathName] [cmd {item count}]] +[call [arg pathName] [cmd {item count}] [opt [arg -visible]]] Returns a decimal string giving the number of items created by the [cmd "item create"] widget command which haven't been deleted by the [cmd "item delete"] widget command, plus 1 for the ever-present -root item. +root item. If the optional argument [arg -visible] is given, only the items +whose ancestors are expanded, and whose -visible option is true, get counted. +Additionally, for the root item, the treectrl option [option -showroot] must +be true for the root item to be counted. [call [arg pathName] [cmd {item create}] [opt [arg {option value ...}]]] Creates some new items and optionally returns a list of unique identifiers for @@ -2736,7 +2739,7 @@ Use the parent of the item. [lst_item "[const prev] [opt [const visible]]"] Use the last child of the previous sibling, -or the parent if there is no previos sibling. +or the parent if there is no previous sibling. [lst_item "[const prevsibling] [opt [const visible]]"] Use the previous sibling of the item. diff --git a/doc/treectrl.n b/doc/treectrl.n index adf82d1..e39e5a6 100644 --- a/doc/treectrl.n +++ b/doc/treectrl.n @@ -6,7 +6,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" $Id: treectrl.n,v 1.49 2006/09/05 21:55:29 treectrl Exp $ +'\" $Id: treectrl.n,v 1.50 2006/09/08 22:10:04 treectrl Exp $ .so man.macros .TH "treectrl" n 2.1.1 treectrl "Tk Commands" .BS @@ -131,7 +131,7 @@ package require \fBtreectrl 2.1.1\fR .sp \fIpathName\fR \fBitem configure\fR \fIitemDesc\fR ?\fIoption\fR? ?\fIvalue\fR? ?\fIoption value ...\fR? .sp -\fIpathName\fR \fBitem count\fR +\fIpathName\fR \fBitem count\fR ?\fI-visible\fR? .sp \fIpathName\fR \fBitem create\fR ?\fIoption value ...\fR? .sp @@ -1493,11 +1493,14 @@ the meaning of each option): \fB\fB-visible\fR\fR \fIboolean\fR .RE .TP -\fIpathName\fR \fBitem count\fR +\fIpathName\fR \fBitem count\fR ?\fI-visible\fR? Returns a decimal string giving the number of items created by the \fBitem create\fR widget command which haven't been deleted by the \fBitem delete\fR widget command, plus 1 for the ever-present -root item. +root item. If the optional argument \fI-visible\fR is given, only the items +whose ancestors are expanded, and whose -visible option is true, get counted. +Additionally, for the root item, the treectrl option \fB-showroot\fR must +be true for the root item to be counted. .TP \fIpathName\fR \fBitem create\fR ?\fIoption value ...\fR? Creates some new items and optionally returns a list of unique identifiers for |