!
!** Copyright (C) 1995, 1996, 1997 Johannes Plass
! 
! 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:   Johannes Plass (plass@thep.physik.uni-mainz.de)
!           Department of Physics
!           Johannes Gutenberg-University
!           Mainz, Germany
!
!
!  GV.ad
!  Application class defaults for gv
!  Copyright (C) 1995, 1996, 1997  Johannes Plass
!


!########## gv_user_res.dat

!##### Application specific Resources

GV.pageMedia:				automatic
GV.magstep:				0
GV.orientation:				automatic
GV.fallbackOrientation:			portrait
GV.swapLandscape:			False
GV.autoCenter:				True
GV.antialias:				False
GV.respectDSC:				True
GV.ignoreEOF:				True
GV.confirmPrint:			True
GV.reverseScrolling:			False
GV.autoResize:				True
GV.minimumMagstep:			-7
GV.maximumMagstep:			7
GV.maximumWidth:			screen-20
GV.maximumHeight:			screen-44
GV.minimumWidth:			400
GV.minimumHeight:			450
GV.geometry:				+10+10
GV.highlightPixel:			#D3B5B5
GV.confirmQuit:				1
GV.watchFile:				False
GV.watchFileFrequency:			1000

GV*filter: no .*

GV*filters:None\n\
*.ps* *.pdf*  no  .*\n\
*.ps*   no  .*\n\
*.pdf*  no  .*\n\
no  .*

GV*dirs:Home\n\
Tmp\n\
/usr/doc\n\
/usr/local/doc

!##### Ghostview Widget

GV*Ghostview.UseBackingPixmap:		True
GV*Ghostview.background:		white
GV*Ghostview.foreground:		black


!########## gv_make_res.dat (generated by makefile)

GV.scratchDir:		~/
GV.defaultSaveDir:	~/
GV.fallbackPageMedia:	letter



!########## gv_font_res_linux.dat

!##### Fonts

GV*font:			-*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1
GV*SmeBSB.font:			-*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1
GV*Button.font:			-*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1

GV.?.processButton.font:	-*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1
GV.?.Label*font:		-*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1
GV.?.Button*font:		-*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1
GV.?.locator*font:		-*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1
GV.?.dateButton*font:		-*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1
GV.?.titleButton*font:		-*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1
GV.?.prevPage*font:		-*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1
GV.?.nextPage*font:		-*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1

GV*newtoc.font:			-*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1

GV*fileSel*font:		-*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1
GV*fileSel*button1.font:	-*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1
GV*fileSel*button2.font:	-*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1
GV*fileSel*button3.font:	-*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1
GV*fileSel*button4.font:	-*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1
GV*fileSel*pathtext*font:	-*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1

GV*optionPopup*Label*font:	-*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1
GV*optionPopup*confirmButton.font:-*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1
GV*optionPopup*Switch*font:	-*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1
GV*optionPopup*font:		-*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1
GV*optionPopup*Button.font:	-*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1

GV*dialogPopup*font:		-*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1
GV*dialogPopup*Button.font:	-*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1
GV*dialogPopup*message*font:	-*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1

GV*notePopup*Button.font:	-*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1
GV*notePopup*message*font:	-*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1

GV*confirmPopup*font:		-*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1
GV*confirmPopup*Button.font:	-*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1

GV*versionPopup*Label*font:	-*-Courier-Medium-R-Normal--*-100-*-*-M-*-ISO8859-1
GV*versionPopup*versionTexta*font:-*-Helvetica-Bold-R-Normal--*-180-*-*-P-*-ISO8859-1
GV*versionPopup*versionTextb*font:-*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1

GV*infoPopup*Text*font:		-*-Courier-Medium-R-Normal--*-100-*-*-M-*-ISO8859-1



!########## gv_misc_res.dat

!##### General

GV*highlightThickness:			1
GV*ShapeStyle:				Rectangle
GV*beNiceToColormap:			False
GV*input:				True
GV*initialResourcesPersistent:		False

!##### Version (do not modify)

GV.version:				gv 3.1.6

!##### Background, Foreground

GV*background:				gray71
GV*foreground:				black
GV*Text*background:			#D3B5B5
GV*SimpleMenu*background:		AntiqueWhite3
GV*locator*background:			gray65
GV*panner*foreground:			gray78
GV*Label.background:			AntiqueWhite3
GV*fileSel*Frame*background:		gray78
GV*fileSel*Frame*Text*background:	#D3B5B5
GV*optionPopup*Toggle*foreground:	gray65
GV*infoPopup*Scrollbar.background:	gray71
GV*notePopup*message.background:	#D3B5B5

GV*confirmPopup*message3.background:	#D3B5B5
GV*confirmPopup*message1.background:	gray71

