! UnScientific Calc by Alex

! put this in: /usr/X11R6/share/X11/app-defaults/XCalc
! or /etc/X11/app-defaults/XCalc

XCalc*Title:		Calculator
XCalc*IconName:		Calc
XCalc*IconPixmap:	calculator
XCalc*geometry:         240x315
XCalc*Cursor:		hand2
!XCalc*font:             10x20
XCalc*font:  -*-times-*-r-*-*-24-*-*-*-*-*-*-*
XCalc*Command.cornerRoundPercent:               50
XCalc*Command.ShapeStyle:	                roundedRectangle
XCalc*Command.horizDistance:	                2
XCalc*Command.vertDistance:	                2
XCalc*Command.width:		                43
XCalc*Command.height:		                25
XCalc*bevel.vertDistance:	                2
XCalc*bevel.horizDistance:	                3
XCalc*bevel.screen.Label.vertDistance:		-5
XCalc*bevel.screen.Label.internalHeight:	0
XCalc*bevel.screen.Label.internalWidth:		0
XCalc*bevel.screen.LCD.label:			88888888888
XCalc*bevel.screen.LCD.fromHoriz:		M
XCalc*bevel.borderWidth:               2
XCalc*bevel.borderColor:               #444444
XCalc*ti.background:                   #222222
XCalc*ti.bevel.screen.background:      #151515
XCalc*ti.Command.foreground:           #cccccc
XCalc*ti.Command.background:           #333333
XCalc*ti.button4.cornerRoundPercent:   20
XCalc*ti.button4.background:           #888888
XCalc*ti.button4.foreground:           #ffffff
XCalc*ti.button9.cornerRoundPercent:   20
XCalc*ti.button9.background:           #555555
XCalc*ti.button9.foreground:           #ffffff
XCalc*ti.button10.cornerRoundPercent:  20
XCalc*ti.button10.background:          #555555
XCalc*ti.button10.foreground:          #ffffff
XCalc*ti.button14.cornerRoundPercent:  20
XCalc*ti.button14.background:          #555555
XCalc*ti.button14.foreground:          #ffffff
XCalc*ti.button15.cornerRoundPercent:  20
XCalc*ti.button15.background:          #555555
XCalc*ti.button15.foreground:          #ffffff
XCalc*ti.button19.cornerRoundPercent:  20
XCalc*ti.button19.background:          #888888
XCalc*ti.button19.foreground:          #ffffff
XCalc*ti.bevel.background:	       #151515
XCalc*ti.bevel.screen.DEG.background:  #151515
XCalc*ti.bevel.screen.DEG.foreground:  #151515
XCalc*ti.bevel.screen.DEC.background:  #151515
XCalc*ti.bevel.screen.DEC.foreground:  #151515
XCalc*ti.bevel.screen.LCD.background:  #151515
XCalc*ti.bevel.screen.LCD.foreground:  #ffffff
XCalc*ti.bevel.screen.LCD.font: -*-lucida-bold-r-*-*-24-*-*-*-*-*-*-*
XCalc*ti.bevel.defaultDistance:        -5
XCalc*ti.bevel.screen.vertDistance:    0
XCalc*ti.bevel.screen.horizDistance:   -7
XCalc*ti.bevel.screen*top:             chainTop
XCalc*ti.bevel.screen*bottom:          chainBottom
XCalc*ti.bevel.screen*right:           chainRight
XCalc*ti.bevel.screen*left:            chainLeft
XCalc*ti.bevel.screen*LCD.foreground:  #151515
XCalc*ti.bevel.screen.LCD.width:       210
XCalc*ti.bevel.screen.LCD.height:      1
XCalc*ti.bevel.screen.LCD.translations:	#replace\n\
	Ctrl<Key>c:quit()\n\
	Ctrl<Key>h:clear()\n\
	None<Key>0:digit(0)\n\
	None<Key>1:digit(1)\n\
	None<Key>2:digit(2)\n\
	None<Key>3:digit(3)\n\
	None<Key>4:digit(4)\n\
	None<Key>5:digit(5)\n\
	None<Key>6:digit(6)\n\
	None<Key>7:digit(7)\n\
	None<Key>8:digit(8)\n\
	None<Key>9:digit(9)\n\
	<Key>KP_0:digit(0)\n\
	<Key>KP_1:digit(1)\n\
	<Key>KP_2:digit(2)\n\
	<Key>KP_3:digit(3)\n\
	<Key>KP_4:digit(4)\n\
	<Key>KP_5:digit(5)\n\
	<Key>KP_6:digit(6)\n\
	<Key>KP_7:digit(7)\n\
	<Key>KP_8:digit(8)\n\
	<Key>KP_9:digit(9)\n\
	<Key>KP_Enter:equal()\n\
	<Key>KP_Equal:equal()\n\
	<Key>KP_Multiply:multiply()\n\
	<Key>KP_Add:add()\n\
	<Key>KP_Subtract:subtract()\n\
	<Key>KP_Decimal:decimal()\n\
	<Key>KP_Divide:divide()\n\
	<Key>KP_Tab:equal()\n\
	<Key>Clear:clear()\n\
	:<Key>.:decimal()\n\
	:<Key>+:add()\n\
	:<Key>-:subtract()\n\
	:<Key>*:multiply()\n\
	:<Key>/:divide()\n\
	:<Key>=:equal()\n\
	<Key>n:negate()\n\
	<Key>space:clear()\n\
	<Key>q:quit()\n\
	<Key>Delete:clear()\n\
	<Key>BackSpace:clear()\n\
	<Btn1Down>,<Btn1Up>:toggle()selection()\n
