<?xml version="1.0" encoding="UTF-8"?>
<!--
****************************************************************************

     File Name:   chatinvite.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://imApp/resources/bl.dtd">


<?import href="box://aimToolkit/content/gadgets.box"?>
<?import href="box://aimToolkit/theme/toolkit.box"?>
<?import href="box://imApp/content/imSmartInput.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"
        id="window" translucent="false" chromeless="true"

        on:constructed="onConstructed();"
        on:presented="onPresented();"
        on:dragOver="onDragOver();"
        on:dragDrop="onDragDrop();"

        s:orient="vertical"
        s:minWidth="&BL.chatInvite.MinWidth;" s:minHeight="&BL.chatInvite.MinHeight;"
        s:width="&BL.chatInvite.Width;" s:height="&BL.chatInvite.Height;">

    <script id="listener" language="jscript" href="box://imApp/content/viewListener.js"/>
    <script id="main" language="jscript" href="box://imApp/content/bl/chatinvite.js"/>

    <reaction event="keyPress" keyCode="ESCAPE" action="scene.close();"/>

    <commandGroup>
        <command id="cmdSend" action="OnSend();"/>
        <command id="cmdAVWizard" action="OnAvWizard();"/>
        <command id="cmdCancel" action="OnCancel();"/>
    </commandGroup>

    <aolSmartBox id="autoCompletePopup">
        <aolNativeLabel value="&BL.buddyListBuddy.Suggestions;" s:fontSize="10px" s:fontBold="true" s:textColor="#25518D"/>
        <vbox s:height="1" s:margin="0 12 0 12" s:padding="0" s:fill="#d0d0d0"/>
        <aolListBox id="smartboxList" view="grid"
                        s:height="auto" s:maxHeight="80"
                        s:layer="above"
                        s:flex="1"
                        s:margin="0 4 4 4"
                        s:zIndex="9999"
                        s:padding="1"
                        s:stroke="#808080"
                        s:stokeWidth="1">
            <columns header="false" s:maxWidth="auto">
                <aolColumn name="Column 1" s:flex="1" s:minWidth="65" />
            </columns>
            <rows>
            </rows>
        </aolListBox>
    </aolSmartBox>

    <vbox s:flex="1" padding="5" maxHeight="auto" overflow="scroll" s:padding="5">
        <aolLabel value="&BL.chatInvite.ScreenNames;"/>
        <imSmartInput id="invitees" accName="&BL.chatInvite.ScreenNames;" expandedHeight="100" smartBoxId="autoCompletePopup" autoSeparator="true" smartboxSeparator="," s:flex="1" expandable="true" hscrollable="false">
            <reaction event="keyPress" keyCode="ENTER" action="OnSend();"/>
        </imSmartInput>
        <aolLabel value="&BL.chatInvite.Invitation;" collapsed="true"/>
        <aolMultilineInput id="message" s:height="60" collapsed="true"/>
        <box s:height="15"/>
        <hbox s:vAlign="center">
            <aolLabel id="chatroomlabel" value="&BL.chatInvite.ChatRoom;"/>
            <aolInput maxlength="30" id="chatroom" s:flex="1">
                <reaction event="keyPress" keyCode="ENTER" action="OnSend();"/>
            </aolInput>
        </hbox>
    </vbox>
    <hbox style="bottomButtonGroupContainer">
        <box s:flex="1"/>
        <aolButton label="&BL.chatInvite.Send;" command="cmdSend"  defaultButton="true" s:minWidth="35">
            <binding objectSource="bl" targetProperty="disabled" path="isSessionOnline" method="oneWay" sourceTransformer="toolkit:not" targetTransformer="toolkit:not" />
        </aolButton>
        <aolButton label="&BL.chatInvite.Cancel;" command="cmdCancel" s:minWidth="35"/>
        <aolButton s:overflow="hidden" id="avwizardbutton" label="&BL.chatInvite.ShowAVWizard;" command="cmdAVWizard">
            <binding objectSource="bl" targetProperty="disabled" path="isSessionOnline" method="oneWay" sourceTransformer="toolkit:not" targetTransformer="toolkit:not" />
        </aolButton>
        <box s:flex="1"/>
    </hbox>
</aolDialog>
