<?xml version="1.0" encoding="UTF-8"?>
<!--
****************************************************************************

     File Name:   talkinvite.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"
        icon="box://imApp/resources/imWindowIconSmall.png"
        nativeIcon="box://imApp/resources/aim.ico"
        id="window" translucent="false" chromeless="true" resizable="false"
        on:constructed="onConstructed();"
        on:close="onClose();"
        s:minWidth="&BL.talkInvite.MinWidth;" s:minHeight="&BL.talkInvite.MinHeight;"
        s:width="&BL.talkInvite.Width;" s:height="&BL.talkInvite.Height;">

    <script id="main" language="jscript" href="box://imApp/content/bl/talkinvite.js"/>
    
	<reaction event="keyPress" keyCode="ESCAPE" action="scene.close();"/>

    <commandGroup>
        <command id="cmdSend" action="OnSend();"/>
        <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" focusMode="ignore"
                        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">
		<aolLabel value="&BL.talkInvite.ScreenName;"/>
		<imSmartInput id="invitee" smartBoxId="autoCompletePopup" autoSeparator="true" smartboxSeparator="," on:modified="disableButtonIfEmpty();" s:flex="1">
			<reaction event="keyPress" keyCode="ENTER" ctrl="false" shift="false" alt="false" action="OnSend();"/>
		</imSmartInput>
		<aolLabel id="cameraInfo" s:wordwrap="true" value="&BL.talkInvite.CameraInfo;" />
		<aolMultilineStatic id="directXPrompt" value="&BL.talkInvite.directXPrompt;" s:wordwrap="true" multiline="true" />
		<aolTextButton id="directXUpgrade" label="&BL.talkInvite.DirectXUpgrade;" on:command="onDirectXUpgrade();"/>                                                                                                
		<box s:flex="2"/>
		<hbox s:hAlign="center">
			<box s:flex="1"/>
			<aolButton id="sendButton" label="&BL.talkInvite.Send;" disabled="true" defaultButton="true" command="cmdSend">
				<binding objectSource="bl" targetProperty="disabled" path="isSessionOnline" method="oneWay" sourceTransformer="disableIfEmpty();" targetTransformer="disableIfEmpty();" />
			</aolButton>
			<aolButton label="&BL.talkInvite.Cancel;" command="cmdCancel"/>
			<box s:flex="1"/>
		</hbox>
		<box s:height="8"/>
	</vbox>
</aolDialog>
