+2000-07-06 Mo DeJong <mdejong@redhat.com>
+
+ * library/debug.tcl (logfile): Use non-blocking IO.
+ * library/tree.tcl (set_column_filter, bind, exchange,
+ ide_treetable): Don't fully qualify global commands.
+ Use itcl::delete. Use non-blocking IO. Rename bind
+ method to __bind. Brace exprs. Set default value
+ for when_post_menu variable. Itcl 3.0 fixups.
+
2000-06-30 Mo DeJong <mdejong@redhat.com>
* library/tree.tcl: Fix typo made in patch
resize_widget $tree
- ::unset fltentry
+ unset fltentry
}
method calculate_column_filter {} {
}
set lst [join $lst \n]
- $print_dialog delete
+ itcl::delete object $print_dialog
set tmpf [sn_tmpFileName]
set fd [open $tmpf "w+"]
- ::fconfigure $fd -encoding $sn_options(def,system-encoding)
+ fconfigure $fd -encoding $sn_options(def,system-encoding) -blocking 0
puts $fd $lst
close $fd
return [eval ::bind $tree $args]
}
- method bind {args} {
- return [eval ::bind $tree $args]
+ method __bind {args} {
+ return [eval bind $tree $args]
}
method header {args} {
return
}
- set y [::$w nearest $y]
+ set y [$w nearest $y]
- set len [expr [llength $sel] -1]
+ set len [expr {[llength $sel] - 1}]
set first [lindex $sel 0]
set last [lindex $sel $len]
}
if {$first <= $y} {
- set y [expr $y - $len]
+ set y [expr {$y - $len}]
}
if {$y < 0} {
return
}
- ::$w delete $first $last
- eval ::$w insert $y $exchange
- ::$w selection clear 0 end
- ::$w selection set $y [expr $y + $len]
+ $w delete $first $last
+ eval $w insert $y $exchange
+ $w selection clear 0 end
+ $w selection set $y [expr {$y + $len}]
}
proc exchange_mark {w} {
set sel [$w curselection]
#can be set external to be executed when option menu
#is launched.
- public when_post_menu
+ public when_post_menu ""
}
#############################################################################
## END CLASS for TreeWidget with tab stop support ##
bind $tree <Configure> {
puts stdout "resize %W"
- Tree :: resize_widget %W
+ Tree::resize_widget %W
}
return $tree