Ignore:
Timestamp:
Feb 8, 2006 5:18:56 PM (16 years ago)
Author:
mmc
Message:
  • Fixed the license terms to comply with the official open source license from Purdue's OTC office.
  • Fixed the scroller to handle scrollbars properly. They weren't always popping up when needed. Sometimes you had to scroll a little first. Better now.
  • Fixed the DeviceEditor? to pack its internal widgets better, so images within a DeviceViewer1D structure can change size and will show up properly.
  • Fixed the analyzer to take down the progress bar properly when there's an error during execution.
  • Fixed the Rappture::exec command to initialize execctl properly, in case there's an error during execution.
File:
1 edited

Legend:

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

    r115 r168  
    4545    }
    4646    pack $itk_component(top) -fill x
    47 
    48     itk_component add editors {
    49         Rappture::Notebook $itk_interior.editors
    50     }
    51     pack $itk_component(editors) -expand yes -fill both
    5247
    5348    eval itk_initialize $args
     
    117112    switch -- [_type $_xmlobj] {
    118113        molecule {
    119             if {[catch {$itk_component(editors) page molecule} p]} {
    120                 set p [$itk_component(editors) insert end molecule]
    121                 Rappture::MoleculeViewer $p.mol $this
    122                 pack $p.mol -expand yes -fill both
     114            if {![winfo exists $itk_component(hull).mol]} {
     115                catch {destroy $itk_component(hull).dev}
     116                Rappture::MoleculeViewer $itk_component(hull).mol $this
     117                pack $itk_component(hull).mol -expand yes -fill both
    123118            }
    124             $p.mol configure -device $_xmlobj
    125             $itk_component(editors) current molecule
     119            $itk_component(hull).mol configure -device $_xmlobj
    126120
    127             set _current $p.mol
     121            set _current $itk_component(hull).mol
    128122        }
    129123        device1D {
    130             if {[catch {$itk_component(editors) page device1D} p]} {
    131                 set p [$itk_component(editors) insert end device1D]
    132                 Rappture::DeviceViewer1D $p.dev $this
    133                 pack $p.dev -expand yes -fill both
     124            if {![winfo exists $itk_component(hull).dev]} {
     125                catch {destroy $itk_component(hull).mol}
     126                Rappture::DeviceViewer1D $itk_component(hull).dev $this
     127                pack $itk_component(hull).dev -expand yes -fill both
    134128            }
    135             $p.dev configure -device $_xmlobj
    136             $itk_component(editors) current device1D
     129            $itk_component(hull).dev configure -device $_xmlobj
    137130
    138             set _current $p.dev
     131            set _current $itk_component(hull).dev
    139132        }
    140133    }
Note: See TracChangeset for help on using the changeset viewer.