!  Ghostview.ad -- Application defaults file for ghostview.
!  Copyright (C) 1992  Timothy O. Theisen
! 
!  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.
! 
!    Author: Tim Theisen           Systems Programmer
!  Internet: tim@cs.wisc.edu       Department of Computer Sciences
!      UUCP: uwvax!tim             University of Wisconsin-Madison
!     Phone: (608)262-0438         1210 West Dayton Street
!       FAX: (608)262-9777         Madison, WI   53706

! All of the button labels and actions are determined in this file.
! It should be easy to adapt to any language.
! To use a different version of ghostscript, you can add the resource
! *Ghostview.interpreter: /my/very/own/gs
!
! This is a XawPlus version of the Ghostview resource file

*font:			-*-lucidatypewriter-medium-r-*-*-12-*-*-*-*-*-iso8859-1
*Command*font:		7x13bold
*MenuButton*font:	7x13bold

*input:			True
*allowShellResize:	True
*box*MenuButton.leftBitmap:	menu12.xpm
*box.MenuButton.highlightMode:	False
*ghostviewButton.label:	Ghostview
*copyright.label:	Copyright...
*quit.label:		Quit
*fileButton.label:	File
*open.label:		Open...
*reopen.label:		Reopen
*printwhole.label:	Print...
*printmarked.label:	Print marked pages...
*save.label:		Save marked pages...
*pageButton.label:	Page
*next.label:		Next
*show.label:		Redisplay
*prev.label:		Previous
*center.label:		Center
*mark.label:		Mark
*unmark.label:		Unmark
*magstepButton.label:	Magstep
*orientationButton.label:	Orientation
*portrait.label:	Portrait
*landscape.label:	Landscape
*upsidedown.label:	Upside-down
*seascape.label:	Seascape
*swap.label:	Swap Landscape
*pagemediaButton.label:	Media
*pageview.useBottom:	True
*pageview.useRight:	True
!
! Resources for the new file selection dialogue
!
*fileDialogShell.width:		420
*listView.preferredPaneSize:	370
*fileButtons*width:		80
*fileDialogShell.title:		Load File
*selectList.verticalList:	True
*selectList.defaultColumns:	1
*selectLabel.label:		File :
*fileButtons.ok.label:		Ok
*fileButtons.abort.label:	Cancel
!
! Copyright shell
!
*copyright.width:		495
*copyright.height:		450

*MenuButton.baseTranslations:	#replace \n\
    <EnterWindow>:	highlight() \n\
    <LeaveWindow>:	reset() \n\
    <Btn1Down>:		set() PopupMenu()

*MenuButton.translations:	#replace \n\
    <EnterWindow>:	highlight() \n\
    <LeaveWindow>:	reset() \n\
    <Btn1Down>:		set() PopupMenu()

*SimpleMenu.baseTranslations:	#replace \n\
    <EnterWindow>:	highlight() \n\
    <LeaveWindow>:	unhighlight() \n\
    <BtnMotion>:	highlight() \n\
    <Btn2Up>:	MenuPopdown() GhostviewForce() notify() unhighlight() \n\
    <BtnUp>:	MenuPopdown() GhostviewDefault() notify() unhighlight()
*SimpleMenu.translations:	#replace \n\
    <EnterWindow>:	highlight() \n\
    <LeaveWindow>:	unhighlight() \n\
    <BtnMotion>:	highlight() \n\
    <Btn2Up>:	MenuPopdown() GhostviewForce() notify() unhighlight() \n\
    <BtnUp>:	MenuPopdown() GhostviewDefault() notify() unhighlight()
*okay.label:	Okay
*cancel.label:	Cancel
*dismiss.label:	Dismiss
*Ghostview.busyCursor:	target
Ghostview.baseTranslations:	#replace \n\
    <MapNotify>:		GhostviewCheckFile() \n\
    <Message>WM_PROTOCOLS:	GhostviewDeleteWindow()
Ghostview.translations:		#replace \n\
    <MapNotify>:		GhostviewCheckFile() \n\
    <Message>WM_PROTOCOLS:	GhostviewDeleteWindow()
*TopLevelShell.baseTranslations:	#replace \n\
    <Message>WM_PROTOCOLS:	GhostviewDismiss()
*TopLevelShell.translations:	#replace \n\
    <Message>WM_PROTOCOLS:	GhostviewDismiss()
