Changeset 1609


Ignore:
Timestamp:
Nov 3, 2009, 2:24:14 PM (15 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

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

    r1608 r1609  
    528528        -textvariable [itcl::scope _settings($this-layout-width)]
    529529    bind  $page.width <KeyPress-Return> [itcl::code $this ApplyLayoutSettings]
     530    Rappture::Tooltip::for $page.width \
     531        "Set the width (inches) of the output image. Must be a positive number."
    530532
    531533    label $page.height_l -text "height"
     
    533535        -textvariable [itcl::scope _settings($this-layout-height)]
    534536    bind  $page.height <KeyPress-Return> [itcl::code $this ApplyLayoutSettings]
     537    Rappture::Tooltip::for $page.height \
     538        "Set the height (inches) of the output image. Must be a positive number"
    535539
    536540    label $page.margin_l -text "Margins" 
     
    540544        -textvariable [itcl::scope _settings($this-layout-leftmargin)]
    541545    bind  $page.left <KeyPress-Return> [itcl::code $this ApplyLayoutSettings]
     546    Rappture::Tooltip::for $page.left \
     547        "Set the size (inches) of the left margin. If zero, the size is automatically determined."
    542548
    543549    label $page.right_l -text "right"
     
    545551        -textvariable [itcl::scope _settings($this-layout-rightmargin)]
    546552    bind  $page.right <KeyPress-Return> [itcl::code $this ApplyLayoutSettings]
     553    Rappture::Tooltip::for $page.right \
     554        "Set the size (inches) of the right margin. If zero, the size is automatically determined."
     555
    547556
    548557    label $page.top_l -text "top"
     
    550559        -textvariable [itcl::scope _settings($this-layout-topmargin)]
    551560    bind  $page.top <KeyPress-Return> [itcl::code $this ApplyLayoutSettings]
     561    Rappture::Tooltip::for $page.top \
     562        "Set the size (inches) of the top margin. If zero, the size is automatically determined."
    552563
    553564    label $page.bottom_l -text "bottom"
     
    555566        -textvariable [itcl::scope _settings($this-layout-bottommargin)]
    556567    bind  $page.bottom <KeyPress-Return> [itcl::code $this ApplyLayoutSettings]
     568    Rappture::Tooltip::for $page.bottom \
     569        "Set the size (inches) of the bottom margin. If zero, the size is automatically determined."
    557570
    558571    blt::table $page \
     
    594607
    595608    bind $page.format <<Value>> [itcl::code $this ApplyGeneralSettings]
     609    Rappture::Tooltip::for $page.format \
     610        "Set the format of the image."
    596611
    597612    label $page.style_l -text "style"
     
    601616        "gekco" "G Klimeck" 
    602617    bind $page.style <<Value>> [itcl::code $this ApplyGeneralSettings]
     618    Rappture::Tooltip::for $page.format \
     619        "Set the style template."
    603620
    604621    checkbutton $page.remember -text "remember settings" \
    605622        -variable [itcl::scope _settings($this-general-remember)] 
     623    Rappture::Tooltip::for $page.remember \
     624        "Remember the settings. They will be override the default settings."
    606625
    607626    blt::table $page \
     
    639658        -variable [itcl::scope _settings($this-legend-hide)]  \
    640659        -command [itcl::code $this ApplyLegendSettings]
     660    Rappture::Tooltip::for $page.show \
     661        "Display the legend."
    641662
    642663    label $page.position_l -text "position"
     
    649670        "plotarea" "inside plot"
    650671    bind $page.position <<Value>> [itcl::code $this ApplyLegendSettings]
     672    Rappture::Tooltip::for $page.position \
     673        "Set the position of the legend.  This option and the anchor determine the legend's location."
    651674
    652675    Rappture::Combobox $page.anchor -width 10 -editable no
     
    662685        "w" "west" 
    663686    bind $page.anchor <<Value>> [itcl::code $this ApplyLegendSettings]
     687    Rappture::Tooltip::for $page.anchor \
     688        "Set the anchor of the legend.  This option and the anchor determine the legend's location."
    664689
    665690    checkbutton $page.border -text "border" \
     
    668693        -onvalue 1 -offvalue 0 \
    669694        -command [itcl::code $this ApplyLegendSettings]
     695    Rappture::Tooltip::for $page.border \
     696        "Display a solid border around the legend."
    670697
    671698    label $page.slider_l -text "legend\nentry"  -font "Arial 10" -justify right
     
    675702            -command [itcl::code $this GetElement]
    676703    }
    677     checkbutton $page.hide -text "hide" \
    678         -font "Arial 10"  \
    679         -variable [itcl::scope _settings($this-element-hide)] \
    680         -command [itcl::code $this ApplyElementSettings]
     704    Rappture::Tooltip::for $page.slider \
     705        "Select the current entry."
    681706
    682707    label $page.label_l -text "label" -font "Arial 10"
     
    686711        -textvariable [itcl::scope _settings($this-element-label)]
    687712    bind  $page.label <KeyPress-Return> [itcl::code $this ApplyElementSettings]
     713    Rappture::Tooltip::for $page.label \
     714        "Set the label of the current entry in the legend."
    688715
    689716    label $page.color_l -text "color "  -font "Arial 10"
     
    709736        "#00ff00" "green1"
    710737    bind $page.color <<Value>> [itcl::code $this ApplyElementSettings]
     738    Rappture::Tooltip::for $page.color \
     739        "Set the color of the current entry."
    711740
    712741    label $page.dashes_l -text "line style"  -font "Arial 10"
     
    719748        "2 4 2 2" "dashdotdot"
    720749    bind $page.dashes <<Value>> [itcl::code $this ApplyElementSettings]
     750    Rappture::Tooltip::for $page.dashes \
     751        "Set the line style of the current entry."
    721752
    722753    label $page.symbol_l -text "symbol"  -font "Arial 10"
     
    733764        "triangle" "triangle"
    734765    bind $page.symbol <<Value>> [itcl::code $this ApplyElementSettings]
     766    Rappture::Tooltip::for $page.symbol \
     767        "Set the symbol of the current entry. \"none\" display no symbols."
    735768
    736769    label $page.font_l -text "font"
     
    743776        "times"  "times"         
    744777    bind $page.fontfamily <<Value>> [itcl::code $this ApplyLegendSettings]
     778    Rappture::Tooltip::for $page.fontfamily \
     779        "Set the font of entries in the legend."
    745780
    746781    Rappture::Combobox $page.fontsize -width 4 -editable no
     
    756791        "20" "20"
    757792    bind  $page.fontsize <<Value>> [itcl::code $this ApplyLegendSettings]
     793    Rappture::Tooltip::for $page.fontsize \
     794        "Set the size (points) of the font."
    758795
    759796    Rappture::PushButton $page.fontweight \
     
    764801        -command [itcl::code $this ApplyLegendSettings] \
    765802        -variable [itcl::scope _settings($this-legend-font-weight)]
     803    Rappture::Tooltip::for $page.fontweight \
     804        "Use the bold version of the font."
    766805
    767806    Rappture::PushButton $page.fontslant \
     
    772811        -command [itcl::code $this ApplyLegendSettings] \
    773812        -variable [itcl::scope _settings($this-legend-font-slant)]
     813    Rappture::Tooltip::for $page.fontslant \
     814        "Use the italic version of the font."
    774815
    775816    blt::table $page \
     
    813854    }
    814855    bind $itk_component(axis_combo) <<Value>> [itcl::code $this GetAxis]
     856    Rappture::Tooltip::for $page.axis \
     857        "Select the current axis."
    815858
    816859    label $page.title_l -text "title"  -font "Arial 10"
     
    818861        -textvariable [itcl::scope _settings($this-axis-title)]
    819862    bind  $page.title <KeyPress-Return> [itcl::code $this ApplyAxisSettings]
     863    Rappture::Tooltip::for $page.title \
     864        "Set the title of the current axis."
    820865
    821866    label $page.min_l -text "min"  -font "Arial 10"
     
    823868        -textvariable [itcl::scope _settings($this-axis-min)]
    824869    bind  $page.min <KeyPress-Return> [itcl::code $this ApplyAxisSettings]
     870    Rappture::Tooltip::for $page.min \
     871        "Set the minimum limit for the current axis. If empty, the minimum is automatically determined."
    825872
    826873    label $page.max_l -text "max"  -font "Arial 10"
     
    828875        -textvariable [itcl::scope _settings($this-axis-max)]
    829876    bind  $page.max <KeyPress-Return> [itcl::code $this ApplyAxisSettings]
     877    Rappture::Tooltip::for $page.max \
     878        "Set the maximum limit for the current axis. If empty, the maximum is automatically determined."
    830879
    831880    label $page.subdivisions_l -text "subdivisions"  -font "Arial 10"
     
    834883    bind  $page.subdivisions <KeyPress-Return> \
    835884        [itcl::code $this ApplyAxisSettings]
     885    Rappture::Tooltip::for $page.subdivisions \
     886        "Set the number of subdivisions (minor ticks) for the current axis."
    836887
    837888    label $page.stepsize_l -text "step size"  -font "Arial 10"
     
    839890        -textvariable [itcl::scope _settings($this-axis-stepsize)]
    840891    bind  $page.stepsize <KeyPress-Return> [itcl::code $this ApplyAxisSettings]
     892    Rappture::Tooltip::for $page.stepsize \
     893        "Set the interval between major ticks for the current axis. If zero, the interval is automatically determined."
    841894
    842895    checkbutton $page.loose -text "loose limits" \
     
    844897        -variable [itcl::scope _settings($this-axis-loose)] \
    845898        -command [itcl::code $this ApplyAxisSettings]
     899    Rappture::Tooltip::for $page.loose \
     900        "Set major ticks outside of the limits for the current axis."
    846901
    847902    label $page.plotpad_l -text "pad" 
     
    849904        -textvariable [itcl::scope _settings($this-axis-plotpad)]
    850905    bind  $page.plotpad <KeyPress-Return> [itcl::code $this ApplyAxisSettings]
     906    Rappture::Tooltip::for $page.plotpad \
     907        "Set padding (points) between the current axis and the plot."
    851908
    852909    checkbutton $page.grid -text "show grid lines" \
    853910        -variable [itcl::scope _settings($this-axis-grid)] \
    854911        -command [itcl::code $this ApplyAxisSettings]
     912    Rappture::Tooltip::for $page.grid \
     913        "Display grid lines for the current axis."
    855914
    856915    checkbutton $page.zero -text "mark zero" \
     
    858917        -variable [itcl::scope _settings($this-axis-zero)] \
    859918        -command [itcl::code $this ApplyAxisSettings]
     919    Rappture::Tooltip::for $page.zero \
     920        "Display a line at zero for the current axis."
    860921
    861922    label $page.tickfont_l -text "tick font"
     
    868929        "times"  "times"         
    869930    bind $page.tickfontfamily <<Value>> [itcl::code $this ApplyAxisSettings]
     931    Rappture::Tooltip::for $page.tickfontfamily \
     932        "Set the font of the ticks for the current axis."
    870933
    871934    Rappture::Combobox $page.tickfontsize -width 4 -editable no
     
    881944        "20" "20"
    882945    bind $page.tickfontsize <<Value>> [itcl::code $this ApplyAxisSettings]
     946    Rappture::Tooltip::for $page.tickfontsize \
     947        "Set the size (points) of the tick font."
    883948
    884949    Rappture::PushButton $page.tickfontweight \
     
    889954        -command [itcl::code $this ApplyAxisSettings] \
    890955        -variable [itcl::scope _settings($this-axis-tickfont-weight)]
     956    Rappture::Tooltip::for $page.tickfontweight \
     957        "Use the bold version of the tick font."
    891958
    892959    Rappture::PushButton $page.tickfontslant \
     
    897964        -command [itcl::code $this ApplyAxisSettings] \
    898965        -variable [itcl::scope _settings($this-axis-tickfont-slant)]
     966    Rappture::Tooltip::for $page.tickfontslant \
     967        "Use the italic version of the tick font."
    899968
    900969    label $page.titlefont_l -text "title font"
     
    907976        "times"  "times"         
    908977    bind $page.titlefontfamily <<Value>> [itcl::code $this ApplyAxisSettings]
     978    Rappture::Tooltip::for $page.titlefontfamily \
     979        "Set the font of the title for the current axis."
    909980
    910981    Rappture::Combobox $page.titlefontsize -width 4 -editable no
     
    920991        "20" "20"
    921992    bind $page.tickfontsize <<Value>> [itcl::code $this ApplyAxisSettings]
     993    Rappture::Tooltip::for $page.titlefontsize \
     994        "Set the size (point) of the title font."
    922995
    923996    Rappture::PushButton $page.titlefontweight \
     
    9281001        -command [itcl::code $this ApplyAxisSettings] \
    9291002        -variable [itcl::scope _settings($this-axis-titlefont-weight)]
     1003    Rappture::Tooltip::for $page.titlefontweight \
     1004        "Use the bold version of the title font."
    9301005
    9311006    Rappture::PushButton $page.titlefontslant \
     
    9361011        -command [itcl::code $this ApplyAxisSettings] \
    9371012        -variable [itcl::scope _settings($this-axis-titlefont-slant)]
     1013    Rappture::Tooltip::for $page.titlefontslant \
     1014        "Use the italic version of the title font."
    9381015
    9391016    blt::table $page \
Note: See TracChangeset for help on using the changeset viewer.