[macruby-changes] [354] MacRuby/trunk/lib/hotcocoa/mappings
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jul 10 09:10:52 PDT 2008
Revision: 354
http://trac.macosforge.org/projects/ruby/changeset/354
Author: rich at infoether.com
Date: 2008-07-10 09:10:52 -0700 (Thu, 10 Jul 2008)
Log Message:
-----------
add the default layout of an empty hash
Modified Paths:
--------------
MacRuby/trunk/lib/hotcocoa/mappings/box.rb
MacRuby/trunk/lib/hotcocoa/mappings/button.rb
MacRuby/trunk/lib/hotcocoa/mappings/combo_box.rb
MacRuby/trunk/lib/hotcocoa/mappings/image_view.rb
MacRuby/trunk/lib/hotcocoa/mappings/label.rb
MacRuby/trunk/lib/hotcocoa/mappings/layout_view.rb
MacRuby/trunk/lib/hotcocoa/mappings/movie_view.rb
MacRuby/trunk/lib/hotcocoa/mappings/popup.rb
MacRuby/trunk/lib/hotcocoa/mappings/scroll_view.rb
MacRuby/trunk/lib/hotcocoa/mappings/secure_text_field.rb
MacRuby/trunk/lib/hotcocoa/mappings/segmented_control.rb
MacRuby/trunk/lib/hotcocoa/mappings/slider.rb
MacRuby/trunk/lib/hotcocoa/mappings/split_view.rb
MacRuby/trunk/lib/hotcocoa/mappings/table_view.rb
MacRuby/trunk/lib/hotcocoa/mappings/text_field.rb
MacRuby/trunk/lib/hotcocoa/mappings/web_view.rb
Modified: MacRuby/trunk/lib/hotcocoa/mappings/box.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/box.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/box.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -1,6 +1,6 @@
HotCocoa::Mappings.map :box => :NSBox do
- defaults :frame => DefaultEmptyRect
+ defaults :frame => DefaultEmptyRect, :layout => {}
constant :title_position, {
:none => NSNoTitle,
Modified: MacRuby/trunk/lib/hotcocoa/mappings/button.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/button.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/button.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -3,7 +3,8 @@
Mappings.map :button => :NSButton do
defaults :bezel => :rounded,
- :frame => DefaultEmptyRect
+ :frame => DefaultEmptyRect,
+ :layout => {}
constant :bezel, {
:rounded => NSRoundedBezelStyle,
Modified: MacRuby/trunk/lib/hotcocoa/mappings/combo_box.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/combo_box.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/combo_box.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -1,6 +1,6 @@
HotCocoa::Mappings.map :combo_box => :NSComboBox do
- defaults :selectable => true, :editable => true, :completes => true
+ defaults :selectable => true, :editable => true, :completes => true, :layout => {}
def init_with_options(combo_box, options)
combo_box.initWithFrame options.delete(:frame)
Modified: MacRuby/trunk/lib/hotcocoa/mappings/image_view.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/image_view.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/image_view.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -1,5 +1,7 @@
HotCocoa::Mappings.map :image_view => :NSImageView do
+ defaults :layout => {}
+
def init_with_options(image_view, options)
image_view.initWithFrame options.delete(:frame)
end
Modified: MacRuby/trunk/lib/hotcocoa/mappings/label.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/label.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/label.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -1,6 +1,6 @@
HotCocoa::Mappings.map :label => :NSTextField do
- defaults :selectable => false, :bordered => false, :drawsBackground => false, :frame => DefaultEmptyRect
+ defaults :selectable => false, :bordered => false, :drawsBackground => false, :frame => DefaultEmptyRect, :layout => {}
def init_with_options(text_field, options)
tf = text_field.initWithFrame options.delete(:frame)
Modified: MacRuby/trunk/lib/hotcocoa/mappings/layout_view.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/layout_view.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/layout_view.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -2,7 +2,7 @@
Mappings.map :layout_view => :LayoutView do
- defaults :frame => DefaultEmptyRect
+ defaults :frame => DefaultEmptyRect, :layout => {}
def init_with_options(view, options)
view.initWithFrame options.delete(:frame)
Modified: MacRuby/trunk/lib/hotcocoa/mappings/movie_view.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/movie_view.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/movie_view.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -1,4 +1,6 @@
HotCocoa::Mappings.map :movie_view => :QTMovieView, :framework => :QTKit do
+
+ defaults :layout => {}
def init_with_options(movie_view, options)
movie_view.initWithFrame(options.delete(:frame))
Modified: MacRuby/trunk/lib/hotcocoa/mappings/popup.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/popup.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/popup.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -1,7 +1,8 @@
HotCocoa::Mappings.map :popup => :NSPopUpButton do
defaults :pulls_down => false,
- :frame => DefaultEmptyRect
+ :frame => DefaultEmptyRect,
+ :layout => {}
def init_with_options(popup, options)
popup.initWithFrame(options.delete(:frame), pullsDown:options.delete(:pulls_down))
Modified: MacRuby/trunk/lib/hotcocoa/mappings/scroll_view.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/scroll_view.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/scroll_view.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -1,6 +1,6 @@
HotCocoa::Mappings.map :scroll_view => :NSScrollView do
- defaults :vertical_scroller => true, :horizontal_scroller => true
+ defaults :vertical_scroller => true, :horizontal_scroller => true, :layout => {}
def init_with_options(scroll_view, options)
scroll_view.initWithFrame options.delete(:frame)
Modified: MacRuby/trunk/lib/hotcocoa/mappings/secure_text_field.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/secure_text_field.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/secure_text_field.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -1,6 +1,6 @@
HotCocoa::Mappings.map :secure_text_field => :NSSecureTextField do
- defaults :selectable => true, :editable => true, :echo => true
+ defaults :selectable => true, :editable => true, :echo => true, :layout => {}
def init_with_options(secure_text_field, options)
secure_text_field.initWithFrame options.delete(:frame)
Modified: MacRuby/trunk/lib/hotcocoa/mappings/segmented_control.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/segmented_control.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/segmented_control.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -1,5 +1,7 @@
HotCocoa::Mappings.map :segmented_control => :NSSegmentedControl do
+ defaults :layout => {}
+
def init_with_options(segmented_control, options)
segmented_control.initWithFrame options.delete(:frame)
end
Modified: MacRuby/trunk/lib/hotcocoa/mappings/slider.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/slider.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/slider.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -1,6 +1,6 @@
HotCocoa::Mappings.map :slider => :NSSlider do
- defaults :frame => DefaultEmptyRect
+ defaults :frame => DefaultEmptyRect, :layout => {}
def init_with_options(button, options)
button.initWithFrame options.delete(:frame)
Modified: MacRuby/trunk/lib/hotcocoa/mappings/split_view.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/split_view.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/split_view.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -1,5 +1,7 @@
HotCocoa::Mappings.map :split_view => :NSSplitView do
+ defaults :layout => {}
+
def init_with_options(split_view, options)
split_view.initWithFrame options.delete(:frame)
end
Modified: MacRuby/trunk/lib/hotcocoa/mappings/table_view.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/table_view.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/table_view.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -1,6 +1,6 @@
HotCocoa::Mappings.map :table_view => :NSTableView do
- defaults :column_resize => :uniform, :frame => DefaultEmptyRect
+ defaults :column_resize => :uniform, :frame => DefaultEmptyRect, :layout => {}
constant :column_resize, {
:none => NSTableViewNoColumnAutoresizing,
Modified: MacRuby/trunk/lib/hotcocoa/mappings/text_field.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/text_field.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/text_field.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -1,6 +1,6 @@
HotCocoa::Mappings.map :text_field => :NSTextField do
- defaults :selectable => true, :editable => true
+ defaults :selectable => true, :editable => true, :layout => {}
def init_with_options(text_field, options)
text_field.initWithFrame options.delete(:frame)
Modified: MacRuby/trunk/lib/hotcocoa/mappings/web_view.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/web_view.rb 2008-07-10 13:27:22 UTC (rev 353)
+++ MacRuby/trunk/lib/hotcocoa/mappings/web_view.rb 2008-07-10 16:10:52 UTC (rev 354)
@@ -2,7 +2,7 @@
HotCocoa::Mappings.map :web_view => :WebView , :framework => :WebKit do
- defaults :auto_size => true
+ defaults :auto_size => true, :layout => {}
def init_with_options(web_view, options)
web_view.initWithFrame(options.delete(:frame))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080710/5b90fe17/attachment-0001.html
More information about the macruby-changes
mailing list