<?xml version="1.0" encoding="UTF-8" ?>
<!--
****************************************************************************

     File Name:   dialog.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/windowingPack/windowGadgets.box"?>
<?import href="box://aimToolkit/theme/toolkit.box"?>

<aolDialog
    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"
    chromeless="true"
    title="&dialog.title;"
    on:constructed="onConstructed();"
    on:presented="onPresented();"
    on:initialized="onInitialized();"
    on:close="onClose();"
    >

    <code language="jscript" src="box://aimToolkit/content/dialog/dialog.js" />

    <commandGroup>
        <command id="cmdYes" action="onYes();"/>
        <command id="cmdCancel" action="onNo();"/>
        <command id="cmdAlternative" action="onAlternative();"/>
    </commandGroup>

    <vbox s:hAlign="stretch" s:vAlign="center" s:flex="1">
        <spacer s:height="10">
            <binding elementSource="checkboxContainer" targetProperty="collapsed" path="collapsed" method="oneWay" />
        </spacer>
        <vbox id="dialogBody" s:flex="1" maxWidth="auto" s:vAlign="center" s:hAlign="stretch" s:padding="5 12" s:minHeight="80">
            <hbox s:padding="5 0">
                <image id="messageIcon" s:minWidth="1" collapsed="true" s:margin="3 3 0 0" />
                <vbox id="wordWrapContainer" s:flex="1" s:maxWidth="auto" s:overflow="hidden" s:vSpace="40">
                    <aolLabel id="textArea" accReadText="true" value=" " s:flex="1" wordwrap="true" s:paddingTop="0" s:marginTop="0" />
                    <aolLabel id="subTextArea" accReadText="true" value=" " wordwrap="true" s:padding="0" s:flex="1" collapsed="true"/>
                </vbox>

            </hbox>
            <hbox>
                <aolPromptInput id="promptInput" s:marginTop="5" s:flex="1" collapsed="true" />
            </hbox>
        </vbox>
        <hbox id="checkboxContainer" collapsed="true" s:hAlign="center">
            <aolCheckButton id="checkBox" toggled="false" label=" " s:margin="0 0 3 0" s:padding="0" />
        </hbox>
        <hbox id="errorContainer" collapsed="true" s:hAlign="end">
            <aolLabel id="errorCode" s:textColor="#90909d"/>
        </hbox>
    </vbox>

    <hbox style="bottomButtonGroupContainer">
        <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>

    <reaction event="keyPress" keyCode="ENTER" action="toolkit:AcceptDialog"/>
    <reaction event="keyPress" keyCode="ESCAPE" action="toolkit:CancelDialog"/>
</aolDialog>