!  HDSview -- Application defaults file for hdsview.
!
!  Copyright (C) 1993 Human Designed Systems
!
!
!  Ghostview copyright:
!
!  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.
!

! 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 hdsscript, you can add the resource
! *interpreter: /my/very/own/hdsscript

*fileButton.labelString:	File
*fileButton.mnemonic:			F

*open.labelString:		Open...
*open.mnemonic:				O
*open.accelerator:			<Key>O
*open.acceleratorText:			O
*reopen.labelString:		Reopen
*reopen.mnemonic:			R
*reopen.accelerator:			<Key>R
*reopen.acceleratorText:		R
*printwhole.labelString:	Print...
*printwhole.mnemonic:			P
*printwhole.accelerator:		Shift<Key>P
*printwhole.acceleratorText:		Shift+P
*printmarked.labelString:	Print marked pages...
*printmarked.mnemonic:			m
*printmarked.accelerator:		<Key>P
*printmarked.acceleratorText:		P
*save.labelString:		Save marked pages...
*save.mnemonic:				S
*save.accelerator:			<Key>S
*save.acceleratorText:			S
*copyright.labelString:		Copyright...
*copyright.mnemonic:			C
!*copyright.accelerator:			<Key>C
!*copyright.acceleratorText:		C
*quit.labelString:		Quit
*quit.mnemonic:				Q
*quit.accelerator:			<Key>Q
*quit.acceleratorText:			Q

*pageButton.labelString:	Page
*pageButton.mnemonic:			P

*next.labelString:		Next
*next.mnemonic:				N
*next.accelerator:			<Key>space
*next.acceleratorText:			space
*show.labelString:		Redisplay
*show.mnemonic:				R
*show.accelerator:			Ctrl<Key>L
*show.acceleratorText:			Ctrl+L
*prev.labelString:		Previous
*prev.mnemonic:				P
*prev.accelerator:			<Key>BackSpace
*prev.acceleratorText:			BackSpace
*center.labelString:		Center
*center.mnemonic:			C
*center.accelerator:			<Key>C
*center.acceleratorText:		C
*mark.labelString:		Mark
*mark.mnemonic:				M
*mark.accelerator:			<Key>M
*mark.acceleratorText:			M
*unmark.labelString:		Unmark
*unmark.mnemonic:			U
*unmark.accelerator:			<Key>N
*unmark.acceleratorText:		N

*magstepButton.labelString:	Magstep
*magstepButton.mnemonic:		M

*zero.labelString:			0
*zero.mnemonic:				0
*zero.accelerator:			<Key>0
*zero.acceleratorText:			0
*one.labelString:			1
*one.mnemonic:				1
*one.accelerator:			<Key>1
*one.acceleratorText:			1
*two.labelString:			2
*two.mnemonic:				2
*two.accelerator:			<Key>2
*two.acceleratorText:			2
*three.labelString:			3
*three.mnemonic:			3
*three.accelerator:			<Key>3
*three.acceleratorText:			3
*four.labelString:			4
*four.mnemonic:				4
*four.accelerator:			<Key>4
*four.acceleratorText:			4
*five.labelString:			5
*five.mnemonic:				5
*five.accelerator:			<Key>5
*five.acceleratorText:			5

*orientationButton.labelString:	Orientation
*orientationButton.mnemonic:		O

*portrait.labelString:		Portrait
*portrait.mnemonic:			P
*landscape.labelString:		Landscape
*landscape.mnemonic:			L
*upsidedown.labelString:	Upside-down
*upsidedown.mnemonic:			U
*seascape.labelString:		Seascape
*seascape.mnemonic:			S
*swap.labelString:		Swap Landscape
*swap.mnemonic:				e

*pagemediaButton.labelString:	Media
*pagemediaButton.mnemonic:		a

*helpButton.labelString:	Help
*helpButton.mnemonic:			H

*help.labelString:		Help
*help.mnemonic:				H
*help.accelerator:			<Key>H
*help.acceleratorText:			H

*generalhelp.labelString:		General
*generalhelp.mnemonic:			G

