!----------------------------------------------------------------------------
! for now, while hacking

xpcd.geometry:				x100

!----------------------------------------------------------------------------
! general (colors)

*font:			-*-new century schoolbook-bold-r-normal-*-12-*
*beNiceToColormap:                      False

Xpcd-2*Form.background:                 #e0e0e0
Xpcd-2*Box.background:                  #e0e0e0
Xpcd-2*Label.background:                #e0e0e0
Xpcd-2*Dialog.background:               #e0e0e0

Xpcd-2*Scrollbar.background:            gray
Xpcd-2*Toggle.background:		gray
Xpcd-2*Command.background:              gray
Xpcd-2*Viewport.background:             gray
Xpcd-2*MenuButton.background:           gray
Xpcd-2*SimpleMenu.background:           gray
Xpcd-2*SmeBSB.background:               gray
Xpcd-2*Label.borderWidth:               0
Xpcd-2*Command.width:			100

! icon pixmap size
Xpcd-2.ix:				48
Xpcd-2.iy:				48

!----------------------------------------------------------------------------
! cool 3D-Buttons on mouseover, works with Xaw3d only

Xpcd-2*MenuButton.translations:	#override			\n\
	<EnterWindow>:		SetShadowWidth(1)		\n\
	<LeaveWindow>:		SetShadowWidth(0) reset()
Xpcd-2*MenuButton.shadowWidth:		0
Xpcd-2*MenuButton.internalWidth:	4
Xpcd-2*MenuButton.internalHeight:	3

! not for the thumbnail buttons
Xpcd-2*Dialog*Command.translations:	#override\n\
	<EnterWindow>:		SetShadowWidth(1)\n\
	<LeaveWindow>:		SetShadowWidth(0) reset()
Xpcd-2*Dialog*Command.borderWidth:	1
Xpcd-2*Dialog*Command.shadowWidth:	0
Xpcd-2*Dialog*Command.internalWidth:	4
Xpcd-2*Dialog*Command.internalHeight:	3
Xpcd-2*Form*Command.translations:	#override\n\
	<EnterWindow>:		SetShadowWidth(1)\n\
	<LeaveWindow>:		SetShadowWidth(0) reset()
Xpcd-2*Form*Command.borderWidth:	1
Xpcd-2*Form*Command.shadowWidth:	0
Xpcd-2*Form*Command.internalWidth:	4
Xpcd-2*Form*Command.internalHeight:	3

Xpcd-2*Toggle.translations:		#override\n\
	<EnterWindow>:		SetShadowWidth(1)\n\
	<LeaveWindow>:		SetShadowWidth(0)
Xpcd-2*Toggle.borderWidth:		1
Xpcd-2*Toggle.shadowWidth:		0
Xpcd-2*Toggle.internalWidth:		4
Xpcd-2*Toggle.internalHeight:		3

Xpcd-2*SimpleMenu*shadowWidth:		1

!----------------------------------------------------------------------------
! main window

xpcd.main.body.background:		lightyellow
*main.menu.hSpace:			0
*main.menu.vSpace:			0
*main.menu*view*leftMargin:		10
*main.menu*opt*leftMargin:		10

xpcd.translations:		#override	\n\
	<PropertyNotify>:	Ipc()		\n\
	<Message>WM_PROTOCOLS:	CloseAll()


Xpcd-2.str_about_title:		About
Xpcd-2.str_about_label:							\
This is xpcd 2.08, a program for reading PhotoCD images.		\n\
Copyright (C) 1997 Gerd Knorr <kraxel@goldbach.in-berlin.de>			\n\
									\n\
This program is free software; you can redistribute it and/or modify	\n\
it under the terms of the GNU General Public License as published by	\n\
the Free Software Foundation; either version 2 of the License, or	\n\
(at your option) any later version.					\n\
									\n\
This program is distributed in the hope that it will be useful,		\n\
but WITHOUT ANY WARRANTY; without even the implied warranty of		\n\
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the		\n\
GNU General Public License for more details.				\n\
									\n\
You should have received a copy of the GNU General Public License	\n\
along with this program; if not, write to the Free Software		\n\
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

!----------------------------------------------------------------------------
! thumbnails

