<?xml version="1.0" encoding="UTF-8"?>
<!--
****************************************************************************

     File Name:   alertMeWhen.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"?>

<aolDialog translucent="true" chromeless="false"
        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"
        title="&BL.alertMeWhen.Title;"
        id="alertMeWhenWindow" 
        s:width="&BL.alertMeWhen.Width;" 
        s:height="&BL.alertMeWhen.Height;"
        >
        
    <library xmlns="http://www.aol.com/boxely/resource.xsd"
            xmlns:box="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"
            persists="true">
        <style id="alertGroupStyle" hAlign="start" vSpace="-5"/>
    </library>
        
    <script id="main" language="jscript" href="box://imApp/content/bl/alertMeWhen.js"/>

    <commandGroup>
        <command id="cmdOk" action="onOK();"/>
        <command id="cmdCancel" action="onCancel();"/>
    </commandGroup>

	<reaction event="constructed" action="onConstructed();"/>
	<reaction event="initialized" action="onInitialized();"/>
	<reaction event="close" action="onClose();"/>
	<reaction event="keyPress" keyCode="ESCAPE" action="scene.close();"/>
	<reaction event="keyDown" keyCode="ENTER" action="toolkit:AcceptDialog"/>

    <hbox s:flex="1" s:vAlign="stretch" s:hAlign="center">
        
        <vbox style="windowPane" s:margin="0 3 8 3" s:flex="1">
            <vbox s:flex="1" s:padding="5">
                <aolLabel value="&BL.alertMeWhen.AlertMeWhen;" />
                <hbox>
                    <aolCheckButton id="availableCheckBox" label="&BL.alertMeWhen.Available;" />
                </hbox>
                <hbox>
                    <aolCheckButton id="unavailableCheckBox" label="&BL.alertMeWhen.Unavailable;" />
                </hbox>

                <spacer s:height="5" />
                <aolLabel value="&BL.alertMeWhen.AlertMeHowOften;" />
                <radioBox id="alertWhenRadioBox" accName="&BL.alertMeWhen.AlertMeHowOften;" s:orient="vertical" style="alertGroupStyle">
                    <aolRadioButton value="1" label="&BL.alertMeWhen.ThisSessionOnly;" />
                    <aolRadioButton value="2" label="&BL.alertMeWhen.Everytime;"/>
                    <aolRadioButton value="3" label="&BL.alertMeWhen.Never;"/>
                </radioBox>
                
                <spacer s:height="5" />
                <aolLabel value="&BL.alertMeWhen.AlertMeHow;" />
                <hbox>
                    <aolCheckButton id="notificationsCheckBox" label="&BL.alertMeWhen.UseANotification;" style="alertGroupStyle"/>
                </hbox>
                <hbox s:hAlign="start" s:vAlign="center">
                    <aolCheckButton id="alertSoundCheckBox" label="&BL.alertMeWhen.AlertSound;" style="alertGroupStyle" />
                    <aolCombobox id="alertSoundCombo" s:width="110"/>
                    <aolTextButton label="&BL.alertMeWhen.Find;" s:fontBold="true" on:command="onFind();"/>
                    <aolTextButton label="&BL.alertMeWhen.Preview;" s:fontBold="true" on:command="onPreview();"/>
                </hbox>
                <aolLabel id="availableState" collapsed="true" />
            </vbox>


            <spacer s:height="15"/>
            <hbox s:hAlign="center" style="bottomButtonGroupContainer" >
                <aolButton id="okButton" label="&BL.alertMeWhen.OK;" defaultButton="true" command="cmdOk"/>
                <aolButton id="cancelButton" label="&BL.alertMeWhen.Cancel;" cancelButton="true" command="cmdCancel"/>
            </hbox>
        </vbox>
    </hbox>
</aolDialog>
