X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=blobdiff_plain;f=yarrg%2Fwhere-vessels;h=97e5e6c0801a2119395f30a954610afa95e895cf;hp=14d2e0e2fce54153807a5774639c3ed4ba808a84;hb=651e153fc3598c12ae18ccf8c45d6dc80de9dbe1;hpb=55e0e74412d88ce934886762801cab2ab830a1a8 diff --git a/yarrg/where-vessels b/yarrg/where-vessels index 14d2e0e..97e5e6c 100755 --- a/yarrg/where-vessels +++ b/yarrg/where-vessels @@ -547,6 +547,20 @@ proc make-radio-smasher {sma label variable descs rows inrow} { } } +proc make-smashers {} { + make-radio-smasher subclass Subclass smash_subclass \ + {Show Normal/LE Hide} 1 0 + + make-radio-smasher owner Owner smash_owner \ + {Show Yours? {For you} Lock Hide} 2 3 + + global vc_codes vc_code2abbrev + + set cw [make-smasher size "Size\nround down" frame] + populate-control-grid-tickboxes $cw 2 0 smash_size $vc_codes \ + image val { return 0 } { return $vc_code2abbrev($val) } +} + #---------- filtering ---------- set filters {} @@ -1145,7 +1159,7 @@ proc islandnames-handler {offset maxchars} { proc widgets-setup {} { global canvas debug pirate ocean filterstyle - wm geometry . 1024x600 + wm geometry . 1200x800 wm title . "where-vessels - $pirate on the $ocean ocean" #----- map ----- @@ -1164,15 +1178,9 @@ proc widgets-setup {} { frame .islands -pady 2 pack .cp .filter .islands .smash -side top - label .smash.title -text Smash + label .smash.title -text {Display/combine details} grid .smash.title -row 0 -column 0 -columnspan 2 - make-radio-smasher subclass Subclass smash_subclass \ - {Show Normal/LE Hide} 1 0 - - make-radio-smasher owner Owner smash_owner \ - {Show Yours? {For you} Lock Hide} 2 3 - set filterstyle 1 trace add variable filterstyle write filterstyle-changed @@ -1355,6 +1363,7 @@ vesselclasses-init load-chart widgets-setup make-filters +make-smashers set notes_data {} if {[catch { parse-clipboard } emsg]} { @@ -1365,4 +1374,11 @@ after idle invoke_notes draw +if {$debug} { + package require Tclx + commandloop -async \ + -prompt1 { return "where-vessels% " } \ + -prompt2 { return "> " } +} + # rsync -r --exclude=\*~ yarrg/icons/. ijackson@chiark.greenend.org.uk:/home/ftp/users/ijackson/yarrg/vessel-info/.