lib/sugarcube/symbol.rb in sugarcube-0.18.9 vs lib/sugarcube/symbol.rb in sugarcube-0.18.10

- old
+ new

@@ -30,11 +30,12 @@ attr_accessor :interface_masks attr_accessor :orientations attr_accessor :returnkeys attr_accessor :statusbar_styles attr_accessor :barmetrics - attr_accessor :barbuttomitems + attr_accessor :barbuttonitems + attr_accessor :barbuttonstyles attr_accessor :keyboardtypes attr_accessor :autoresizemasks attr_accessor :textalignments attr_accessor :linebreakmodes @@ -354,11 +355,11 @@ @barmetrics = { default: UIBarMetricsDefault, landscape: UIBarMetricsLandscapePhone, } - @barbuttomitems = { + @barbuttonitems = { done: UIBarButtonSystemItemDone, cancel: UIBarButtonSystemItemCancel, edit: UIBarButtonSystemItemEdit, save: UIBarButtonSystemItemSave, add: UIBarButtonSystemItemAdd, @@ -381,10 +382,16 @@ undo: UIBarButtonSystemItemUndo, redo: UIBarButtonSystemItemRedo, pagecurl: UIBarButtonSystemItemPageCurl, } + @barbuttonstyles = { + plain: UIBarButtonItemStylePlain, + bordered: UIBarButtonItemStyleBordered, + done: UIBarButtonItemStyleDone + } + @keyboardtypes = { default: UIKeyboardTypeDefault, asciicapable: UIKeyboardTypeASCIICapable, ascii: UIKeyboardTypeASCIICapable, numbersandpunctuation: UIKeyboardTypeNumbersAndPunctuation, @@ -614,10 +621,14 @@ def uibarmetrics look_in(Symbol.barmetrics) end def uibarbuttonitem - look_in(Symbol.barbuttomitems) + look_in(Symbol.barbuttonitems) + end + + def uibarbuttonstyle + look_in(Symbol.barbuttonstyles) end def uikeyboardtype look_in(Symbol.keyboardtypes) end