summaryrefslogtreecommitdiff
path: root/support/hypertex/tanmoy/ghostview-1.5-hacked/Ghostview.ad
blob: 1c6085d89932fd92d284d027b7235f0fe3bc06aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
!  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)