Changeset 465


Ignore:
Timestamp:
Jun 8, 2006, 9:31:17 AM (18 years ago)
Author:
mmc
Message:

Fixed the bug report dialog so that Control-1-1-3-3 will bring up details
about the error message, so you can see the stack trace.

Fixed the nanovisviewer so that the cut planes stay in the right place
when you change volumes.

Fixed an error in the download mechanism for the energy levels viewer.
It was complaining about the new -description parameter.

Location:
trunk/gui/scripts
Files:
3 edited

Legend:

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

    r464 r465  
    5353    raise .bugreport
    5454
     55    .bugreport.details.text configure -state normal
     56    .bugreport.details.text delete 1.0 end
     57    .bugreport.details.text insert end "$err\n-----\n$errorInfo"
     58    .bugreport.details.text configure -state disabled
    5559    # should log the error someday too...
    5660
     
    9195pack .bugreport.expl -padx 8 -pady 8
    9296
     97bind .bugreport.expl <Control-1><Control-1><Control-3><Control-3> {
     98    pack forget .bugreport.expl
     99    pack .bugreport.details -after .bugreport.ok \
     100        -expand yes -fill both -padx 8 -pady 8
     101}
     102
     103Rappture::Scroller .bugreport.details
     104text .bugreport.details.text -wrap none
     105.bugreport.details contents .bugreport.details.text
     106
    93107# this binding keeps the bugreport window on top
    94108bind BugReportOnTop <ButtonPress> {
  • trunk/gui/scripts/energyLevels.tcl

    r413 r465  
    262262        -raise 0
    263263        -linestyle solid
     264        -description ""
    264265    }
    265266    foreach {opt val} $settings {
  • trunk/gui/scripts/nanovisviewer.tcl

    r464 r465  
    808808
    809809    # sync the state of slicers
     810    set vols [_currentVolumeIds]
    810811    foreach axis {x y z} {
    811         eval _send cutplane state [_state ${axis}slice] \
    812             $axis [_currentVolumeIds]
    813     }
    814     eval _send volume data state [_state volume] [_currentVolumeIds]
     812        eval _send cutplane state [_state ${axis}slice] $axis $vols
     813        set pos [expr {0.01*[$itk_component(${axis}slicer) get]}]
     814        eval _send cutplane position $pos $axis $vols
     815    }
     816    eval _send volume data state [_state volume] $vols
    815817
    816818    # if there are any commands in the buffer, send them now that we're done
     
    952954
    953955        # sync the state of slicers
     956        set vols [_currentVolumeIds]
    954957        foreach axis {x y z} {
    955             eval _send cutplane state [_state ${axis}slice] \
    956                 $axis [_currentVolumeIds]
    957         }
    958         eval _send volume data state [_state volume] [_currentVolumeIds]
     958            eval _send cutplane state [_state ${axis}slice] $axis $vols
     959            set pos [expr {0.01*[$itk_component(${axis}slicer) get]}]
     960            eval _send cutplane position $pos $axis $vols
     961        }
     962        eval _send volume data state [_state volume] $vols
    959963        $_dispatcher event -idle !legend
    960964    }
Note: See TracChangeset for help on using the changeset viewer.