GV*Button.background:			AntiqueWhite3
GV*Button.highlightedBackground:	AntiqueWhite2
GV*Button.setBackground:		AntiqueWhite4
GV*Switch.background:			AntiqueWhite3
GV*Switch.highlightedBackground:	AntiqueWhite4
GV*Switch.setBackground:		AntiqueWhite2
GV.?.Button.highlightedBackground:	AntiqueWhite2
GV.?.Button.background:			AntiqueWhite3
GV.?.Button.setBackground:		AntiqueWhite4

GV*MButton*setBackground:		AntiqueWhite2
GV*MButton*background:			AntiqueWhite3

GV*Scrollbar.background:		gray78
GV*Scrollbar.pointerColor:		black
GV*Scrollbar.pointerColorBackground:	White
GV*Scrollbar.scrollbarBackground:	gray71
GV*Scrollbar.foreground:		gray78
GV*optionPopup*Text*Scrollbar.background:gray71

GV*optionPopup*Label.background:	gray71

GV*newtocFrame*background:		gray78
GV*newtocScroll.background:		gray78
GV*Vlist.markBackground:		red
GV*Vlist.selectedBackground:		#D3B5B5
GV*Vlist.highlightedBackground:		gray65

!##### Shadows

GV*shadowWidth:				2
GV*Label.shadowWidth:			1
GV*Label*topShadowContrast:		-40
GV*Label*bottomShadowContrast:		-20
GV*Scrollbar.TopShadowPixel:		gray90
GV*Scrollbar.BottomShadowPixel:		gray40
GV*newtoc.shadowWidth:			0
GV*newtocScroll.bottomShadowPixel:	gray40
GV*optionPopup*Label.shadowWidth:	0
GV*confirmPopup*message1.shadowWidth:	0

!##### Frames

GV*Frame.frameType:			sunken
GV*Frame.topShadowPixel:		gray85
GV*Frame.bottomShadowPixel:		gray40
GV*Frame.hSpace:			0
GV*Frame.vSpace:			0

GV*MButton*unsetFrameStyle:		chiseled

GV.?.Button.unsetFrameStyle:		chiseled
GV.?.Button.highlightedFrameStyle:	chiseled

GV*rescan.unsetFrameStyle:		chiseled
GV*filter.unsetFrameStyle:		chiseled

!##### Border

GV*borderWidth:				0
GV*processButton.borderWidth:		0
GV*page.borderWidth:			1
GV*SimpleMenu.borderWidth:		1
GV*infoPopup*Text.borderWidth:		1

!##### View Area

GV*viewFrame.topShadowPixel:		gray78
GV*viewFrame.hSpace:			1
GV*viewFrame.vSpace:			1
GV*page.borderColor:			gray65
GV*viewClip.borderWidth:		1
GV*viewClip.borderColor:		gray71

!##### Scrollbar widget

GV*Scrollbar.thickness:			17
GV*Scrollbar.thumb:			None

!##### Menus

GV*magMenu*VertSpace:			0
GV*magMenu*leftMargin:			5
GV*magMenu*rightMargin:			5
GV*magMenu*justify:			center
GV*magMenuEntries:			("   2 ", 1.41 1.41 190 190)\
					("   4 ", 2.0  2.0  134 134)\
					("   8 ", 2.83 2.83  95  95)\
					(" 16 ", 4.0  4.0   67  67)\
					(" 32 ", 5.66 5.66  47  47)\
					(" 64 ", 8.0  8.0   33  33)

!##### File Selection widget

GV*fileSel.filterframe.background:	#D3B5B5
GV*fileSel.filterframe.hSpace:		3
GV*fileSel.filterframe.vSpace:		1
GV*fileSel.pathframe.background:	#D3B5B5
GV*fileSel.pathframe.hSpace:		3
GV*fileSel.pathframe.vSpace:		1

GV*fileSel*Vlist.selectedBackground:	gray58
GV*fileSel*Vlist.selectedGeometry:	3 0 -3 1
GV*fileSel*Vlist.highlightedGeometry:	3 0 -3 1


GV*fileSel*topaaa.maximumWidth:		100
GV*fileSel*topaaa.minimumWidth:		100
GV*fileSel*subaaa.maximumWidth:		100
GV*fileSel*subaaa.minimumWidth:		100

GV*fileSel*Scrollbar.showArrows:	False
GV*fileSel*Scrollbar.thumbTopIndent:	0
GV*fileSel*Scrollbar.width:		12
GV*fileSel*Scrollbar.shadowWidth:	1
GV*fileSel*Scrollbar.background:	gray78
GV*fileSel*Scrollbar.foreground:	gray71


