<?xml version="1.0"	encoding="UTF-8" ?>
<!--
****************************************************************************

     File Name:   quickAway.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 [
  <!ENTITY % prefs SYSTEM "box://imApp/resources/prefs.dtd">
  <!ENTITY % bl	SYSTEM "box://imApp/resources/bl.dtd">
  <!ENTITY % im	SYSTEM "box://imApp/resources/im.dtd">
  %prefs;
  %bl;
  %im;
]>



<?import href="box://aimToolkit/content/gadgets.box"?>
<?import href="box://aimToolkit/theme/toolkit.box"?>
<?import href="box://imApp/theme/style.box"?>
<?import href="box://imApp/content/imAppLib.box"?>
<?import href="box://imApp/content/prefs/prefsContainerStyles.box"?>
<?import href="box://imApp/theme/coreGadgetStyles.box"?>

<aimWindow	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"
			title="&im.quickAway.quickAwayTitle;"
			resizable="true"
			s:minWidth="&im.quickAway.width;*"
			s:minHeight="&im.quickAway.height;*"
			accRole="dialog"
			on:initialized="onInitialized();"
			on:constructed="onConstructed();"
			on:destroyed="onDestroyed();"
			on:close="onClose();"
			>
			

	<script	id="main" language="jscript" href="box://imApp/content/quickAway.js" />
	<reaction event="keyPress" keyCode="ESCAPE"	action="toolkit:Close" /> 
	<binding objectSource="bl" path="isSessionOnline" sourceTransformer="closeIfOffline()" />

	<box id="testScreenName" label="&prefs.testScreenName_string;"/>
	
	<vbox style="aimWindowContentSection">
	    <hbox s:flex="1" accName="&pref.Messages;" accDescription="&pref.Create_edit_manage_or_delete_away_messages; &pref.Away_message_only_sent_to_buddies;">
            <awayMessageEditor id="awayMessageEditor" screenNameControl="testScreenName" s:flex="1" leftCollapse="false" awayTitle="&im.quickAway.titleColon;" messageTitle="&im.quickAway.messageColon;" inputTitleTab="2" dhtmlTab="3" listOfMessagesTab="1"/>
	    </hbox>
	</vbox>
	
	<hbox style="aimWindowButtonSection">
		<aolButton tabIndex="4"	id="saveButton"	label="&im.quickAway.save;" s:padding="4 10 4 10" defaultButton="true" on:command="save(true);" s:margin="0"/>
		<aolButton tabIndex="5"	id="applyButton" label="&im.quickAway.apply;" s:padding="4 14 4 14" on:command="save(false);" s:margin="0">
		    <binding objectSource="objPrefs" path="canSaveStatusMessages" targetProperty="disabled" method="oneWay" sourceTransformer="toolkit:not" />
		</aolButton>
		<aolButton tabIndex="6"	id="cancelButton" label="&im.quickAway.cancel;"	s:padding="4 14 4 14" on:command="toolkit:Close" s:margin="0"/>
	</hbox>
 
</aimWindow>
