!
!                            COPYRIGHT
!
!  PCB, interactive printed circuit board design
!  Copyright (C) 1994 Thomas Nau
!
!  This program is free software; you can redistribute it and/or modify
!  it under the terms of the GNU General Public License as published by
!  the Free Software Foundation; either version 2 of the License, or
!  (at your option) any later version.
!
!  This program is distributed in the hope that it will be useful,
!  but WITHOUT ANY WARRANTY; without even the implied warranty of
!  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
!  GNU General Public License for more details.
!
!  You should have received a copy of the GNU General Public License
!  along with this program; if not, write to the Free Software
!  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
!
!  Contact addresses for paper mail and Email:
!  Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
!  Thomas.Nau@medizin.uni-ulm.de
!
!  RCS: $Header: Pcb.ad.raw,v 2.3 94/10/05 08:46:35 nau Exp $
!

!---------------------------------------------------------------------------
! resources as defined by pcb
!
.pcb.absoluteGrid:         On
.pcb.backupInterval:       60
.pcb.charactersPerLine:    78
.pcb.connectedColor:       green
.pcb.cursorColor:          brown
.pcb.elementColor:         black
.pcb.elementCommand:       M4PATH="%p";export M4PATH;echo 'include(%f)' |gm4
.pcb.elementPath:          /usr/X11R6/lib/X11/pcb/circuits:/usr/X11R6/lib/X11/pcb/packages:.
.pcb.fileCommand:          M4PATH="%p";export M4PATH;echo 'include(%f)' |gm4
.pcb.filePath:             .
.pcb.fontCommand:          M4PATH="%p";export M4PATH;echo 'include(%f)' |gm4
.pcb.fontFile:             default_font
.pcb.fontPath:             .:/usr/X11R6/lib/X11/pcb
.pcb.grid:                 50
.pcb.layerColor1:          RoyalBlue3
.pcb.layerColor2:          DodgerBlue4
.pcb.layerColor3:          burlywood4
.pcb.layerColor4:          brown4
.pcb.layerColor5:          PaleGreen4
.pcb.layerColor6:          OrangeRed3
.pcb.layerColor7:          turquoise4
.pcb.layerColor8:          forest green
.pcb.layerGroups:          1:2:3:4:5:6:7:8
.pcb.lineThickness:        10
.pcb.maxPCBHeight:         10000
.pcb.maxPCBWidth:          10000
.pcb.paperHeight:          11693
.pcb.paperWidth:           8268
.pcb.pinColor:             gray30
.pcb.pinoutFont:           -*-courier-medium-r-normal-*-12-*-*-*-*-*-*-*
.pcb.pinoutNameLength:     8
.pcb.pinoutOffsetX:        100
.pcb.pinoutOffsetY:        100
.pcb.pinoutTextOffsetX:    50
.pcb.pinoutTextOffsetY:    0
.pcb.pinoutZoom:           2
.pcb.printCommand:         | lpr
.pcb.printMarginLeft:      500
.pcb.printMarginBottom:    500
.pcb.resetAfterElement:    Off
.pcb.raiseLogWindow:       On
.pcb.ringBellWhenFinished: Off
.pcb.saveCommand:          cat - > %f
.pcb.saveInTMP:            On
.pcb.saveLastCommand:      On
.pcb.selectedColor:        cyan
.pcb.useBackingStore:      Off
.pcb.useLogWindow:         On
.pcb.usePolygonLines:      Off
.pcb.viaColor:             gray50
.pcb.viaThickness:         40
.pcb.zoom:                 3

!---------------------------------------------------------------------------
! resources that are common to all 'subwindows'
!
.pcb*Command.highlightThickness:        2
.pcb*Command.shapeStyle:                oval
.pcb*defaultButton.borderWidth:         2
.pcb*defaultButton.highlightThickness:  3
.pcb*font:                              -*-*-bold-*-*-*-*-*-*-*-*-*-iso8859-1
.pcb*Label.borderWidth:                 0
.pcb*Label.justify:                     left
.pcb*MenuButton.shapeStyle:             oval
.pcb*SimpleMenu*justify:                left
.pcb*Toggle.borderWidth:                1

