! ! COPYRIGHT ! ! PCB, interactive printed circuit board design ! Copyright (C) 1994,1995,1996, 1997 Thomas Nau ! Copyright (C) 1998, 1999, 2000, 2001, 2002 harry eaton ! ! 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. ! ! RCS: $Id: Pcb.ad.in,v 1.2 2006/03/03 15:44:20 mcmahill Exp $ ! !--------------------------------------------------------------------------- ! resources as defined by pcb ! Pcb.alignmentDistance: 20000 Pcb.allDirectionLines: Off Pcb.backupInterval: 60 Pcb.charactersPerLine: 78 Pcb.connectedColor: green Pcb.crosshairColor: red Pcb.crossColor: yellow Pcb.elementColor: black Pcb.elementSelectedColor: cyan Pcb.elementCommand: M4PATH='%p';export M4PATH;echo 'include(%f)' | @gnum4@ Pcb.elementPath: .:@pcbtreedir@:packages:circuits:@pcblibdir@:@pcblibdir@/circuits:@pcblibdir@/packages Pcb.fileCommand: cat '%f' Pcb.filePath: . Pcb.fontCommand: M4PATH='%p';export M4PATH;echo 'include(%f)' | @gnum4@ Pcb.fontFile: @fontfilename@ Pcb.fontPath: .:@pcblibdir@ Pcb.grid: 2000 Pcb.gridColor: red Pcb.warnColor: hot pink Pcb.maskColor: red Pcb.invertedFrameWidth: 500 Pcb.invisibleObjectsColor: gray80 Pcb.invisibleMarkColor: gray70 Pcb.layerColor1: brown4 Pcb.layerColor2: RoyalBlue3 Pcb.layerColor3: DodgerBlue4 Pcb.layerColor4: OrangeRed3 Pcb.layerColor5: PaleGreen4 Pcb.layerColor6: burlywood4 Pcb.layerColor7: turquoise4 Pcb.layerColor8: forest green Pcb.layerGroups: 1,c:2,s:3:4:5:6:7:8 Pcb.layerName1: component Pcb.layerName2: solder Pcb.layerName3: GND Pcb.layerName4: power Pcb.layerName5: signal1 Pcb.layerName6: signal2 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: @pcblibdir@/QueryLibrary.sh '%p' '%f' %a Pcb.libraryContentsCommand: @pcblibdir@/ListLibraryContents.sh '%p' '%f' Pcb.libraryFilename: @libraryfilename@ Pcb.libraryPath: .:@pcblibdir@ Pcb.libraryTree: @pcbtreedir@ Pcb.lineThickness: 1000 Pcb.media: letter Pcb.menuFile: @pcblibdir@/pcb-menu.res 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: 8 Pcb.pinoutTextOffsetY: 8 Pcb.pinoutZoom: 2 Pcb.printFile: %f.output Pcb.raiseLogWindow: On Pcb.ratColor: DarkGoldenrod Pcb.ratSelectedColor: cyan Pcb.ratThickness: 1000 Pcb.resetAfterElement: On Pcb.ringBellWhenFinished: Off Pcb.routeStyles: Signal,1000,3600,2000,1000:Power,2500,6000,3500,1000:Fat,4000,6000,3500,1000:Skinny,600,2402,1181,600 Pcb.saveCommand: cat - > '%f' Pcb.saveInTMP: Off Pcb.saveLastCommand: Off Pcb.size: 6000x5000 Pcb.stipplePolygons: Off Pcb.textScale: 100 Pcb.useLogWindow: On Pcb.uniqueNames: On Pcb.snapPin: On Pcb.clearLines: On Pcb.viaColor: gray50 Pcb.viaSelectedColor: cyan Pcb.viaThickness: 6000 Pcb.viaDrillingHole: 2800 Pcb.volume: 100 Pcb.zoom: 3 Pcb.Bloat: 699 Pcb.minWid: 800 Pcb.Shrink: 400 Pcb.minSlk: 800 Pcb.minDrill: 1500 Pcb.minRing: 800 !--------------------------------------------------------------------------- ! resources that are common to all 'subwindows' ! Pcb*beNiceToColormap: false Pcb*background: gray90 Pcb.masterForm*background: gray90 Pcb*Command.highlightThickness: 1 Pcb*defaultButton.borderWidth: 2 Pcb*defaultButton.highlightThickness: 2 !pcb*font: -*-courier-bold-r-*-*-14-*-*-*-*-*-*-* Pcb*Label.borderWidth: 0 Pcb*Label.justify: center Pcb*MenuButton.resizable: off Pcb*Toggle.borderWidth: 1 Pcb*selector*List.verticalList: On Pcb*selector.height: 240 Pcb*selector.width: 180 Pcb*horizDistance: 2 Pcb*defaultButton.accelerators: #override \ Return: set() notify() unset() \n Pcb*cancelButton.accelerators: #override \ Escape: set() notify() unset() \n *Scrollbar.translations: #override \ : StartScroll(Continuous) MoveThumb() NotifyThumb()\n\ : MoveThumb() NotifyThumb()\n\ : NotifyScroll(Proportional) EndScroll()\n\ Up: StartScroll(Backward) \ NotifyScroll(FullLength) \ EndScroll() \n\ Down: StartScroll(Forward) \ NotifyScroll(FullLength) \ EndScroll() \n\ Left: StartScroll(Backward) \ NotifyScroll(FullLength) \ EndScroll() \n\ Right: StartScroll(Forward) \ NotifyScroll(FullLength) \ EndScroll() \n !--------------------------------------------------------------------------- ! toplevel shell resources ! Pcb*baseTranslations: #override \ !@btnmod@q: Quit() \n\ WM_PROTOCOLS: Quit() \n !--------------------------------------------------------------------------- ! resources used by control panel ! on/off are Toggles, active layer is MenuButton ! Note the panner must have a 4:3 aspect ratio to work properly ! Pcb*controlMasterForm*font: -*-courier-bold-r-*-*-12-*-*-*-*-*-*-* Pcb*controlMasterForm*SimpleMenu.resizeable: True Pcb*controlMasterForm*shadowWidth: 0 Pcb*controlMasterForm*borderWidth: 0 Pcb*controlMasterForm*SimpleMenu.borderWidth: 1 Pcb*controlMasterForm*horizDistance: 1 Pcb*controlMasterForm*MenuButton.width: 72 Pcb*controlMasterForm*Toggle.width: 72 Pcb*controlMasterForm*Label.height: 12 Pcb*controlMasterForm*Label.width: 72 Pcb*controlMasterForm*MenuButton.background: white Pcb*controlMasterForm*MenuButton.height: 14 Pcb*controlMasterForm*MenuButton.borderWidth: 1 Pcb*controlMasterForm*Toggle.background: white Pcb*controlMasterForm*Toggle.height: 14 Pcb*controlMasterForm*Toggle.borderWidth: 1 Pcb*controlMasterForm*panner.width: 72 Pcb*controlMasterForm*panner.height: 54 Pcb*controlMasterForm*panner.rubberBand: False Pcb*controlMasterForm*panner.borderWidth: 2 Pcb*controlMasterForm*panner.shadowWidth: 2 Pcb*controlMasterForm*panner.baseTranslations: #override \ Up: Display(Scroll, 8) \n\ Down: Display(Scroll, 2) \n\ Right: Display(Scroll, 6) \n\ Left: Display(Scroll, 4) \n !--------------------------------------------------------------------------- ! resources used by the tool-selection area ! Pcb.masterForm.Toggle.foreground: black !pcb.masterForm.Toggle.internalHeight: 1 !pcb.masterForm.Toggle.internalWidth: 1 Pcb*MasterForm.Toggle.horizDistance: 3 Pcb*MasterForm.Toggle.vertDistance: 3 !--------------------------------------------------------------------------- ! 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 \ Return: set() notify() unset() \n\ (2): set() notify() unset() \n !--------------------------------------------------------------------------- ! resources used by the size select box ! Pcb*sizeMasterForm*Label.vertDistance: 10 !--------------------------------------------------------------------------- ! resources of the library window ! Pcb*library.iconic: true Pcb.library.geometry: 750x250 Pcb.library*type*foreground: red Pcb.library.baseTranslations: #override \ WM_PROTOCOLS: Bell() \n Pcb*libraryMasterForm*List.baseTranslations: #replace \ ,: Set() Notify() \n\ !--------------------------------------------------------------------------- ! resources of the netlist window ! Pcb*netlist.iconic: false Pcb.netlist.geometry: 400x200 Pcb.netlist*net*foreground: red Pcb.netlist.baseTranslations: #override \ WM_PROTOCOLS: Bell() \n Pcb*netlistMasterForm*List.baseTranslations: #replace \ ,: Set() Notify() \n\ (2): ListAct() Set() \n\ BackSpace: ListAct(Kill) \n\ u: Undo() \n\ Shiftz: SetValue(Zoom, +1)\n\ z: SetValue(Zoom, -1)\n !--------------------------------------------------------------------------- ! resources of the logging window ! Pcb*log.iconic: true Pcb.log.geometry: 600x200 Pcb.log.baseTranslations: #override \ 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 \ WM_PROTOCOLS: set() notify() unset() \n Pcb*pinoutMasterForm.viewport.horizontal.accelerators: #override \ !@btnmod@ CtrlLeft: StartScroll(Backward) \ NotifyScroll(FullLength) \ EndScroll() \n\ !@btnmod@ CtrlRight: StartScroll(Forward) \ NotifyScroll(FullLength) \ EndScroll() \n Pcb*pinoutMasterForm.viewport.vertical.accelerators: #override \ !@btnmod@ CtrlUp: StartScroll(Backward) \ NotifyScroll(FullLength) \ EndScroll() \n\ !@btnmod@ CtrlDown: StartScroll(Forward) \ NotifyScroll(FullLength) \ EndScroll() \n !--------------------------------------------------------------------------- ! resources used by the menu buttons ! Note that these overrides plus those of the menus below make the menus ! behave as "sticky" menus. ! The next two lines elliminate the menu button borders ! but there is no convenient way to underline the first characters. Pcb.masterForm*MenuButton.shadowWidth: 0 Pcb.masterForm*MenuButton.BorderWidth: 0 Pcb*MenuButton.baseTranslations: #override \ : set() \n\ : reset() PopupMenu() \n !--------------------------------------------------------------------------- ! resources used by the menus ! Pcb*header.foreground: red Pcb*SimpleMenu*justify: left Pcb*SimpleMenu.baseTranslations: #override \ : highlight() \n\ ,: MenuPopdown() notify() unhighlight() \n\ : \n !--------------------------------------------------------------------------- ! resources used by statuslines and input field ! Pcb.masterForm*cursorPosition.justify: left Pcb.masterForm*cursorPosition.width: 400 Pcb.masterForm*inputField*borderWidth: 0 Pcb.masterForm*messageText.foreground: red Pcb.masterForm*messageText.justify: left Pcb.masterForm*statusLine.justify: left !--------------------------------------------------------------------------- ! resources used by the output area Pcb.masterForm*output*background: gray95 !--------------------------------------------------------------------------- ! translations of the output area ! Pcb.masterForm*output.baseTranslations: #override \ Escape: Mode(None) \n\ space: Mode(Arrow) \n\ colon: Command() \n\ period: Command(-1) \n\ ShiftBackSpace: Atomic(Save) \ Connection(Reset) \ Atomic(Restore) \ Unselect(All) \ Atomic(Restore) \ Connection(Find) \ Atomic(Restore) \ Select(Connection) \ Atomic(Restore) \ RemoveSelected() \ Atomic(Restore) \ Connection(Reset) \ Atomic(Restore) \ Unselect(All) \ Atomic(Block) \n\ ShiftDelete: Atomic(Save) \ Connection(Reset) \ Atomic(Restore) \ Unselect(All) \ Atomic(Restore) \ Connection(Find) \ Atomic(Restore) \ Select(Connection) \ Atomic(Restore) \ RemoveSelected() \ Atomic(Restore) \ Connection(Reset) \ Atomic(Restore) \ Unselect(All) \ Atomic(Block) \n\ BackSpace: Mode(Save) \ Mode(Remove) \ Mode(Notify) \ Mode(Restore) \n\ Delete: Mode(Save) \ Mode(Remove) \ Mode(Notify) \ Mode(Restore) \n\ Insert: Mode(InsertPoint) \n\ \ 1: SwitchDrawingLayer(1) \n\ 2: SwitchDrawingLayer(2) \n\ 3: SwitchDrawingLayer(3) \n\ 4: SwitchDrawingLayer(4) \n\ 5: SwitchDrawingLayer(5) \n\ 6: SwitchDrawingLayer(6) \n\ 7: SwitchDrawingLayer(7) \n\ 8: SwitchDrawingLayer(8) \n\ 9: SwitchDrawingLayer(9) \n\ \ a: SetSame() \n\ b: Flip(Object) \n\ @btnmod@c: PasteBuffer(Clear) \ PasteBuffer(AddSelected) \ Unselect(All) \n\ d: Display(PinOrPadName) \n\ Shifte: DeleteRats(SelectedRats) \n\ f: Connection(Reset) \ Connection(Find) \n\ Shift Ctrlg: SetValue(Grid, -0.05, mm) \n\ Ctrlg: SetValue(Grid, +0.05, mm) \n\ Shifth: ToggleHideName(SelectedElements) \n\ Ctrlh: ChangeHole(ToggleObject) \n\ h: ToggleHideName(Object) \n\ j: ChangeJoin(Object) \n\ Shiftj: ChangeJoin(SelectedObjects) \n\ Shift Ctrlk: ChangeClearSize(SelectedObjects, -2, mil) \n\ Shiftk: ChangeClearSize(Object, -2, mil) \n\ Ctrlk: ChangeClearSize(SelectedObjects, +2, mil) \n\ k: ChangeClearSize(Object, +2, mil) \n\ Shiftl: SetValue(LineSize, -5, mil) \n\ l: SetValue(LineSize, +5, mil) \n\ Shiftm: MoveToCurrentLayer(SelectedObjects) \n\ Ctrlm: MarkCrosshair() \n\ m: MoveToCurrentLayer(Object) \n\ Shiftn: AddRats(Close) \n\ Shifto: Atomic(Save) \ DeleteRats(AllRats) \ Atomic(Restore) \ AddRats(SelectedRats) \ Atomic(Block) \n\ Ctrlo: ChangeOctagon(Object) \n\ Shiftp: Polygon(Close) \n\ p: Polygon(PreviousPoint) \n\ q: ChangeSquare(ToggleObject) \n\ @btnmod@ Shifts: ChangeDrillSize(Object, -5, mil) \n\ Shifts: ChangeSize(Object, -5, mil) \n\ @btnmod@s: ChangeDrillSize(Object, +5, mil) \n\ s: ChangeSize(Object, +5, mil) \n\ Shiftt: SetValue(TextScale, -10, mil) \n\ t: SetValue(TextScale, +10, mil) \n\ @btnmod@ Shiftv: SetValue(ViaDrillingHole, -5, mil) \n\ Shift Ctrlv: SetValue(ViaSize, -5, mil) \n\ @btnmod@v: SetValue(ViaDrillingHole, +5, mil) \n\ Ctrlv: SetValue(ViaSize, +5, mil) \n\ v: SetValue(Zoom, 1000) \n\ Shiftw: AddRats(SelectedRats) \n\ w: AddRats(AllRats) \n\ @btnmod@x: PasteBuffer(Clear) \ PasteBuffer(AddSelected) \ RemoveSelected() \n\ Shiftz: SetValue(Zoom, +1) \n\ @btnmod@z: Undo() \n\ z: SetValue(Zoom, -1) \ Display(Center) \n\ .: Display(Toggle45Degree) \n\ /: Display(CycleClip) \n\ \ @btnmod@Up: Display(Scroll, 8) \ Display(Scroll, 0) \n\ @btnmod@Down: Display(Scroll, 2) \ Display(Scroll, 0) \n\ @btnmod@Right: Display(Scroll, 6) \ Display(Scroll, 0) \n\ @btnmod@Left: Display(Scroll, 4) \ Display(Scroll, 0) \n\ \ CtrlUp: Display(Scroll, 8) \ Display(Scroll, 0) \n\ ShiftUp: MovePointer(0, -10) \n\ Up: MovePointer(0, -1) \n\ CtrlDown: Display(Scroll, 2) \ Display(Scroll, 0) \n\ ShiftDown: MovePointer(0, 10) \n\ Down: MovePointer(0, 1) \n\ CtrlRight: Display(Scroll, 6) \ Display(Scroll, 0) \n\ ShiftRight: MovePointer(10, 0) \n\ Right: MovePointer(1, 0) \n\ CtrlLeft: Display(Scroll, 4) \ Display(Scroll, 0) \n\ ShiftLeft: MovePointer(-10, 0) \n\ Left: MovePointer(-1, 0) \n\ \ F1: Mode(Via) \n\ F2: Mode(Line) \n\ F3: Mode(Arc) \n\ F4: Mode(Text) \n\ F5: Mode(Rectangle) \n\ F6: Mode(Polygon) \n\ ShiftF7: PasteBuffer(Rotate, 1) \n\ F8: Mode(Delete) \n\ F9: Mode(Rotate) \n\ F10: Mode(Thermal) \n\ F11: Mode(Arrow) \n\ \ [: Mode(Save) \ Mode(Arrow) \ Mode(Notify) \n\ ]: Mode(Release) \ Mode(Restore) \n\ \ Shift Ctrl: Mode(Save) \ Mode(Remove) \ Mode(Notify) \ Mode(Restore) \n\ Ctrl: Mode(Save) \ Mode(None) \ Mode(Restore) \ Mode(Notify) \n\ : Mode(Notify) \n\ : Mode(Release) \n\ \ Shift @btnmod@: Display(ToggleRubberbandMode) \ Mode(Save) \ Mode(Move) \ Mode(Notify) \n\ Ctrl: Mode(Save) \ Mode(Copy) \ Mode(Notify) \n\ : Mode(Save) \ Mode(Stroke) \n\ Shift @btnmod@: Mode(Notify) \ Mode(Restore) \ Display(ToggleRubberbandMode) \n\ Ctrl: Mode(Notify) \ Mode(Restore) \n\ : Mode(Release) \ Mode(Restore) \n\ \ Shift: Display(Save) \ SetValue(Zoom, 1000) \n\ Shift: Display(Center) \ Display(Restore) \n\ : ButtonThree() \n !-------------------------------------------------------------------- ! The "None" is necessary for the MenuPopup, ! otherwise the menu won't get a grab ! ! None: XawPositionSimpleMenu(pmenu) \ ! XtMenuPopup(pmenu) \n\ ! Shift : Mode(Save) \ ! Mode(None) \ ! Unselect(Block) \n\ ! Shift: Unselect(Block) \ ! Mode(Restore) \n\ ! @btnmod@: Mode(Save) \ ! Mode(None) \ ! Select(Block) \n\ ! @btnmod@: Select(Block) \ ! Mode(Restore) \n