+Thu Mar 21 00:32:17 2002 Pat Thoyts <patthoyts@users.sourceforge.net>
+
+ * tkinspect.tcl: Fixed problem with application not closing
+ properly if not closed via the menu item.
+ * tkinspect.tcl: Added OK and Cancel buttons to improve the
+ handling of the comm connection dialog.
+
+Tue Mar 19 09:12:54 2002 Pat Thoyts <patthoyts@users.sourceforge.net>
+
+ * tkinspect.tcl: Added a dde implementation of 'send' for use on
+ Windows.
+
Thu Mar 14 12:09:24 2002 Pat Thoyts <patthoyts@users.sourceforge.net>
* classes_list.tcl: Updated to support itcl 3.2 info syntax
#!/bin/sh
# \
-exec wish "$0" "$*"
+exec wish "$0" ${1+"$@"}
#
# $Id$
#
cmdline.tcl interface.tcl tclIndex
names.tcl classes_list.tcl objects_list.tcl
Intro.html Lists.html Procs.html Globals.html Windows.html
- Images.html Canvases.html Menus.html
- Value.html Miscellany.html Notes.html WhatsNew.html ChangeLog.html
+ Images.html Canvases.html Menus.html Classes.html
+ Value.html Miscellany.html Notes.html WhatsNew.html
}] {
return
}
#!/bin/sh
#\
-exec @wish@ "$0" ${1+"$@"}
+exec wish "$0" ${1+"$@"}
#
# $Id$
#
lappend auto_path [set tkinspect_library .]
}
+# Emulate the 'send' command using the dde package if available.
+if {[info command send] == {}} {
+ if {![catch {package require dde}]} {
+ dde servername TkInspect-[pid]
+ proc send {app args} {
+ eval dde eval [list $app] $args
+ }
+ }
+}
+
# Provide non-send based support using tklib's comm package.
if {![catch {package require comm}]} {
# defer the cleanup for 2 seconds to allow other events to process
method reconfig {} {
}
method destroy {} {
+ global tkinspect
object_delete $slot(windows_info)
+ if {[incr tkinspect(main_window_count) -1] == 0} tkinspect_exit
}
method close {} {
- global tkinspect
after 0 destroy $self
- if {[incr tkinspect(main_window_count) -1] == 0} tkinspect_exit
}
method set_target {target} {
set slot(target) $target
method fill_interp_menu {} {
set m $self.menu.file.m.interps
catch {$m delete 0 last}
- foreach interp [winfo interps] {
- $m add command -label $interp \
- -command [list $self set_target $interp]
- }
+ if {[package present dde]} {
+ foreach service [dde services TclEval {}] {
+ $m add command -label [lindex $service 1] \
+ -command [list $self set_target [lindex $service 1]]
+ }
+ } else {
+ foreach interp [winfo interps] {
+ $m add command -label $interp \
+ -command [list $self set_target $interp]
+ }
+ }
}
method fill_comminterp_menu {} {
set m $self.menu.file.m.comminterps
label $self.l -text "Connect to:"
entry $self.e -bd 2 -relief sunken
bind $self.e <Return> "$self connect"
+ bind $self.e <Escape> "destroy $self"
pack $self.l -in $self.top -side left
pack $self.e -in $self.top -fill x -expand 1
- button $self.close -text "Close" -command "destroy $self"
- pack $self.close -side left
+ button $self.close -text "OK" -width 8 -command "$self connect"
+ button $self.cancel -text "Cancel" -width 8 -command "destroy $self"
+ pack $self.close $self.cancel -side left
wm title $self "Connect to Interp.."
wm iconname $self "Connect to Interp.."
focus $self.e