⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hierarchy.n

📁 这是一个Linux下的集成开发环境
💻 N
📖 第 1 页 / 共 2 页
字号:
'\"'\" Copyright (c) 1997 DSC Technologies Corporation'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\"'\" @(#) hierarchy.n 1.21 94/12/17 16:04:44'/" .so man.macros.HS hierarchy iwid.BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEhierarchy \- Create and manipulate a hierarchy widget.SH SYNOPSIS\fBhierarchy\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Widget <- Labeledwidget <- Scrolledwidget <- Hierarchy.SH "STANDARD OPTIONS".LP.nf.ta 4c 8c 12c\fBactiveBackground\fR	\fBactiveForeground\fR	\fBbackground\fR	\fBborderWidth\fR\fBcursor\fR	\fBdisabledForeground\fR	\fBforeground\fR	\fBhighlightColor\fR\fBhighlightThickness\fR	\fBrelief\fR	\fBselectBackground\fR	\fBselectForeground\fR.fi.LPSee the "options" manual entry for details on the standard options..SH "ASSOCIATED OPTIONS".LP.nf.ta 4c 8c 12c\fBactiveRelief\fR	\fBelementBorderWidth\fR	\fBjump\fR	\fBtroughColor\fR.fi.LPSee the "scrollbar" widget manual entry for details on the aboveassociated options..LP.nf.ta 4c 8c 12c\fBspacing1\fR	\fBspacing2\fR	\fBspacing3\fR	\fBtabs\fR.fi.LPSee the "text" widget manual entry for details on the aboveassociated options..SH "INHERITED OPTIONS".LP.nf.ta 4c 8c 12c\fBlabelBitmap\fR	\fBlabelFont\fR	\fBlabelImage\fR	\fBlabelMargin\fR\fBlabelPos\fR	\fBlabelText\fR	\fBlabelVariable\fR.fi.LPSee the "labeledwidget" class manual entry for details on the inherited options..SH "WIDGET-SPECIFIC OPTIONS".LP.nfName:	\fBalwaysQuery\fRClass:	\fBAlwaysQuery\fRCommand-Line Switch:	\fB-alwaysquery\fR.fi.IPBoolean flag which tells the hierarchy widget weather or noteach refresh of the display should be via a new query usingthe command value of the -querycommand option or use the values previous found the last time the query was made.  The defaultis no..LP.nfName:	\fBclosedIcon\fRClass:	\fBIcon\fRCommand-Line Switch:	\fB-closedicon\fR.fi.IPSpecifies the name of an existing closed icon image to be used in the hierarchy before those nodes that are collapsed.  Should one not be provided, then a folder icon will be generated, pixmap if possible, bitmap otherwise..LP.nfName:	\fBdblClickCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-dblclickcommand\fR.fi.IPSpecifies a command to be executed upon user double clicking via mouse buttonone of the text label of an entry. If this command contains "%n", it isreplaced with the name of the selected node. Should it contain "%s" then aboolean indicator of the node's current selection status is substituted..LP.nfName:	\fBexpanded\fRClass:	\fBExpanded\fRCommand-Line Switch:	\fB-expanded\fR.fi.IPWhen true, the hierarchy will be completely expanded when itis first displayed.  A fresh display can be triggered byresetting the -querycommand option.  The default is false..LP.nfName:	\fBfilter\fRClass:	\fBFilter\fRCommand-Line Switch:	\fB-filter\fR.fi.IPWhen true only the branch nodes and selected items are displayed.This gives a compact view of important items.  The default is false..LP.nfName:	\fBheight\fRClass:	\fBHeight\fRCommand-Line Switch:	\fB-height\fR.fi.IPSpecifies the height of the hierarchy as an entire unit.The value may be specified in any of the forms acceptable to \fBTk_GetPixels\fR.  Any additional space needed to display the othercomponents such as labels, margins, and scrollbars force the hierarchyto be compressed.  A value of zero along with the same value for the width causes the value given for the visibleitems option to be applied which administers geometry constraints in a differentmanner.  The default height is zero..LP.nfName:	\fBiconCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-iconcommand\fR.fi.IPSpecifies a command to be executed upon user selection via mouse buttonone of any additional icons given in the values returned by the commandassociated with the -querycommand option.  If this command contains "%n", it is replaced with the name of the node the icon belongs to.  Should it contain "%i" then the icon name is  substituted..LP.nfName:	\fBiconDblCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-icondblcommand\fR.fi.IPSpecifies a command to be executed upon user double clicking via mouse buttonone of the icon of an entry. If this command contains "%n", it is replacedwith the name of the node the icon belongs to. Should it contain "%i" thenthe icon name is substituted..LP.nfName:	\fBimageCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-imagecommand\fR.fi.IPSpecifies a command to be executed upon user selecting an image of an entry.If this command contains "%n", it is replaced with the name of the selectednode. Should it contain "%s" then a boolean indicator of the node's currentselection status is substituted..LP.nfName:	\fBimageDblCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-imagedblcommand\fR.fi.IPSpecifies a command to be executed upon user double clicking via mouse buttonone of the image of an entry. If this command contains "%n", it is replacedwith the name of the node the icon belongs to. Should it contain "%i" thenthe icon name is substituted..LP.nfName:	\fBimageMenuLoadCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-imagemenuloadcommand\fR.fi.IPSpecifies a command to be executed upon user selection via mouse button three,on the image or icon, that will dynamically load the itemMenu for the widget..LP.nfName:	\fBmarkBackground\fRClass:	\fBForeground\fRCommand-Line Switch:	\fB-markbackground\fR.fi.IPSpecifies the background color to use when displaying marked nodes..LP.nfName:	\fBmarkForeground\fRClass:	\fBBackground\fRCommand-Line Switch:	\fB-markforeground\fR.fi.IPSpecifies the foreground color to use when displaying marked nodes..LP.nfName:	\fBmenuCursor\fRClass:	\fBCursor\fRCommand-Line Switch:	\fB-menucursor\fR.fi.IPSpecifies the mouse cursor to be used for the item and background menus.  The value may have any of the forms accept able to Tk_GetCursor..LP.nfName:	\fBnodeIcon\fRClass:	\fBIcon\fRCommand-Line Switch:	\fB-nodeicon\fR.fi.IPSpecifies the name of an existing node icon image to be used in the hierarchy before those nodes that are leafs.  Should one not be provided, then a dog-eared page icon will be generated, pixmap if possible, bitmap otherwise..LP.nfName:	\fBopenIcon\fRClass:	\fBIcon\fRCommand-Line Switch:	\fB-openicon\fR.fi.IPSpecifies the name of an existing open icon image to be used in the hierarchy before those nodes that are expanded.  Should one not be provided, then an open folder icon will be generated, pixmap if possible, bitmap otherwise..LP.nfName:	\fBqueryCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-querycommand\fR.fi.IPSpecifies the command executed to query the contents of each node.  If this command contains "%n", it is replaced with the name of the desired node.  In its simpilest form it should return the children of the given node as a list which will be depicted in the display.Since the names of the children are used as tags in the underlying text widget, each child must be unique in the hierarchy.  Due tothe unique requirement, the nodes shall be reffered to as uids or uid in the singular sense.  The format of returned list is.IP  {uid [uid ...]}.IP  where uid is a unique id and primary key for the hierarchy entry.IPShould the unique requirement pose a problem, the list returnedcan take on another more extended form which enables the association of text to be displayed with the uids.  The uid muststill be unique, but the text does not have to obey the uniquerule.  In addition, the format also allows the specification ofadditional tags to be used on the same entry in the hierarchyas the uid and additional icons to be displayed just beforethe node.  The tags and icons are considered to be the property ofthe user in that the hierarchy widget will not depend on any of their values.  The extended format is.IP  {{uid [text [tags [icons]]]} {uid [text [tags [icons]]]} ...}.IP  where uid is a unique id and primary key for the hierarchy entry        text is the text to be displayed for this uid        tags is a list of user tags to be applied to the entry        icons is a list of icons to be displayed in front of the text.IPThe hierarchy widget does a look ahead from each node to determineif the node has a children.  This can be cost some performace withlarge hierarchies.  User's can avoid this by providing a hint inthe user tags.  A tag of "leaf" or "branch" tells the hierarchywidget the information it needs to know thereby avoiding the lookahead operation..LP.nfName:	\fBhscrollMode\fRClass:	\fBScrollMode\fRCommand-Line Switch:	\fB-hscrollmode\fR.fi.IPSpecifies the the display mode to be used for the horizontalscrollbar: \fBstatic, dynamic,\fR or \fBnone\fR.  In static mode, the scroll bar is displayed at all times.  Dynamic mode displays thescroll bar as required, and none disables the scroll bar display.  The default is static..LP.nfName:	\fBsbWidth\fRClass:	\fBWidth\fRCommand-Line Switch:	\fB-sbwidth\fR.fi.IPSpecifies the width of the scrollbar in any of the formsacceptable to \fBTk_GetPixels\fR.  .LP.nfName:	\fBscrollMargin\fRClass:	\fBMargin\fRCommand-Line Switch:	\fB-scrollmargin\fR.fi.IPSpecifies the distance between the text portion of the hierarchy and the scrollbars in any of the forms acceptable to \fBTk_GetPixels\fR.  The default is 3 pixels..LP.nfName:	\fBtextBackground\fRClass:	\fBBackground\fRCommand-Line Switch:	\fB-textbackground\fR.fi.IPSpecifies the background color for the text portion of the hierarchy in any of the forms acceptable to \fBTk_GetColor\fR..LP

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -