- Timestamp:
- May 21, 2014, 5:00:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/mapviewer.tcl
r4361 r4362 201 201 array set _settings [subst { 202 202 camera-throw 0 203 coords-precision 5 204 coords-units "latlong_decimal_degrees" 205 coords-visible 1 203 206 grid 0 204 207 grid-type "geodetic" … … 370 373 bind $itk_component(view) <Double-3> \ 371 374 [itcl::code $this camera go %x %y 2.5] 375 bind $itk_component(view) <Double-3> \ 376 +[itcl::code $this SendCmd "map setpos %x %y"] 372 377 373 378 # Bindings for panning via keyboard … … 965 970 terrain-vertscale terrain-wireframe 966 971 } 972 FixSettings coords-visible 967 973 } else { 968 974 error "No map settings on reset" … … 1326 1332 } 1327 1333 switch -- $what { 1334 "coords-visible" - "coords-precision" - "coords-units" { 1335 set bool $_settings(coords-visible) 1336 set units $_settings(coords-units) 1337 set precision $_settings(coords-precision) 1338 SendCmd "map posdisp $bool $units $precision" 1339 } 1328 1340 "grid" - "grid-type" { 1329 1341 set bool $_settings(grid) … … 1332 1344 } 1333 1345 "camera-throw" { 1334 set bool $_settings( camera-throw)1346 set bool $_settings($what) 1335 1347 SendCmd "camera throw $bool" 1336 1348 } 1337 1349 "terrain-edges" { 1338 set bool $_settings( terrain-edges)1350 set bool $_settings($what) 1339 1351 SendCmd "map terrain edges $bool" 1340 1352 } 1341 1353 "terrain-lighting" { 1342 set bool $_settings( terrain-lighting)1354 set bool $_settings($what) 1343 1355 SendCmd "map terrain lighting $bool" 1344 1356 } … … 1348 1360 } 1349 1361 "terrain-vertscale" { 1350 set val $_settings( terrain-vertscale)1362 set val $_settings($what) 1351 1363 SendCmd "map terrain vertscale $val" 1352 1364 } 1353 1365 "terrain-wireframe" { 1354 set bool $_settings( terrain-wireframe)1366 set bool $_settings($what) 1355 1367 SendCmd "map terrain wireframe $bool" 1356 1368 } … … 1395 1407 -icon [Rappture::icon surface]] 1396 1408 $inner configure -borderwidth 4 1409 1410 checkbutton $inner.posdisp \ 1411 -text "Show Coordinate Readout" \ 1412 -variable [itcl::scope _settings(coords-visible)] \ 1413 -command [itcl::code $this AdjustSetting coords-visible] \ 1414 -font "Arial 9" -anchor w 1397 1415 1398 1416 checkbutton $inner.grid \ … … 1440 1458 1441 1459 blt::table $inner \ 1442 0,0 $inner.grid -cspan 2 -anchor w -pady 2 \ 1443 1,0 $inner.wireframe -cspan 2 -anchor w -pady 2 \ 1444 2,0 $inner.lighting -cspan 2 -anchor w -pady 2 \ 1445 3,0 $inner.edges -cspan 2 -anchor w -pady 2 \ 1446 4,0 $inner.vscale_l -anchor w -pady 2 \ 1447 4,1 $inner.vscale -fill x -pady 2 \ 1448 5,0 $inner.palette_l -anchor w -pady 2 \ 1449 5,1 $inner.palette -fill x -pady 2 1460 0,0 $inner.posdisp -cspan 2 -anchor w -pady 2 \ 1461 1,0 $inner.grid -cspan 2 -anchor w -pady 2 \ 1462 2,0 $inner.wireframe -cspan 2 -anchor w -pady 2 \ 1463 3,0 $inner.lighting -cspan 2 -anchor w -pady 2 \ 1464 4,0 $inner.edges -cspan 2 -anchor w -pady 2 \ 1465 5,0 $inner.vscale_l -anchor w -pady 2 \ 1466 5,1 $inner.vscale -fill x -pady 2 \ 1467 6,0 $inner.palette_l -anchor w -pady 2 \ 1468 6,1 $inner.palette -fill x -pady 2 1450 1469 1451 1470 blt::table configure $inner r* c* -resize none 1452 blt::table configure $inner r 7c1 -resize expand1471 blt::table configure $inner r8 c1 -resize expand 1453 1472 } 1454 1473
Note: See TracChangeset
for help on using the changeset viewer.