*TransientShell.baseTranslations:	#replace \n\
    <Message>WM_PROTOCOLS:	GhostviewDismiss()
*TransientShell.translations:	#replace \n\
    <Message>WM_PROTOCOLS:	GhostviewDismiss()
*zoom.form.baseTranslations:	#replace \n\
    <Key>Q:			GhostviewDeleteZoom()
*zoom.form.translations:	#replace \n\
    <Key>Q:			GhostviewDeleteZoom()
*zoom.baseTranslations:		#replace \n\
    <Message>WM_PROTOCOLS:	GhostviewDeleteWindow()
*zoom.translations:		#replace \n\
    <Message>WM_PROTOCOLS:	GhostviewDeleteWindow()
*Ghostview.baseTranslations:	#replace \n\
    <Message>:	message() \n\
    <EnterWindow>:	notify(0) \n\
    <LeaveWindow>:	GhostviewEraseLocator() \n\
    <MotionNotify>:	notify(0) \n\
    <Btn1Down>:	notify(180 180 200 200) \n\
    <Btn2Down>:	notify(120 120 300 300) \n\
    <Btn3Down>:	notify(90 90 400 400)
*Ghostview.translations:	#replace \n\
    <Message>:	message() \n\
    <EnterWindow>:	notify(0) \n\
    <LeaveWindow>:	GhostviewEraseLocator() \n\
    <MotionNotify>:	notify(0) \n\
    <Btn1Down>:	notify(180 180 200 200) \n\
    <Btn2Down>:	notify(120 120 300 300) \n\
    <Btn3Down>:	notify(90 90 400 400)
*toc.baseTranslations:	#replace \n\
    <FocusIn>:	focus-in() \n\
    <FocusOut>:	focus-out() \n\
    <Btn1Down>:	select-start() \n\
    <Btn1Motion>:	extend-adjust() \n\
    <Btn1Up>:	extend-end(PRIMARY, CUT_BUFFER0) \n\
    <Btn2Down>:	select-start() \n\
    <Btn2Motion>:	extend-adjust() \n\
    <Btn2Up>:	extend-end(PRIMARY, CUT_BUFFER0) GhostviewShow() \n\
    <Btn3Down>:	extend-start() \n\
    <Btn3Motion>:	extend-adjust() \n\
    <Btn3Up>:	extend-end(PRIMARY, CUT_BUFFER0)
*toc.translations:	#replace \n\
    <FocusIn>:	focus-in() \n\
    <FocusOut>:	focus-out() \n\
    <Btn1Down>:	select-start() \n\
    <Btn1Motion>:	extend-adjust() \n\
    <Btn1Up>:	extend-end(PRIMARY, CUT_BUFFER0) \n\
    <Btn2Down>:	select-start() \n\
    <Btn2Motion>:	extend-adjust() \n\
    <Btn2Up>:	extend-end(PRIMARY, CUT_BUFFER0) GhostviewShow() \n\
    <Btn3Down>:	extend-start() \n\
    <Btn3Motion>:	extend-adjust() \n\
    <Btn3Up>:	extend-end(PRIMARY, CUT_BUFFER0)