GV.fileSelPopup.minWidth:		320
GV.fileSelPopup.minHeight:		200
GV*fileSel.width:			380
GV*fileSel.height:			350
GV*fileSel.highlightPixel:		#D3B5B5

!##### Zoom Popup

GV*zoomPopup.title:			Zoom
GV*zoomControl.maximumWidth:		600
GV*zoomControl.maximumHeight:		600

!##### Version Popup

GV*versionPopup*Label.internalHeight:	6
GV*versionPopup*Label.internalWidth:	8

!##### Info Popup

GV*infoPopup.title:			GhostScript Messages
GV*infoPopup.geometry:			+50+50

!##### Dialog Popup

GV*dialogPopup.title:			Dialog
GV*dialogPopup*message.internalHeight:	2
GV*dialogPopup*message.internalWidth:	8
GV*dialogPopup*defaultDistance:		2

!##### Note Popup

GV*notePopup.title:			Message
GV*notePopup*message.internalHeight:	6
GV*notePopup*message.internalWidth:	8

!##### Confirm Popup

GV*confirmPopup.title:			Confirm
GV*confirmPopup*Label.internalHeight:	6
GV*confirmPopup*Label.internalWidth:	8

!##### Option Popup

GV*optionPopup.title:			Options
GV*optionPopup*defaultDistance:		2
GV*optionPopup*Text*leftMargin:		8
GV*optionPopup*filters.Margin:		8
GV*optionPopup*dirs.Margin:		8
GV*optionPopup*filters.height:		120
GV*optionPopup*dirs.height:		120

!##### Panner

GV*pannerFrame.frameType:		sunken
GV*pannerFrame.hSpace:			0
GV*pannerFrame.vSpace:			0

GV*panner.background:			gray65
GV*pannerFrame.shadowWidth:		1
GV*pannerFrame.topShadowPixel:		gray90
GV*pannerFrame.bottomShadowPixel:	gray40
GV*panner.width:			50
GV*panner.height:			50

GV*slider.background:			gray78
GV*slider.shadowWidth:			1
GV*slider.topShadowPixel:		gray90
GV*slider.bottomShadowPixel:		gray40


!##### Miscellaneous

GV.control.prevPage*internalHeight:	4
GV.control.nextPage*internalHeight:	4
GV*locator*internalHeight:		3
GV.control.Button*internalWidth:	0


!################################################
!##### Labels
!################################################

GV*cancel.Label:			Cancel
GV*dismiss.Label:			Dismiss
GV*copyright.Label:			Copyright
GV*quit.Label:				Quit
GV*fileButton.Label:			File
GV*open.Label:				Open ...
GV*reopen.Label:			Reopen
GV*printAllPages.Label:			Print document ...
GV*printMarkedPages.Label:		Print marked pages ...
GV*saveAllPages.Label:			Save document ...
GV*saveMarkedPages.Label:		Save marked pages ...
GV*stateButton.Label:			State
GV*stop.Label:				Stop interpreter
GV*dsc.Label:				Respect document structure
GV*eof.Label:				Ignore EOF comments
GV*antialias.Label:			Antialias
GV*watchFile.Label:			Watch file
GV*watch.Label:				Watch File
GV*options.Label:			Options ...
GV*pageButton.Label:			Page
GV*processButton.Label:			\ processing
GV*next.Label:				Next
GV*show.Label:				Redisplay
GV*prev.Label:				Previous
GV*center.Label:			Center
GV*mark.Label:				Mark
GV*prevPage.Label:			<<
GV*nextPage.Label:			>>
GV*unmark.Label:			Unmark
GV*automatic.Label:			Automatic
GV*portrait.Label:			Portrait
GV*landscape.Label:			Landscape
GV*upsidedown.Label:			Upside-Down
GV*seascape.Label:			Seascape
GV*swap.Label:				Swap Landscape
GV*toggleCurrent.label:
GV*toggleEven.label:
GV*toggleOdd.label:
GV*unmarkAll.label:
GV*printAll.label:			Print All 
GV*printMarked.label:			Print Marked
GV*saveAll.label:			Save All
GV*saveMarked.label:			Save Marked
GV*openFile.label:			Open
GV*redisplay.label:			Redisplay
GV*updateFile.label:			Update File
GV*checkFile.label:			Check File

GV*filters.label:			Filters
GV*dirs.label:				Directories
GV*filter.label: 			Filter:
GV*button1.label:			Cancel
GV*rescan.label:			Rescan Directory

GV*versionPopup*versionDone*label:	Dismiss
GV*dialogPopup*cancel.label:		Cancel
GV*notePopup*done.label:		Okay

