import { makeEnum } from '../objc';

export let NSButtonType = makeEnum({
   MomentaryLightButton   : 0,
   PushOnPushOffButton    : 1,
   ToggleButton           : 2,
   SwitchButton           : 3,
   RadioButton            : 4,
   MomentaryChangeButton  : 5,
   OnOffButton            : 6,
   MomentaryPushInButton  : 7,
   MomentaryPushButton    : 0,
   MomentaryLight         : 7
});


export let NSBezelStyle = makeEnum({
   Rounded           : 1,
   RegularSquare     : 2,
   ThickSquare       : 3,
   ThickerSquare     : 4,
   Disclosure        : 5,
   ShadowlessSquare  : 6,
   Circular          : 7,
   TexturedSquare    : 8,
   HelpButton        : 9,
   SmallSquare       : 10,
   TexturedRounded   : 11,
   RoundRect         : 12,
   Recessed          : 13,
   RoundedDisclosure : 14,
   Inline            : 15,
   SmallIconButton   : 2
});

export let NSTextAlignment = makeEnum({
    Left             : 0,
    Right            : 1,
    Center           : 2,
    Justified        : 3,
    Natural          : 4
});

export let NSDatePickerStyle = makeEnum({
    TextFieldAndStepper:    0,
    ClockAndCalendar:       1,
    TextField:              2
});

export let NSDatePickerMode = makeEnum({
    Single:     0,
    Range:      1
});


@@ -1084,20 +1084,22 @@
 dStepper
-:
+  
    
+:
  0,%0A    
@@ -1114,23 +1114,25 @@
 Calendar
-:
+ 
       
+ :
  1,%0A    
@@ -1140,17 +1140,16 @@
 extField
-:
         
@@ -1153,16 +1153,19 @@
         
+  :
  2%0A%7D);%0A%0A
@@ -1215,21 +1215,23 @@
   Single
-:
+  
     
+:
  0,%0A    
@@ -1239,14 +1239,16 @@
 ange
-:
+  
      
+:
  1%0A%7D

Fix the style for our new nsdate* enums.