!
! 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:                             230
Twcw.y:                             20

! 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
!
!Add your call to the Shift Alt <Key>m: line
!
! Shift Alt Key #      Prosign
!               1      error
!               2       ar
!               3       kn
!               4       sk
!               5       as
!               6       bk
!
! 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(wa0eir )\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:                               #e0e0e0
Twcw*foreground:                               black

Twcw*XmLabel.foreground:                       white
Twcw*XmLabel.background:                       #00768d
Twcw*menuBar*background:                       #e0e0e0
Twcw*XmFrame.background:                       #00768d
Twcw*XmForm.background:                        #00768d
Twcw*menu*background:                          #00768d
Twcw*menu*foreground:                          white
Twcw*txRC.background:                          #00768d
Twcw*trRC.background:                          #00768d
Twcw*setupDiag*XmRowColumn.background:         #00768d
Twcw*setupDiag*XmToggleButton.background:      #e0e0e0
Twcw*setupDiag*XmSeparator.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:                     white
Twcw*aboutDiag*XmPushButtonGadget.foreground:  black
Twcw*aboutDiag*XmPushButtonGadget.background:  #e0e0e0

Twcw*helpDiag*background:                      #00768d
Twcw*helpDiag*foreground:                      white
Twcw*helpDiag*XmText.background:               #e0e0e0
Twcw*helpDiag*XmText.foreground:               black
Twcw*helpDiag*OK.foreground:                   black
Twcw*helpDiag*OK.background:                   #e0e0e0

Twcw*initDiag*background:                      #00768d
Twcw*initDiag*foreground:                      white
!Twcw*initDiag*XmPushButtonGadget.foreground:   black
Twcw*initDiag*OK.foreground:                   black
Twcw*initDiag*OK.background:                   #e0e0e0
Twcw*initDiag*Cancel.foreground:                   black
Twcw*initDiag*Cancel.background:                   #e0e0e0

Twcw*errDiag*background:                       #00768d
Twcw*errDiag*foreground:                       white
Twcw*errDiag*OK.foreground:                    black
Twcw*errDiag*OK.background:                    #e0e0e0

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

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