GV*confirmPopup*cancel.label:		Cancel
GV*confirmPopup*done.label:		Quit

GV*optionPopup*done.label:		Apply
GV*optionPopup*save.label:		Save
GV*optionPopup*mediaLabel.label:	\ Paper Size \ 
GV*optionPopup*fmediaLabel.label:	Fallback Paper Size
GV*optionPopup*orientLabel.label:	\ \ \ \ \ Orientation\ \ \ \ \ 
GV*optionPopup*forientLabel.label:	Fallback Orientation
GV*optionPopup*magLabel.label:		Magstep
GV*optionPopup*confirmLabel.label:	Confirm Quit
GV*optionPopup*misc.label:		Miscellaneous
GV*optionPopup*confirmPrint.label:	Confirm Printing
GV*optionPopup*antialias.label:		Antialias
GV*optionPopup*scrolling.label:		Reverse Scrolling
GV*optionPopup*respectDSC.label:	Respect DSC
GV*optionPopup*eof.label:		Ignore EOF
GV*optionPopup*autoResize.label:	Variable Size
GV*optionPopup*swapLandscape.label:	Swap Landscape
GV*optionPopup*autoCenter.label:	Auto Center
GV*optionPopup*printCommandLabel.label:	Print Command
GV*optionPopup*scratchDirLabel.label:	Scratch Directory
GV*optionPopup*saveDirLabel.label:	Save Directory
GV*filtersLabel.label:			File Selection Filters
GV*dirsLabel.label:			File Selection Directories
GV*filterLabel.label:			Default Filter

GV*miscMenu.update.label:		Update File
GV*miscMenu.redisplay.label:		Redisplay
GV*miscMenu.mark.label:			Mark Page
GV*miscMenu.unmark.label:		Unmark Page
GV*miscMenu.stop.label:			Stop Interpreter

!##################################################
!##### Translations
!##################################################

!##### Main Window

GV.control.Translations:#replace		\n\
 <Key>A:		GV_Antialias()		\n\
 <Key>C:		GV_Center()		\n\
 <Key>O:		GV_Open()		\n\
 <Key>Q:		GV_Quit()		\n\
 <Key>R:		GV_Reopen()		\n\
 <Key>Z:		GV_Resizing()		\n\
 <Key>I:		GV_HandleDSC()		\n\
 <Key>E:		GV_HandleEOF()		\n\
 <Key>W:		GV_WatchFile()		\n\
 Shift<Key>S:		GV_Save(all)		\n\
 <Key>S:		GV_Save(marked)		\n\
 Shift<Key>P:		GV_Print(all)		\n\
 <Key>P:		GV_Print(marked)	\n\
 <Key>BackSpace:	GV_Previous()		\n\
 <Key>Delete:		GV_Previous()		\n\
 <Key>B:		GV_Previous()		\n\
 <Key>Prior:		GV_Previous()		\n\
 <Key>space:		GV_Next()		\n\
 <Key>Return: 		GV_Next()		\n\
 <Key>F:		GV_Next()		\n\
 <Key>Next:		GV_Next()		\n\
 <Key>period:		GV_Redisplay()		\n\
 Ctrl<Key>L:		GV_Redisplay()		\n\
 <Key>M:		GV_SetPageMark(current,mark)\n\
 <Key>N:		GV_SetPageMark(current,unmark)\n\
 Shift<Key>7:		GV_SetMagstep(-7)	\n\
 Shift<Key>6:		GV_SetMagstep(-6)	\n\
 Shift<Key>5:		GV_SetMagstep(-5)	\n\
 Shift<Key>4:		GV_SetMagstep(-4)	\n\
 Shift<Key>3:		GV_SetMagstep(-3)	\n\
 Shift<Key>2:		GV_SetMagstep(-2)	\n\
 Shift<Key>1:		GV_SetMagstep(-1)	\n\
 <Key>0:		GV_SetMagstep(0)	\n\
 <Key>1:		GV_SetMagstep(1)	\n\
 <Key>2:		GV_SetMagstep(2)	\n\
 <Key>3:		GV_SetMagstep(3)	\n\
 <Key>4:		GV_SetMagstep(4)	\n\
 <Key>5:		GV_SetMagstep(5)	\n\
 <Key>6:		GV_SetMagstep(6)	\n\
 <Key>7:		GV_SetMagstep(7)	\n\
 <Key>+:		GV_SetMagstep(+)	\n\
 <Key>-:		GV_SetMagstep(-)	\n\
 <Key>U:		GV_Scroll(up)		\n\
 <Key>D:		GV_Scroll(down)		\n\
 <Key>H:		GV_Scroll(left)		\n\
 <Key>K:		GV_Scroll(up)		\n\
 <Key>J:		GV_Scroll(down)		\n\
 <Key>L:		GV_Scroll(right)	\n\
 Ctrl<Key>Up:		GV_SetOrientation(portrait)\n\
 Ctrl<Key>Right:	GV_SetOrientation(landscape)\n\
 Ctrl<Key>Down:		GV_SetOrientation(upside-down)\n\
 Ctrl<Key>Left:		GV_SetOrientation(seascape)\n\
 <Key>Up:		GV_Scroll(up)		\n\
 <Key>Right:		GV_Scroll(right)	\n\
 <Key>Down:		GV_Scroll(down)		\n\
 <Key>Left:		GV_Scroll(left)

