! $Id: Rulerdemo,v 1.2 1999/08/31 19:45:51 falk Exp $

! Rulerdemo defaults go here.


*borderWidth:	0

*Frame.shadowWidth:	1
*Frame.shadowType:	raised

!*Ruler.font:	-*-lucida sans-medium-r-normal-*-10-*-*-*-*-*-iso8859-*
*Ruler.font:	-*-lucida-medium-r-normal-sans-12-*-*-*-*-*-iso8859-*
*Ruler.fracFont:	-*-lucida-medium-r-normal-sans-8-*-*-*-*-*-iso8859-*

*mainPanel.defaultDistance:	0

*canvas.width:		300
*canvas.height:		300
*topRuler.width:	300
*leftRuler.height:	300


! Feel free to play with these.

*topRuler.scale:	100
*leftRuler.scale:	-100

!*Ruler.Step:	1
!*Ruler.Divisions:	64
!*Ruler.labelStep:	3
!*Ruler.labelDiv:	6
!*Ruler.markStep:	3
!*Ruler.scale:	400
!*Ruler.markDiv:	100
!*Ruler.scale:	175
!*Ruler.scale:	72
!*Ruler.scale:	16
!*Ruler.scale:	10
!*Ruler.scale:	5.8
!*Ruler.scale:	-5.8
!*Ruler.scale:	-100
!*Ruler.scale:	-200
!*Ruler.minValue:	-1.5

*Ruler.pointerColor: red
*Ruler.labelStyle:	fraction


!	general style preferences

!*Ruler.beNiceToColormap: true
!*Ruler.borderWidth: 0


! more things to play with
! These translations cause number keys to scroll to specific values.

*Ruler.baseTranslations:	\
	#override\n\
	Shift<Key>1:	Scroll(-1)\n\
	Shift<Key>2:	Scroll(-2)\n\
	Shift<Key>3:	Scroll(-3)\n\
	Shift<Key>4:	Scroll(-4)\n\
	Shift<Key>5:	Scroll(-5)\n\
	Shift<Key>6:	Scroll(-6)\n\
	Shift<Key>7:	Scroll(-7)\n\
	Shift<Key>8:	Scroll(-8)\n\
	Shift<Key>9:	Scroll(-9)\n\
	<Key>1:	Scroll(1)\n\
	<Key>2:	Scroll(2)\n\
	<Key>3:	Scroll(3)\n\
	<Key>4:	Scroll(4)\n\
	<Key>5:	Scroll(5)\n\
	<Key>6:	Scroll(6)\n\
	<Key>7:	Scroll(7)\n\
	<Key>8:	Scroll(8)\n\
	<Key>9:	Scroll(9)\n\


! these translations cause the '0' & home keys to scroll back to the origin

*leftRuler.translations:	\
	#override\n\
	<Key>0:		ScrollTo(0,-0)\n\
	<Key>Home:	ScrollTo(0,-0)\n\
	<Key>KP_Home:	ScrollTo(0,-0)\n\

*topRuler.translations:	\
	#override\n\
	<Key>0:		ScrollTo(0)\n\
	<Key>Home:	ScrollTo(0)\n\
	<Key>KP_Home:	ScrollTo(0)\n\



! Application-wide actions table.  Lets demo program catch window close.

Rulerdemo.baseTranslations: #augment\n\
	<Message>WM_PROTOCOLS: WMProtocols()\n
