Ignore:
Timestamp:
Feb 19, 2009 3:13:35 PM (15 years ago)
Author:
gah
Message:

scripts/xyresult.tcl:

Changed buttons to use new icons (reset and wrench for legend).

scripts/nanovisviewer.tcl:

Changed buttons to use new icons (reset, zoom-in, and zoom-out).

scripts/visviewer.tcl:

Added drawer (pandedwindow) to base class so derived classes
could use it if so desired.

scripts/scroller.tcl:

Added scrollwheel binds for vertical scrolling.

scripts/images/atom-label.gif, scripts/images/reset-view.gif,
scripts/images/wrench.gif, scripts/images/zoom-in.gif,
scripts/images/zoom-out.gif, scripts/images/rock-view.gif:

Added new icons.

scripts/molvisviewer.tcl:

Added projection button to change between orthoscopic and perspective
projects.
Changed settings button into icon.
Moved settings menu into settings drawer.
Added scale to adjust atom scale.
Fixed representation method to not call rebuild when setting
"ballnstick", "lines", or "spheres" representations.
Requires new pymolproxy.

(gah@…)

File:
1 edited

Legend:

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

    r1247 r1277  
    8888}
    8989
     90itk::usual Panedwindow {
     91    keep -background -cursor
     92}
     93
    9094# ----------------------------------------------------------------------
    9195# CONSTRUCTOR
     
    128132    # RENDERING AREA
    129133    #
     134    itk_component add drawer {
     135        panedwindow $itk_interior.drawer \
     136            -orient horizontal -opaqueresize 1 -handlepad 0 \
     137            -handlesize 1 -sashwidth 2     
     138    }
     139    pack $itk_component(drawer) -expand yes -fill both
     140
    130141    itk_component add area {
    131142        frame $itk_interior.area
    132143    }
    133     pack $itk_component(area) -expand yes -fill both
     144    $itk_component(drawer) add $itk_component(area) -sticky nsew
    134145
    135146    set _image(plot) [image create photo]
     
    273284itcl::body Rappture::VisViewer::Disconnect {} {
    274285    $_dispatcher cancel !timeout
    275     if { [IsConnected] } {
    276         catch {close $sid_}
    277         set sid_ ""
    278     }
     286    catch {close $sid_}
     287    set sid_ ""
    279288    set buffer_(in) ""
    280289}
     
    450459        return 0
    451460    }
    452     if { [gets $sid_ line] < 0 } {
     461    set n [gets $sid_ line]
     462   
     463    if { $n < 0 } {
    453464        Disconnect
     465        return 0
    454466    }
    455467    set line [string trim $line]
Note: See TracChangeset for help on using the changeset viewer.