!##### Table of contents

GV*newtoc.Translations: #replace		\n\
 <EnterWindow>:		GV_Toc(highlight)	\n\
 <LeaveWindow>:		GV_Toc(unhighlight)	\n\
 <Btn1Down>:		GV_Toc(scrollon)	\n\
 <Btn1Motion>:		GV_Toc(scroll)		\n\
 <Btn1Up>:		GV_Toc(select)		\
			GV_Toc(scrolloff)	\
			GV_Toc(highlight)	\n\
 <Btn2Down>:		GV_Toc(toggleon)	\n\
 <Btn2Motion>:		GV_Toc(toggleextend)	\
			GV_Toc(highlight)	\n\
 <Btn2Up>:		GV_Toc(toggleoff)	\n\
 <Btn3Down>:		GV_Toc(toggleon)	\n\
 <Btn3Motion>:		GV_Toc(toggleextend)	\
			GV_Toc(highlight)	\n\
 <Btn3Up>:		GV_Toc(toggleoff)	\n\
 <MotionNotify>:	GV_Toc(highlight)

!##### Menus

GV*SimpleMenu.Translations:#replace\n\
 <Enter>:	highlight()\n\
 <Leave>:	unhighlight()\n\
 <BtnMotion>:	highlight()\n\
 <BtnUp>:	MenuPopdown()\
		GV_MenuPopdown()\
		notify()\
		unhighlight()

!##### Ghostview widget

GV*Ghostview.Translations:		#replace		\n\
~Button2 ~Button3	<Btn1Down>:	cursor(scroll)		\
					GV_MovePage(start)	\
					GV_EraseLocator()	\n\
~Button2 ~Button3	<Btn1Motion>:	GV_MovePage(move,1.0,0)	\n\
			<Btn1Up>:	cursor(normal)		\
					GV_MovePage(stop)	\
					GV_OtherPage()		\
					notify()		\n\
~Button1 ~Button3 Shift	<Btn2Down>:	cursor(scroll)		\
					GV_MovePage(start)	\
					GV_EraseLocator()	\
					GV_MiscMenu(init)	\n\
~Button1 ~Button3 Shift	<Btn2Motion>:	GV_MovePage(move,0,1.0)	\n\
		  Shift	<Btn2Up>:	cursor(normal)		\
					GV_MiscMenu(popup)	\
					notify()		\n\
~Button1 ~Button2 Shift	<Btn3Down>:	GV_MagMenu(begin)	\n\
~Button1 ~Button2 Shift	<Btn3Motion>:	GV_MagMenu(extend)	\n\
~Button1 ~Button2 Shift	<Btn3Up>:	GV_MagMenu(choose)	\n\
~Button1 ~Button3	<Btn2Down>:	GV_MagMenu(begin)	\n\
 Button2		<Btn1Down>:	GV_MagMenu(reset)	\n\
 Button2		<Btn3Down>:	GV_MagMenu(reset)	\n\
~Button1 ~Button3	<Btn2Motion>:	GV_MagMenu(extend)	\n\
~Button1 ~Button3	<Btn2Up>:	GV_MagMenu(choose)	\n\
~Button1 ~Button2	<Btn3Down>:	cursor(scroll)		\
					GV_MovePage(start)	\
					GV_EraseLocator()	\
					GV_MiscMenu(init)	\n\
	  Button3	<Btn1Down>:	GV_MiscMenu(reset)	\n\
	  Button3	<Btn2Down>:	GV_MiscMenu(reset)	\n\
~Button1 ~Button2	<Btn3Motion>:	GV_MovePage(move,0,1.0)	\n\
			<Btn3Up>:	cursor(normal)		\
					GV_MiscMenu(popup)	\
					notify()		\n\
 Button1 ~Button3 	<Btn2Down>:  	GV_Redisplay()		\n\
 Button1 ~Button2 	<Btn3Down>:  	GV_Redisplay()		\n\
			<Message>:	message() 		\n\
			<EnterWindow>:	notify()		\n\
			<LeaveWindow>:	GV_EraseLocator()	\n\
			<MotionNotify>:	notify()

