Changeset 482
- Timestamp:
- 03/12/2008 23:54:42 (5 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 modified
-
lib/shoes.rb (modified) (1 diff)
-
lib/shoes/cache.rb (modified) (2 diffs)
-
lib/shoes/image.rb (added)
-
shoes/ruby.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/shoes.rb
r463 r482 11 11 require 'shoes/shy' 12 12 if Object.const_defined? :Shoes 13 require 'shoes/image' 13 14 require 'shoes/cache' 14 15 require 'shoes/help' -
trunk/lib/shoes/cache.rb
r476 r482 19 19 SITE_LIB_DIR = File.join(LIB_DIR, '+lib') 20 20 GEM_DIR = File.join(LIB_DIR, '+gem') 21 22 mkdir_p(LIB_DIR) 21 CACHE_DIR = File.join(LIB_DIR, '+cache') 22 23 mkdir_p(CACHE_DIR) 23 24 $:.unshift SITE_LIB_DIR 24 25 $:.unshift GEM_DIR … … 63 64 $:.unshift path 64 65 end 66 def setup_gems_app 67 unless Shoes === Gem::DefaultUserInteraction.ui 68 app = 69 Shoes.app :width => 370, :height => 148, :resizable => false do 70 background "#9CF" 71 image "#{DIR}/static/shoes-icon-blue.png", :top => 10, :right => 20 72 stack :margin => 18 do 73 title "", :size => 12, :weight => "bold", :margin => 0 74 para "", :size => 10, :margin => 0, :margin_top => 8, :width => 220 75 progress :width => 1.0, :top => 80 76 end 77 end 78 Gem::DefaultUserInteraction.ui = Gem::ShoesFace.new(app) 79 end 80 Gem::DefaultUserInteraction.ui 81 end 65 82 def fetch_gems(*gems, &blk) 66 ui = Gem::DefaultUserInteraction.ui83 ui = setup_gems_app 67 84 count, total = 0, gems.length 68 85 ui.progress count, total -
trunk/shoes/ruby.h
r473 r482 136 136 f("border", border, -1); \ 137 137 f("video", video, -1); \ 138 f("image ", image, -1); \138 f("image_file", image, -1); \ 139 139 f("imagesize", imagesize, 1); \ 140 140 f("animate", animate, -1); \