*filehelp.labelString:			File Help
*filehelp.mnemonic:			F
*pagehelp.labelString:			Page Help
*pagehelp.mnemonic:			P
*magstephelp.labelString:		Magstep Help
*magstephelp.mnemonic:			M
*orienthelp.labelString:		Orientation Help
*orienthelp.mnemonic:			O
*mediahelp.labelString:			Media Help
*mediahelp.mnemonic:			a

! Text for help popup windows

*generalhelp_popup.*messageString:\
hdsview is a Motif front end interface to the hdsscript program.

*filehelp_popup.*messageString:\
File Menu\n\
 \n\
        This menu controls file access:\n\
 \n\
        Open...\n\
                Pops up a dialog widget to ask for the file name.  Opens the\n\
                file for viewing.\n\
 \n\
        Reopen\n\
                Reopens the current file.\n\
 \n\
        Print...\n\
                Pops up a dialog widget to ask for the printer name.  Sends the\n\
                whole document to the printer.\n\
 \n\
        Print marked pages...\n\
                Pops up a dialog widget to ask for the printer name.  Sends the\n\
                marked pages to the printer.  If no pages have been marked, the\n\
                mark procedure is called before printing and the unmark procedure\n\
                is called after printing.\n\
 \n\
        Save marked pages...\n\
                Pops up a dialog widget to ask for the file name.  Saves the marked\n\
                pages in the selected file.  If no pages have been marked, the\n\
                mark procedure is called before saving and the unmark procedure\n\
                is called after saving.\n\
 \n\
        Copyright...\n\
                Pops up the copyright window.\n\
 \n\
        Quit\n\
                Causes hdsview to exit.

*pagehelp_popup.*messageString:\
Page Menu\n\
 \n\
        This menu controls page access:\n\
 \n\
        Next\n\
                Display the next page.\n\
 \n\
        Redisplay\n\
                Display the current page.\n\
 \n\
        Previous\n\
                Display the previous page.\n\
 \n\
        Center\n\
                Center the page in the viewport.\n\
 \n\
        Mark\n\
                Mark the pages that have been selected in the table of contents.\n\
                If no pages have been selected, mark the current page.\n\
 \n\
        Unmark\n\
                Unmark the pages that have been selected in the table of contents.\n\
                If no pages have been selected, unmark the current page.

*magstephelp_popup.*messageString:\
Magstep Menu\n\
 \n\
        The Magstep menu controls the magnification at which the document is viewed.\n\
        The default magstep of 0 implies no magnification (i.e. the size on the screen\n\
        should match the size on paper).  Hdsview borrows the notion of magstep from\n\
        TeX.  The magnification is defined to be 1.2**magstep.  At magstep 1, the\n\
        document is magnified by 1.2.  At magstep -1, the document is reduced by 1.2.

*orienthelp_popup.*messageString:\
Orientation Menu\n\
 \n\
        The Orientation menu controls the display orientation.  A diamond appears in\n\
        front of the current orientation.\n\
 \n\
        Portrait\n\
                Set the orientation to Portrait.  This implies no rotation.  A portrait\n\
                orientation indicates that the longest edge of the paper is parallel to\n\
                the vertical (y) axis.\n\
 \n\
        Landscape\n\
                Set the orientation to Landscape.  This implies a clockwise rotation of\n\
                the paper by 90 degrees.  A landscape orientation indicates that the\n\
                longest edge of the paper is parallel to the horizontal (x) axis.\n\
 \n\
        Upside-down\n\
                Set the orientation to Upside-Down.\n\
 \n\
        Seascape\n\
                Set the orientation to Seascape.  This implies a counterclockwise\n\
                rotation of the paper by 90 degrees.\n\
 \n\
        Swap Landscape\n\
                Swap the meaning of Landscape and Seascape, since some documents need\n\
                to be rotated the other way.  The swap landscape allows hdsview to\n\
                automatically rotate the document the right way in response to the\n\
                %%Orientation comment in the PostScript file.

*mediahelp_popup.*messageString:\
Media Menu\n\
 \n\
        The entries on the Media menu set the page media.  Media defined in the\n\
        document appear at the beginning of the menu separated by a line from the\n\
        standard media.  A diamond appears in front of the current media.\n\
 \n\
        See the manual pages for a list of media names and sizes.

*fontList:			menu12
*XmList.fontList:		9x15bold
!*copyright_popup.*fontList:	9x15bold

*busyCursor:			target

!*locator.borderWidth:		0
*locator.width:			72

