!  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

! This file is part of the hacked version of the ghostview package
! which is distributed under the terms of the gnu license. The
! modification referred to above is by Tanmoy Bhattacharya,
! <tanmoy@qcd.lanl.gov> on Nov 17, 1994. Neither the modification,
! nor the original program provides any warranty.

! 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

*input:	True
*allowShellResize:	True
*ShapeStyle:	Oval
*Font:	-adobe-new century schoolbook-medium-r-normal--*-140-*-*-p-*-iso8859-1
*Text*Font:	-adobe-courier-medium-r-normal--*-140-*-*-m-*-iso8859-1
*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
*MenuButton.baseTranslations:	#replace \n\
    <EnterWindow>:	highlight() \n\
    <LeaveWindow>:	reset() \n\
    !               <BtnDown>:		reset() PopupMenu() \n\
    !          Shift<BtnDown>:		reset() PopupMenu() \n\
    !     Lock      <BtnDown>:		reset() PopupMenu() \n\
    !     Lock Shift<BtnDown>:		reset() PopupMenu() \n\
    !Ctrl           <BtnDown>:		reset() PopupMenu() \n\
    !Ctrl      Shift<BtnDown>:		reset() PopupMenu() \n\
    !Ctrl Lock      <BtnDown>:		reset() PopupMenu() \n\
    !Ctrl Lock Shift<BtnDown>:		reset() PopupMenu()
*MenuButton.translations:	#replace \n\
    <EnterWindow>:	highlight() \n\
    <LeaveWindow>:	reset() \n\
    !               <BtnDown>:		reset() PopupMenu() \n\
    !          Shift<BtnDown>:		reset() PopupMenu() \n\
    !     Lock      <BtnDown>:		reset() PopupMenu() \n\
    !     Lock Shift<BtnDown>:		reset() PopupMenu() \n\
    !Ctrl           <BtnDown>:		reset() PopupMenu() \n\
    !Ctrl      Shift<BtnDown>:		reset() PopupMenu() \n\
    !Ctrl Lock      <BtnDown>:		reset() PopupMenu() \n\
    !Ctrl Lock Shift<BtnDown>:		reset() 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:	GhostviewBack() \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:	GhostviewBack() \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)