!
!                            COPYRIGHT
!
!  PCB, interactive printed circuit board design
!  Copyright (C) 1994,1995,1996 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@rz.uni-ulm.de
!
!  RCS: $Id: Pcb.ad.raw,v 1.1 1998/02/19 18:06:34 sync Exp $
!

!---------------------------------------------------------------------------
! resources as defined by pcb
!
pcb.absoluteGrid:           On
pcb.alignmentDistance:      200
pcb.allDirectionLines:      Off
pcb.apertureCommand:        M4PATH='%p';export M4PATH;echo 'include(%f)' | m4
pcb.aperturePath:           .:/usr/X11R6/lib/X11/pcb
pcb.backupInterval:         60
pcb.charactersPerLine:      78
pcb.connectedColor:         green
pcb.crosshairColor:         red
pcb.elementColor:           black
pcb.elementSelectedColor:   cyan
pcb.elementCommand:         M4PATH='%p';export M4PATH;echo 'include(%f)' | m4
pcb.elementPath:            .:packages:circuits:/usr/X11R6/lib/X11/pcb:/usr/X11R6/lib/X11/pcb/circuits:/usr/X11R6/lib/X11/pcb/packages
pcb.fileCommand:            cat '%f'
pcb.filePath:               .
pcb.fontCommand:            M4PATH='%p';export M4PATH;echo 'include(%f)' | m4
pcb.fontFile:               default_font
pcb.fontPath:               .:/usr/X11R6/lib/X11/pcb
pcb.grid:                   10
pcb.gridColor:              red
pcb.warnColor:              hot pink
pcb.invertedFrameWidth:     500
pcb.invisibleObjectsColor:  gray80
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,s:4,5,6,c:7:8
pcb.layerName1:             solder
pcb.layerName2:             GND-sldr
pcb.layerName3:             Vcc-sldr
pcb.layerName4:             component
pcb.layerName5:             GND-comp
pcb.layerName6:             Vcc-comp
pcb.layerName7:             unused
pcb.layerName8:             unused
pcb.layerSelectedColor1:    cyan
pcb.layerSelectedColor2:    cyan
pcb.layerSelectedColor3:    cyan
pcb.layerSelectedColor4:    cyan
pcb.layerSelectedColor5:    cyan
pcb.layerSelectedColor6:    cyan
pcb.layerSelectedColor7:    cyan
pcb.layerSelectedColor8:    cyan
pcb.libraryCommand:         /usr/X11R6/lib/X11/pcb/QueryLibrary.sh '%p' '%f' %a
pcb.libraryContentsCommand: /usr/X11R6/lib/X11/pcb/ListLibraryContents.sh '%p' '%f'
pcb.libraryFilename:        pcblib
pcb.libraryPath:            .:/usr/X11R6/lib/X11/pcb
pcb.lineThickness:          10
pcb.media:                  a4
pcb.offLimitColor:          gray80
pcb.pinColor:               gray30
pcb.pinSelectedColor:       cyan
pcb.pinoutFont0:            -*-courier-bold-r-*-*-24-*-*-*-*-*-*-*
pcb.pinoutFont1:            -*-courier-bold-r-*-*-12-*-*-*-*-*-*-*
pcb.pinoutFont2:            -*-courier-bold-r-*-*-8-*-*-*-*-*-*-*
pcb.pinoutFont3:            -*-courier-bold-r-*-*-4-*-*-*-*-*-*-*
pcb.pinoutFont4:            -*-courier-bold-r-*-*-2-*-*-*-*-*-*-*
pcb.pinoutNameLength:       8
pcb.pinoutOffsetX:          100
pcb.pinoutOffsetY:          100
pcb.pinoutTextOffsetX:      50
pcb.pinoutTextOffsetY:      0
pcb.pinoutZoom:             2
pcb.printFile:             %f.output
pcb.raiseLogWindow:         On
pcb.resetAfterElement:      Off
pcb.ringBellWhenFinished:   Off
pcb.saveCommand:            cat - > '%f'
pcb.saveInTMP:              On
pcb.saveLastCommand:        Off
pcb.size:                   9000x5000
pcb.stipplePolygons:        Off
pcb.textScale:              100
pcb.useLogWindow:           On
pcb.viaColor:               gray50
pcb.viaSelectedColor:       cyan
pcb.viaThickness:           40
pcb.viaDrillingHole:        20
pcb.volume:                 100
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:                              -*-courier-bold-r-*-*-14-*-*-*-*-*-*-*
pcb*Label.borderWidth:                 0
pcb*Label.justify:                     center
pcb*MenuButton.shapeStyle:             oval
pcb*MenuButton.resizable:              on
pcb*SimpleMenu*justify:                left
pcb*Toggle.borderWidth:                1
pcb*selector*List.verticalList:        On
pcb*selector.height:                   240
pcb*selector.width:                    180
pcb*horizDistance:                     2
pcb*defaultButton.accelerators:  #override \
  <Key>Return:            set() notify() unset() \n
