<?xml version="1.0" encoding="UTF-8"?>
<!--
 IBUISearchBar.inspector
 IBCocoaTouchPlugin
 
 Created by Jon Hess on 04/16/10.
 Copyright 2010 Apple Inc. All rights reserved.
 -->
<slice>
    <section>
        <sliver title="Text">
            <property type="string" keyPath="inspectedObjectsController.selection.object.text" allowsNilValues="YES"/>
        </sliver>
        <sliver title="Placeholder">
            <property type="string" keyPath="inspectedObjectsController.selection.object.placeholder" allowsNilValues="YES"/>
        </sliver>
        <sliver title="Prompt">
            <property type="string" actionSelector="constrainBoundsOfSelectionToNearestLegalSize" keyPath="inspectedObjectsController.selection.object.prompt" allowsNilValues="YES"/>
        </sliver>
    </section>
    <section>
        <sliver title="Search Style">
            <property type="enumeration" keyPath="inspectedObjectsController.selection.object.searchBarStyle">
                <option-group>
                    <option title="Default" value="0"/>
                    <option title="Prominent" value="1"/>
                    <option title="Minimal" value="2"/>
                </option-group>
            </property>
        </sliver>
        <sliver title="Bar Style">
            <property type="enumeration" keyPath="inspectedObjectsController.selection.object.barStyle">
                <option-group>
                    <option title="Default" value="0"/>
                    <option title="Black" value="1"/>
                    <option title="Black Translucent (Deprecated)" value="2"/>
                </option-group>
            </property>
            <property type="boolean" title="Translucent" keyPath="inspectedObjectsController.selection.object.translucent"/>
        </sliver>
        <sliver title="Bar Tint">
            <property type="ib-named-color" defaultColorForNil="true" configurableProperty="barTintColor" />
        </sliver>
    </section>
    <section>
        <sliver fullWidth="true">
            <property type="ib-named-resource" title="Background" placeholder="Background Image" resourceType="image" configurableProperty="backgroundImage"/>
        </sliver>
        <sliver fullWidth="true">
            <property type="ib-named-resource" title="Scope Bar" placeholder="Scope Bar Background" resourceType="image" configurableProperty="scopeBarBackgroundImage"/>
        </sliver>
    </section>
    <section>
        <chooser type="number" title="Search Text" keyPath="inspectedObjectsController.selection.object.ibInspectedHasSearchTextPositionAdjustment">
            <choice title="Default Position" value="0"/>
            <choice title="Custom Offset" value="1">
                <sliver>
                    <property type="number" title="Horizontal" keyPath="inspectedObjectsController.selection.object.ibInspectedSearchTextPositionHorizontalAdjustment"/>
                    <property type="number" title="Vertical" keyPath="inspectedObjectsController.selection.object.ibInspectedSearchTextPositionVerticalAdjustment"/>
                </sliver>
            </choice>
        </chooser>
        <chooser type="number" title="Background" keyPath="inspectedObjectsController.selection.object.ibInspectedHasSearchFieldBackgroundPositionAdjustment">
            <choice title="Default Position" value="0"/>
            <choice title="Custom Offset" value="1">
                <sliver>
                    <property type="number" title="Horizontal" keyPath="inspectedObjectsController.selection.object.ibInspectedSearchFieldBackgroundPositionHorizontalAdjustment"/>
                    <property type="number" title="Vertical" keyPath="inspectedObjectsController.selection.object.ibInspectedSearchFieldBackgroundPositionVerticalAdjustment"/>
                </sliver>
            </choice>
        </chooser>
        <sliver title="Behavior">
            <property type="boolean" title="Enabled" keyPath="inspectedObjectsController.selection.object.enabled"/>
        </sliver>
    </section>
    <section>
        <sliver title="Capabilities">
            <property type="boolean" title="Shows Search Results Button" keyPath="inspectedObjectsController.selection.object.showsSearchResultsButton"/>
            <property type="boolean" title="Shows Bookmarks Button" keyPath="inspectedObjectsController.selection.object.showsBookmarkButton"/>
            <property type="boolean" title="Shows Cancel Button" keyPath="inspectedObjectsController.selection.object.showsCancelButton"/>
            <property type="boolean" actionSelector="constrainBoundsOfSelectionToNearestLegalSize" title="Shows Scope Bar" keyPath="inspectedObjectsController.selection.object.inspectedShowsScopeBar"/>
        </sliver>
    </section>
    <section>
        <sliver title="Scope Titles">
            <property type="array" objectType="string" title="Scope Button Titles" keyPath="inspectedObjectsController.selection.object.inspectedScopeButtonTitles" defaultValue="Title" />
        </sliver>
    </section>
    <include fileName="IBUITextInputTraits" />
</slice>