!##### Application

GV.Translations:	#replace		\n\
 <MapNotify>:		GV_CheckFile(date)	\n\
 <Message>WM_PROTOCOLS:	GV_DeleteWindow()

!##### Title and Date Button

GV.control.titleButton.Translations:#replace	\n\
 <Btn1Down>:		PopupMenu(1)
GV.control.dateButton.Translations:#replace	\n\
 <Btn1Down>:		PopupMenu(1)

!##### Option Popup

GV*optionPopup*Toggle.Translations: #replace	\n\
 <EnterWindow>:					\n\
 <LeaveWindow>:					\n\
 <Btn1Down>,<Btn1Up>:	toggle() notify()

!##### Panner

GV*panner.Translations: #replace		\n\
	<Btn1Down>:	GV_Panner(on)		\n\
	<Btn1Motion>:	GV_Panner(move)		\n\
	<Btn1Up>:	GV_Panner(off)		\n\
 Shift	<Btn2Down>:	GV_Next()		\n\
 Shift	<Btn3Down>:	GV_Previous()		\n\
	<Btn2Down>:	GV_Previous()		\n\
	<Btn3Down>:	GV_Next()

!##### Popup Shells

GV.TransientShell.Translations:#replace\n\
 <Message>WM_PROTOCOLS:	GV_DeleteWindow()

GV.TopLevelShell.Translations:#replace\n\
 <Message>WM_PROTOCOLS:	GV_DeleteWindow()

GV.TransientShell.Aaa.Translations:#replace\n\
 <Key>Q:		GV_DismissPopup()

GV.TopLevelShell.Aaa.Translations:#replace\n\
 <Key>Q:		GV_DismissPopup()

!##### Button Widget in Transient Popups

GV*TransientShell*Button.accelerators:#override\n\
 <Key>Return:	set() notify() unset()

GV*TransientShell*Button.Translations: #replace\n\
 <Key>Return:		set() notify() unset()	\n\
 <LeaveWindow>:		unset()			\n\
 <Btn1Down>:		set()			\n\
 <Btn1Up>:		notify() unset()

!##### MagMenu

GV*magMenu.Translations:	#replace	\n\
 <EnterWindow>:			highlight() 	\n\
 <LeaveWindow>:			unhighlight()	\
				GV_MagMenu(reset)\n\
 <MapNotify>:			GV_MagMenu(check)\n\
 <BtnMotion>:			highlight() 	\n\
 <MotionNotify>:		highlight() 	\n\
 <BtnDown>:			GV_MagMenu(show)\
				MenuPopdown(magMenu)
				

!##### MiscMenu

GV*miscMenu.Translations:	#replace	\n\
 <EnterWindow>:			highlight() 	\n\
 <LeaveWindow>:			unhighlight()	\
				GV_MiscMenu(reset)\n\
 <MapNotify>:			GV_MiscMenu(check)\n\
 <BtnMotion>:			highlight() 	\n\
 <MotionNotify>:		highlight() 	\n\
 <BtnUp>:			MenuPopdown(miscMenu)\
				notify()\
				unhighlight()\
				GV_MiscMenu(reset)


!########################################
!##### Layouts
!########################################

!##### Main Layout

GV*viewControl.layout:\
|v{\
  4<+[1]>\
  |h{\
    4<+[1]>\
    page\
    4<+[1]>\
  }\
  4<+[1]>\
}