pcb*cancelButton.accelerators:  #override \
  <Key>Escape:            set() notify() unset() \n

!---------------------------------------------------------------------------
! toplevel shell resources
!
pcb.baseTranslations: #override \
  <Message>WM_PROTOCOLS:   Quit() \n

!---------------------------------------------------------------------------
! resources used by control panel
!
pcb*controlMasterForm*font:             -*-courier-bold-r-*-*-12-*-*-*-*-*-*-*
pcb*controlMasterForm*borderWidth:            0
pcb*controlMasterForm*Label.width:            70
pcb*controlMasterForm*MenuButton.resizable:   on
pcb*controlMasterForm*MenuButton.shapeStyle:  rectangle
pcb*controlMasterForm*MenuButton.width:       70
pcb*controlMasterForm*MenuButton.borderWidth: 1  
pcb*controlMasterForm*Toggle.width:           70
pcb*controlMasterForm*Toggle.borderWidth:     1

!---------------------------------------------------------------------------
! resources used by the file select box
!
pcb*fileselectMasterForm*current.vertDistance: 20
pcb*fileselectMasterForm*input.width:          366
pcb*fileselectMasterForm*input*background:     gray90

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

!---------------------------------------------------------------------------
! resources used by the size select box
!
pcb*sizeMasterForm*Label.vertDistance:    10

!---------------------------------------------------------------------------
! resources used by the menus
!
pcb*header.foreground:    red

!---------------------------------------------------------------------------
! resources of the library window
!
pcb.library.geometry:         700x250
pcb.library*type*foreground:  red
pcb.library.baseTranslations: #override \
  <Message>WM_PROTOCOLS:  Bell() \n

pcb*libraryMasterForm*List.baseTranslations: #replace \
  <Btn1Down>,<Btn1Up>:    Set() \n\
  <Btn1Up>(2):            Set() Notify() Unset() \n


!---------------------------------------------------------------------------
! resources of the logging window
!
pcb*log.iconic:           true
pcb.log.geometry:         600x200
pcb.log.baseTranslations: #override \
  <Message>WM_PROTOCOLS:   Bell() \n

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

!---------------------------------------------------------------------------
! resources of the layer-group edit window
!
pcb*layerGroupMasterForm*comment.width:             150
pcb*layerGroupMasterForm*comment.justify:           left
pcb*layerGroupMasterForm*groupNumber.horizDistance: 6
pcb*layerGroupMasterForm*groupNumber.width:         20
pcb*layerGroupMasterForm*layerGroup.width:          150
pcb*layerGroupMasterForm*layerName.justify:         left
pcb*layerGroupMasterForm*layerName.width:           150
pcb*layerGroupMasterForm*Toggle.width:              20

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

pcb*pinoutMasterForm.dismiss.accelerators: #override \
  <Message>WM_PROTOCOLS:  set() notify() unset() \n

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 the top menu buttons
!
pcb.masterForm.Command.baseTranslations: #override \
  <Btn1Down>:  set() notify() \n\
  <Btn1Up>:    unset() \n

!---------------------------------------------------------------------------
! resources used by statuslines and input field
!
pcb.masterForm*cursorPosition.justify:   center
pcb.masterForm*cursorPosition.width:     200
pcb.masterForm*inputField*borderWidth:   0
pcb.masterForm*messageText.foreground:   red
pcb.masterForm*messageText.justify:      left
pcb.masterForm*statusLine.justify:       left

!---------------------------------------------------------------------------
! resources used by the mode-selection area
!
pcb.masterForm.Toggle.horizDistance:        6
pcb.masterForm.Toggle.vertDistance:         5
pcb.masterForm.lineIcon.vertDistance:       4
pcb.masterForm.rectangleIcon.vertDistance:  4
pcb.masterForm.viaIcon.vertDistance:        4
pcb.masterForm.textIcon.vertDistance:       4
pcb.masterForm.polygonIcon.vertDistance:    4
pcb.masterForm.bufferIcon.vertDistance:     4
pcb.masterForm.removeIcon.vertDistance:     4
pcb.masterForm.rotateIcon.vertDistance:     4
pcb.masterForm.insertPointIcon.vertDistance:4
pcb.masterForm.thermalIcon.vertDistance:    4