.pcb*defaultButton.accelerators:  #override \
  <Key>Return:            set() notify() unset() \n
.pcb*cancelButton.accelerators:  #override \
  <Key>Escape:            set() notify() unset() \n

!---------------------------------------------------------------------------
! resources used by control panel
!
.pcb*controlMasterForm.borderWidth:      3
.pcb*controlMasterForm.Command.width:    100
.pcb*controlMasterForm.Form.borderWidth: 0
.pcb*controlMasterForm*Label.width:      80
.pcb*controlMasterForm*Label.justify:    center
.pcb*controlMasterForm*Toggle.font:      6x9
.pcb*controlMasterForm*Toggle.width:     80
.pcb*controlMasterForm.width:            100

!---------------------------------------------------------------------------
! resources used by the file select box
!
.pcb*selectMasterForm*current.vertDistance: 20
.pcb*selectMasterForm*current.foreground:   red
.pcb*selectMasterForm*list.verticalList:    On
.pcb*selectMasterForm.viewport.height:      360
.pcb*selectMasterForm.viewport.width:       480

.pcb*selectMasterForm.defaultButton.accelerators:  #override \
  <Key>Return:            set() notify() unset() \n\
  <Btn1Up>(2):            set() notify() unset() \n

!---------------------------------------------------------------------------
! resources of the logging window
!
.pcb.log.geometry:                           400x100

!---------------------------------------------------------------------------
! resources of the print selection window
!
.pcb*printMasterForm*Command.width:         80
.pcb*printMasterForm*comment.vertDistance:  20
.pcb*printMasterForm*input.width:           150
.pcb*printMasterForm*Toggle.width:          80

!---------------------------------------------------------------------------
! resources of the pinout window
!
.pcb*pinoutMasterForm*viewport.height:  240
.pcb*pinoutMasterForm*viewport.width:   320

.pcb*pinoutMasterForm.viewport.horizontal.accelerators: #override \
  !Mod1 Ctrl<Key>Left:    StartScroll(Backward) NotifyScroll(FullLength) EndScroll() \n\
  !Mod1 Ctrl<Key>Right:   StartScroll(Forward) NotifyScroll(FullLength) EndScroll() \n

.pcb*pinoutMasterForm.viewport.vertical.accelerators: #override \
  !Mod1 Ctrl<Key>Up:      StartScroll(Backward) NotifyScroll(FullLength) EndScroll() \n\
  !Mod1 Ctrl<Key>Down:    StartScroll(Forward) NotifyScroll(FullLength) EndScroll() \n

!---------------------------------------------------------------------------
! resources used by statuslines and input field
!
.pcb.masterForm*cursorPosition.fromHoriz:     30
.pcb.masterForm*cursorPosition.justify:       center
.pcb.masterForm*cursorPosition.width:         100
.pcb.masterForm*elementName.vertDistance:     1
.pcb.masterForm*elementNameText.vertDistance: 10
.pcb.masterForm*elementNameText.label:        Element:
.pcb.masterForm*messageText.foreground:       red
.pcb.masterForm*inputField*borderWidth:       0
.pcb.masterForm*pcbName.vertDistance:         1
.pcb.masterForm*pcbNameText.vertDistance:     10
.pcb.masterForm*pcbNameText.label:            Layout:

!---------------------------------------------------------------------------
! resources used by the output area
!
.pcb.masterForm.viewport*cursor:             crosshair
.pcb.masterForm.viewport.width:              825
.pcb.masterForm.viewport.height:             600
.pcb.masterForm*output*background:           white

.pcb.masterForm.viewport.horizontal.accelerators: #override \
  !Mod1 Ctrl<Key>Left:    StartScroll(Backward) NotifyScroll(FullLength) EndScroll() \n\
  !Mod1 Ctrl<Key>Right:   StartScroll(Forward) NotifyScroll(FullLength) EndScroll() \n

.pcb.masterForm.viewport.horizontal.baseTranslations: #override \
  <Btn2Down>:             StartScroll(Continuos) MoveThumb() \n\
  <Btn2Motion>:           MoveThumb() \n\
  <Btn2Up>:               NotifyThumb() \n

