!
! TWCW RESOURCE FILE
!

! Put your call in the right hand column. \330 is a zero with a slash on it.
! This will be displayed in the label at the top of the interface
! If your call has a zero, you can slash it like this -
!Twcw*callLabel.labelString:           WA\330EIR 
Twcw*callLabel.labelString:            twcw

! The next line is a comma separated list of the files in the .twcwDir
! directory. These filenames will appear as button names on the File
! pulldown menu. You can create more files in $HOME/.twcwDir, and enter
! there names below.
Twcw.buttonNames:                  ShortCQ,LongCQ,QSO1,QSO2,PARIS

! The next line is pathname of the serial port you want to key.
! The default value is /dev/ttyS1. 
!Twcw.serialDevice:                 /dev/ttyS0
Twcw.serialDevice:                 /dev/ttyS1

! The next line is pathname of the dsp device you want to key.
! The default value is /dev/dsp. 
Twcw.dspDevice:                    /dev/dsp
!Twcw.dspDevice:                    /dev/dsp1

! The next line is pathname of the mixer device you want to use.
! The default value is /dev/mixer. 
Twcw.mixerDevice:                    /dev/mixer
!Twcw.mixerDevice:                    /dev/mixer1

! The next resource will set the default WPM value and sidetone freq
Twcw*wpmScale.value:                20
Twcw*toneScale.value:              800

! The next resource will set the device to key - SC (soundcard) or Rig (RTS)
! Set ONLY one to True
Twcw*SC.set:               True
!Twcw*Rig.set:              True

! This one is your call in plain text.  It is used for the
! Over macro
!Twcw.call:                         wa0eir
Twcw.call:                         n0call

! The next two values can be used to position the main window.
Twcw.x:                             220
Twcw.y:                             10

! Define how many rows are in the text widgets.
Twcw*txText.rows:                              5
Twcw*rxText.rows:                              10

! You can select different fonts.  The first line is for the call label and
! the second is for everything else.
Twcw*callLabel.fontList:               -adobe-helvetica-*-o-*-*-25-*-*-*-*-*-*-*
Twcw*fontList:                         -adobe-helvetica-*-r-*-*-12-*-*-*-*-*-*-*
!Twcw*fontList:                         variable
!
! Create your own macros using lines like these.
!                            Shift Alt <Key>m:     sendMacro(WA0EIR )\n\
!                            Shift Alt <Key>h:     sendMacro(Clinton, Ia )\n\
!                            Shift Alt <Key>r:     sendMacro(RST RST is )\n\
!
! Enter your macros after the line:
!   Twcw*txText.translations:   #override\n\
! The remaining macro lines are best not modified.
!
!Shift Alt o and Shift Alt h get the other station's call from a log program
!and send it.  Currently this works with twlog and xlog
!
! I suggest you use the form:
!   Shift Alt <Key> "some_key": sendMacro(your text)\n\
!
Twcw*txText.translations:    #override\n\
                             Shift Alt <Key>m:    sendMacro(n0call )\n\
                             Shift Alt <Key>1:    sendPro(1)\n\
                             Shift Alt <Key>2:    sendPro(2)\n\
                             Shift Alt <Key>3:    sendPro(3)\n\
                             Shift Alt <Key>4:    sendPro(4)\n\
                             Shift Alt <Key>5:    sendPro(5)\n\
                             Shift Alt <Key>6:    sendPro(6)\n\
                             Shift Alt <Key>o:    sendOver()\n\
                             Shift Alt <Key>h:    sendHisCall()\

! Nothing below needs to be changed, unless you want to create
! a new color scheme.
Twcw*background:                               tan
Twcw*foreground:                               black

Twcw*XmLabel.foreground:                       antiquewhite
Twcw*XmLabel.background:                       #00768d
Twcw*menuBar*background:                       tan
Twcw*XmFrame.background:                       #00768d
Twcw*XmForm.background:                        #00768d
Twcw*txRC.background:                          #00768d
Twcw*trRC.background:                          #00768d

!Twcw*da1.background:                           black

Twcw*keyRC.background: #00768d

Twcw*XmToggleButton.selectColor:               red
Twcw*tb2.set:                                  0

Twcw*aboutDiag*background:                     #00768d
Twcw*aboutDiag*foreground:                     antiquewhite
Twcw*aboutDiag*XmPushButtonGadget.foreground:  black
Twcw*aboutDiag*XmPushButtonGadget.background:  tan

Twcw*helpDiag*background:                      #00768d
Twcw*helpDiag*foreground:                      antiquewhite
Twcw*helpDiag*XmText.background:               tan
Twcw*helpDiag*XmText.foreground:               black
Twcw*helpDiag*XmPushButtonGadget.foreground:   black
Twcw*helpDiag*XmPushButtonGadget.background:   tan

Twcw*initDiag*background:                      #00768d
Twcw*initDiag*foreground:                      antiquewhite
Twcw*initDiag*XmPushButtonGadget.foreground:   black
Twcw*initDiag*XmPushButtonGadget.background:   tan

Twcw*errDiag*background:                       #00768d
Twcw*errDiag*foreground:                       antiquewhite
Twcw*errDiag*XmPushButtonGadget.foreground:    black
Twcw*errDiag*XmPushButtonGadget.background:    tan

Twcw*defaultVirtualBindings: \
                            osfBackSpace:      <Key>BackSpace\n\
                            osfDelete:         <Key>BackSpace\n\
                            osfLeft:           <Key>Left\n\
                            osfRight:          <Key>Right\n\
                            osfUp:             <Key>Up\n\
                            osfDown:           <Key>Down
