Revision: 494 http://trac.macosforge.org/projects/ruby/changeset/494 Author: rich@infoether.com Date: 2008-08-27 07:58:57 -0700 (Wed, 27 Aug 2008) Log Message: ----------- stuff merged into demo Removed Paths: ------------- MacRuby/trunk/sample-macruby/HotCocoa/movie_view.rb MacRuby/trunk/sample-macruby/HotCocoa/segmented_control.rb MacRuby/trunk/sample-macruby/HotCocoa/table_view.rb MacRuby/trunk/sample-macruby/HotCocoa/web_view.rb Deleted: MacRuby/trunk/sample-macruby/HotCocoa/movie_view.rb =================================================================== --- MacRuby/trunk/sample-macruby/HotCocoa/movie_view.rb 2008-08-27 14:57:11 UTC (rev 493) +++ MacRuby/trunk/sample-macruby/HotCocoa/movie_view.rb 2008-08-27 14:58:57 UTC (rev 494) @@ -1,16 +0,0 @@ -framework 'qtkit' - -require 'hotcocoa' - -include HotCocoa - -application :name => "Movie View" do |app| - window :frame => [100, 100, 660, 308], :title => "HotCocoa!" do |win| - mview = movie_view :frame => [10, 10, 640, 288], - :movie => movie(:url => "http://movies.apple.com/movies/disney/wall-e/wall-e-tlr3_h.640.mov"), - :controller_buttons => [:back, :volume], - :fill_color => color(:name => :black) - win << mview - end -end - Deleted: MacRuby/trunk/sample-macruby/HotCocoa/segmented_control.rb =================================================================== --- MacRuby/trunk/sample-macruby/HotCocoa/segmented_control.rb 2008-08-27 14:57:11 UTC (rev 493) +++ MacRuby/trunk/sample-macruby/HotCocoa/segmented_control.rb 2008-08-27 14:58:57 UTC (rev 494) @@ -1,21 +0,0 @@ -require 'hotcocoa' - -include HotCocoa - -application :name => "Segmented Control" do |app| - window :frame => [200, 200, 500, 120], :title => "HotCocoa!" do |win| - segment = segmented_control( - :frame => [10,10,480,60], - :segments => [ - {:label => "Richard", :width => 120}, - {:label => "Laurent", :width => 120}, - {:label => "Chad", :width => 120}, - {:label => "Marcel", :width => 120} - ] - ) - segment.on_action do - puts "Selected #{segment.selected_segment.label}" - end - win << segment - end -end Deleted: MacRuby/trunk/sample-macruby/HotCocoa/table_view.rb =================================================================== --- MacRuby/trunk/sample-macruby/HotCocoa/table_view.rb 2008-08-27 14:57:11 UTC (rev 493) +++ MacRuby/trunk/sample-macruby/HotCocoa/table_view.rb 2008-08-27 14:58:57 UTC (rev 494) @@ -1,24 +0,0 @@ -require 'hotcocoa' - -include HotCocoa - -application :name => "Table View" do |app| - window :frame => [100, 100, 500, 500], :title => "HotCocoa!" do |win| - people = table_view :frame => [10, 10, 480, 470], - :columns => [ - column(:id => :first_name, :text => "First"), - column(:id => :last_name, :text => "Last") - ], - :data => [ - {:first_name => "Richard", :last_name => "Kilmer"}, - {:first_name => "Chad", :last_name => "Fowler"} - ] - win << split_view(:frame => [10, 10, 480, 470], :auto_resize => [:width, :height]) do |split| - split << scroll_view(:frame => [10,10,480,470]) do |scroll| - scroll << people - end - split << button(:title => "Test") - end - end -end - Deleted: MacRuby/trunk/sample-macruby/HotCocoa/web_view.rb =================================================================== --- MacRuby/trunk/sample-macruby/HotCocoa/web_view.rb 2008-08-27 14:57:11 UTC (rev 493) +++ MacRuby/trunk/sample-macruby/HotCocoa/web_view.rb 2008-08-27 14:58:57 UTC (rev 494) @@ -1,12 +0,0 @@ -framework 'webkit' - -require 'hotcocoa' - -include HotCocoa - -application :name => "Web View" do |app| - window :frame => [100, 100, 500, 500], :title => "HotCocoa!" do |win| - web = web_view :frame => [10, 10, 480, 470], :url => "http://www.ruby-lang.org" - win << web - end -end