*toc.highlightThickness:	0
*toc.visibleItemCount:		30

*dismiss.labelString:		Dismiss

*infotext.rows:			22
*infotext.columns:		80

!*SimpleMenu.baseTranslations:	#replace \n\
!    <EnterWindow>:	highlight() \n\
!    <LeaveWindow>:	unhighlight() \n\
!    <BtnMotion>:	highlight() \n\
!    <Btn2Up>:	MenuPopdown() hdsviewForce() notify() unhighlight() \n\
!    <BtnUp>:	MenuPopdown() hdsviewDefault() notify() unhighlight()

!*SimpleMenu.Translations:	#replace \n\
!    <EnterWindow>:	highlight() \n\
!    <LeaveWindow>:	unhighlight() \n\
!    <BtnMotion>:	highlight() \n\
!    <Btn2Up>:	MenuPopdown() hdsviewForce() notify() unhighlight() \n\
!    <BtnUp>:	MenuPopdown() hdsviewDefault() notify() unhighlight()

!hdsview.baseTranslations:	#replace \n\
!    <MapNotify>:		hdsviewCheckFile() \n\
!    <Message>WM_PROTOCOLS:	hdsviewDeleteWindow()

hdsview.Translations:		#replace \n\
    <MapNotify>:		hdsviewCheckFile() \n\
    <Message>WM_PROTOCOLS:	hdsviewDeleteWindow()

!*TopLevelShell.baseTranslations:	#replace \n\
!    <Message>WM_PROTOCOLS:	hdsviewDismiss()

!*TopLevelShell.Translations:	#replace \n\
!    <Message>WM_PROTOCOLS:	hdsviewDismiss()

!*TransientShell.baseTranslations:	#replace \n\
!    <Message>WM_PROTOCOLS:	hdsviewDismiss()

!*TransientShell.Translations:	#replace \n\
!    <Message>WM_PROTOCOLS:	hdsviewDismiss()

!*zoom.form.baseTranslations:	#replace \n\
!    <Key>Q:			hdsviewDeleteZoom()

*viewzoom.form.Translations:	#replace \n\
    <Key>Q:			hdsviewDeleteZoom()

!*zoom.baseTranslations:		#replace \n\
!    <Message>WM_PROTOCOLS:	hdsviewDeleteWindow()

*viewzoom.Translations:		#replace \n\
    <Message>WM_PROTOCOLS:	hdsviewDeleteWindow()

!*hdsview.baseTranslations:	#replace \n\
!    <Message>:	message() \n\
!    <EnterWindow>:	notify(0) \n\
!    <LeaveWindow>:	hdsviewEraseLocator() \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)

!*hdsview.Translations:	#replace \n\
!    <Message>:		message() \n\
!    <EnterWindow>:	notify(0) \n\
!    <LeaveWindow>:	hdsviewEraseLocator() \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) hdsviewShow() \n\
!    <Btn3Down>:	extend-start() \n\
!    <Btn3Motion>:	extend-adjust() \n\
!    <Btn3Up>:	extend-end(PRIMARY, CUT_BUFFER0)

*toc.Translations:	#override \n\
    <Btn2Down>:		ListBeginSelect() \n\
    <Btn2Motion>:	ListButtonMotion() \n\
    <Btn2Up>:		ListEndExtend() hdsviewShow() \n\
    <Btn3Down>:		ListBeginExtend() \n\
    <Btn3Motion>:	ListButtonMotion() \n\
    <Btn3Up>:		ListEndExtend()

!    <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) hdsviewShow() \n\
!    <Btn3Down>:	extend-start() \n\
!    <Btn3Motion>:	extend-adjust() \n\
!    <Btn3Up>:	extend-end(PRIMARY, CUT_BUFFER0)