GV*control.layout:\
|v{\
  f=8\
  s=8\
  ss=4\
  sss=2\
  a=6\
  pbw=(10*(|width processButton))\
  pbss=($ss*($pbw/($pbw+1)))\
  $f\
  |h{\
    $f\
    |v{\
      fileButton<+[1]*>\
      $s\
      |h{\
        0<+[1]>\
        |v{\
          autoResize<+30*-100%>\
          $a<-100%>\
          |h{\
            1<+[1]>\
            locator<*-100%>\
            1<+[1]>\
          }\
          $a<-100%>\
          openFile<+30*-100%>\
          1<-100%>\
          printAll<+30*-100%>\
          1<-100%>\
          printMarked<+30*-100%>\
          1<-100%>\
          saveAll<+30*-100%>\
          1<-100%>\
          saveMarked<+30*-100%>\
          $a<-100%>\
          |h{\
            0<+[1]>\
            pannerFrame<*-100%>\
            0<+[1]>\
          }\
          $a<-100%>\
          |h{\
            prevPage<+30*-100%>\
            1\
            nextPage<+30*-100%>\
          }\
          $a<-100%>\
          redisplay<+30*-100%>\
          1<-100%>\
          updateFile<+30*-100%>\
        }\
        0<+[1]>\
      }\
      $a<-100%>\
      |h{\
        0<+[1]>\
        toggleOdd<*-100%>\
        1\
        toggleEven<*-100%>\
        1\
        toggleCurrent<*-100%>\
        1\
        unmarkAll<*-100%>\
        0<+[1]>\
      }\
      $a<-100%>\
      |h{\
        0<+30>\
        newtocScroll<*+200[1]-[1]>\
        $ss\
        newtocFrame<*+200[1]-[1]>\
        0<+30>\
      }\
    }\
    $s\
    |v{\
      |h{\
        stateButton<-90%*>\
        $ss<-90%>\
        pageButton<-90%*>\
        $ss<-90%>\
        orientationButton<-90%*>\
        $ss<-90%>\
        magstepButton<-90%*>\
        $ss<-90%>\
        pagemediaButton<-90%*>\
        $pbss<-90%>\
        |v{\
          0<+[1]>\
          processButton<-90%*>\
          0<+[1]>\
        }\
        $ss<-90%>\
        |v{\
          0<+[1]>\
          |h{\
             titleButton<+5[1]-(100%)[1]*>\
             $ss<-90%>\
             dateButton<+[1]-(100%)[1]*>\
          }\
          0<+[1]>\
        }\
      }\
      $s\
      |h{\
         viewFrame<+9999-100%*+9999-100%>\
      }\
    }\
    $f\
  }\
  $f\
}

!##### Table of contents

GV*newtocControl.layout:\
|v{\
  |h{\
    newtoc\
    0<+[1]>\
  }\
  0<+[1]>\
}

!##### Zoom Popup Layout

GV*zviewControl.layout:\
|v{\
  4<+[1]>\
  |h{\
    4<+[1]>\
    page<-100%*-100%>\
    4<+[1]>\
  }\
  4<+[1]>\
}

GV*zoomControl.layout:\
|h{ \
  s=8\
  $s\
  |v{ \
    $s\
    zviewFrame<+[2]-100%*+[2]-100%>\
    $s\
    dismiss<+[1]-100%*>\
    $s\
  }\
  $s\
}

!##### Option Popup Layout

GV*optionPopup*layout:\
|v{ \
  bs=8\
  s=4\
  ss=3\
  sss=2\
  $bs\
  |h{\
    $bs\
    |v{\
      orientLabel\
      $sss\
      orientButton\
    }\
    $ss\
    |v{\
      magLabel\
      $sss\
      magButton\
    }\
    $ss\
    |v{\
      mediaLabel\
      $sss\
      mediaButton\
    }\
    $ss\
    |v{\
      forientLabel\
      $sss\
      forientButton\
    }\
    $ss\
    |v{\
      fmediaLabel\
      $sss\
      fmediaButton\
    }\
    $bs\
  }\
  $s\
  |h{\
    $bs\
    |v{\
      confirmLabel<+[1]*>\
      $sss\
      confirmButton<+[1]*>\
      $sss\
      misc<+[1]*>\
      $sss\
      scrolling<+[1]*>\
      $sss\
      confirmPrint<+[1]*>\
      $sss\
      autoCenter<+[1]*>\
      $sss\
      swapLandscape<+[1]*>\
      $sss\
      autoResize<+[1]*>\
      $sss\
      respectDSC<+[1]*>\
      $sss\
      eof<+[1]*>\
      $sss\
      antialias<+[1]*>\
      $sss\
      watch<+[1]*>\
    }\
    $bs\
    |v{\
      |h{\
        |v{\
	  filtersLabel<+[2]-100%*>\
          $ss\
          filtersFrame<+[2]-100%*+[1]>\
        }\
        $ss\
        |v{\
          dirsLabel<+[2]-100%*>\
          $ss\
          dirsFrame<+[2]-100%*+[1]>\
        }\
      }\
      $s\
      |h{\
        |v{\
          $s\
          filterLabel<+[1]*>\
          $bs\
          printCommandLabel<+[1]*>\
          $bs\
          scratchDirLabel<+[1]*>\
          $bs\
          saveDirLabel<+[1]*>\
        }\
        $s\
        |v{\
          filterFrame<+[2]-100%*>\
          $s\
          printCommandFrame<+[2]-100%*>\
          $s\
          scratchDirFrame<+[2]-100%*>\
          $s\
          saveDirFrame<+[2]-100%*>\
        }\
      }\
    }\
    $bs\
  }\
  $bs\
  |h{\
    (3*$bs)<-90%>\
    done\
    $bs<+[1]-100%>\
    save\
    $bs<+[1]-100%>\
    dismiss\
    (3*$bs)<-90%>\
  }\
  $bs\
}

