<?xml version="1.0"?>



<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/content/activityBinding.css"?>
<?xml-stylesheet href="chrome://messenger/skin/activity/activity.css"?>

<!DOCTYPE window [
<!ENTITY % activityManagerDTD SYSTEM "chrome://messenger/locale/activity.dtd">
%activityManagerDTD;
<!ENTITY % editMenuOverlayDTD SYSTEM
"chrome://global/locale/editMenuOverlay.dtd">
%editMenuOverlayDTD;
]>

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        id="activityManager" windowtype="Activity:Manager"
        orient="vertical" title="&activity.title;"
        statictitle="&activity.title;"
        width="&window.width2;" height="&window.height;"
        screenX="10" screenY="10"
        persist="width height screenX screenY sizemode"
        onload="activityObject.startup();"
        onunload="activityObject.shutdown();"
        onclose="return closeWindow(false);">
      
  <script type="application/javascript"
          src="chrome://messenger/content/activity.js"/>
  <script type="application/javascript"
          src="chrome://global/content/contentAreaUtils.js"/>
  <script type="application/javascript"
          src="chrome://global/content/nsDragAndDrop.js"/>
  <script type="application/javascript"
          src="chrome://global/content/globalOverlay.js"/>
  
  <stringbundleset id="activitySet">
    <stringbundle id="brandStrings"
                  src="chrome://branding/locale/brand.properties"/>
    <stringbundle id="activityStrings"
                  src="chrome://messenger/locale/activity.properties"/>
  </stringbundleset>

  <!-- Use this commandset for command which do not depend on focus or
       selection -->
  <commandset id="generalCommands">
    <command id="cmd_selectAllActivities"
             oncommand="activityObject.selectAll();"/>
    <command id="cmd_clearList" oncommand="activityObject.clearActivityList();"/>
  </commandset>

  <keyset id="activityKeys">
    <key id="key_removeFromList"  keycode="VK_DELETE"
         oncommand="performCommand('cmd_removeFromList');"/>
    <key id="key_removeFromList2" keycode="VK_BACK"
         oncommand="performCommand('cmd_removeFromList');"/>
    <key id="key_close" key="&cmd.close.commandkey;"
         oncommand="closeWindow(true);" modifiers="accel"/>
    <key id="key_close2" key="&cmd.close2.commandkey;"
         oncommand="closeWindow(true);" modifiers="accel"/>
    <key keycode="VK_ESCAPE" oncommand="closeWindow(true);"/>

    <key id="key_selectAllActivities" key="&selectAllCmd.key;" modifiers="accel"
         command="cmd_selectAllActivities"/>
  </keyset>
  
  <vbox id="contextMenuPalette" hidden="true">
    <menuitem id="menuitem_selectAll" label="&selectAllCmd.label;"
              accesskey="&selectAllCmd.accesskey;"
              command="cmd_selectAllActivities"/>
  </vbox>
  

  <richlistbox id="activityView" class="activityview" seltype="multiple"
               flex="1" onkeypress="activityObject.processKeyEvent(event)">
  </richlistbox>

  <windowdragbox id="search" align="center">
    <button id="clearListButton" command="cmd_clearList"
            label="&cmd.clearList.label;"
            accesskey="&cmd.clearList.accesskey;"
            tooltiptext="&cmd.clearList.tooltip;"/>
    <spacer flex="1"/>
  </windowdragbox>

</window>
