Changeset 2082 for trunk


Ignore:
Timestamp:
Feb 3, 2011 5:23:10 PM (13 years ago)
Author:
mmc
Message:

Final changes for the reorganization of the builder and the new "rappture"
command. The builder seems to be working properly again under this new
scheme with object definitions in the core library.

Location:
trunk
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/builder/scripts/Makefile.in

    r2081 r2082  
    2424                $(srcdir)/objpath.tcl \
    2525                $(srcdir)/slideframes.tcl \
     26                $(srcdir)/tool.rp \
    2627                $(srcdir)/tweener.tcl
    2728
  • trunk/builder/scripts/filmstrip.tcl

    r2081 r2082  
    278278
    279279        # fix up the scrolling region to include all of these items
     280        set x1 0
     281        set y1 0
    280282        foreach {x0 y0 x1 y1} [$itk_component(strip) bbox all] break
    281283        set x1 [expr {$x1+$itk_option(-padding)}]
  • trunk/builder/scripts/main.tcl

    r2081 r2082  
    109109lappend Rappture::icon::iconpath [file join $dir images]
    110110
     111# automatically load all Rappture object types
     112if {[catch {Rappture::objects::init} err]} {
     113    puts stderr "Error loading object definitions:\n$err"
     114    exit 1
     115}
     116if {[catch {Rappture::objects::load [file join $dir tool.rp]} err]} {
     117    puts stderr "Error loading tool object definition:\n$err"
     118    exit 1
     119}
     120
    111121# ----------------------------------------------------------------------
    112122#  HACK ALERT!  Make it so the Analyzer can't possibly enable its
     
    814824    set f [$win.pager page analyzer]
    815825    # note: simcontrol on but disabled due to _simState code above
    816     Rappture::Analyzer $f.analyze $ToolPreview -simcontrol on
     826    Rappture::Analyzer $f.analyze $ToolPreview -simcontrol on \
     827        -notebookpage about
    817828    pack $f.analyze -expand yes -fill both
    818829
     
    896907    pack $iwin.strip -expand yes -fill both
    897908
    898     foreach name [Rappture::objects::get] {
     909    foreach name [lsort [Rappture::objects::get]] {
    899910        set imh [Rappture::objects::get $name -image]
    900911        if {"" == $imh} {
  • trunk/gui/apps/launcher.tcl

    r2081 r2082  
    6161                lappend alist -tool $toolxml
    6262            }
    63             -testdir - -nosim {
     63            -tool - -testdir - -nosim {
    6464                lappend alist $opt [lindex $argv 0]
    6565                set argv [lrange $argv 1 end]
     
    8787}
    8888
    89 # if we didn't find a tool.xml file, then look for one here
    90 if {$toolxml eq ""} {
    91     if {![file exists tool.xml]} {
    92         puts stderr "rappture: can't find tool definition file \"tool.xml\""
    93         puts stderr "  Use the -tool option to specify the location of this file."
    94         exit 1
    95     }
    96     set alist [linsert $alist 0 -tool tool.xml]
    97 }
    98 
    9989# invoke the main program with the args
    10090eval exec wish [list $mainscript] $alist
  • trunk/lang/tcl/scripts/library.tcl

    r2080 r2082  
    1616namespace eval Rappture {
    1717    variable stdlib ""
    18 }
    19 
    20 # automatically load all Rappture object types
    21 if {[catch {Rappture::objects::init} err]} {
    22     puts stderr "Error loading object definitions:\n$err"
    23     exit 1
    2418}
    2519
  • trunk/lang/tcl/scripts/objects.tcl

    r2081 r2082  
    7979    # load supporting type definitions
    8080    foreach fname [glob [file join $installdir types *.tcl]] {
    81         source $fname
     81        uplevel #0 source $fname
    8282    }
    8383
    8484    # load supporting validation procs
    8585    foreach fname [glob [file join $installdir validations *.tcl]] {
    86         source $fname
     86        uplevel #0 source $fname
    8787    }
    8888
     
    137137                    set errs($tname) 1
    138138                }
     139            } else {
     140                lappend newilist $obj
    139141            }
    140142            $objDefs($name) configure -inherit $newilist
Note: See TracChangeset for help on using the changeset viewer.