<?xml version="1.0" encoding="utf-8" ?>

<!--
 * @(#)alarmSound.xml
 *
 * Copyright: Yokogawa, All rights reserved.
 * YOKOGAWA PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 * Author:    C. Horevoorts
 *
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  Changes ....
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  Who When    Change  What
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  CTN Jul-08  e10534  First version documented
 *  HVS Apr-12  e10657  Correct int and long types
 *  HVS Feb-14  e10813  Correct label of enterprise group
 *  BHS Feb-17  i11720  Increase the max. # of nodes in WEB-HMI alarm overviews
 *  BNL Jul-18  e11986  Edit Module HTML Mode
 *  BNL Feb-19  e11986  Disallow connection to positional properties in HTML mode
 *  HVS Jun-20  e12272  Port to JViews 2017.2
 *  TSO May-20  i12263  Properties for setup file and disable/enable on acknowledged alarms added
 *
-->

<componentType name="alarmSound"
               containedBy="JComponent"
               icon="stock_alarm-sound-16.png"
               description="AlarmSound"
               class="fasttools.jwui.components.alarms.AlarmSound"
               paletteOrder="207"
               html="no">

  <category name="General">
    <property name="name" type="java.lang.String" defaultAllowed="no" connectAllowed="no"/>
  </category>

  <category name="Transformation">
    <property name="x" type="double" defaultAllowed="no" setter="setXAsFloat" getter="getXAsFloat" html="noConnect"/>
    <property name="y" type="double" defaultAllowed="no" setter="setYAsFloat" getter="getYAsFloat" html="noConnect"/>
    <property name="top" type="double" defaultAllowed="no" html="noConnect"/>
    <property name="bottom" type="double" defaultAllowed="no" html="noConnect"/>
    <property name="left" type="double" defaultAllowed="no" html="noConnect"/>
    <property name="right" type="double" defaultAllowed="no" html="noConnect"/>
    <property name="rotation" type="double" defaultAllowed="no"/>
    <property name="shear" type="double" defaultAllowed="no"/>
  </category>

  <category name="Visibility">
    <property name="visible" type="boolean" setter="setVisibleAsBoolean" getter="isVisibleAsBoolean"/>
  </category>

  <category name="Filtering">
    <property name="userDataFilterType" type="fasttools.jwui.components.alarms.property.UserDataFilterType"/>
    <property name="userDataFilterValue" type="java.lang.String"/>
    <property name="dataFilterType" type="fasttools.jwui.components.alarms.property.DataFilterType"/>
    <property name="acknowledgedAlarmsEnabled" type="boolean"/>
  </category>

  <category name="Alarming">
    <property name="enabledSound" type="boolean"/>
    <property name="volume" type="int"/>
    <property name="playing" type="boolean" bound="yes" save="no" writeAllowed="no" defaultAllowed="no"/>
  </category>

  <category name="SoundControl">
    <property name="continuouslyAlarming" type="boolean"/>
    <property name="requestForStopping" type="boolean"/>
    <property name="increaseVolume" type="boolean"/>
    <property name="increaseVolumeFrom" type="int"/>
    <property name="increaseVolumeUpTo" type="int"/>
    <property name="alarmIncreaseRate" type="int"/>
    <property name="silenceTime" type="long"/>
  </category>

  <category name="SoundFiles" description="Based on priority">
    <property name="soundName_00" type="java.lang.String"/>
    <property name="soundName_01" type="java.lang.String"/>
    <property name="soundName_02" type="java.lang.String"/>
    <property name="soundName_03" type="java.lang.String"/>
    <property name="soundName_04" type="java.lang.String"/>
    <property name="soundName_05" type="java.lang.String"/>
    <property name="soundName_06" type="java.lang.String"/>
    <property name="soundName_07" type="java.lang.String"/>
    <property name="soundName_08" type="java.lang.String"/>
    <property name="soundName_09" type="java.lang.String"/>
    <property name="soundName_10" type="java.lang.String"/>
    <property name="soundName_11" type="java.lang.String"/>
    <property name="soundName_12" type="java.lang.String"/>
    <property name="soundName_13" type="java.lang.String"/>
    <property name="soundName_14" type="java.lang.String"/>
    <property name="soundName_15" type="java.lang.String"/>
    <property name="downwardsPriority" type="boolean"/>
  </category>
  
  <category name="EnterpriseAlarmLocations">
    <property name="alarmSourceLocation" array="0..39" type="fasttools.jwui.enterprise.EnterpriseNode" null="none" enterprise="yes" connectAllowed="no" advanced="yes"/>
  </category>
  
  <category name="Misc">
    <property name="setupFile" type="java.lang.String" advanced="yes"/>
  </category>
  
</componentType>