Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fixed a bug in font dialog. Added griffin kit and some gui options. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
4b9a7995b9993de3ae8b887f4322159b |
User & Date: | peter 2003-12-14 21:10:59.000 |
Context
2003-12-14
| ||
21:29 | Changed application name to Eskil. check-in: 8f64d52800 user: peter tags: trunk | |
21:10 | Fixed a bug in font dialog. Added griffin kit and some gui options. check-in: 4b9a7995b9 user: peter tags: trunk | |
2003-12-09
| ||
23:12 | Fixed about-window a bit. Release 2.0b2. check-in: b7d10f21c9 user: peter tags: trunk | |
Changes
Changes to src/eskil.tcl.
︙ | ︙ | |||
23 24 25 26 27 28 29 | if {[catch {package require psballoon}]} { # Add a dummy if it does not exists. proc addBalloon {args} {} } else { namespace import -force psballoon::addBalloon } | | | | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | if {[catch {package require psballoon}]} { # Add a dummy if it does not exists. proc addBalloon {args} {} } else { namespace import -force psballoon::addBalloon } set debug 1 set diffver "Version 2.0b2+ 2003-12-14" set thisScript [file join [pwd] [info script]] set thisDir [file dirname $thisScript] # Follow any link set tmplink $thisScript while {[file type $tmplink] == "link"} { set tmplink [file readlink $tmplink] |
︙ | ︙ | |||
3447 3448 3449 3450 3451 3452 3453 | pack .pr.fc -side top -fill x pack .pr.b1 .pr.b2 .pr.b3 -side left -expand 1 -fill x -anchor s \ -padx 2 -pady 2 } # Change font preference | | | | | 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 | pack .pr.fc -side top -fill x pack .pr.b1 .pr.b2 .pr.b3 -side left -expand 1 -fill x -anchor s \ -padx 2 -pady 2 } # Change font preference proc applyFont {lb} { global Pref TmpPref set Pref(fontsize) $TmpPref(fontsize) set i [lindex [$lb curselection] 0] set Pref(fontfamily) [$lb get $i] chFont } # Update example font proc exampleFont {lb} { global TmpPref |
︙ | ︙ | |||
3500 3501 3502 3503 3504 3505 3506 | button .fo.bm -text - -padx 0 -pady 0 -highlightthickness 0 \ -command "incr TmpPref(fontsize) -1 ; exampleFont $lb" button .fo.bp -text + -padx 0 -pady 0 -highlightthickness 0 \ -command "incr TmpPref(fontsize) ; exampleFont $lb" entry .fo.es -textvariable TmpPref(fontsize) -width 3 bind .fo.es <KeyPress> [list after idle [list exampleFont $lb]] label .fo.le -text "Example" -anchor w -font tmpfont -width 1 | | | | 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 | button .fo.bm -text - -padx 0 -pady 0 -highlightthickness 0 \ -command "incr TmpPref(fontsize) -1 ; exampleFont $lb" button .fo.bp -text + -padx 0 -pady 0 -highlightthickness 0 \ -command "incr TmpPref(fontsize) ; exampleFont $lb" entry .fo.es -textvariable TmpPref(fontsize) -width 3 bind .fo.es <KeyPress> [list after idle [list exampleFont $lb]] label .fo.le -text "Example" -anchor w -font tmpfont -width 1 button .fo.bo -text "Ok" -command "applyFont $lb ; destroy .fo" button .fo.ba -text "Apply" -command "applyFont $lb" button .fo.bc -text "Close" -command "destroy .fo" if {![info exists FontCache]} { set fam [lsort -dictionary [font families]] font create testfont foreach f $fam { if {![string equal $f ""]} { |
︙ | ︙ | |||
4816 4817 4818 4819 4820 4821 4822 4823 | set ::diff(filter) "" if {[file exists "~/.diffrc"]} { source "~/.diffrc" } } | > > < < > > > > > > > > > > > > | > > > < < | > > > > | 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 | set ::diff(filter) "" if {[file exists "~/.diffrc"]} { source "~/.diffrc" } } proc defaultGuiOptions {} { catch {package require griffin} option add *Menu.tearOff 0 if {[tk windowingsystem]=="x11"} { option add *Menu.activeBorderWidth 1 option add *Menu.borderWidth 1 option add *Listbox.exportSelection 0 option add *Listbox.borderWidth 1 option add *Listbox.highlightThickness 1 option add *Font "Helvetica -12" option add *Scrollbar.highlightThickness 0 option add *Scrollbar.takeFocus 0 } if {$::tcl_platform(platform) == "windows"} { option add *Panedwindow.sashRelief flat option add *Panedwindow.sashWidth 4 option add *Panedwindow.sashPad 0 #option add *Menubutton.activeBackground SystemHighlight #option add *Menubutton.activeForeground SystemHighlightText option add *Menubutton.padY 1 } } if {![info exists gurkmeja]} { set gurkmeja 1 defaultGuiOptions if {0 && [bind all <Alt-KeyPress>] == ""} { bind all <Alt-KeyPress> [bind Menubutton <Alt-KeyPress>] #after 500 "tk_messageBox -message Miffo" } getOptions wm withdraw . parseCommandLine } |