Changeset 6225
- Timestamp:
- Mar 30, 2016 11:00:44 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/mapviewer.tcl
r6224 r6225 934 934 # ---------------------------------------------------------------------- 935 935 # USAGE: select clear 936 # USAGE: select feature <args...>937 # USAGE: select annotation <args...>936 # USAGE: select feature add|delete|set <featureIDList> <layerName> 937 # USAGE: select mode <boolean> 938 938 # 939 939 # Clients use this method to notify the map widget of a selection event … … 942 942 itcl::body Rappture::MapViewer::select {option {args ""}} { 943 943 switch $option { 944 "annotation" {945 SendCmd "select annotation $args"946 }947 944 "clear" { 945 if {[llength $args] > 0} { 946 error "wrong # args: should be \"select clear\"" 947 } 948 948 SendCmd "select clear" 949 949 } 950 950 "feature" { 951 if {[llength $args] != 3} { 952 error "wrong #args: should be \"select feature <op> <featureIDList> <layerName>\"" 953 } 951 954 set op [lindex $args 0] 952 955 set layer [lindex $args end] … … 969 972 } 970 973 } 974 } 975 "mode" { 976 if {[llength $args] != 1} { 977 error "wrong # args: should be \"select mode <boolean>\"" 978 } 979 if {![string is boolean $args]} { 980 error "argument to \"select mode\" must be boolean" 981 } 982 SendCmd "select mode $args" 971 983 } 972 984 default {
Note: See TracChangeset
for help on using the changeset viewer.