*Form.baseTranslations:	#replace \n\
    <Key>C:	GhostviewCenter() \n\
    <Key>Q:	GhostviewQuit() \n\
    <Key>O:	GhostviewOpen() \n\
    <Key>R:	GhostviewReopen() \n\
    <Key>S:	GhostviewSave() \n\
    Shift<Key>P:	GhostviewPrintWhole() \n\
    <Key>P:	GhostviewPrintMarked() \n\
    <Key>BackSpace:	GhostviewPrevious() \n\
    <Key>Delete:	GhostviewPrevious() \n\
    <Key>B:	GhostviewPrevious() \n\
    <Key>Prior:	GhostviewPrevious() \n\
    <Key>space:	GhostviewNext() \n\
    <Key>Return:	GhostviewNext() \n\
    <Key>F:	GhostviewNext() \n\
    <Key>Next:	GhostviewNext() \n\
    <Key>Tab:	GhostviewNext() \n\
    <Key>period:	GhostviewShow() \n\
    Ctrl<Key>L:	GhostviewShow() \n\
    <Key>M:	GhostviewMark() \n\
    <Key>N:	GhostviewUnmark() \n\
    <Key>0:	GhostviewSetMagstep(0) \n\
    <Key>1:	GhostviewSetMagstep(1) \n\
    <Key>2:	GhostviewSetMagstep(2) \n\
    <Key>3:	GhostviewSetMagstep(3) \n\
    <Key>4:	GhostviewSetMagstep(4) \n\
    <Key>5:	GhostviewSetMagstep(5) \n\
    <Key>+:	GhostviewIncreaseMagstep() \n\
    <Key>-:	GhostviewDecreaseMagstep() \n\
    <Key>U:	GhostviewScrollUp() \n\
    <Key>D:	GhostviewScrollDown() \n\
    <Key>K:	GhostviewScrollUp() \n\
    <Key>J:	GhostviewScrollDown() \n\
    <Key>H:	GhostviewScrollLeft() \n\
    <Key>L:	GhostviewScrollRight() \n\
    Shift<Key>Up:	GhostviewForce() GhostviewSetOrientation(portrait) \n\
    Shift<Key>Right:	GhostviewForce() GhostviewSetOrientation(landscape) \n\
    Shift<Key>Down: GhostviewForce() GhostviewSetOrientation(upside-down) \n\
    Shift<Key>Left:	GhostviewForce() GhostviewSetOrientation(seascape) \n\
    <Key>Up:	GhostviewDefault() GhostviewSetOrientation(portrait) \n\
    <Key>Right:	GhostviewDefault() GhostviewSetOrientation(landscape) \n\
    <Key>Down:	GhostviewDefault() GhostviewSetOrientation(upside-down) \n\
    <Key>Left:	GhostviewDefault() GhostviewSetOrientation(seascape)
*Form.translations:	#replace \n\
    <Key>C:	GhostviewCenter() \n\
    <Key>Q:	GhostviewQuit() \n\
    <Key>O:	GhostviewOpen() \n\
    <Key>R:	GhostviewReopen() \n\
    <Key>S:	GhostviewSave() \n\
    Shift<Key>P:	GhostviewPrintWhole() \n\
    <Key>P:	GhostviewPrintMarked() \n\
    <Key>BackSpace:	GhostviewPrevious() \n\
    <Key>Delete:	GhostviewPrevious() \n\
    <Key>B:	GhostviewPrevious() \n\
    <Key>Prior:	GhostviewPrevious() \n\
    <Key>space:	GhostviewNext() \n\
    <Key>Return:	GhostviewNext() \n\
    <Key>F:	GhostviewNext() \n\
    <Key>Next:	GhostviewNext() \n\
    <Key>Tab:	GhostviewNext() \n\
    <Key>period:	GhostviewShow() \n\
    Ctrl<Key>L:	GhostviewShow() \n\
    <Key>M:	GhostviewMark() \n\
    <Key>N:	GhostviewUnmark() \n\
    <Key>0:	GhostviewSetMagstep(0) \n\
    <Key>1:	GhostviewSetMagstep(1) \n\
    <Key>2:	GhostviewSetMagstep(2) \n\
    <Key>3:	GhostviewSetMagstep(3) \n\
    <Key>4:	GhostviewSetMagstep(4) \n\
    <Key>5:	GhostviewSetMagstep(5) \n\
    <Key>+:	GhostviewIncreaseMagstep() \n\
    <Key>-:	GhostviewDecreaseMagstep() \n\
    <Key>U:	GhostviewScrollUp() \n\
    <Key>D:	GhostviewScrollDown() \n\
    <Key>K:	GhostviewScrollUp() \n\
    <Key>J:	GhostviewScrollDown() \n\
    <Key>H:	GhostviewScrollLeft() \n\
    <Key>L:	GhostviewScrollRight() \n\
    Shift<Key>Up:	GhostviewForce() GhostviewSetOrientation(portrait) \n\
    Shift<Key>Right:	GhostviewForce() GhostviewSetOrientation(landscape) \n\
    Shift<Key>Down: GhostviewForce() GhostviewSetOrientation(upside-down) \n\
    Shift<Key>Left:	GhostviewForce() GhostviewSetOrientation(seascape) \n\
    <Key>Up:	GhostviewDefault() GhostviewSetOrientation(portrait) \n\
    <Key>Right:	GhostviewDefault() GhostviewSetOrientation(landscape) \n\
    <Key>Down:	GhostviewDefault() GhostviewSetOrientation(upside-down) \n\
    <Key>Left:	GhostviewDefault() GhostviewSetOrientation(seascape)
