Changeset 24 for trunk/gui/scripts/deviceViewer1D.tcl
- Timestamp:
- Jul 17, 2005 11:14:06 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/deviceViewer1D.tcl
r23 r24 16 16 package require BLT 17 17 18 option add *DeviceViewer1D.width 4i widgetDefault19 option add *DeviceViewer1D.height 4i widgetDefault20 18 option add *DeviceViewer1D.padding 4 widgetDefault 21 19 option add *DeviceViewer1D.deviceSize 0.25i widgetDefault … … 34 32 protected method _loadDevice {} 35 33 protected method _changeTabs {} 34 protected method _fixSize {} 36 35 protected method _fixAxes {} 37 36 protected method _align {} … … 60 59 set _owner $owner 61 60 62 itk_option add hull.width hull.height63 61 pack propagate $itk_component(hull) no 64 62 … … 95 93 blt::graph $itk_component(inner).graph \ 96 94 -highlightthickness 0 -plotpadx 0 -plotpady 0 \ 97 -width 3i -height 3i95 -width 4i -height 2i 98 96 } { 99 97 keep -background -foreground -cursor -font … … 120 118 121 119 eval itk_initialize $args 120 121 _fixSize 122 122 } 123 123 … … 294 294 $itk_component(graph) configure \ 295 295 -rightmargin [$itk_component(layout) extents bar3D] 296 297 _fixSize 296 298 } 297 299 … … 408 410 after cancel [itcl::code $this _fixAxes] 409 411 after 100 [itcl::code $this _fixAxes] 412 } 413 414 # ---------------------------------------------------------------------- 415 # USAGE: _fixSize 416 # 417 # Used internally to fix the overall size of this widget based on 418 # the various parts inside. Sets the requested width/height of the 419 # widget so that it is big enough to display the device and its 420 # fields. 421 # ---------------------------------------------------------------------- 422 itcl::body Rappture::DeviceViewer1D::_fixSize {} { 423 update idletasks 424 set w [winfo reqwidth $itk_component(tabs)] 425 set h [winfo reqheight $itk_component(tabs)] 426 component hull configure -width $w -height $h 410 427 } 411 428
Note: See TracChangeset
for help on using the changeset viewer.