<?xml version="1.0" encoding="UTF-8"?>
<!--
    IBNSDatePicker.inspector
    InterfaceBuilder

    Created by Kelly Keenan on 11/6/09.    
    Copyright 2009-2018 Apple Inc. All rights reserved.
-->

<slice>
    <section>
        <sliver title="Style">
            <property type="enumeration" placeholder="Date Picker Style" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.datePickerStyle" actionSelector="constrainBoundsOfSelectionToNearestLegalSize">
                <option-group>
                    <option title="Textual" value="2" />
                    <option title="Textual with Stepper" value="0" />
                    <option title="Graphical" value="1" />
                </option-group>
            </property>
        </sliver>
        <sliver title="Selects">
            <property type="enumeration" placeholder="Date Picker Mode" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.datePickerMode">
                <option-group>
                    <option title="Single Date" value="0" />
                    <option title="Date Range" value="1" />
                </option-group>
            </property>
        </sliver>        
        <sliver title="Date Elements">
            <property type="enumeration" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.datePickerElements" bitMask="0x00e0" actionSelector="constrainBoundsOfSelectionToNearestLegalSize">
                <option-group>
                    <option value="0x00e0" title="Month, Day and Year" />
                    <option value="0x00c0" title="Month and Year" />
                    <option value="0x0000" title="None" />
                </option-group>
            </property>
            <!-- radar://15256259
            <property type="boolean" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.datePickerElements" bits="0x0100" title="Era" actionSelector="constrainBoundsOfSelectionToNearestLegalSize" />
            -->
        </sliver>
        <sliver title="Time Elements">
            <property type="enumeration" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.datePickerElements" bitMask="0x000e" actionSelector="constrainBoundsOfSelectionToNearestLegalSize">
                <option-group>
                    <option value="0x000e" title="Hour, Minute and Second" />
                    <option value="0x000c" title="Hour and Minute" />
                    <option value="0x0000" title="None" />
                </option-group>
            </property>
            <!-- radar://27055652
            <property type="boolean" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.datePickerElements" bits="0x0010" title="Time Zone" actionSelector="constrainBoundsOfSelectionToNearestLegalSize" />
            -->
        </sliver>        
    </section>
    <section>
        <chooser title="Date" type="number" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.ibInspectedDateType">
            <choice value="1" title="Current Date"/>
            <choice value="0" title="Custom">
                <sliver>
                    <property type="date" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.dateValue" />
                </sliver>
            </choice>
        </chooser>
        <sliver>
            <property type="boolean" title="Minimum Date" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.ibInspectedHasMinDate" />
            <property type="date" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.ibInspectedMinDate" enabledKeyPath="inspectedObjectsController.selection.object.ibInspectedCell.ibInspectedHasMinDate" />
            <property type="boolean" title="Maximum Date" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.ibInspectedHasMaxDate" />
            <property type="date" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.ibInspectedMaxDate" enabledKeyPath="inspectedObjectsController.selection.object.ibInspectedCell.ibInspectedHasMaxDate" />
        </sliver>
    </section>
    <section>
        <sliver title="Display">
            <property type="boolean" title="Background" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.drawsBackground" />
            <property type="boolean" title="Border" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.ibInspectedBezeled" actionSelector="constrainBoundsOfSelectionToNearestLegalSize" />
        </sliver>
        <sliver title="Text Color">
            <property type="ib-named-color" defaultColor="NSNamedColorSpace System controlTextColor" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.textColor" />
        </sliver>
        <sliver title="Background">
            <property type="ib-named-color" defaultColor="NSNamedColorSpace System controlBackgroundColor" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.backgroundColor" />
        </sliver>
        <sliver title="Font">
            <property type="font" keyPath="inspectedObjectsController.selection.object.ibInspectedCell.font" dataSourceKeyPath="inspectedObjectsController.selection.object.ibFontDataSource" title="Font" actionSelector="constrainBoundsOfSelectionToNearestLegalSize"/>
        </sliver>
    </section>
</slice>