!---------------------------------------------------------------------------
! resources used by the output area
!
pcb.masterForm*output*background:        gray95
pcb.masterForm.viewport.height:          600
pcb.masterForm.viewport.width:           900

pcb.masterForm.viewport.horizontal.accelerators: #override \
  !Mod1 Ctrl<Key>Left:    StartScroll(Backward) \
                            NotifyScroll(FullLength) \
                            EndScroll() \n\
  None<Key>KP_4:	    StartScroll(Backward) \
			    NotifyScroll(FullLength) \
			    EndScroll() \n\
  !Mod1 Ctrl<Key>Right:   StartScroll(Forward) \
                            NotifyScroll(FullLength) \
                            EndScroll() \n\
  None<Key>KP_6:	    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\
  None<Key>KP_8:	    StartScroll(Backward) \
			    NotifyScroll(FullLength) \
			    EndScroll() \n\
  !Mod1 Ctrl<Key>Down:    StartScroll(Forward) \
                            NotifyScroll(FullLength) \
                            EndScroll() \n\
  None<Key>KP_2:	    StartScroll(Forward) \
			    NotifyScroll(FullLength) \
			    EndScroll() \n

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

!---------------------------------------------------------------------------
! translations of the output area
!
pcb.masterForm*output.baseTranslations:   #override \
  <Key>Escape:          Mode(None) \n\
  <Key>space:           Mode(Cycle) \n\
  <Key>colon:           Command() \n\
  !Shift<Key>BackSpace: Connection(Reset) \
                        Unselect(All) \
                        Connection(Find) \
                        Select(Connection) \
                        RemoveSelected() \
                        Display(Redraw) \n\
  !Shift<Key>Delete:	Connection(Reset) \
                        Unselect(All) \
                        Connection(Find) \
                        Select(Connection) \
                        RemoveSelected() \
                        Display(Redraw) \n\
  None<Key>BackSpace:   Mode(Save) \
                        Mode(Remove) \
                        Mode(Notify) \
                        Mode(Restore) \n\
  None<Key>Delete:	Mode(Save) \
			Mode(Remove) \
			Mode(Notify) \
			Mode(Restore) \n\
  None<Key>Insert:      Mode(InsertPoint) \n\
  None<Key>Tab:         SwapSides() \n\
  \
  None<Key>1: SwitchDrawingLayer(1) \n\
  None<Key>2: SwitchDrawingLayer(2) \n\
  None<Key>3: SwitchDrawingLayer(3) \n\
  None<Key>4: SwitchDrawingLayer(4) \n\
  None<Key>5: SwitchDrawingLayer(5) \n\
  None<Key>6: SwitchDrawingLayer(6) \n\
  None<Key>7: SwitchDrawingLayer(7) \n\
  None<Key>8: SwitchDrawingLayer(8) \n\
  \
  None<Key>c:          Display(Center) \n\
  !Mod1<Key>c:       PasteBuffer(Clear) \
                       PasteBuffer(AddSelected) \
                       Unselect(All) \n\
  None<Key>d:          Display(PinOrPadName) \n\
  !Shift<Key>d:        Display(Pinout) \n\
  None<Key>e:          DeleteRats(AllRats) \n\
  !Shift<Key>e:        DeleteRats(SelectedRats) \n\
  None<Key>f:          Connection(Find) \n\
  !Shift<Key>f:        Connection(Reset) \
                       Display(Redraw) \n\
  None<Key>g:          SetValue(Grid, +5) \n\
  !Shift<Key>g:        SetValue(Grid, -5) \n\
  None<Key>h:          ToggleHideName(Object) \n\
  !Shift<Key>h:        ToggleHideName(SelectedElements) \n\
  !Ctrl<Key>h:         ChangeHole(ToggleObject) \n\
  None<Key>l:          SetValue(LineSize, +5) \n\
  !Shift<Key>l:        SetValue(LineSize, -5) \n\
  None<Key>m:          MoveToCurrentLayer(Object) \n\
  !Shift<Key>m:        MoveToCurrentLayer(SelectedObjects) \n\
  !Ctrl<Key>m:         MarkCrosshair() \n\
  None<Key>n:          ChangeName(Object) \n\
  None<Key>o:          DeleteRats(AllRats) \
                       AddRats(AllRats) \n\
  !Shift<Key>o:        DeleteRats(AllRats) \
                       AddRats(SelectedRats) \n\
  !Ctrl<Key>o:         ChangeOctagon(Object) \n\
  None<Key>p:          Polygon(PreviousPoint) \n\
  !Shift<Key>p:        Polygon(Close) \n\
  None<Key>q:          ChangeSquare(ToggleObject) \n\
  None<Key>r:          Display(ClearAndRedraw) \n\
  !Shift<Key>r:        Redo() \n\
  !Ctrl<Key>r:         Report(Object) \n\
  None<Key>s:          ChangeSize(Object, +5) \n\
  !Shift<Key>s:        ChangeSize(Object, -5) \n\
  !Mod1<Key>s:       ChangeDrillSize(Object, +5) \n\
  !Mod1 Shift<Key>s: ChangeDrillSize(Object, -5) \n\
  None<Key>u:          Undo() \n\
  !Shift Ctrl<Key>u:   Undo(ClearList) \n\
  None<Key>v:          SetValue(ViaSize, +5) \n\
  !Shift<Key>v:        SetValue(ViaSize, -5) \n\
  !Mod1<Key>v:       SetValue(ViaDrillingHole, +5) \n\
  !Mod1 Shift<Key>v: SetValue(ViaDrillingHole, -5) \n\
  None<Key>w:          AddRats(AllRats) \n\
  !Shift<Key>w:        AddRats(SelectedRats) \n\
  !Ctrl<Key>x:         PasteBuffer(Clear) \
                       PasteBuffer(AddSelected) \
                       Mode(PasteBuffer) \n\
  !Shift Ctrl<Key>x:   PasteBuffer(Clear) \
                       PasteBuffer(AddSelected) \
                       RemoveSelected() \
                       Mode(PasteBuffer) \n\
  !Mod1<Key>x:       PasteBuffer(Clear) \
                       PasteBuffer(AddSelected) \
                       RemoveSelected() \n\
  None<Key>z:          SetValue(Zoom, -1) \n\
  !Shift<Key>z:        SetValue(Zoom, +1) \n\
  !Mod1<Key>z:       Undo() \n\
  None<Key>.:          Display(Toggle45Degree) \n\
  None<Key>/:          Display(CycleClip) \n\
  \
  !Shift<Key>1: PasteBuffer(1) \n\
  !Shift<Key>2: PasteBuffer(2) \n\
  !Shift<Key>3: PasteBuffer(3) \n\
  !Shift<Key>4: PasteBuffer(4) \n\
  !Shift<Key>5: PasteBuffer(5) \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:   Mode(Via) \n\
  None<Key>F2:   Mode(Line) \n\
  None<Key>F3:   Mode(PasteBuffer) \n\
  !Shift<Key>F3: PasteBuffer(Rotate, 1) \n\
  None<Key>F4:   Mode(Rectangle) \n\
  None<Key>F5:   Mode(Text) \n\
  None<Key>F6:   Mode(Polygon) \n\
  None<Key>F7:   Mode(Thermal) \n\
  None<Key>F8:   Mode(Arc) \n\
  \
  None<Key>[:	Mode(Save) \
		Mode(Move) \
		Mode(Notify) \n\
  None<Key>]:	Mode(Notify) \
		Mode(Restore) \n\
  \
  None<Btn1Down>:        Mode(Notify) \n\
  !Shift<Btn1Down>:      Mode(Notify) \n\
  !Ctrl<Btn1Down>:       Mode(Save) \
			 Mode(None) \
		         Mode(Restore) \
		         Mode(Notify) \n\
  !Shift Ctrl<Btn1Down>: Mode(Save) \
                         Mode(Remove) \
                         Mode(Notify) \
                         Mode(Restore) \n\
  \
  None<Btn2Down>:          Mode(Save) \
                           Mode(Move) \
                           Mode(Notify) \n\
  None<Btn2Up>:            Mode(Notify) \
                           Mode(Restore) \n\
  !Mod1<Btn2Down>:       Mode(Save) \
                           Mode(Copy) \
                           Mode(Notify) \n\
  !Mod1<Btn2Up>:         Mode(Notify) \
                           Mode(Restore) \n\
  !Shift Mod1<Btn2Down>: Mode(Save) \
                           Mode(RubberbandMove) \
                           Mode(Notify) \n\
  !Shift Mod1<Btn2Up>:   Mode(Notify) \
                           Mode(Restore) \n\
  \
  None<Btn3Down>:          Select(ToggleObject) \n\
  !Mod1<Btn3Down>:       Mode(Save) \
                           Mode(None) \
                           Select(Block) \n\
  !Mod1<Btn3Up>:         Select(Block) \
                           Mode(Restore) \n\
  !Shift Mod1<Btn3Down>: Mode(Save) \
                           Mode(None) \
                           Unselect(Block) \n\
  !Shift Mod1<Btn3Up>:   Unselect(Block) \
                           Mode(Restore) \n

