next up previous contents index
Next: X widget hierachy Up: Resources Previous: Resources

Sample Xtv file

Xtv*xrdb-class:                 CLASS
Xtv*xrdb-planes:                PLANES
Xtv*Font:                       -misc-*-bold-r-*-*-13-*-*-*-*-80-*-*
Xtv*allowResize:                True
Xtv*Linewidth:                  0
Xtv*monochrome*Foreground:      white
Xtv*monochrome*Background:      black
Xtv*gray*Foreground:            white
Xtv*gray*Background:            black
Xtv*colored*Foreground:         yellow
Xtv*colored*Background:         black
tv.geometry:                    650x300-0-0
Xtv*geometry:                   500x500-0+0
Xtv*NumGCs:                     16
Xtv.comparison.geometry:                        500x500+0+0
Xtv.comparison*colored*spectrum.foreground0:    yellow
Xtv.comparison*colored*spectrum.foreground1:    magenta
Xtv.projections.geometry:                       500x500-0+0
Xtv.projections*colored*spectrum.foreground4:   yellow
Xtv.projections*colored*spectrum.foreground5:   magenta
Xtv*cut*XFrame:         1
Xtv*cut*YFrame:         1
!#
!# Default values for plot window
!#
Xtv*plot.geometry:              500x500+0+0
Xtv*plot*XFrame:                3
Xtv*plot*YFrame:                9
Xtv*plot*Font:                  fixed
Xtv*GowFrameWidget.Font:        fixed
Xtv*unix.geometry:              900x900+0+0
Xtv*unix*XFrame:                6
Xtv*unix*YFrame:                6
Xtv*unix*Font:          fixed
Xtv*unix*LineSpace:     1.3
Xtv*unix*VLabel.labelDistance:  1.0
Xtv*unix*labelLine:     1.2
Xtv*unix*ticLabel:              5.0
Xtv*unix*ticTic:                0.5
Xtv*unix*ticLong:               0.9
Xtv*unix*ticMedium:     0.6
Xtv*unix*ticShort:              0.3
Xtv*unix*ticSpace:              1.2
Xtv*unix*spectrum.linestyle4:   shortdashed
Xtv*unix*spectrum.unixLinestyle4:       shortdashed
Xtv*xfig.geometry:              500x500+0+0
Xtv*xfig*XFrame:                3
Xtv*xfig*YFrame:                9
Xtv*xfig*Font:                  fixed
Xtv*XfigFontsize:       20
Xtv*UnixFontsize:       20
Xtv*UnixFontname:       times-roman
Xtv*UnixLinestyle:      solid
Xtv*UnixColor:          0,0,0
!#
!# Default values for all window frames
!#
Xtv*XFrame:                     2
Xtv*YFrame:                     3
Xtv*ticLong:                    0.6
Xtv*ticMedium:                  0.4
Xtv*ticShort:                   0.2
Xtv*ticSpace:                   0.75
Xtv*ticLabel:                   3.0
Xtv*ticTic:                     0.3
Xtv*VLabel.labelDistance:       2.0
Xtv*VLabel.labelLine:           1.0
Xtv*VLabel.topSpectrum:         True
Xtv*VLabel.channelRadius:       2
Xtv*VLabel.libraryRadius:       1.0
!#
!# Default values for cursors
!#
Xtv*GowFrameWidget.cursor:      gumby
Xtv*Paned.gripCursor:           sb_v_double_arrow
Xtv*GowCutWidget.gripCursor:    dot
Xtv*GowCutWidget.adjustCursor:  bottom_left_corner
!special named widgets
Xtv*fit.geometry:               780x570+0+0
Xtv*cut.geometry:               300x300-0-0
Xtv*pro.geometry:               100x100-0-0
Xtv*xpane.geometry:              300x300+0-0
!Xtv*pane-1*compressMode:       firstfound
Xtv*fit.height:                 200
Xtv*residuum.height:            100
Xtv*residuum.skipAdjust:        True
Xtv*CrossFraction:              0.01

