#ClipBin v1.0
#By Josh Davidson - http://zoastertech.com - zoasterboy@zoastertech.com
#This is my first Ruby/Shoes app, feel free to edit and criticize!
Shoes.app do
	@lastClipText = ""
	@clipNum = 0
	every(1) do
		@clipText = clipboard()
		if @clipText == @lastClipText
			#Skip
		else
			stack() do
				background(chartreuse)
				border(white, :strokewidth => 3)
				t = Time.now   
				para strong(@clipNum, ". ", code(t.strftime("%d/%m/%Y %H:%M:%S")))
				para @clipText
				edit_box @clipText, :width => 500, :height => 50
			end
			@lastClipText = @clipText
			@clipNum = @clipNum + 1
		end
	end
 end
