Ignore:
Timestamp:
Oct 22, 2010, 4:06:10 PM (14 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

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

    r1342 r1929  
    3838itcl::body Rappture::DrawingEntry::constructor {owner path args} {
    3939    if {[catch {$owner isa Rappture::ControlOwner} valid] != 0 || !$valid} {
    40         error "bad object \"$owner\": should be Rappture::ControlOwner"
     40        error "bad object \"$owner\": should be Rappture::ControlOwner"
    4141    }
    4242    set _path $path
     
    4646    #
    4747    itk_component add drawing {
    48         Rappture::Drawing $itk_interior.drawing $owner $path
     48        Rappture::Drawing $itk_interior.drawing $owner $path
    4949    }
    5050    pack $itk_component(drawing) -expand yes -fill both
     
    6767    set i [lsearch -exact $args -check]
    6868    if {$i >= 0} {
    69         set onlycheck 1
    70         set args [lreplace $args $i $i]
     69        set onlycheck 1
     70        set args [lreplace $args $i $i]
    7171    }
    7272
    7373    if {[llength $args] == 1} {
    74         if {$onlycheck} {
    75             # someday we may add validation...
    76             return
    77         }
    78         set xmlobj [lindex $args 0]
    79         $itk_component(drawing) value $xmlobj
    80         return $xmlobj
     74        if {$onlycheck} {
     75            # someday we may add validation...
     76            return
     77        }
     78        set xmlobj [lindex $args 0]
     79        $itk_component(drawing) value $xmlobj
     80        return $xmlobj
    8181
    8282    } elseif {[llength $args] != 0} {
    83         error "wrong # args: should be \"value ?-check? ?newval?\""
     83        error "wrong # args: should be \"value ?-check? ?newval?\""
    8484    }
    8585
     
    100100    set label [$_owner xml get $_path.about.label]
    101101    if {"" == $label} {
    102         set label "Drawing"
     102        set label "Drawing"
    103103    }
    104104    return $label
     
    125125    set valid {normal disabled}
    126126    if {[lsearch -exact $valid $itk_option(-state)] < 0} {
    127         error "bad value \"$itk_option(-state)\": should be [join $valid {, }]"
     127        error "bad value \"$itk_option(-state)\": should be [join $valid {, }]"
    128128    }
    129129}
Note: See TracChangeset for help on using the changeset viewer.