Xtv*bin-list.vBarPosition:      bottom
Xtv*bin-list.upperFraction:     0.00
Xtv*bin-list.lowerFraction:     0.99

Xtv*fit-region.vBarPosition:    top
Xtv*fit-region.upperFraction:   0.02
Xtv*fit-region.lowerFraction:   0.02

Xtv*bg-region.vBarPosition:     bottom
Xtv*bg-region.upperFraction:    0.02
Xtv*bg-region.lowerFraction:    0.02
Xtv*peaklist-label.topSpectrum:         true
Xtv*peaklist-label.upperFraction:       0.01
Xtv*peaklist-label.lowerFraction:       0.01
Xtv*fit-label.topSpectrum:              false
Xtv*fit-label.upperFraction:            0.01
Xtv*fit-label.lowerFraction:            0.01
Xtv*peak-label.topSpectrum:             false
Xtv*peak-label.upperFraction:           0.01
Xtv*peak-label.lowerFraction:           0.01
Xtv*fit-bg-marker.vBarPosition:         bottom
Xtv*fit-bg-marker.upperFraction:        0.03
Xtv*fit-bg-marker.lowerFraction:        0.03
Xtv*fit-region-marker.vBarPosition:     top
Xtv*fit-region-marker.upperFraction:    0.02
Xtv*fit-region-marker.lowerFraction:    0.02
Xtv*fit-bin-marker.vBarPosition:        bottom
Xtv*fit-bin-marker.upperFraction:       0.00
Xtv*fit-bin-marker.lowerFraction:       0.99
Xtv*vertical-marker.vBarPosition:       none
Xtv*vertical-marker.upperFraction:      0.02
Xtv*vertical-marker.lowerFraction:      0.02
Xtv*gate-marker.vBarPosition:                   top
Xtv*gate-marker.upperFraction:                  0.03
Xtv*gate-marker.lowerFraction:                  0.03
Xtv*bg-gate-marker.vBarPosition:                bottom
Xtv*bg-gate-marker.upperFraction:               0.03
Xtv*bg-gate-marker.lowerFraction:               0.03
Xtv*cut-gate.vBarPosition:                      top
Xtv*cut-gate.upperFraction:                     0.03
Xtv*cut-gate.lowerFraction:                     0.03
Xtv*cut-bg-gate.vBarPosition:                   bottom
Xtv*cut-bg-gate.upperFraction:                  0.03
Xtv*cut-bg-gate.lowerFraction:                  0.03
Xtv*gray*BorderColor:           gray75
Xtv*gray*grip.foreground:       white
Xtv*gray*grip.background:       white
Xtv*monochrome*BorderColor:     white
Xtv*monochrome*grip.foreground: white
Xtv*monochrome*grip.background: white
Xtv*colored*BorderColor:        gray75
Xtv*colored*grip.foreground:    white
Xtv*colored*grip.background:    white
Xtv*borderWidth:                1
Xtv*io.grip.height:             1
Xtv*io.grip.width:              1
Xtv*io.gripIndent:              0
Xtv*io.status.vSpace:           0
Xtv*io.status.hSpace:           0
Xtv*io.status.allowResize:      True
Xtv*paned-status.position.label:        ??? ???
Xtv*paned-status.vSpace:                0
Xtv*paned-status.hSpace:                0
Xtv*paned-status.allowResize:           False
!#
!# children of Paned
!#
Xtv*monochrome*GowVsWidget.cursorForeground:    white
Xtv*monochrome*GowVsWidget.cursorBackground:    black
Xtv*gray*GowVsWidget.cursorForeground:          white
Xtv*gray*GowVsWidget.cursorBackground:          black
Xtv*colored*GowVsWidget.cursorForeground:       yellow
Xtv*colored*GowVsWidget.cursorBackground:       black
Xtv*GowVsWidget.height:                 100
Xtv*GowVsWidget.cursor:                 pirate
Xtv*GowVsWidget.cursorLinestyle:        solid
Xtv*GowVsWidget.cursorLinewidth:        0
Xtv*GowVsWidget.xClipMin:               0.0
Xtv*GowVsWidget.xClipMax:               0.0
Xtv*GowVsWidget.yClipMin:               0.02
Xtv*GowVsWidget.yClipMax:               0.15
!#
!# viewport modifications by mouse buttons do not affect the actual input text
!# (Shift <Btn> is normally used by the window manager)
!# mouse leaving window cancels pending expand
!#
!#      center(x|y|xy)
!#      expand(), expand-x(), expand-xy(), expand-y(), cancel-expand()
!#      full(x|y|xy)
!#      scalereset(x|y|xy)
!#      shift(<x-percent> <y-percent>)
!#      stretch(<log2(xfac)> <log2(yfac)>)
!#      execute-string("<commandstring>")
!#      execute-keysequence(), cancel-keysequence()
!#      cancel-keyrequest()
!#
Xtv*GowFrameWidget.Translations: #override \n\
        !<Btn1Down>(1):         full(y) shift(-70.0 0.0) \n\
        !<Btn3Down>(1):         full(y) shift(70.0 0.0)
