Changeset 424
- Timestamp:
- 02/13/2008 10:30:15 (7 months ago)
- Files:
-
- 1 modified
-
trunk/lib/shoes.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/shoes.rb
r417 r424 38 38 ShyMake = proc do |s| 39 39 proc do 40 stack :margin => 10do40 stack do 41 41 background rgb(240, 240, 150) 42 title "ShyMaker" 43 smalltitle "for Shoes #{Shoes::VERSION}" 42 stack :margin => 10 do 43 subtitle "ShyMaker", :margin => 0 44 tagline "for Shoes #{Shoes::VERSION}" 45 end 44 46 end 45 47 stack do 46 progress = 47 stack :margin => 20 do 48 @done = 49 stack :margin => 20, :hidden => true do 50 para "Your .shy is fully baked." 51 end 52 @make = 53 stack :margin => 20, :hidden => true do 48 54 para "Making the Shy" 49 progress55 @prog = progress 50 56 end 51 progress.hide52 57 info = 53 58 stack :margin => 10 do 54 59 stack :margin => 10 do 55 60 para "Application name" 56 edit_line61 @shy_name = edit_line 57 62 end 58 63 stack :margin => 10 do 59 64 para "Creator" 60 edit_line65 @shy_creator = edit_line 61 66 end 62 67 stack :margin => 10 do 63 68 para "Version" 64 edit_line69 @shy_version = edit_line 65 70 end 66 71 stack :margin => 10 do 67 72 para "Launch" 68 list_box :items => Shy.launchable(s)73 @shy_launch = list_box :items => Shy.launchable(s) 69 74 end 70 75 stack :margin => 10 do 71 76 button "Ready" do 77 shy_save = ask_save_file 78 72 79 info.hide 73 progress.show 80 @make.show 81 82 shy = Shy.new 83 shy.name = @shy_name.text 84 shy.creator = @shy_creator.text 85 shy.version = @shy_version.text 86 shy.launch = @shy_launch.text 87 88 Thread.start do 89 Shy.c(shy_save, shy, s) 90 @make.hide 91 @done.show 92 end 74 93 end 75 94 end