.pcb.masterForm.viewport.vertical.accelerators: #override \
  !Mod1 Ctrl<Key>Up:      StartScroll(Backward) NotifyScroll(FullLength) EndScroll() \n\
  !Mod1 Ctrl<Key>Down:    StartScroll(Forward) NotifyScroll(FullLength) EndScroll() \n

.pcb.masterForm.viewport.vertical.baseTranslations: #override \
  <Btn2Down>:             StartScroll(Continuos) MoveThumb() \n\
  <Btn2Motion>:           MoveThumb() \n\
  <Btn2Up>:               NotifyThumb() \n

.pcb.masterForm*output.baseTranslations:   #override \
  <Key>Escape:    Mode(Reset) \n\
  <Key>space:     Create(Object) \n\
  <Key>minus:     LineStack(RemoveTop) \n\
  <Key>colon:     Command() \n\
  <Key>BackSpace: Remove(Object) \n\
  \
  None<Key>c:        Display(Center) \n\
  !Shift<Key>c:      Connection(Reset) \n\
  None<Key>d:        Display(Pinout) \n\
  None<Key>f:        Connection(Find) \n\
  None<Key>g:        SetValue(Grid, +5) \n\
  !Shift<Key>g:      SetValue(Grid, -5) \n\
  None<Key>l:        SetValue(LineSize, +5) \n\
  !Shift<Key>l:      SetValue(LineSize, -5) \n\
  !Shift<Key>m:      Move(ElementName) \n\
  None<Key>n:        Name(Object) \n\
  None<Key>r:        Display(Redraw) \n\
  !Shift<Key>r:      Rotate(ElementName, 1) \n\
  None<Key>s:        ChangeSize(Object, 5) \n\
  !Shift<Key>s:      ChangeSize(Object, -5) \n\
  None<Key>t:        Create(Text) \n\
  !Shift <Key>t:     Rotate(Text,1) \n\
  !Ctrl <Key>t:      Mirror(Text) \n\
  None<Key>u:        Remove(Undo) \n\
  !Shift Ctrl<Key>u: Remove(FlushList) \n\
  None<Key>v:        SetValue(ViaSize, +5) \n\
  !Shift<Key>v:      SetValue(ViaSize, -5) \n\
  None<Key>z:        SetValue(Zoom, -1) \n\
  !Shift<Key>z:      SetValue(Zoom, +1) \n\
  \
  None<Key>Up:      MovePointer(0, -1) \n\
  !Shift<Key>Up:    MovePointer(0, -10) \n\
  None<Key>Down:    MovePointer(0, 1) \n\
  !Shift<Key>Down:  MovePointer(0, 10) \n\
  None<Key>Right:   MovePointer(1, 0) \n\
  !Shift<Key>Right: MovePointer(10, 0) \n\
  None<Key>Left:    MovePointer(-1, 0) \n\
  !Shift<Key>Left:  MovePointer(-10, 0) \n\
  \
  None<Key>F1:   Create(Via) \n\
  None<Key>F2:   Mode(Line) \n\
  None<Key>F3:   Mode(Element) \n\
  !Shift<Key>F3: Rotate(ElementBuffer,1) \n\
  None<Key>F4:   Mode(Block) \n\
  !Shift<Key>F4: Create(Rectangle) \n\
  None<Key>F5:   Mode(LineStack) \n\
  \
  None<Btn1Down>:        Create(Object) \n\
  !Mod1<Btn1Down>:       Select(Object) \n\
  !Shift Ctrl<Btn1Down>: Remove(Object) \n\
  \
  None<Btn2Down>:        Create(Via) \n\
  \
  None<Btn3Down>:        Mode(Reset) Mode(Block) Create(Object) \n\
  None<Btn3Up>:          Create(Object) \n\
  !Mod1<Btn3Down>:       Mode(Reset) Mode(Block) Create(Object) \n\
  !Mod1<Btn3Up>:         Create(Object) Select(Block) Mode(Reset) \n\
  \
  <Motion>:              MoveCrosshair() \n