!*Form.baseTranslations:	#replace \n\
!    <Key>C:	hdsviewCenter() \n\
!    <Key>Q:	hdsviewQuit() \n\
!    <Key>O:	hdsviewOpen() \n\
!    <Key>R:	hdsviewReopen() \n\
!    <Key>S:	hdsviewSave() \n\
!    Shift<Key>P:	hdsviewPrintWhole() \n\
!    <Key>P:	hdsviewPrintMarked() \n\
!    <Key>BackSpace:	hdsviewPrevious() \n\
!    <Key>Delete:	hdsviewPrevious() \n\
!    <Key>B:	hdsviewPrevious() \n\
!    <Key>Prior:	hdsviewPrevious() \n\
!    <Key>space:	hdsviewNext() \n\
!    <Key>Return:	hdsviewNext() \n\
!    <Key>F:	hdsviewNext() \n\
!    <Key>Next:	hdsviewNext() \n\
!    <Key>period:	hdsviewShow() \n\
!    Ctrl<Key>L:	hdsviewShow() \n\
!    <Key>M:	hdsviewMark() \n\
!    <Key>N:	hdsviewUnmark() \n\
!    <Key>0:	hdsviewSetMagstep(0) \n\
!    <Key>1:	hdsviewSetMagstep(1) \n\
!    <Key>2:	hdsviewSetMagstep(2) \n\
!    <Key>3:	hdsviewSetMagstep(3) \n\
!    <Key>4:	hdsviewSetMagstep(4) \n\
!    <Key>5:	hdsviewSetMagstep(5) \n\
!    <Key>+:	hdsviewIncreaseMagstep() \n\
!    <Key>-:	hdsviewDecreaseMagstep() \n\
!    <Key>U:	hdsviewScrollUp() \n\
!    <Key>D:	hdsviewScrollDown() \n\
!    <Key>K:	hdsviewScrollUp() \n\
!    <Key>J:	hdsviewScrollDown() \n\
!    <Key>H:	hdsviewScrollLeft() \n\
!    <Key>L:	hdsviewScrollRight() \n\
!    Shift<Key>Up:	hdsviewForce() hdsviewSetOrientation(portrait) \n\
!    Shift<Key>Right:	hdsviewForce() hdsviewSetOrientation(landscape) \n\
!    Shift<Key>Down: hdsviewForce() hdsviewSetOrientation(upside-down) \n\
!    Shift<Key>Left:	hdsviewForce() hdsviewSetOrientation(seascape) \n\
!    <Key>Up:	hdsviewDefault() hdsviewSetOrientation(portrait) \n\
!    <Key>Right:	hdsviewDefault() hdsviewSetOrientation(landscape) \n\
!    <Key>Down:	hdsviewDefault() hdsviewSetOrientation(upside-down) \n\
!    <Key>Left:	hdsviewDefault() hdsviewSetOrientation(seascape)

*form.borderWidth:	0

*form*page.Translations:	#override \n\
    <Key>Delete:	hdsviewPrevious() \n\
    <Key>B:		hdsviewPrevious() \n\
    <Key>Prior:		hdsviewPrevious() \n\
    <Key>Return:	hdsviewNext() \n\
    <Key>F:		hdsviewNext() \n\
    <Key>Next:		hdsviewNext() \n\
    <Key>period:	hdsviewShow() \n\
    <Key>+:		hdsviewIncreaseMagstep() \n\
    <Key>-:		hdsviewDecreaseMagstep() \n\
    <Key>U:		hdsviewScrollUp() \n\
    <Key>D:		hdsviewScrollDown() \n\
    <Key>K:		hdsviewScrollUp() \n\
    <Key>J:		hdsviewScrollDown() \n\
    <Key>G:		hdsviewScrollLeft() \n\
    <Key>L:		hdsviewScrollRight() \n\
    Shift<Key>Up:	hdsviewForce() hdsviewSetOrientation(portrait) \n\
    Shift<Key>Right:	hdsviewForce() hdsviewSetOrientation(landscape) \n\
    Shift<Key>Down:	hdsviewForce() hdsviewSetOrientation(upside-down) \n\
    Shift<Key>Left:	hdsviewForce() hdsviewSetOrientation(seascape) \n\
    <Key>Up:		hdsviewDefault() hdsviewSetOrientation(portrait) \n\
    <Key>Right:		hdsviewDefault() hdsviewSetOrientation(landscape) \n\
    <Key>Down:		hdsviewDefault() hdsviewSetOrientation(upside-down) \n\
    <Key>Left:		hdsviewDefault() hdsviewSetOrientation(seascape) \n\
    <Message>:		message() \n\
    <EnterWindow>:	notify(0) \n\
    <LeaveWindow>:	hdsviewEraseLocator() \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)
