!
! Resource File for Twpsk
!

! This line is a comma separated list of files in the twpskDir directory
! These filenames will appear as button names on the File pulldown menu.
! Add your own files.  For example,
Twpsk.buttonNames:                     ShortCQ,LongCQ,Brag

! Start up values for rx and tx Freq
Twpsk.rxFreq:                          1500.0
Twpsk.txFreq:                          1500.0

! Use this to define the highlight style for your transmitted text
! No highlight 0
! Inverse video 1
! Underlined    2
Twpsk.xmitHighlight:                   1

! Start up state for AFC and NET - 1=ON 0=OFF
Twpsk.afc:                             1 
Twpsk.net:                             1

! The squelch is gone for now.  
! Start up value for Squelch Scale - Valid range  0 -> 40 
!Twpsk*squelchScale.value:              5

! Set the next value to 1 if you want the mixer controls to be active.
!Twpsk.useMixer:                         0
Twpsk.useMixer:                         1

! Set the following line to the mixer device on your system.
Twpsk.mixerDev:                        /dev/mixer
!Twpsk.mixerDev:                        /dev/mixer1

! Set next value to 1 for PTT control. Set the following
! line to the serial device used to key PTT
Twpsk.ptt:                             1
!Twpsk.serDev:                          /dev/ttyS0
Twpsk.serDev:                          /dev/ttyS1

! Start up values for mixer controls
! valid values are 0 -> 100
Twpsk.mainVol:                         60
Twpsk.outVol:                          59
Twpsk.inVol:                           50

! Set the next value to your call for CW ID
Twpsk.call:                            N0CALL
!Twpsk.call:                            WA0EIR

! Set next value to 1 to display zeros with slashes
Twpsk.zero:                            1

! Select the start up state for the display type
! Twpsk*saTB.set - selects the spectrum analyzer
! Twpsk*wfTB.set - selects the waterfall
! Uncomment only one of the following:
!Twpsk*saTB.set:                        1
Twpsk*wfTB.set:                        1

!Set one of the following to 1 and the other two
!to 0 for Broad, Medium or Narrow bandwidth display
Twpsk*B.set:                           0
Twpsk*M.set:                           1
Twpsk*N.set:                           0

! Your call on the next line for the label on top
! Use \330 for a zero with a slash
! For example:
Twpsk*label1.labelString:              TWPSK
!Twpsk*label1.labelString:              WA\330EIR

! font for your call at the top
Twpsk*label1.fontList:       -adobe-helvetica-bold-o-*-*-25-*-*-*-*-*-*-*

! fftSpeed
! valid values are 0 -> 100
! the bigger, the faster the display
! 60 is a good one.
Twpsk*fftSpeedScale.value:             60

! brightness start up value
! valid values are 1 -> 100
Twpsk*brightScale.value:               50

! waterfall flow direction
! 0 flows down or 1 flows up
Twpsk*Flow Up.set:                      1

! Local Caps
! when set to 1, all Rx letters will be displayed in upper case.
! Tx letters will be sent as typed, but displayed as upper case.  
Twpsk*Local Caps.set:                   0

! callBox
! set to 1 if you need the callbox
! and set the call box position
Twpsk.callBox:                         0
!Twpsk.callBox:                         1

! location of the callbox
Twpsk*callShell.x:                      50
Twpsk*callShell.y:                      50

! postamble - for contesting, set this to 0. The postamble ( a steady tone)
! will not be transmitted at the end of a transmission, making for a little
! faster over's.  Set to 1 if you want the postamble (default)
Twpsk.postamble:                        1

! Translations for "Over", HisCall and user defined macros.
! You can create your own macros here. They work well for short phrases
! Use the samples below lines like these.
!
!    Shift Alt <Key>m:     sendMacro(WA0EIR)\n\
!    Shift Alt <Key>F1:    sendMacro(WA0EIR)\n\
!    Shift Alt <Key>1:     sendMacro("\n-k-\n")\n\
!    Shift Alt <Key>2:     sendMacro("\n-kn-\n")\n\
!    Shift Alt <Key>2:     sendMacro("\n-sk-\n")\n\
!    Shift Alt <Key>u:     sendMacro("http://wa0eir.ham.org")\n\
!    Shift Alt <Key>t:     sendMacro("Tnx for the QSO and 73")\n\
!
! A space will automatically be added to the end of your text.
!
! I suggest you use the "Shift Alt <Key> x" form:
!   Shift Alt <Key> "some_key": sendMacro(your text)\n\
! since the "Ctrl <Key> x" form may already be used by other programs.
!
! Enter your macros after the line:
!   Twpsk*txText.translations:   #override\n\
! And before the last two lines.
! The last two lines should NOT be modified.

Twpsk*txText.translations:   #override\n\
     Shift Alt <Key>m:       sendMacro("N0CALL")\n\
     Shift Alt <Key>1:       sendMacro("\n-k-\n")\n\
     Shift Alt <Key>2:       sendMacro("\n-kn-\n")\n\
     Shift Alt <Key>3:       sendMacro("\n-sk-\n")\n\
     Shift Alt <Key>u:       sendMacro("http://wa0eir.ham.org")\n\
     Shift Alt <Key>o:       sendOver()\n\
     Shift Alt <Key>h:       sendHisCall()