Xtv*GowVsWidget.Translations:   #override \n\
        !<Btn1Down>(1):         expand-x() \n\
        !<Btn1Down>(2):         expand-y() \n\
        !<Btn1Down>(3):         expand-xy() \n\
        !<Btn1Down>(4):         cancel-expand() \n\
        !Ctrl<Btn1Down>(1):     full(y) \n\
        !Ctrl<Btn1Down>(2):     full(xy) \n\
        !Ctrl<Btn1Down>(3):     full(x) \n\
        !Ctrl<Btn1Down>(4):     scalereset(xy) \n\
        !<Btn2Down>:            expand-to-limit() \n\
        !<Btn3Down>:            expand() \n\
        !Ctrl<Btn3Down>:        cancel-expand() scalereset(xy) \n\
        <Leave>:                cancel-expand() \n\
        Shift Ctrl<Btn1Down>:   full(y) shift(-70.0 0.0) \n\
        Shift Ctrl<Btn2Down>:   full(y) center(x) \n\
        Shift Ctrl<Btn3Down>:   full(y) shift(70.0 0.0) \n\
        Ctrl<Key>G: cancel-keysequence() cancel-keyrequest() cancel-expand()\n\
        <Key>Escape:    execute-string("tv> input-mode edit;\n") \n\
        <Key>:          execute-keysequence()