XCalc*ti.button1.label:	        7
XCalc*ti.button1.translations: #override<Btn1Down>,<Btn1Up>:digit(7)unset()
XCalc*ti.button2.label:	        8
XCalc*ti.button2.translations: #override<Btn1Down>,<Btn1Up>:digit(8)unset()
XCalc*ti.button3.label:	        9
XCalc*ti.button3.translations: #override<Btn1Down>,<Btn1Up>:digit(9)unset()
XCalc*ti.button4.label:		C
XCalc*ti.button4.font:  -*-times-*-r-*-*-20-*-*-*-*-*-*-*
XCalc*ti.button4.translations: #override<Btn1Down>,<Btn1Up>:off()unset()\n\
	<Btn3Down>,<Btn3Up>:quit()
XCalc*ti.button6.label:	        4
XCalc*ti.button6.translations: #override<Btn1Down>,<Btn1Up>:digit(4)unset()
XCalc*ti.button7.label:	        5
XCalc*ti.button7.translations: #override<Btn1Down>,<Btn1Up>:digit(5)unset()
XCalc*ti.button8.label:	        6
XCalc*ti.button8.translations: #override<Btn1Down>,<Btn1Up>:digit(6)unset()
XCalc*ti.button9.label:	        *
XCalc*ti.button9.translations: #override<Btn1Down>,<Btn1Up>:multiply()unset()
XCalc*ti.button10.label:	/
XCalc*ti.button10.translations: #override<Btn1Down>,<Btn1Up>:divide()unset()
XCalc*ti.button11.label:	1
XCalc*ti.button11.translations: #override<Btn1Down>,<Btn1Up>:digit(1)unset()
XCalc*ti.button12.label:	2
XCalc*ti.button12.translations: #override<Btn1Down>,<Btn1Up>:digit(2)unset()
XCalc*ti.button13.label:	3
XCalc*ti.button13.translations: #override<Btn1Down>,<Btn1Up>:digit(3)unset()
XCalc*ti.button14.label:	-
XCalc*ti.button14.translations: #override<Btn1Down>,<Btn1Up>:subtract()unset()
XCalc*ti.button15.label:	+
XCalc*ti.button15.translations: #override<Btn1Down>,<Btn1Up>:add()unset()
XCalc*ti.button16.label:	0
XCalc*ti.button16.translations: #override<Btn1Down>,<Btn1Up>:digit(0)unset()
XCalc*ti.button17.label:	.
XCalc*ti.button17.translations: #override<Btn1Down>,<Btn1Up>:decimal()unset()
XCalc*ti.button18.label:	+/-
XCalc*ti.button18.translations: #override<Btn1Down>,<Btn1Up>:negate()unset()
XCalc*ti.button19.label:	=
XCalc*ti.button19.translations: #override<Btn1Down>,<Btn1Up>:equal()unset()
XCalc*ti.button1.horizDistance:	        4	
XCalc*ti.button1.vertDistance:	        12
XCalc*ti.button1.fromVert:	        bevel
XCalc*ti.button2.fromHoriz:	        button1
XCalc*ti.button2.fromVert:	        bevel
XCalc*ti.button2.vertDistance:	        12
XCalc*ti.button3.fromHoriz:	        button2
XCalc*ti.button3.fromVert:	        bevel
XCalc*ti.button3.vertDistance:	        12
XCalc*ti.button4.horizDistance:	        8
XCalc*ti.button4.fromHoriz:	        button3
XCalc*ti.button4.fromVert:	        bevel
XCalc*ti.button4.vertDistance:	        12
XCalc*ti.button4.width:                 90
XCalc*ti.button6.horizDistance:	        4
XCalc*ti.button6.fromVert:	        button1
XCalc*ti.button7.fromHoriz:	        button6
XCalc*ti.button7.fromVert:	        button2
XCalc*ti.button8.fromHoriz:	        button7
XCalc*ti.button8.fromVert:	        button3
XCalc*ti.button9.horizDistance:	        8
XCalc*ti.button9.fromHoriz:	        button8
XCalc*ti.button9.fromVert:	        button4
XCalc*ti.button10.fromHoriz:	        button9
XCalc*ti.button10.fromVert:	        button4
XCalc*ti.button11.horizDistance:	4
XCalc*ti.button11.fromVert:		button6
XCalc*ti.button12.fromHoriz:		button11
XCalc*ti.button12.fromVert:		button7
XCalc*ti.button13.fromHoriz:		button12
XCalc*ti.button13.fromVert:		button8
XCalc*ti.button14.horizDistance:	8
XCalc*ti.button14.fromHoriz:		button13
XCalc*ti.button14.fromVert:		button9
XCalc*ti.button15.fromHoriz:		button14
XCalc*ti.button15.fromVert:		button10
XCalc*ti.button16.horizDistance:	4
XCalc*ti.button16.fromVert:		button11
XCalc*ti.button17.fromHoriz:		button16
XCalc*ti.button17.fromVert:		button12
XCalc*ti.button18.fromHoriz:		button17
XCalc*ti.button18.fromVert:		button13
XCalc*ti.button19.horizDistance:	8
XCalc*ti.button19.fromHoriz:		button18
XCalc*ti.button19.fromVert:		button14
XCalc*ti.button19.width:                90