!##### Note Popup Layout

GV*notePopup*layout:\
|v{ \
  vs=8\
  $vs<+[1]>\
  |h{ \
    $vs<+[1]>\
    message<+[1]-100%*+[1]-100%>\
    $vs<+[1]>\
  }\
  $vs<+[1]>\
  |h{\
    $vs<+[1]>\
    done<-100%*>\
    $vs<+[1]>\
  }\
  $vs<+[1]>\
}

!##### Dialog Popup Layout

GV*dialogPopup*layout:\
|v{ \
  s=7\
  bs=14\
  $bs\
  |h{ \
    (2*$bs)\
    message<+[1]*>\
    (2*$bs)\
  }\
  $bs\
  |h{\
    $bs\
    dialog_textLabel\
    $s \
    dialog_textFrame<+[1]-100%*>\
    $bs\
  }\
  $bs\
  |h{\
    (2*$bs)<+[1]>\
    done\
    $bs<+[1]>\
    cancel\
    (2*$bs)<+[1]>\
  }\
  $bs\
}

!##### Confirm Popup Layout

GV*confirmPopup*layout:\
|v{ \
  h2 =(|height message2)\
  h3 =(|height message3)\
  s2 =(4*($h2/($h2+1)))\
  s3 =(8*($h3/($h3+1)))\
  vs=10\
  (2*$vs)\
  |h{\
    $vs\
    |v{\
      message2<+[1]*>\
      (2*$s2)\
      message3<+[1]*>\
      $s3\
    }\
    $vs\
  }\
  $vs\
  |h{\
    (2*$vs)<+[1]>\
    done\
    $vs<+[1]>\
    cancel\
    (2*$vs)<+[1]>\
  }\
  $vs\
}

!##### Version Popup Layout

GV*versionPopup*layout:\
|v{ \
  vs=8\
  (3*$vs)<+[1]-100%>\
  |h{ \
    $vs<+[1]>\
    |h{\
      |v{ \
        versionTexta\
        (|height versionTextb)\
        $vs\
      }\
      $vs\
      |v{ \
        0<+[1]>\
        versionTextb\
      }\
      $vs\
    }\
    $vs\
    $vs<+2[1]>\
    |v{ 0<+[1]> versionDone  0<+[1]> }\
    $vs<+[1]>\
  }\
  (3*$vs)\
  |h{ $vs<+[1]> license $vs <+[1]> }\
  (3*$vs)\
  |h{ $vs<+[1]> authora $vs<+[1]> }\
  $vs\
  |h{ $vs<+[1]> authorb $vs<+[1]> }\
  $vs\
  |h{ $vs<+[1]> authorc $vs <+[1]> }\
  (3*$vs)\
  |h{ $vs<+[1]> authord $vs <+[1]> }\
  (2*$vs)\
}

!##### FileSelection Widget Layout

GV*fileSel*Clip*Aaa.layout:\
|v{\
  list<+[1]-[1]*>\
  0<+[1]>\
}

GV*fileSel.layout:\
|v{\
  bs  = 8\
  s   = 4\
  hs2 =(|height button2)\
  hs3 =(|height button3)\
  hs4 =(|height button4)\
  bs2 =($bs*($hs2/($hs2+1)))\
  bs3 =($bs*($hs3/($hs3+1)))\
  bs4 =($bs*($hs4/($hs4+1)))\
  $bs\
  |h{\
    $bs\
    pathframe<+[1]-95%*>\
    $bs\
  }\
  $bs\
  |h{\
    $bs\
    |v{\
      topframe<+[1]-100%*-90%>\
      2\
      subframe<*+[1]-[1]>\
    }\
    $s\
    |v{\
      |h{\
        |v{\
          filters\
          $s\
          filter\
        }\
        $s\
        |v{\
          |h{\
            dirs<+[1]-100%*>\
            $s\
            rescan<+[1]-100%*>\
          }\
          $s\
          filterframe<+[1]-95%*>\
        }\
      }\
      $s\
      |h{\
        subscroll<*+[1]-[1]>\
        $s\
        curframe<+[1]-[1]*+[1]-[1]>\
        $s\
        curscroll<*+[1]-[1]>\
      }\
    }\
    $bs\
  }\
  $bs\
  |h{\
    0<+[1]>\
    (6*$bs)<-95%>\
    button2\
    0<+[1]>\
    $bs2<+($bs2)-90%>\
    button3\
    0<+[1]>\
    $bs3<+($bs3)-90%>\
    button4\
    0<+[1]>\
    $bs4<+($bs3)-90%>\
    button1\
    0<+[1]>\
    (6*$bs)<-95%>\
  }\
  $bs\
}

