<?xml version="1.0" encoding="UTF-8" ?>
<!--
****************************************************************************

     File Name:   sheetDialog.box

****************************************************************************
   C O P Y R I G H T   A N D   C O N F I D E N T I A L I T Y   N O T I C E
****************************************************************************

//      Copyright (c) 2006 AOL LLC.  All rights reserved.
//      This software contains valuable confidential and proprietary
//      information of AOL LLC. and is subject to applicable
//      licensing agreements.  Unauthorized reproduction, transmission or
//      distribution of this file and its contents is a violation of
//      applicable laws.
//
//            A O L   C O N F I D E N T I A L

****************************************************************************
-->


<!DOCTYPE window SYSTEM "box://aimToolkit/resources/localization.dtd">

<?import href="box://aimToolkit/content/core/coreGadgets.box"?>
<?import href="box://aimToolkit/theme/toolkit.box"?>
<?import href="box://aimToolkit/content/dialog/sheetDialogStyle.box"?>

<window xmlns="http://www.aol.com/boxely/box.xsd"
        xmlns:s="http://www.aol.com/boxely/style.xsd"
        xmlns:on="http://www.aol.com/boxely/reaction.xsd"
        id="dialogWindow" translucent="true" chromeless="true"
        title="" resizable="false" showResizer="false" style="sheetWindowStyle"
        on:constructed="sheet:applyDialogParameters();"
        on:initialized="sheet:initSheetDialog();"
        on:close="sheet:onSheetClose();">

    <code id="sheet" language="jscript" src="box://aimToolkit/content/dialog/sheetDialog.js" />

    <reaction event="keyPress" keyCode="ENTER"  action="toolkit:AcceptDialog"/>
    <reaction event="keyPress" keyCode="ESCAPE" action="toolkit:CancelDialog"/>

    <commandGroup>
        <command id="cmdYes"         action="sheet:onYes();"/>
        <command id="cmdCancel"      action="sheet:onNo();"/>
        <command id="cmdAlternative" action="sheet:onAlternative();"/>
    </commandGroup>



    <vbox id="backgroundPane" style="tintedBackground" displayOpacity="85"/>

    <vbox id="sheetPane" style="sheetPaneStyle" expandHeight="200">
        <vbox id="sheetContentsPane" style="sheetContentsStyle">
            <hbox id="sheetTitleBar" style="sheetTitleBarStyle">
                <aolLabel id="titleText" style="sheetTitleText" value=""/>
            </hbox>
            <vbox id="sheetBodyContainer" style="sheetBodyContainerStyle" s:flex="1">
                <vbox s:hAlign="stretch" s:vAlign="center" s:vSpace="5" s:flex="1" s:maxHeight="auto">
                    <vbox id="dialogBody" style="sheetDialogBody">
                        <hbox s:vAlign="start" s:hSpace="10">
                            <image id="messageIcon" s:minWidth="1" collapsed="true" s:padding="0" s:margin="0"/>
                            <vbox s:flex="1" s:maxWidth="auto" s:vSpace="20">
                                <vbox id="wordWrapContainer">
                                    <aolLabel id="textArea" style="sheetBodyText" accReadText="true" value=" " wordwrap="true" collapsed="true" />
                                </vbox>
                                <vbox id="wordWrapContainer2">
                                    <aolLabel id="subTextArea" style="sheetBodyText" accReadText="true" value=" " wordwrap="true" collapsed="true"/>
                                </vbox>
                            </vbox>
                        </hbox>
                        <hbox>
                            <aolPromptInput id="promptInput" s:flex="1" collapsed="true" />
                        </hbox>
                    </vbox>
                    <hbox s:hAlign="center">
                        <aolCheckButton id="checkBox" collapsed="true" toggled="false" label=" " s:margin="0 0 3 0" s:padding="0" />
                    </hbox>
                    <hbox s:hAlign="end">
                        <aolLabel id="errorCode" s:textColor="#90909D"/>
                    </hbox>
                </vbox>

                <hbox s:hAlign="center" s:vAlign="center">
                    <aolButton id="btnYes" label="&dialog.button.ok;" command="cmdYes" defaultButton="true" s:minWidth="55"/>
                    <aolButton id="btnNo" label="&dialog.button.cancel;" command="cmdCancel" cancelButton="true" s:minWidth="55"/>
                    <aolButton id="btnAlt" label="" command="cmdAlternative" alternateButton="true" s:minWidth="55" collapsed="true">
                        <binding elementSource="_self" targetProperty="collapsed" path="label" sourceTransformer="toolkit:empty" method="oneWay"/>
                    </aolButton>
                </hbox>
            </vbox>
            <vbox id="customSheetContainer" collapsed="true" s:flex="1" s:maxHeight="auto" s:maxWidth="auto" s:padding="15 20 15 20"/>
        </vbox>
    </vbox>
</window>
