Changeset 5892 for trunk/gui


Ignore:
Timestamp:
Sep 29, 2015, 3:41:43 PM (9 years ago)
Author:
ldelgass
Message:

add select notification handler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/mapviewer.tcl

    r5883 r5892  
    6161    }
    6262    public method scale {args}
     63    public method select {option {args ""}}
    6364
    6465    private method KeyPress { key }
     
    213214    $_parser alias camera   [itcl::code $this camera]
    214215    $_parser alias screen   [itcl::code $this ReceiveScreenInfo]
     216    $_parser alias select   [itcl::code $this select]
    215217
    216218    # Millisecond delay before animated wait dialog appears
     
    870872            # TODO: Enable controls like vertical scale that only have
    871873            # an effect when terrain is present
     874        }
     875    }
     876}
     877
     878# ----------------------------------------------------------------------
     879# USAGE: select clear
     880# USAGE: select feature
     881# USAGE: select annotation
     882# ----------------------------------------------------------------------
     883itcl::body Rappture::MapViewer::select {option {args ""}} {
     884    DebugTrace "Enter"
     885    switch $option {
     886        "annotation" {
     887            puts stderr "select annotation $args"
     888        }
     889        "clear" {
     890             puts stderr "select clear"
     891        }
     892        "feature" {
     893             puts stderr "select feature $args"
    872894        }
    873895    }
Note: See TracChangeset for help on using the changeset viewer.