lib/sugarcube-factories/uibarbuttonitem.rb in sugarcube-1.5.0 vs lib/sugarcube-factories/uibarbuttonitem.rb in sugarcube-1.5.1

- old
+ new

@@ -2,125 +2,129 @@ class UIBarButtonItem class << self def done(&action) - sugarcube_barbuttonitem(:done, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemDone, action) end def cancel(&action) - sugarcube_barbuttonitem(:cancel, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemCancel, action) end def edit(&action) - sugarcube_barbuttonitem(:edit, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemEdit, action) end def save(&action) - sugarcube_barbuttonitem(:save, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemSave, action) end def add(&action) - sugarcube_barbuttonitem(:add, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemAdd, action) end + # deprecated def flexiblespace(&action) - sugarcube_barbuttonitem(:flexiblespace, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemFlexibleSpace, action) end def flexible_space(&action) - sugarcube_barbuttonitem(:flexible_space, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemFlexibleSpace, action) end + # deprecated def fixedspace(&action) - sugarcube_barbuttonitem(:fixedspace, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemFixedSpace, action) end def fixed_space(&action) - sugarcube_barbuttonitem(:fixed_space, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemFixedSpace, action) end def compose(&action) - sugarcube_barbuttonitem(:compose, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemCompose, action) end def reply(&action) - sugarcube_barbuttonitem(:reply, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemReply, action) end def action(&action) - sugarcube_barbuttonitem(:action, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemAction, action) end def organize(&action) - sugarcube_barbuttonitem(:organize, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemOrganize, action) end def bookmarks(&action) - sugarcube_barbuttonitem(:bookmarks, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemBookmarks, action) end def search(&action) - sugarcube_barbuttonitem(:search, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemSearch, action) end def refresh(&action) - sugarcube_barbuttonitem(:refresh, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemRefresh, action) end def stop(&action) - sugarcube_barbuttonitem(:stop, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemStop, action) end def camera(&action) - sugarcube_barbuttonitem(:camera, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemCamera, action) end def trash(&action) - sugarcube_barbuttonitem(:trash, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemTrash, action) end def play(&action) - sugarcube_barbuttonitem(:play, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemPlay, action) end def pause(&action) - sugarcube_barbuttonitem(:pause, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemPause, action) end def rewind(&action) - sugarcube_barbuttonitem(:rewind, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemRewind, action) end + # deprecated def fastforward(&action) - sugarcube_barbuttonitem(:fastforward, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemFastForward, action) end def fast_forward(&action) - sugarcube_barbuttonitem(:fast_forward, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemFastForward, action) end def undo(&action) - sugarcube_barbuttonitem(:undo, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemUndo, action) end def redo(&action) - sugarcube_barbuttonitem(:redo, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemRedo, action) end + # deprecated def pagecurl(&action) - sugarcube_barbuttonitem(:pagecurl, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemPageCurl, action) end def page_curl(&action) - sugarcube_barbuttonitem(:page_curl, action) + sugarcube_barbuttonitem(UIBarButtonSystemItemPageCurl, action) end - def titled(title, style = :bordered, &action) + def titled(title, style = UIBarButtonItemStyleBordered, &action) sugarcube_barbuttonitem_with_title(title, style, action) end - def imaged(image, style = :bordered, &action) + def imaged(image, style = UIBarButtonItemStyleBordered, &action) sugarcube_barbuttonitem_with_image(image, style, action) end end