<?xml version="1.0" encoding="UTF-8" ?>
<!--
****************************************************************************

     File Name:   sheetEditURL.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/inputPack/inputGadgets.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" fadeIn="false"
        on:constructed="sheet:applyDialogParameters();"
        on:initialized="onInitialized();"
        on:presented="onPresented();"
        on:close="sheet:onSheetClose();">

    <code id="sheet" language="jscript" src="box://aimToolkit/content/dialog/sheetDialog.js" />
    <code id="main" language="jscript" src="box://aimToolkit/content/dialog/editURL.js" />

    <reaction event="keyPress" keyCode="ESCAPE" action="toolkit:Close"/>

    <commandGroup>
        <command id="cmdOk" action="onOk();"/>
        <command id="cmdCancel" action="onCancel();"/>
    </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:flex="1" s:hAlign="stretch" s:vSpace="5">
                    <aolLabel value="&editURL.label.uri;"/>
                    <hbox s:hAlign="stretch" s:maxWidth="auto" s:flex="0">
                        <aolInput id="uri" invalidCharMessagePrefix="&editURL.invalidChar.Prefix;" invalidCharMessageSufix="&editURL.invalidChar.Sufix;" on:modified="onURLModified();" s:flex="1" s:maxWidth="auto" s:height="20">
                            <reaction event="attributeSet" attributeName="value" action="urlChanged();"/>
                        </aolInput>
                    </hbox>
                    <aolLabel value="&editURL.label.description;"/>
                    <vbox s:flex="1" s:maxWidth="auto">
                        <aolMultilineInput id="description" enablerich="false" s:margin="2" s:flex="1" s:maxWidth="auto" s:height="60" s:overflow="scroll"/>
                    </vbox>
                    <hbox hidden="true" id="encodeWarning" s:hAlign="center">
                        <aolLabel wordWrap="true" s:textColor="&editURL.Warning.Color;" value="&editURL.invalidChar.Warning;"/>
                    </hbox>
                    <hbox s:hAlign="center">
                        <aolButton id="btnYes" label="&dialog.button.ok;" disabled="true" defaultButton="true" command="cmdOk"/>
                        <separator/>
                        <aolButton id="btnNo" label="&dialog.button.cancel;" cancelButton="true" command="cmdCancel"/>
                    </hbox>
                </vbox>
            </vbox>
        </vbox>
    </vbox>
</window>