thumbnails.geometry:				570x400
thumbnails.viewport.useRight:			True
thumbnails*Box.background:			gray
thumbnails*Box.Command.background:		gray
thumbnails*Box.Command.foreground:		red
thumbnails*Box.Command.highlightThickness:	3
thumbnails*Box.Command.shadowWidth:		0

thumbnails.viewport.Box*translations:	#override	\n\
	<Btn2Down>:	DragScroll()			\n\
	<Btn2Motion>:	DragScroll()

!----------------------------------------------------------------------------
! image

*menu.s1.label:				192 x 128
*menu.s2.label:				384 x 256
*menu.s3.label:				768 x 512
*menu.s4.label:				1536 x 1024
*menu.s5.label:				3072 x 2048

image*menu.translations:	#override \n\
	<Motion>:	highlight()

!----------------------------------------------------------------------------
! internal viewer

viewer.viewport.useRight:		True
viewer.viewport.useBottom:		True

viewer*menu.translations:	#override \n\
    <Motion>:		highlight()

viewer.viewport.label.translations:	#override	\n\
	<Btn1Down>:	DragScroll()			\n\
	<Btn1Motion>:	DragScroll()			\n\
	<Btn2Down>:	DragScroll()			\n\
	<Btn2Motion>:	DragScroll()

viewer.geometry:			800x650

!--------------------------------------------------------------------------
! histogramm dialog box

*hist.form.label.justify:	left

*hist.form.red.foreground:	red
*hist.form.green.foreground:	green
*hist.form.blue.foreground:	blue
*hist.form.red2.foreground:	red
*hist.form.green2.foreground:	green
*hist.form.blue2.foreground:	blue

*hist.form.Toggle.vertDistance: 10
*hist.form.Command.vertDistance: 10
*hist.form.Label.vertDistance:	10

*hist.form.red.accelerators:	#override\n\
	<Key>r:	toggle()notify()
*hist.form.green.accelerators:	#override\n\
	<Key>g:	toggle()notify()
*hist.form.blue.accelerators:	#override\n\
	<Key>b:	toggle()notify()
*hist.form.ok.accelerators:	#override\n\
	<Key>Return:	set()notify()unset()
*hist.form.cancel.accelerators:	#override\n\
	<Key>q:		set()notify()unset()	\n\
	<Key>Escape:	set()notify()unset()

*hist.accelerators:		#override\n\
	<Key>F1:	Help()			\n\
	<Key>h:		Help()

!--------------------------------------------------------------------------
! toolbox.c dialogs. 

*Dialog.label.justify:		left
!*Dialog.label.width:		300
*Dialog.value.width:		300
*Dialog*resizable:		True

!--------------------------------------------------------------------------
! help window
*popup_help.help.ok.accelerators:	#override\n\
	<Key>q:		set()notify()unset()	\n\
	<Key>Return:	set()notify()unset()	\n\
	<Key>Escape:	set()notify()unset()

!*popup_help*label.background:	white
!*popup_help*label.borderWidth:	1
!*popup_help*label.borderColor:	black

!--------------------------------------------------------------------------
! keyboard handling

*Dialog.ok.accelerators:	#override \n\
	<Key>Return: set()notify()unset()
*Dialog.cancel.accelerators:	#override \n\
	<Key>Escape: set()notify()unset()
*Dialog.value.translations:	#override \n\
	<Key>Tab: Complete()

*Viewport.horizontal.translations:	#override \n\
    Ctrl<Key>Left:	KbdScroll(left,50) EndScroll()\n\
    Ctrl<Key>Right:	KbdScroll(right,50) EndScroll()\n\
    <Key>Left:		KbdScroll(left,10) EndScroll()\n\
    <Key>Right:		KbdScroll(right,10) EndScroll()
*Viewport.vertical.translations:	#override \n\
    Ctrl<Key>Up:	KbdScroll(up,50) EndScroll()\n\
    Ctrl<Key>Down:	KbdScroll(down,50) EndScroll()\n\
    <Key>Up:		KbdScroll(up,10) EndScroll()\n\
    <Key>Down:		KbdScroll(down,10) EndScroll()\n\
    <Key>Page_Up:	KbdScroll(up,90) EndScroll()\n\
    <Key>Page_Down:	KbdScroll(down,90) EndScroll()

