!
! Resources for Bitmap, XawPlus version
!
*TransientShell.allowShellResize:	True
*cursor:				left_ptr
*pane.orientation:			horizontal
*parent.formy.showGrip:			False
*pane.form.showGrip:			False
*pane.drawingForm.showGrip:		False
*pane.bitmap.showGrip:			False

*Form*top:				ChainTop
*Form*bottom:				ChainTop
*Form*left:				ChainLeft
*Form*right:				ChainLeft

*MenuButton.leftBitmap:			menu12.xpm
*form*Command.width:			135
*form*Command.height:			18
*drawingForm*highlightMode:		False
*drawingForm*Command.width:		120
*drawingForm*Toggle.width:		120
*drawingForm*Command.height:		18
*drawingForm*Toggle.height:		18

*baseTranslations:#override\
			Ctrl<Key>c:	do-quit()\n\
			<Key>q:		do-quit()\n\
			Ctrl<Key>n:	do-new()\n\
			Ctrl<Key>f:	do-load()\n\
			Ctrl<Key>i:	do-insert()\n\
			Ctrl<Key>s:	do-save()\n\
			Ctrl<Key>w:	do-save-as()\n\
			Ctrl<Key>r:	do-resize()\n\
			Ctrl<Key>x:	do-rescale()\n\
			Ctrl<Key>e:	do-filename()\n\
			Ctrl<Key>b:	do-basename()\n\
			Meta<Key>i:	switch-image()\n\
			Meta<Key>g:	switch-grid()\n\
			Meta<Key>d:	switch-dashed()\n\
			Meta<Key>a:	switch-axes()\n\
			Meta<Key>s:	switch-stippled()\n\
			Meta<Key>p:	switch-proportional()\n\
			Meta<Key>z:	switch-zoom()\n\
			Meta<Key>c:	do-cut()\n\
			Meta<Key>w:	do-copy()\n\
			Meta<Key>y:	do-paste()


*MenuButton.translations:<EnterWindow>:		highlight()\n\
			<LeaveWindow>:  	reset()\n\
			<BtnDown>:  		set() fix-menu() PopupMenu()

*Dialog*baseTranslations:#override\
			<Key>Return:	set-dialog-button(okay, yes, retry)\n\
			Ctrl<Key>g:	set-dialog-button(cancel, abort)
*image*baseTranslations:#override\
			<Btn1Down>,<Btn1Up>:	switch-image()
*image*width: 0
*image*height: 0
*image*Label.internalWidth: 0
*image*Label.internalHeight: 0
*image*normalImage.foreground: white
*image*normalImage.background: black
*image*invertedImage.foreground: black
*image*invertedImage.background: white

*bitmap.cursor:           		tcross
*bitmap.dashes:				Dashes
*bitmap.stipple:			Stipple
*bitmap.stippled:			on

*TransientShell.width:			300

*input*icon:				Term
*qsave*icon:				Term
*error*icon:				Term
*Dialog.yes.label:			Yes
*Dialog.no.label:			No
*Dialog.okay.label:			OK
*Dialog.abort.label:			Abort
*Dialog.cancel.label:			Cancel
*Dialog.retry.label:			Retry

*MenuButton.width:			58

*SimpleMenu.width:			0
*SimpleMenu.height:			0
*SimpleMenu.cursor:			hand2
*SimpleMenu.line.height:		0

*fileButton.label:			File
*fileButton.menuName:			fileMenu

*editButton.label:			Edit
*editButton.fromHoriz: 			fileButton
*editButton.menuName:			editMenu

*formy.status*top:			ChainTop
*formy.status*bottom:			ChainTop
*formy.status*left:			ChainLeft
*formy.status*right:			ChainRight
*status.fromHoriz:			editButton
*status.borderWidth:			0

*SmeBSB.HorizontalMargins:		32

*fileMenu.new.label:			New (Ctrl-N)...
*fileMenu.load.label:			Load (Ctrl-F)...   
*fileMenu.insert.label:			Insert (Ctrl-I)... 
*fileMenu.save.label:			Save (Ctrl-S)
*fileMenu.saveAs.label:			Save As (Ctrl-W)...
*fileMenu.resize.label:			Resize (Ctrl-R)... 
*fileMenu.rescale.label:		Rescale (Ctrl-X)...
*fileMenu.filename.label:		Filename (Ctrl-E)...
*fileMenu.basename.label:		Basename (Ctrl-B)...
*fileMenu.quit.label:			Quit (Ctrl-C, Q)

*editMenu.image.label:			Image (Meta-I)
*editMenu.grid.label:			Grid (Meta-G)
*editMenu.dashed.label:			Dashed (Meta-D)
*editMenu.axes.label:			Axes (Meta-A)
*editMenu.stippled.label:		Stippled (Meta-S)
*editMenu.proportional.label:		Proportional (Meta-P)
*editMenu.zoom.label:			Zoom (Meta-Z)
*editMenu.cut.label:			Cut (Meta-C)
*editMenu.copy.label:			Copy (Meta-W)
*editMenu.paste.label:			Paste (Meta-Y, Ctrl-mb)

*form.clear.label:			Clear
*form.clear.helpText:			Clear the bitmap
*form.clear.highlightMode:              False
*form.set.fromVert: 			clear
*form.set.label:			Set
*form.set.helpText:			Set all pixels in the bitmap
*form.set.highlightMode:                False
*form.invert.fromVert: 			set
*form.invert.label:			Invert
*form.invert.helpText:			Invert all pixels in the bitmap
*form.invert.highlightMode:             False
*form.undo.fromVert:			invert
*form.undo.label:			Undo
*form.undo.helpText:			Undo the last change
*form.undo.highlightMode:               False

