Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Moved packages pstools and psballoon into GIT repository. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
51939a3dd43db0e13825349eb9fef9bd |
User & Date: | peter.spjuth@gmail.com 2010-04-27 21:06:42.000 |
Context
2010-04-27
| ||
21:31 | Removed support for Postscript output. check-in: d83662d1cc user: peter.spjuth@gmail.com tags: trunk | |
21:06 | Moved packages pstools and psballoon into GIT repository. check-in: 51939a3dd4 user: peter.spjuth@gmail.com tags: trunk | |
20:30 | Cleanup after GIT import check-in: 1a2b919d38 user: peter.spjuth@gmail.com tags: trunk | |
Changes
Changes to Changes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 2010-02-13 Do git add after conflict merge of a git file. Select colors for PDF print. 2009-11-02 Detect and display annotation in patches. E.g. when using -p with diff. 2009-10-17 Return in rev field does a redo diff. [FR 4649] Allow zero lines of context to only show diffs. 2009-02-12 Allow stepping down in directory diff. Require 8.5. Misc cleanup to use that fact. Perforce support. (Elliot) 2009-01-23 Don't save unchanged preferences to prefs file. Better documentation for plugins. Added plugin dump. | > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 2010-04-27 Handle an empty .eskilrc. [Bug 17113] Moved packages pstools and psballoon into GIT repository. 2010-02-13 Do git add after conflict merge of a git file. Select colors for PDF print. 2009-11-02 Detect and display annotation in patches. E.g. when using -p with diff. 2009-10-17 Return in rev field does a redo diff. [FR 4649] Allow zero lines of context to only show diffs. 2009-02-12 Allow stepping down in directory diff. Experiment to display less in directory diff. Require 8.5. Misc cleanup to use that fact. Perforce support. (Elliot) 2009-01-23 Don't save unchanged preferences to prefs file. Better documentation for plugins. Added plugin dump. |
︙ | ︙ |
Changes to Makefile.
︙ | ︙ | |||
11 12 13 14 15 16 17 | TCLKIT_LINUX = $(TCLKIT)/tclkit-8.5.8 TCLKIT_SOLARIS = $(TCLKIT)/tclkit-solaris-sparc TCLKIT_WIN = $(TCLKIT)/tclkit-win32.upx.exe # Path to the libraries used STYLE = /home/peter/src/packages/style GRIFFIN = /home/peter/tclkit/griffin.vfs/lib/griffin | < < | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | TCLKIT_LINUX = $(TCLKIT)/tclkit-8.5.8 TCLKIT_SOLARIS = $(TCLKIT)/tclkit-solaris-sparc TCLKIT_WIN = $(TCLKIT)/tclkit-win32.upx.exe # Path to the libraries used STYLE = /home/peter/src/packages/style GRIFFIN = /home/peter/tclkit/griffin.vfs/lib/griffin TEXTSEARCH = /home/peter/src/textsearch DIFFUTIL = /home/peter/src/DiffUtil/lib.vfs/DiffUtil WCB = /home/peter/src/packages/wcb3.0 PDF4TCL = /home/peter/src/pdf4tcl/trunk/pkg SNIT = /home/peter/tcl/tcllib/modules/snit TWAPI = /home/peter/src/twapi #DIFFUTIL = /home/peter/src/DiffUtil/tcl |
︙ | ︙ | |||
64 65 66 67 68 69 70 | cd eskil.vfs/lib ; mkdir snit cd eskil.vfs/lib/snit ; ln -s $(SNIT)/pkgIndex.tcl cd eskil.vfs/lib/snit ; ln -s $(SNIT)/snit.tcl cd eskil.vfs/lib/snit ; ln -s $(SNIT)/snit2.tcl cd eskil.vfs/lib/snit ; ln -s $(SNIT)/main2.tcl cd eskil.vfs/lib/snit ; ln -s $(SNIT)/main1.tcl cd eskil.vfs/lib/snit ; ln -s $(SNIT)/validate.tcl | < < < < < < < < < < | 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | cd eskil.vfs/lib ; mkdir snit cd eskil.vfs/lib/snit ; ln -s $(SNIT)/pkgIndex.tcl cd eskil.vfs/lib/snit ; ln -s $(SNIT)/snit.tcl cd eskil.vfs/lib/snit ; ln -s $(SNIT)/snit2.tcl cd eskil.vfs/lib/snit ; ln -s $(SNIT)/main2.tcl cd eskil.vfs/lib/snit ; ln -s $(SNIT)/main1.tcl cd eskil.vfs/lib/snit ; ln -s $(SNIT)/validate.tcl links: eskil.vfs/src/eskil.tcl \ eskil.vfs/examples\ eskil.vfs/doc\ eskil.vfs/plugins\ eskil.vfs/COPYING\ eskil.vfs/lib/griffin\ eskil.vfs/lib/style\ eskil.vfs/lib/textsearch\ eskil.vfs/lib/diffutil\ eskil.vfs/lib/pdf4tcl\ eskil.vfs/lib/snit\ eskil.vfs/lib/wcb setup: links |
︙ | ︙ |
Added eskil.vfs/lib/psballoon/pkgIndex.tcl.
> > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 | # Tcl package index file, version 1.1 # This file is generated by the "pkg_mkIndex" command # and sourced either when an application starts up or # by a "package unknown" script. It invokes the # "package ifneeded" command to set up package-related # information so that packages will be loaded automatically # in response to "package require" commands. When this # script is sourced, the variable $dir must contain the # full path name of this file's directory. package ifneeded psballoon 1.0 [list source [file join $dir psballoon.tcl]] |
Added eskil.vfs/lib/psballoon/psballoon.tcl.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | #---------------------------------------------------------------------- # # psballoon.tcl, # Procedures to create help message balloons or display balloons for # listboxes and labels that can't display all of their contents. # # Copyright (c) 2003, Peter Spjuth (peter.spjuth@space.se) # # Permission is granted to use this code under the same terms as # for the Tcl core code. # #---------------------------------------------------------------------- # $Revision: 1.1 $ #---------------------------------------------------------------------- package provide psballoon 1.0 namespace eval psballoon { variable balloon set balloon(pending) 0 set balloon(created) 0 set balloon(id) "" namespace export addBalloon } proc psballoon::addBalloon {w {msg ""}} { variable balloon set c [winfo class $w] if {$msg == "" && $c != "Listbox" && $c != "Label"} { error "Missing message to balloon for $w ($c)" } set balloon(msg,$w) $msg bind $w <Enter> { set ::psballoon::balloon(pending) 1 set ::psballoon::balloon(created) 0 set ::psballoon::balloon(id) [after 500 {psballoon::createBalloon %W %x %y}] } bind $w <Button> { psballoon::killBalloon } bind $w <Leave> { psballoon::killBalloon } bind $w <Motion> { if {$::psballoon::balloon(pending) == 1} { after cancel $::psballoon::balloon(id) } if {$::psballoon::balloon(created) == 1} { psballoon::killBalloon } set ::psballoon::balloon(id) [after 500 {psballoon::createBalloon %W %x %y}] set ::psballoon::balloon(pending) 1 } } proc psballoon::killBalloon {} { variable balloon if {$balloon(pending) == 1} { after cancel $balloon(id) } if {[winfo exists .balloon] == 1} { destroy .balloon } set balloon(created) 0 set balloon(pending) 0 } proc psballoon::createBalloon {w mx my} { variable balloon if {$balloon(created) == 0} { set font [$w cget -font] set ww [winfo width $w] set ih [winfo height $w] set ix 0 set iy 0 set create 1 set msg $balloon(msg,$w) if {$msg == ""} { switch [winfo class $w] { Listbox { set i [$w index @$mx,$my] set msg [$w get $i] foreach {ix iy iw ih} [$w bbox $i] {break} } Label { set msg [$w cget -text] set iw [font measure $font $msg] } } #Don't create a balloon if the text is fully visible. set create [expr {$iw > $ww - 8}] } else { set iw [font measure $font $msg] } if {$create} { set x [expr {[winfo rootx $w] + $ix}] set y [expr {[winfo rooty $w] + $iy + $ih + 2}] if {$x + $iw + 8 > [winfo screenwidth $w]} { set x [expr {[winfo screenwidth $w] - $iw - 8}] } toplevel .balloon -bg black wm overrideredirect .balloon 1 label .balloon.l \ -text $msg -relief flat -font $font -justify left \ -bg #ffffaa -fg black -padx 2 -pady 0 -anchor w pack .balloon.l -side left -padx 1 -pady 1 wm geometry .balloon +${x}+${y} set balloon(created) 1 } } } |
Added eskil.vfs/lib/pstools/pkgIndex.tcl.
> > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 | # Tcl package index file, version 1.1 # This file is generated by the "pkg_mkIndex" command # and sourced either when an application starts up or # by a "package unknown" script. It invokes the # "package ifneeded" command to set up package-related # information so that packages will be loaded automatically # in response to "package require" commands. When this # script is sourced, the variable $dir must contain the # full path name of this file's directory. package ifneeded pstools 0.3 [list source [file join $dir pstools.tcl]] |
Added eskil.vfs/lib/pstools/pstools.tcl.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | #---------------------------------------------------------------------- # # pstools.tcl, # a package providing misc facilites # # Copyright (c) 2003, Peter Spjuth (peter.spjuth@gmail.com) # # Permission is granted to use this code under the same terms as # for the Tcl core code. # #---------------------------------------------------------------------- # $Revision: 1.6 $ #---------------------------------------------------------------------- package provide pstools 0.3 package require Tcl 8.4 namespace eval pstools { namespace export safeLoad commonYScroll locateTmp locateEditor if {[info commands ::ttk::*] ne ""} { catch {namespace path ::ttk} } } ##nagelfar syntax _ipexists l ##nagelfar syntax _ipset v ##nagelfar syntax _iparray s v # Load a preference file # Args lists the variables allowed to be set by the file proc pstools::safeLoad {file args} { interp create -safe loadinterp interp alias {} _ipexists loadinterp info exists interp alias {} _ipset loadinterp set interp alias {} _iparray loadinterp array interp invokehidden loadinterp source $file foreach arg $args { upvar 1 $arg TheVar if {[_iparray exists $arg]} { foreach {key val} [_iparray get $arg] { if {[info exists TheVar($key)]} { set TheVar($key) $val } } } elseif {[_ipexists $arg]} { if {[info exists TheVar]} { set TheVar [_ipset $arg] } } } interp delete loadinterp } # Procedures for common y-scroll proc pstools::CommonYScroll_YView {sby args} { variable yscroll foreach w $yscroll($sby) { eval [list $w yview] $args } } proc pstools::CommonYScroll_YScroll {sby args} { eval [list $sby set] $args CommonYScroll_YView $sby moveto [lindex $args 0] } # Set up a common yscrollbar for a few scrollable widgets proc pstools::commonYScroll {sby args} { variable yscroll $sby configure -command [list pstools::CommonYScroll_YView $sby] foreach w $args { $w configure -yscrollcommand [list pstools::CommonYScroll_YScroll $sby] } set yscroll($sby) $args } # A simple window for displaying e.g. help. # Returns the frame where things can be put. proc pstools::helpWin {w title} { destroy $w toplevel $w -padx 2 -pady 2 wm title $w $title bind $w <Key-Return> [list destroy $w] bind $w <Key-Escape> [list destroy $w] frame $w.f button $w.b -text "Close" -command [list destroy $w] -width 10 \ -default active pack $w.b -side bottom -pady 2 pack $w.f -side top -expand y -fill both -padx 2 -pady 2 focus $w return $w.f } # Figure out a place to store temporary files. proc pstools::locateTmp {globVar} { upvar "#0" $globVar var set candidates {} if {[info exists ::env(TEMP)]} { lappend candidates $::env(TEMP) } if {[info exists ::env(TMP)]} { lappend candidates $::env(TMP) } lappend candidates /tmp . ~ foreach cand $candidates { set cand [file normalize $cand] if {[file isdirectory $cand] && [file writable $cand]} { set var $cand return } } # Panic? set var . } # This is called when an editor is needed to display a file. # It sets up the variable with the path, unless the var # already exists. proc pstools::locateEditor {globVar} { upvar "#0" $globVar var if {[info exists var]} return # What is a good value on Mac? if {$::tcl_platform(platform) == "unix"} { set var emacs } else { set var wordpad foreach dir [lsort -decreasing -dictionary \ [glob -nocomplain c:/apps/emacs*]] { set em [file join $dir bin runemacs.exe] set em [file normalize $em] if {[file exists $em]} { set var $em break } } } } |