*Viewport.horizontal.accelerators:	#override \n\
    Ctrl<Key>Left:	KbdScroll(left,50) EndScroll()\n\
    Ctrl<Key>Right:	KbdScroll(right,50) EndScroll()\n\
    <Key>Left:		KbdScroll(left,10) EndScroll()\n\
    <Key>Right:		KbdScroll(right,10) EndScroll()
*Viewport.vertical.accelerators:	#override \n\
    Ctrl<Key>Up:	KbdScroll(up,50) EndScroll()\n\
    Ctrl<Key>Down:	KbdScroll(down,50) EndScroll()\n\
    <Key>Up:		KbdScroll(up,10) EndScroll()\n\
    <Key>Down:		KbdScroll(down,10) EndScroll()\n\
    <Key>Page_Up:	KbdScroll(up,90) EndScroll()\n\
    <Key>Page_Down:	KbdScroll(down,90) EndScroll()


xpcd.accelerators:			#override\n\
	<Key>q:		CloseAll()	\n\
	<Key>F1:	Help()		\n\
	<Key>h:		Help()

thumbnails.accelerators:		#override\n\
	<Key>q:		CloseFile()	\n\
	<Key>F1:	Help()		\n\
	<Key>h:		Help()

image.accelerators:			#override\n\
	<Key>q:		CloseFile()	\n\
	<Key>F1:	Help()		\n\
	<Key>h:		Help()

viewer.accelerators:			#override\n\
	<Key>q:		CloseFile()	\n\
	<Key>F1:	Help()		\n\
	<Key>h:		Help()


! that's all
!--------------------------------------------------------------------------

xpcd.main.body.label:			empty

*main.menu.file.label:			File
*main.menu*file.menu.opencd.label:	Open PhotoCD...
*main.menu*file.menu.openf.label:	Open File(s)...
*main.menu*file.menu.quit.label:	Quit

*main.menu.view.label:			Viewers
*main.menu*view.menu.own.label:		Internal Viewer
*main.menu*view.menu.gimp.label:	The GIMP

*main.menu.opt.label:			Options
*main.menu*opt.menu.qjpeg.label:	JPEG quality...
*main.menu*opt.menu.ctiff.label:	compress TIFF images
*main.menu*opt.menu.gray.label:		display grayscaled
*main.menu*opt.menu.lgray.label:	load grayscaled
*main.menu*opt.menu.tturn.label:	turn thumbnails
*main.menu*opt.menu.swapd.label:	swap dragscroll direction

*main.menu.help.label:			Help
*main.menu*help.menu.help.label:	Help...
*main.menu*help.menu.about.label:	About...


*menu.ppm.label:			Save PPM...
*menu.jpeg.label:			Save JPEG...
*menu.tiff.label:			Save TIFF...
*menu.hist.label:			Histogram
*menu.color.label:			color / grayscaled


*hist.title:			Histogram
*hist.form.label.label:		no values set

*hist.form.l1.label:		Show
*hist.form.gray.label:		Gray
*hist.form.red.label:		Red
*hist.form.green.label:		Green
*hist.form.blue.label:		Blue

*hist.form.l2.label:		Apply to
*hist.form.red2.label:		Red
*hist.form.green2.label:	Green
*hist.form.blue2.label:		Blue

*hist.form.ok.label:		OK
*hist.form.cancel.label:	Cancel


*Dialog.ok.label:		OK
*Dialog.cancel.label:		Cancel


*popup_help.title:			Help


!--------------------------------------------------------------------------
! strings for dialog boxes

Xpcd-2.str_opencd_title:	Open PhotoCD...
Xpcd-2.str_opencd_label:	Where is the PhotoCD mounted ?

Xpcd-2.str_openfile_title:	Open File(s)...
Xpcd-2.str_openfile_label:	Filename ? (currently only a single file works)

Xpcd-2.str_qjpeg_title:		Set JPEG quality...
Xpcd-2.str_qjpeg_label:		Enter value (100 best, 0 worst):

Xpcd-2.str_save_ppm_title:	Save image as PPM...
Xpcd-2.str_save_ppm_label:	Filename ?