*form.flipHoriz.vertDistance:		70
*form.flipHoriz.width:			36
*form.flipHoriz.height:			36
*form.flipHoriz.fromVert: 		undo
*form.flipHoriz.bitmap:			FlipVert.xpm
*form.flipHoriz.helpText:		Flip the bitmap vertical
*form.up.vertDistance:			70
*form.up.width:				36
*form.up.height:			36
*form.up.fromVert: 			undo
*form.up.fromHoriz:			flipHoriz
*form.up.bitmap:			Up.xpm
*form.up.helpText:			Shift the bitmap one pixel up
*form.flipVert.vertDistance:		70
*form.flipVert.width:			36
*form.flipVert.height:			36
*form.flipVert.fromVert: 		undo
*form.flipVert.fromHoriz:		up
*form.flipVert.bitmap:			FlipHoriz.xpm
*form.flipVert.helpText:		Flip the bitmap horizontal
*form.left.width:			36
*form.left.height:			36
*form.left.fromVert: 			flipHoriz
*form.left.bitmap:			Left.xpm
*form.left.helpText:			Shift the bitmap one pixel left
*form.fold.width:			36
*form.fold.height:			36
*form.fold.fromVert: 			up
*form.fold.fromHoriz: 			left
*form.fold.bitmap:			Fold.xpm
*form.fold.helpText:			Fold the bitmap
*form.right.width:			36
*form.right.height:			36
*form.right.fromVert: 			flipVert
*form.right.helpText:			Shift the bitmap one pixel right
*form.right.fromHoriz: 			fold
*form.right.bitmap:			Right.xpm
*form.rotateLeft.width:			36
*form.rotateLeft.height:		36
*form.rotateLeft.fromVert:		left
*form.rotateLeft.bitmap:		RotateLeft.xpm
*form.rotateLeft.helpText:		Rotate the bitmap 90 degrees anticlockwise
*form.down.width:			36
*form.down.height:			36
*form.down.fromVert: 			fold
*form.down.fromHoriz: 			rotateLeft
*form.down.bitmap:			Down.xpm
*form.down.helpText:			Shift the bitmap one pixel down
*form.rotateRight.width:		36
*form.rotateRight.height:		36
*form.rotateRight.fromVert:		right
*form.rotateRight.fromHoriz:		down
*form.rotateRight.bitmap:		RotateRight.xpm
*form.rotateRight.helpText:		Rotate the bitmap 90 degrees clockwise

*drawingForm.point.label:		Point
*drawingForm.point.helpText:		Draw points
*drawingForm.curve.fromVert: 		point
*drawingForm.curve.radioGroup:  	point
*drawingForm.curve.label:		Curve
*drawingForm.curve.helpText:		Draw freehand curves
*drawingForm.line.fromVert: 		curve
*drawingForm.line.radioGroup: 		curve
*drawingForm.line.label:		Line
*drawingForm.line.helpText:		Draw lines
*drawingForm.rectangle.fromVert: 	line
*drawingForm.rectangle.radioGroup:  	line
*drawingForm.rectangle.label:		Rectangle
*drawingForm.rectangle.helpText:	Draw rectangles
*drawingForm.filledRectangle.fromVert: 	rectangle
*drawingForm.filledRectangle.radioGroup:  rectangle
*drawingForm.filledRectangle.label:	Filled Rectangle
*drawingForm.filledRectangle.helpText:	Draw filled rectangles
*drawingForm.circle.fromVert: 		filledRectangle
*drawingForm.circle.radioGroup:  	filledRectangle
*drawingForm.circle.label:		Circle
*drawingForm.circle.helpText:		Draw circles
*drawingForm.filledCircle.fromVert: 	circle
*drawingForm.filledCircle.radioGroup:  	circle
*drawingForm.filledCircle.label:	Filled Circle
*drawingForm.filledCircle.helpText:	Draw filled circles
*drawingForm.floodFill.fromVert:	filledCircle
*drawingForm.floodFill.radioGroup:  	filledCircle
*drawingForm.floodFill.label:		Flood Fill
*drawingForm.floodFill.helpText:	Fill a framed area

*drawingForm.setHotSpot.vertDistance:	10
*drawingForm.setHotSpot.fromVert: 	floodFill
*drawingForm.setHotSpot.radioGroup:  	floodFill
*drawingForm.setHotSpot.label:		Set Hot Spot
*drawingForm.setHotSpot.helpText:	Designate the hot spot
*drawingForm.clearHotSpot.fromVert: 	setHotSpot
*drawingForm.clearHotSpot.label:	Clear Hot Spot
*drawingForm.clearHotSpot.helpText:	Clear the marked hot spot

*drawingForm.mark.vertDistance:		10
*drawingForm.mark.fromVert:		clearHotSpot
*drawingForm.mark.radioGroup:		setHotSpot
*drawingForm.mark.label:		Mark
*drawingForm.mark.helpText:		Mark an area to copy or move
*drawingForm.unmark.fromVert:           mark
*drawingForm.unmark.label:		Unmark
*drawingForm.unmark.helpText:		Remove the mark

*drawingForm.copy.vertDistance:		10
*drawingForm.copy.fromVert: 		unmark
*drawingForm.copy.radioGroup:		mark
*drawingForm.copy.label:		Copy
*drawingForm.copy.helpText:		Copy the marked area
*drawingForm.move.fromVert: 		copy
*drawingForm.move.radioGroup:		copy
*drawingForm.move.label:		Move
*drawingForm.move.helpText:		Move the marked area


