Changeset 1742 for trunk/gui


Ignore:
Timestamp:
May 26, 2010 7:21:24 PM (14 years ago)
Author:
mmc
Message:

Added preview of outputs to the irappture builder. Fixed a problem
with the file chooser for the "save as" dialog. Added a distinction
between errors and warnings when looking for problems in the tool
definition.

Fixed a few problems in RapptureGUI affecting the scroller and the
way it refreshes itself when the frame within it suddenly shrinks.
Fixed the histogram to avoid errors when the histogram data is
empty. Fixed the analyzer so you can create it without setting
the -notebookpage option. All of these errors showed up in the
irappture builder.

Location:
trunk/gui/scripts
Files:
4 edited

Legend:

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

    r1663 r1742  
    2424option add *Analyzer.simControlActiveBackground #ffffcc widgetDefault
    2525option add *Analyzer.simControlActiveOutline black widgetDefault
    26 option add *Analyzer.notebookpage "about" widgetDefault
    2726
    2827option add *Analyzer.font \
     
    4746    itk_option define -simcontrolactivebackground simControlActiveBackground Background ""
    4847    itk_option define -holdwindow holdWindow HoldWindow ""
    49     itk_option define -notebookpage notebookPage NotebookPage ""
     48    itk_option define -notebookpage notebookPage NotebookPage "about"
    5049
    5150    constructor {tool args} { # defined below }
  • trunk/gui/scripts/histogram.tcl

    r1550 r1742  
    6767    itcl::delete object $_hist
    6868    # don't destroy the _xmlobj! we don't own it!
    69     blt::vector destroy $_widths $_heights $_locations
     69    if {"" != $_widths} {
     70        blt::vector destroy $_widths
     71    }
     72    if {"" != $_heights} {
     73        blt::vector destroy $_heights
     74    }
     75    if {"" != $_locations} {
     76        blt::vector destroy $_locations
     77    }
    7078}
    7179
     
    155163            error "bad option \"$which\": should be x, xlin, xlog, y, ylin, ylog"
    156164        }
     165    }
     166
     167    if {"" == $vname} {
     168        return {0 1}
    157169    }
    158170    $vname dup tmp
  • trunk/gui/scripts/historesult.tcl

    r1402 r1742  
    626626        set yv [$xydata heights]
    627627        set zv [$xydata widths]
     628
     629        if {"" == $xv} {
     630            continue
     631        }
    628632       
    629633        if {[info exists _histo2color($xydata)]} {
  • trunk/gui/scripts/scroller.tcl

    r1728 r1742  
    307307            set h [winfo reqheight $_frame.f]
    308308            $_frame configure -scrollregion [list 0 0 $w $h]
     309            _fixframe outer
    309310            _lock reset x
    310311            _lock reset y
Note: See TracChangeset for help on using the changeset viewer.