tree.tcl
This file is part of Unifix BWidget Toolkit
$Id: tree.tcl,v 1.37 2002/10/14 20:54:12 hobbs Exp $
Index of commands:
- Tree::create
- Tree::configure
- Tree::cget
- Tree::insert
- Tree::itemconfigure
- Tree::itemcget
- Tree::bindText
- Tree::bindImage
- Tree::delete
- Tree::move
- Tree::reorder
- Tree::selection
- Tree::exists
- Tree::parent
- Tree::index
- Tree::nodes
- Tree::see
- Tree::opentree
- Tree::closetree
- Tree::edit
- Tree::xview
- Tree::yview
- Tree::_update_edit_size
- Tree::_destroy
- Tree::_see
- Tree::_recexpand
- Tree::_subdelete
- Tree::_update_scrollregion
- Tree::_cross_event
- Tree::_draw_node
- Tree::_draw_subnodes
- Tree::_update_nodes
- Tree::_draw_tree
- Tree::_redraw_tree
- Tree::_redraw_selection
- Tree::_redraw_idle
- Tree::_drag_cmd
- Tree::_drop_cmd
- Tree::_over_cmd
- Tree::_auto_scroll
- Tree::_scroll
| Tree | |
| Comments | |
| Arguments | |
| Used by | |
| Uses | |
namespace eval Tree { |
|
| Tree::__call_selectcmd | |
| Comments | |
| Arguments | path |
| Used by | |
| Uses | Widget::getoption |
proc Tree::__call_selectcmd { path } { |
|
| Tree::_auto_scroll | |
| Comments | Command Tree::_auto_scroll |
| Arguments | path x y |
| Used by | |
| Uses | DropSite::setcursor Tree::_scroll |
proc Tree::_auto_scroll { path x y } { |
|
| Tree::_cross_event | |
| Comments | Command Tree::_cross_event |
| Arguments | path |
| Used by | Tree::create |
| Uses | Tree::itemconfigure Widget::getoption Tree::_get_node_name |
proc Tree::_cross_event { path } { |
|
| Tree::_destroy | |
| Comments | Command Tree::_destroy |
| Arguments | path |
| Used by | |
| Uses | Widget::destroy |
proc Tree::_destroy { path } { |
|
| Tree::_draw_node | |
| Comments | Command Tree::_draw_node |
| Arguments | path node x0 y0 deltax deltay padx showlines |
| Used by | |
| Uses | Widget::getoption |
proc Tree::_draw_node { path node x0 y0 deltax deltay padx showlines } { |
|
| Tree::_draw_subnodes | |
| Comments | Command Tree::_draw_subnodes |
| Arguments | path nodes x0 y0 deltax deltay padx showlines |
| Used by | |
| Uses | Widget::getoption |
proc Tree::_draw_subnodes { path nodes x0 y0 deltax deltay padx showlines } { |
|
| Tree::_draw_tree | |
| Comments | Command Tree::_draw_tree |
| Arguments | path |
| Used by | |
| Uses | Widget::getoption |
proc Tree::_draw_tree { path } { |
|
| Tree::_drop_cmd | |
| Comments | Command Tree::_drop_cmd |
| Arguments | path source X Y op type dnddata |
| Used by | Tree::create Tree::configure |
| Uses | Widget::getoption |
proc Tree::_drop_cmd { path source X Y op type dnddata } { |
|
| Tree::_get_current_node | |
| Comments | Tree::_get_current_node -- Get the current node for either single or multiple node selection trees. If the tree allows for multiple selection, return the cursor node. Otherwise, if there is a selection, return the first node in the list. If there is no selection, return the root node. arguments: win name of the tree widget Results: The current node. |
| Arguments | win |
| Used by | |
| Uses | |
proc Tree::_get_current_node {win} { |
|
| Tree::_get_node_name | |
| Comments | Tree::_get_node_name -- Given a canvas item, get the name of the tree node represented by that item. Arguments: path tree to query item Optional canvas item to examine; if omitted, defaults to "current" tagindex Optional tag index, since the n:nodename tag is not in the same spot for all canvas items. If omitted, defaults to "end-1", so it works with "current" item. Results: node name of the tree node. |
| Arguments | path item tagindex |
| Used by | Tree::find Tree::_keynav Tree::_init_drag_cmd Tree::selection Tree::_cross_event Tree::_over_cmd Tree::bindImage Tree::_redraw_selection Tree::bindText |
| Uses | |
proc Tree::_get_node_name {path {item current} {tagindex end-1}} { |
|
| Tree::_init_drag_cmd | |
| Comments | Command Tree::_init_drag_cmd |
| Arguments | path X Y top |
| Used by | Tree::create Tree::configure |
| Uses | Tree::_get_node_name Widget::getoption |
proc Tree::_init_drag_cmd { path X Y top } { |
|
| Tree::_keynav | |
| Comments | Tree::_keynav -- Handle navigational keypresses on the tree. Arguments: which tag indicating the direction of motion: up move to the node graphically above current down move to the node graphically below current left close current if open, else move to parent right open current if closed, else move to child open open current if closed, close current if open win name of the tree widget Results: None. |
| Arguments | which win |
| Used by | |
| Uses | Widget::getoption Tree::_get_node_name Widget::cget |
proc Tree::_keynav {which win} { |
|
| Tree::_over_cmd | |
| Comments | Command Tree::_over_cmd |
| Arguments | path source event X Y op type dnddata |
| Used by | Tree::create Tree::configure |
| Uses | DropSite::setcursor Widget::getoption Tree::_get_node_name |
proc Tree::_over_cmd { path source event X Y op type dnddata } { |
|
| Tree::_recexpand | |
| Comments | Command Tree::_recexpand JDC : added option recursive |
| Arguments | path node expand recursive cmd |
| Used by | |
| Uses | Widget::getoption Widget::setoption |
proc Tree::_recexpand { path node expand recursive cmd } { |
|
| Tree::_redraw_idle | |
| Comments | Command Tree::_redraw_idle |
| Arguments | path level |
| Used by | |
| Uses | Tree::_redraw_tree Widget::getoption |
proc Tree::_redraw_idle { path level } { |
|
| Tree::_redraw_selection | |
| Comments | Command Tree::_redraw_selection |
| Arguments | path |
| Used by | |
| Uses | Tree::_get_node_name Widget::getoption |
proc Tree::_redraw_selection { path } { |
|
| Tree::_redraw_tree | |
| Comments | Command Tree::_redraw_tree |
| Arguments | path |
| Used by | Tree::_redraw_idle |
| Uses | Widget::getoption |
proc Tree::_redraw_tree { path } { |
|
| Tree::_scroll | |
| Comments | Command Tree::_scroll |
| Arguments | path cmd dir |
| Used by | Tree::_auto_scroll Tree::_scroll |
| Uses | DropSite::setcursor Tree::_scroll |
proc Tree::_scroll { path cmd dir } { |
|
| Tree::_see | |
| Comments | Command Tree::_see |
| Arguments | path idn |
| Used by | Tree::edit Tree::see |
| Uses | |
proc Tree::_see { path idn } { |
|
| Tree::_set_current_node | |
| Comments | Tree::_set_current_node -- Set the current node for either single or multiple node selection trees. arguments: win Name of the tree widget node The current node. Results: None. |
| Arguments | win node |
| Used by | |
| Uses | |
proc Tree::_set_current_node {win node} { |
|
| Tree::_subdelete | |
| Comments | Command Tree::_subdelete |
| Arguments | path lnodes |
| Used by | |
| Uses | Widget::destroy Widget::getoption |
proc Tree::_subdelete { path lnodes } { |
|
| Tree::_update_edit_size | |
| Comments | Command Tree::_update_edit_size |
| Arguments | path entry idw wmax args |
| Used by | |
| Uses | |
proc Tree::_update_edit_size { path entry idw wmax args } { |
|
| Tree::_update_nodes | |
| Comments | Command Tree::_update_nodes |
| Arguments | path |
| Used by | |
| Uses | Widget::getoption |
proc Tree::_update_nodes { path } { |
|
| Tree::_update_scrollregion | |
| Comments | Command Tree::_update_scrollregion |
| Arguments | path |
| Used by | |
| Uses | Widget::getoption |
proc Tree::_update_scrollregion { path } { |
|
| Tree::bindImage | |
| Comments | Command Tree::bindImage |
| Arguments | path event script |
| Used by | Tree::create |
| Uses | Tree::_get_node_name |
proc Tree::bindImage { path event script } { |
|
| Tree::bindText | |
| Comments | Command Tree::bindText |
| Arguments | path event script |
| Used by | Tree::create |
| Uses | Tree::_get_node_name |
proc Tree::bindText { path event script } { |
|
| Tree::cget | |
| Comments | Command Tree::cget |
| Arguments | path option |
| Used by | |
| Uses | Widget::cget |
proc Tree::cget { path option } { |
|
| Tree::closetree | |
| Comments | Command Tree::closetree |
| Arguments | path node recursive |
| Used by | |
| Uses | Widget::getoption |
proc Tree::closetree { path node {recursive 1} } { |
|
| Tree::configure | |
| Comments | Command Tree::configure |
| Arguments | path args |
| Used by | |
| Uses | Tree::_drop_cmd Widget::hasChanged Tree::_init_drag_cmd DragSite::setdrag Widget::configure DropSite::setdrop Tree::_over_cmd |
proc Tree::configure { path args } { |
|
| Tree::create | |
| Comments | Command Tree::create |
| Arguments | path args |
| Used by | |
| Uses | Widget::cget Widget::subcget Tree::_init_drag_cmd BWidget::refocus Tree::_cross_event Tree::_drop_cmd DropSite::setdrop Tree::bindText Widget::init Tree::bindImage Tree::_over_cmd DragSite::setdrag |
proc Tree::create { path args } { |
|
| Tree::delete | |
| Comments | Command Tree::delete |
| Arguments | path args |
| Used by | |
| Uses | |
proc Tree::delete { path args } { |
|
| Tree::edit | |
| Comments | Command Tree::edit |
| Arguments | path node text verifycmd clickres select |
| Used by | |
| Uses | BWidget::focus Tree::_see Widget::getoption |
proc Tree::edit { path node text {verifycmd ""} {clickres 0} {select 1}} { |
|
| Tree::exists | |
| Comments | Command Tree::exists |
| Arguments | path node |
| Used by | |
| Uses | |
proc Tree::exists { path node } { |
|
| Tree::find | |
| Comments | Tree::find Returns the node given a position. findInfo @x,y ?confine? lineNumber |
| Arguments | path findInfo confine |
| Used by | |
| Uses | Tree::_get_node_name Widget::getoption Widget::cget |
proc Tree::find {path findInfo {confine ""}} { |
|
| Tree::index | |
| Comments | Command Tree::index |
| Arguments | path node |
| Used by | |
| Uses | |
proc Tree::index { path node } { |
|
| Tree::insert | |
| Comments | Command Tree::insert |
| Arguments | path index parent node args |
| Used by | |
| Uses | Widget::init Widget::getMegawidgetOption |
proc Tree::insert { path index parent node args } { |
|
| Tree::itemcget | |
| Comments | Command Tree::itemcget |
| Arguments | path node option |
| Used by | |
| Uses | Widget::cget |
proc Tree::itemcget { path node option } { |
|
| Tree::itemconfigure | |
| Comments | Command Tree::itemconfigure |
| Arguments | path node args |
| Used by | Tree::_cross_event |
| Uses | Widget::hasChanged Widget::configure |
proc Tree::itemconfigure { path node args } { |
|
| Tree::line | |
| Comments | Command Tree::line Returns the line where is drawn a node. |
| Arguments | path node |
| Used by | |
| Uses | Widget::getoption |
proc Tree::line {path node} { |
|
| Tree::move | |
| Comments | Command Tree::move |
| Arguments | path parent node index |
| Used by | |
| Uses | Widget::getoption |
proc Tree::move { path parent node index } { |
|
| Tree::nodes | |
| Comments | Command Tree::nodes |
| Arguments | path node first last |
| Used by | |
| Uses | |
proc Tree::nodes { path node {first ""} {last ""} } { |
|
| Tree::opentree | |
| Comments | Command Tree::opentree JDC: added option recursive |
| Arguments | path node recursive |
| Used by | |
| Uses | Widget::getoption |
proc Tree::opentree { path node {recursive 1} } { |
|
| Tree::parent | |
| Comments | Command Tree::parent |
| Arguments | path node |
| Used by | |
| Uses | |
proc Tree::parent { path node } { |
|
| Tree::reorder | |
| Comments | Command Tree::reorder |
| Arguments | path node neworder |
| Used by | |
| Uses | BWidget::lreorder Widget::getoption |
proc Tree::reorder { path node neworder } { |
|
| Tree::see | |
| Comments | Command Tree::see |
| Arguments | path node |
| Used by | |
| Uses | Widget::getoption Tree::_see |
proc Tree::see { path node } { |
|
| Tree::selection | |
| Comments | Command Tree::selection |
| Arguments | path cmd args |
| Used by | |
| Uses | Tree::_get_node_name Widget::getoption |
proc Tree::selection { path cmd args } { |
|
| Tree::visible | |
| Comments | Command Tree::visible |
| Arguments | path node |
| Used by | |
| Uses | |
proc Tree::visible { path node } { |
|
| Tree::visiblenodes | |
| Comments | Tree::visiblenodes -- Retrieve a list of all the nodes in a tree. Arguments: path tree to retrieve nodes for. Results: nodes list of nodes in the tree. |
| Arguments | path |
| Used by | |
| Uses | Widget::getMegawidgetOption |
proc Tree::visiblenodes { path } { |
|
| Tree::xview | |
| Comments | Command Tree::xview |
| Arguments | path args |
| Used by | |
| Uses | |
proc Tree::xview { path args } { |
|
| Tree::yview | |
| Comments | Command Tree::yview |
| Arguments | path args |
| Used by | |
| Uses | |
proc Tree::yview { path args } { |
|