Xpcd-2.str_save_jpeg_title:	Save image as JPEG...
Xpcd-2.str_save_jpeg_label:	Filename ?

Xpcd-2.str_save_tiff_title:	Save image as TIFF...
Xpcd-2.str_save_tiff_label:	Filename ?

Xpcd-2.str_perror_title:	Error

Xpcd-2.str_load:		loading image...
Xpcd-2.str_save:		saving image...
Xpcd-2.str_busy:		processing...
Xpcd-2.str_preview:		building preview image...
Xpcd-2.str_mkximage:		RGB to ximage...

Xpcd-2.str_no_help:		Sorry, no help text available.


!--------------------------------------------------------------------------
! help texts

xpcd.help:						\
Help is (nearly) everywhere available. Just press	\n\
the "F1" or "H" key.					\n\
							\n\
xpcd is a program for browsing PhotoCD's and		\n\
decoding PhotoCD images. Using the "File" menu you	\n\
can open a PhotoCD (you'll get a overview for all	\n\
images) or individual *.pcd files. You can pass		\n\
files as command line args too.				\n\
							\n\
The "Viewer" menu allows you to select a program	\n\
for displaying the images. xpcd has a builtin		\n\
viewer, but can also use "The GIMP" or pipe the		\n\
image to any program you like (check the man page	\n\
for configuration details).				\n\
							\n\
There are some Options which are tuneable in the	\n\
"Options" menu. This is the JPEG quality (for the	\n\
internal viewer), and how (grayscaled or colored)	\n\
xpcd loads / displays the images. "load" means how	\n\
they get passed to the viewer (internel, GIMP or	\n\
any other), "display" means how xpcd will display	\n\
them. Don't confuse these!

thumbnails.help:				\
Well, here are all thumbnail images of your	\n\
PhotoCD. Just click on a image to load the	\n\
preview window. You can scroll with the arrow	\n\
Keys and Page Up / Page Down. Closing the	\n\
window works with your window-manager's close	\n\
button or with the "Q" key.

image.help:					\
Here you have a preview of the PhotoCD image.	\n\
With the left mouse button you can select	\n\
a part of the image. The right button brings	\n\
up a menu where you can select one of the five	\n\
(or three) possible image sizes for loading. 	\n\
The program loads the selected image area, or	\n\
the whole image if there is nothing selected.	\n\
						\n\
xpcd can use the internal viewer or a external	\n\
program to display the loaded image. Have a	\n\
look at the "Viewer" menu of the main window	\n\
						\n\
Close the window with your window-manager's	\n\
close button or with the "Q" key.

viewer.help:					\
This is your loaded image. Well, if the image	\n\
is big and your box slow, it it possible that	\n\
xpcd is still busy with loading it. Once the	\n\
image is loaded, you can use the right mouse	\n\
button to get a menu. You can save the image as	\n\
PPM or JPEG (only if compiled with JPEG		\n\
support). The "Histogram" menu item brings up	\n\
a dialog box with a Histogram of the image.	\n\
You can increase brightness and perform gamma	\n\
correction there. For details check the dialog	\n\
box help window. "color / grayscaled" allows	\n\
to switch between colored and grayscaled	\n\
display of the image. This affects the display	\n\
only.						\n\
						\n\
You can scroll with the arrow keys and Page Up	\n\
Page Down. "Q" closes the window.

*hist.help:					\
This is a Histogram of the image. There are	\n\
four curves: For the three channels red, green	\n\
and blue, and one for the luminance (gray).	\n\
You can turn on and off each of these curves	\n\
individual.					\n\
						\n\
The black line is a map function. You can modify\n\
it by clicking into the graph window. In the	\n\
middle you can change the gamma value, on top	\n\
and bottom the range. With the "OK" button (or	\n\
Return Key) you apply the changes to the	\n\
selected channels (default is applying to all	\n\
channels)					\n\
						\n\
The best way to check out how this works is to	\n\
play around with it. If you have changed some	\n\
value, xpcd will start to calculate and show a	\n\
preview image in the viewer. With the "Cancel"	\n\
button (or "ESC" key) you can leave the dialog	\n\
without changing the image.


! that's all
!--------------------------------------------------------------------------