! The window does not fit on a 640x480 or 
! 800x600 display.  For those resolutions,
! try setting the number of lines in the
! text windows to something less than the
! default values. Some example values and
! window sizes are given below.   
! 2 and 4  -> 404x479
! 5 and 5  -> 404x539
! 5 and 10 -> 404x614

Twpsk*txText.rows:                      5
!Twpsk*rxText.rows:                     10
Twpsk*rxText.rows:                     25
!Twpsk*txText.columns:                  70


! X-Y position of upper left corner of the window
Twpsk.x:                               220
Twpsk.y:                                20
!
! Geometry things
!
Twpsk*highlightThickness:                1
Twpsk*videoDiag*highlightThickness:      3
Twpsk*audioDiag*highlightThickness:      3
Twpsk*waterfallDiag*.highlightThickness: 3

!
! Color stuff
!
Twpsk*XmToggleButton.selectColor:                red

Twpsk*foreground:                                black
Twpsk*background:                                #e0e1e0
Twpsk*XmForm.background:                         #00768d
Twpsk*XmRowColumn.background:                    #00768d
Twpsk*rxTextSW*background:                       #e0e1e0
Twpsk*txTextSW*background:                       #e0e1e0
Twpsk*menuBar*background:                        #e0e1e0
Twpsk*XmLabel.foreground:                        white
Twpsk*XmLabel.background:                        #00768d
!
Twpsk*scopeDA.background:                        #00768d
Twpsk*imdFrame*foreground:                       black
Twpsk*imdFrame*background:                       #e0e1e0
Twpsk*f4.background:                             seashell
Twpsk*XmFrame.background:                        #00768d
Twpsk*imdFrame.background:                       #e0e1e0
!
Twpsk*rxTextSW*clrRx*background:                 #00768d
Twpsk*rxTextSW*clrRx*foreground:                 #e0e0e0
Twpsk*txTextSW*clrTx*background:                 #00768d
Twpsk*txTextSW*clrTx*foreground:                 #e0e0e0

!
Twpsk*callBox.foreground:                        #e0e1e0
Twpsk*callBox*background:                        #00768d
Twpsk*callBox*XmTextField.background:            #e0e1e0
Twpsk*callDiag*foreground:                       black
!
Twpsk*aboutDiag*foreground:                      #e0e1e0
Twpsk*aboutDiag*background:                      #00768d
Twpsk*aboutDiag*OK.background:                   #e0e1e0
Twpsk*aboutDiag*OK.foreground:                   black
!
Twpsk*helpDiag*foreground:                       #e0e1e0
Twpsk*helpDiag*background:                       #00768d
Twpsk*helpDiag*XmText.foreground:                black
Twpsk*helpDiag*XmPushButton*foreground:          black
Twpsk*helpDiag*XmPushButton*background:          #e0e1e0
Twpsk*helpDiag.XmScrolledWindow*background:      #e0e1e0
!
Twpsk*promptDiag*foreground:                     #e0e1e0
Twpsk*promptDiag*background:                     #00768d
Twpsk*promptDiag.XmTextField.foreground:         black
Twpsk*promptDiag*XmTextField.background:         #e0e1e0
Twpsk*promptDiag*OK.foreground:                  black
Twpsk*promptDiag*OK.background:                  #e0e1e0
Twpsk*promptDiag*Apply.foreground:               black
Twpsk*promptDiag*Apply.background:               #e0e1e0
Twpsk*promptDiag*Cancel.foreground:              black
Twpsk*promptDiag*Cancel.background:              #e0e1e0
!
Twpsk*noMatchError*foreground:                   #e0e1e0
Twpsk*noMatchError*background:                   #00768d
Twpsk*noMatchError*OK.background:                #e0e1e0
Twpsk*noMatchError*OK.foreground:                black
!
Twpsk*audioDiag*XmLabel.foreground:              #e0e1e0
Twpsk*audioDiag*XmFrame.background:              #00768d
Twpsk*audioDiag*XmForm.background:               #00768d
Twpsk*audioDiag*XmScale.background:              #e0e1e0
Twpsk*audioDiag*scForm.background:               #00768d
Twpsk*audioDiag*scRC.background:                 #00768d
Twpsk*audioDiag*bitsOM.background:               #00768d
Twpsk*audioDiag*chansOM.background:              #e0e1e0
Twpsk*audioDiag*XmPushButton.background:         #e0e0e0
Twpsk*audioDiag*chansOM.background:              #00768d

! Fonts and Label Strings
Twpsk*fontList:               -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
!Twpsk*fontList:              fixed
Twpsk*XmText.fontList:        -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
!Twpsk*XmText.fontList:       fixed
Twpsk*XmTextField.fontList:   -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
!Twpsk*XmTextField.fontList:  fixed

! Key Bindings
Twpsk*defaultVirtualBindings: osfBackSpace:     <Key>BackSpace\n\
                              osfDelete:        <Key>Delete\n\
                              osfLeft:          <Key>Left\n\
                              osfRight:         <Key>Right\n\
                              osfUp:            <Key>Up\n\
                              osfDown:          <Key>Down\n\
                              osfMenu:          <Key>F10

! For Wheel Mouse on Text Widgets
Twpsk*XmText*translations: #augment\n\
    <Btn4Down>: scroll-one-line-down()\n\
    <Btn5Down>: scroll-one-line-up()

!TJW playing with the sample size
!Twpsk.sampsize:               7575
!Twpsk.sampsize:               8000