Xtv*spectralist.Translations:           #replace
Xtv*spectralist.internalHeight:         0
Xtv*spectralist.internalWidth:          0
Xtv*spectralist-view.allowVert:         False
Xtv*spectralist-view.allowResize:       True
Xtv*spectralist-view.skipAdjust:        False
!Xtv*io.skipAdjust:                     True
!Xtv*io.view.height:                    100
!Xtv*io.allowResize:                    True
Xtv*io*borderWidth:                     1
Xtv*io*text*search*scrollVertical:      False
Xtv*io*text*search*scrollHorizontal:    False
Xtv*io*text*search*resize:              True
!#
!# two optional scrollbars for text widget:
!#
!# athena viewport widget is not able to trace the position of insertion point
!#
Xtv*io*allowHoriz:              False
Xtv*io*useBottom:               True
Xtv*io*allowVert:               False
Xtv*io*useRight:                False
Xtv*io*forceBars:               True
!#
!# athena text widget forces visibility of insertion point on keyboard
!# events but the position of the last line is sometimes below window ...
!#
Xtv*io*text*scrollVertical:     always
Xtv*io*text*scrollHorizontal:   never
Xtv*io*text*resize:             never
Xtv*io*text*displayCaret:       True
Xtv*io*text*wrap:               word
Xtv*monochrome*io*text*background:              white
Xtv*monochrome*io*text*foreground:              black
Xtv*gray*io*text*background:            white
Xtv*gray*io*text*foreground:            black
Xtv*colored*io*text*background:         wheat
Xtv*colored*io*text*foreground:         DarkGreen
Xtv*io*text*Translations:       #override \n\
        Ctrl<Key>G:     cancel-keysequence() cancel-keyrequest() \n\
        <Key>Escape:    execute-string("tv> input-mode cursor;\n") \n\
        <Key>Return:    execute-command() edit-unlock() \n\
        <Key>Linefeed:  execute-command() \n\
        <Key>KP_Enter:  execute-command() \n\
        Ctrl<Key>J:     execute-command() \n\
        Ctrl<Key>M:     execute-command() \n\
        Ctrl<Key>O:     execute-command() \
        Ctrl<Key>C:     end-of-file() \
                        newline() \
                        insert-char() \
                        execute-command() \n\
        <Btn1Down>:     select-start() \n\
        <Btn1Motion>:   extend-adjust() \n\
        <Btn1Up>:       extend-end(PRIMARY, CUT_BUFFER0) \n\
        <Btn2Down>:     insert-selection(PRIMARY, CUT_BUFFER0) \n\
        <Btn3Down>:     extend-end(PRIMARY, CUT_BUFFER0)
Xtv*Spectrum.lineSpace:         1.1
!Xtv*spectrum.foreground0:      white
!Xtv*spectrum.background0:      black
!Xtv*spectrum.linewidth0:       0
!Xtv*fit-function.foreground0:  white
!Xtv*bg-function.foreground0:   white
Xtv*monochrome*spectrum.Foreground:     white
!Xtv*monochrome*spectrum.Linewidth:     1
Xtv*monochrome*spectrum.linewidth0:     0
Xtv*monochrome*spectrum.linewidth7:     0
!Xtv*monochrome*spectrum.linestyle0:    solid
!Xtv*monochrome*spectrum.linestyle1:    longdashed
!Xtv*monochrome*spectrum.linestyle2:    disconnected
!Xtv*monochrome*spectrum.linestyle3:    dotdashed
!Xtv*monochrome*spectrum.linestyle4:    dotted
!Xtv*monochrome*spectrum.linestyle5:    shortdashed
!Xtv*monochrome*spectrum.linestyle6:    odddashed
!Xtv*monochrome*spectrum.linestyle7:    solid
Xtv*gray*spectrum.Foreground:   white
!Xtv*gray*spectrum.Linewidth:   1
!Xtv*gray*spectrum.linewidth0:  0
!Xtv*gray*spectrum.linewidth7:  0
!Xtv*gray*spectrum.linestyle0:  solid
!Xtv*gray*spectrum.linestyle1:  longdashed
!Xtv*gray*spectrum.linestyle2:  disconnected
!Xtv*gray*spectrum.linestyle3:  dotdashed
!Xtv*gray*spectrum.linestyle4:  dotted
!Xtv*gray*spectrum.linestyle5:  shortdashed
!Xtv*gray*spectrum.linestyle6:  odddashed
!Xtv*gray*spectrum.linestyle7:  solid
Xtv*colored*spectrum.foreground0:       yellow
Xtv*colored*spectrum.background0:       red
Xtv*colored*fit-function.foreground0:   gold
Xtv*colored*bg-function.foreground0:    green
Xtv*colored*foreground0:                yellow
Xtv*colored*foreground1:                magenta
Xtv*colored*foreground2:                red
Xtv*colored*foreground3:                blue
Xtv*colored*foreground4:                white
Xtv*colored*foreground5:                wheat
Xtv*colored*foreground6:                cyan
Xtv*colored*foreground7:                pink



Andreas Fitzler
7/13/2000