Ignore:
Timestamp:
Mar 12, 2009 7:00:58 PM (15 years ago)
Author:
gah
Message:

Added new icons for nanovisviewer

File:
1 edited

Legend:

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

    r1315 r1318  
     1
    12# ----------------------------------------------------------------------
    23#  COMPONENT: flowvisviewer - 3D vector field rendering
     
    173174        rename -highlightbackground -controlbackground controlBackground Background
    174175    }
    175     pack $itk_component(reset) -side left -padx {4 1} -pady 4
     176    pack $itk_component(reset) -side left -padx {4 1} -pady 2
    176177    Rappture::Tooltip::for $itk_component(reset) "Reset the view to the default zoom level"
    177178
     
    186187        rename -highlightbackground -controlbackground controlBackground Background
    187188    }
    188     pack $itk_component(zoomin) -side left -padx 1 -pady 4
     189    pack $itk_component(zoomin) -side left -padx 1 -pady 2
    189190    Rappture::Tooltip::for $itk_component(zoomin) "Zoom in"
    190191
     
    199200        rename -highlightbackground -controlbackground controlBackground Background
    200201    }
    201     pack $itk_component(zoomout) -side left -padx {1 4} -pady 4
     202    pack $itk_component(zoomout) -side left -padx {1 4} -pady 2
    202203    Rappture::Tooltip::for $itk_component(zoomout) "Zoom out"
    203204
     
    211212        rename -background -controlbackground controlBackground Background
    212213    }
    213     pack $itk_component(slicers) -side bottom -padx 4 -pady 4
     214    pack $itk_component(slicers) -side bottom -padx 4 -pady 2
    214215    grid rowconfigure $itk_component(slicers) 1 -weight 1
    215216    #
     
    338339        "Toggle the volume cloud on/off"
    339340    grid $itk_component(volume) -row 0 -column 0 -columnspan 3 \
    340         -sticky ew -padx 1 -pady 3
     341        -sticky ew -padx 1 -pady 2
    341342
    342343    #
     
    354355        rename -highlightbackground -controlbackground controlBackground Background
    355356    }
    356     pack $itk_component(settings) -side top -pady 2
     357    pack $itk_component(settings) -side top
    357358
    358359    Rappture::Balloon $itk_component(controls).panel -title "Settings"
     
    472473        rename -background -controlbackground controlBackground Background
    473474    }
    474     pack $itk_component(flowctrl) -side top -padx 4 -pady 4
     475    pack $itk_component(flowctrl) -side top -padx 4 -pady 0
    475476    grid rowconfigure $itk_component(flowctrl) 1 -weight 1
    476477
     
    491492    Rappture::Tooltip::for $itk_component(record) \
    492493        "Record flow visualization"
    493     grid $itk_component(record) -row 1 -column 0 -sticky ew -padx 1
     494    grid $itk_component(record) -row 1 -column 0 -padx 1
    494495
    495496    #
     
    498499    itk_component add stop {
    499500        label $itk_component(flowctrl).stop \
    500             -borderwidth 1 -relief sunken -state disable -padx 1 -pady 1 \
     501            -borderwidth 1 -relief sunken -padx 1 -pady 1 \
    501502            -image [Rappture::icon playback-stop]
    502503    } {
     
    509510    Rappture::Tooltip::for $itk_component(stop) \
    510511        "Stop flow visualization"
    511     grid $itk_component(stop) -row 1 -column 1 -sticky ew -padx 1
     512    grid $itk_component(stop) -row 1 -column 1 -padx 1
    512513
    513514    #
     
    527528    Rappture::Tooltip::for $itk_component(play) \
    528529        "Play/Pause flow visualization"
    529     grid $itk_component(play) -row 1 -column 2 -sticky ew -padx 1
     530    grid $itk_component(play) -row 1 -column 2 -padx 1
    530531
    531532    # Bindings for rotation via mouse
     
    951952
    952953        # raise the record button back up.
    953         $itk_component(record) configure -relief raised -state normal
     954        $itk_component(record) configure -relief raised
    954955
    955956        # FIXME: manually download file???
     
    13181319            switch -- $action {
    13191320                record {
    1320                     $itk_component(record) configure -relief sunken -state disable
    1321                     $itk_component(stop) configure -relief raised -state normal
    1322                     $itk_component(play) configure -relief raised -state normal
    1323                     set inner [$itk_component(controls).panel component inner]
    1324                     set frames [$inner.scales.framecnt value]
    1325                     set cmds "flow capture $frames"
    1326                     _send $cmds
     1321                    if { [$itk_component(record) cget -relief] != "sunken" } {
     1322                        $itk_component(record) configure -relief sunken
     1323                        $itk_component(stop) configure -relief raised
     1324                        $itk_component(play) configure -relief raised
     1325                        set inner \
     1326                            [$itk_component(controls).panel component inner]
     1327                        set frames [$inner.scales.framecnt value]
     1328                        set cmds "flow capture $frames"
     1329                        _send $cmds
     1330                    }
    13271331                }
    13281332                stop {
    1329                     $itk_component(record) configure -relief raised -state normal
    1330                     $itk_component(stop) configure -relief sunken -state disable
    1331                     $itk_component(play) configure -relief raised -state normal
    1332                     _pause
    1333                     set cmds "flow reset"
    1334                     _send $cmds
    1335 
     1333                    if { [$itk_component(stop) cget -relief] != "sunken" } {
     1334                        $itk_component(record) configure -relief raised
     1335                        $itk_component(stop) configure -relief sunken
     1336                        $itk_component(play) configure -relief raised
     1337                        _pause
     1338                        set cmds "flow reset"
     1339                        _send $cmds
     1340                    }
    13361341                }
    13371342                play {
    1338                     $itk_component(record) configure -relief raised -state normal
    1339                     $itk_component(stop) configure -relief raised -state normal
    1340                     $itk_component(play) configure \
    1341                         -image [Rappture::icon playback-pause] \
    1342                         -relief sunken -state normal
    1343                     bind $itk_component(play) <ButtonPress> \
    1344                         [itcl::code $this _pause]
    1345                     _play
     1343                    if { [$itk_component(play) cget -relief] != "sunken" } {
     1344                        $itk_component(record) configure -relief raised
     1345                        $itk_component(stop) configure -relief raised
     1346                        $itk_component(play) configure \
     1347                            -image [Rappture::icon playback-pause] \
     1348                            -relief sunken
     1349                        bind $itk_component(play) <ButtonPress> \
     1350                            [itcl::code $this _pause]
     1351                        _play
     1352                    }
    13461353                }
    13471354                default {
     
    13831390    $itk_component(play) configure \
    13841391        -image [Rappture::icon playback-start] \
    1385         -relief raised -state normal
     1392        -relief raised
    13861393    bind $itk_component(play) <ButtonPress> \
    13871394        [itcl::code $this _flow movie play toggle]
Note: See TracChangeset for help on using the changeset viewer.