shoeset

Check-in [4624b9404c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:ListBox cloudgen block now runs in serial

* Because of threading used, if the user selected another item in the listbox
whilst the app was already running and generating a tag cloud, another
progress bar would appear, etc. This forces selections to run in serial,
i.e. will ignore the selection if cloud generator is already running
* Also resets list box selection to the set currently being used if user tries
to change whilst running
* Better future approach could be to cancel current cloud generation and start
again for new set selected. Debatable though...

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | v0.0.2
Files: files | file ages | folders
SHA3-256: 4624b9404c6d80104989c1ade184d1c2e362c590b2ca9494eee208b11f37d601
User & Date: i5ivem@gmail.com 2010-03-29 13:45:44
Context
2013-07-16
11:38
Create LICENSE check-in: 76703a34fa user: atomicules@lavabit.com tags: trunk, master
2011-08-03
14:21
First tentative steps towards porting to Green Shoes

This one is much closer to working than Shoefiti:
https://github.com/i5m/shoefiti/commit/e171e3d714d4e8b8f5889d8995ead8af357510b5

Same issues apply:
* Remove any debug() replace with "puts"
* Remove threading, at least for now
* Issues with clear{...}
* link in para is incorrect, doens't work properly
so thought about using edit_line, but there is an issue in
Cairo(?) at the time of writing that prevents text being
copied:
http://librelist.com/browser//shoes/2011/7/19/green-shoes-edit-box-copy-and-paste/
So no easy way to do authorisation at the minute)

I can almost walk this on through and get it working, just
can't get the tag cloud to display (although I think it is
being built) Leaf check-in: ad50732410 user: i5ivem@gmail.com tags: trunk, origin/green

2010-03-29
13:45
ListBox cloudgen block now runs in serial

* Because of threading used, if the user selected another item in the listbox
whilst the app was already running and generating a tag cloud, another
progress bar would appear, etc. This forces selections to run in serial,
i.e. will ignore the selection if cloud generator is already running
* Also resets list box selection to the set currently being used if user tries
to change whilst running
* Better future approach could be to cancel current cloud generation and start
again for new set selected. Debatable though... Leaf check-in: 4624b9404c user: i5ivem@gmail.com tags: trunk, v0.0.2

12:36
Adding "loading" animation for app and set list

* An attempt to reduce the 'hang' of startup when the app is actually
performing flickr login and getting the set list
* Quite sure this could be done more nicely check-in: bb7231a2cb user: i5ivem@gmail.com tags: trunk

Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to shoeset.rb.

68
69
70
71
72
73
74
75

76
77




78
79
80
81
82
83
84
		@photosetlist = flickr.photosets.getList.each do |set|
			@setlist << set["title"]
		end
		@animatelist.stop
		@loadingsetlist.hide
		flow do
			para "Pick a set to generate Tag Cloud: "
			list_box :items => @setlist, 

				:chose => @setlist[0] do |set|
					fluffygen(set)				




				end
		end #flow
		@tagcloud = flow do #if this is a stack then clearing it goes crazy
			para ""
		end #set-up placeholder for tag cloud
	end
	







|
>
|
|
>
>
>
>







68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
		@photosetlist = flickr.photosets.getList.each do |set|
			@setlist << set["title"]
		end
		@animatelist.stop
		@loadingsetlist.hide
		flow do
			para "Pick a set to generate Tag Cloud: "
			@listbox = list_box :items => @setlist do |set|
					if $p.nil? or $p.fraction() == 1.0 	#because this is threaded, must check to see if already running
						@currentset = set.text
						fluffygen(set)
					else #if user picks another set, put selected back to original choice if running.
						#debug(@currentset)
						@listbox.choose(@currentset) #Set to 
					end
				end
		end #flow
		@tagcloud = flow do #if this is a stack then clearing it goes crazy
			para ""
		end #set-up placeholder for tag cloud
	end