Changeset 2325 for branches/blt4/gui


Ignore:
Timestamp:
Jul 29, 2011 12:52:41 PM (13 years ago)
Author:
gah
Message:

remove -lrappture from build

Location:
branches/blt4/gui/scripts
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/gui/scripts/Makefile.in

    r2201 r2325  
    5050                $(srcdir)/energyLevels.tcl \
    5151                $(srcdir)/field.tcl \
     52                $(srcdir)/fieldentry.tcl \
    5253                $(srcdir)/field2dresult.tcl \
    5354                $(srcdir)/field3dresult.tcl \
  • branches/blt4/gui/scripts/controls.tcl

    r2173 r2325  
    581581                            set queue [lrange $queue 1 end]
    582582                            set c [winfo class $w]
    583                             if {[lsearch {DeviceEditor Note} $c] >= 0} {
     583                            if {[lsearch {DeviceEditor FieldEditor Note} $c] >= 0} {
    584584                                set expandgroup 1
    585585                                break
  • branches/blt4/gui/scripts/field.tcl

    r2297 r2325  
    153153
    154154    set rlist ""
     155    puts stderr "children of field=[$_field children]"
    155156
    156157    # BE CAREFUL: return component names in proper order
    157158    foreach cname [$_field children -type component] {
     159        puts stderr "cname=$cname"
    158160        if {[info exists _comp2dims($cname)]
    159161              && [string match $pattern $cname]} {
  • branches/blt4/gui/scripts/heightmapviewer.tcl

    r2048 r2325  
    3535    inherit Rappture::VisViewer
    3636
     37    itk_option define -device device Device ""
    3738    itk_option define -plotforeground plotForeground Foreground ""
    3839    itk_option define -plotbackground plotBackground Background ""
     
    752753            # Tell the engine to expect some data
    753754            set tag $dataobj-$comp
     755            puts stderr "dataobj=$dataobj component=$comp tag=$tag"
    754756            if { ![info exists _serverObjs($tag)] } {
    755757                set data [$dataobj blob $comp]
     
    10501052            set tag ""
    10511053            if {"" != $_first} {
     1054 puts stderr "first=$_first components=[$_first components]"
    10521055                set comp [lindex [$_first components] 0]
    10531056                set tag $_first-$comp
     
    14201423    $inner.format value  "PNG (Portable Network Graphics format)"
    14211424}
     1425
     1426# ----------------------------------------------------------------------
     1427# OPTION: -device
     1428# ----------------------------------------------------------------------
     1429itcl::configbody Rappture::HeightmapViewer::device {
     1430    puts stderr "HeightmapViewer: device=$itk_option(-device)"
     1431    if {$itk_option(-device) != "" } {
     1432
     1433        if {![Rappture::library isvalid $itk_option(-device)]} {
     1434            error "bad value \"$itk_option(-device)\": should be Rappture::library object"
     1435        }
     1436        $this delete
     1437        $this add $itk_option(-device)
     1438    } else {
     1439        $this delete
     1440    }
     1441
     1442    if { [isconnected] } {
     1443        $_dispatcher event -idle !rebuild
     1444    }
     1445}
     1446
  • branches/blt4/gui/scripts/page.tcl

    r2173 r2325  
    7979            continue
    8080        }
    81 
     81        puts stderr "type=$type"
    8282        if {$type == "loader"} {
    8383            #
     
    126126                    $xmlobj put $path.$cname.current $obj
    127127                }
     128            }
     129
     130            # if there's a link, then set up a callback to load from it
     131            set link [$xmlobj get $path.$cname.link]
     132            if {"" != $link} {
     133                $_owner notify add $this $link \
     134                    [itcl::code $this _link $xmlobj $link $w $path.$cname]
     135            }
     136        } elseif {$type == "fieldentry"} {
     137            puts stderr "found $type"
     138            #
     139            # Add <structure>'s as the central element of the page.
     140            #
     141            set w "$frame.entry[incr num]"
     142            ::Rappture::FieldEntry ::$w $_owner@$path.$cname.current
     143            pack $w -expand yes -fill both
     144            $_owner widgetfor $path.$cname $w
     145            bind $w <<Value>> [list $_owner changed $path.$cname]
     146
     147            if {"" == $deveditor} {
     148                set deveditor $w
     149            }
     150
     151            # if there's a default value, load it now
     152            if {"" != [$xmlobj element -as type $path.$cname.current]} {
     153                set elem $path.$cname.current
     154            } else {
     155                set elem $path.$cname.default
     156            }
     157            if {"" != [$xmlobj element -as type $elem]} {
     158                set dataobj [Rappture::Field ::\#auto $xmlobj $elem]
     159                $w value $dataobj
    128160            }
    129161
     
    262294    $_owner changed $path2
    263295}
     296
  • branches/blt4/gui/scripts/visviewer.tcl

    r2242 r2325  
    527527#
    528528itcl::body Rappture::VisViewer::SendEcho {channel {data ""}} {
    529     #puts stderr ">>($data)"
     529    puts stderr ">>($data)"
    530530    if {[string length $itk_option(-sendcommand)] > 0} {
    531531        uplevel #0 $itk_option(-sendcommand) [list $channel $data]
Note: See TracChangeset for help on using the changeset viewer.