<?xml version="1.0"?> <!-- -*- tab-width: 4; indent-tabs-mode: nil -*- -->

<!-- The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/

Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.

The Original Code is Mozilla Communicator client code, released
March 31, 1998.

The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.

Contributor(s): ______________________________________. -->

<?xml-stylesheet href="chrome://global/skin/console.css" type="text/css"?> 
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?> 
<?xml-stylesheet href="chrome://global/content/console.css" type="text/css"?> 

<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>

<!DOCTYPE window SYSTEM "chrome://global/locale/console.dtd" >

<window id="main-window" xmlns:html="http://www.w3.org/1999/xhtml"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        title="&console.title;"
        onload="onLoadJSConsole()"
        onunload="onUnloadJSConsole()"
        windowtype="global:console"
        align="vertical"
        width="640" height="480"
        screenX="10" screenY="10"
        persist="screenX screenY width height"
> 

<script language="javascript" src="chrome://global/content/strres.js"/>
<script language="javascript" src="chrome://global/content/globalOverlay.js"/>
<script language="javascript" src="chrome://global/content/console.js"/>

<broadcasterset>
  <broadcaster id="cmd_quit"/>
</broadcasterset>

<toolbox>
  <menubar id="main-menubar" class="chromeclass-menubar">
    <menu id="menu_File">
      <menupopup id="menu_FilePopup">
        <menuitem id="menu_close" oncommand="window.close()"/>
      </menupopup>
    </menu>

    <menu id="menu_Edit">
      <menupopup id="dummyid">
        <menuitem id="menu_cut" disabled="true"/>
        <menuitem id="menu_copy" disabled="true"/>
        <menuitem id="menu_paste" disabled="true"/>
      </menupopup>
    </menu>
  
    <!-- tasks menu filled from tasksOverlay -->
    <menu id="tasksMenu"/>

    <!-- help menu filled from globalOverlay -->
    <menu id="menu_Help"/>
  </menubar>

  <toolbar id="toolbar">
    <button class="button-toolbar" observes="Console:ShowAll" oncommand="changeMode('all', this);" value="&all.label;"/>
    <button class="button-toolbar" observes="Console:ShowErrors" oncommand="changeMode('errors', this);" value="&errors.label;"/>
    <button class="button-toolbar" observes="Console:ShowWarnings" oncommand="changeMode('warnings', this);" value="&warnings.label;"/>
    <button class="button-toolbar" observes="Console:Clear" oncommand="changeMode('clear', this);" value="&clear.label;"/>
  </toolbar>
</toolbox>
  
  <tree flex="1" id="console" context="context">
    <treecolgroup>
      <treecol flex="1"/>
    </treecolgroup>
    <treechildren id="consoleTreeChildren" flex="1"/>
  </tree>

  <popupset>
    <popup id="context">
      <menuitem type="radio" observes="Console:ShowAll" value="&all.label;" oncommand="changeMode('all', this);"/>
      <menuitem type="radio" observes="Console:ShowErrors" value="&errors.label;" oncommand="changeMode('errors', this);"/>
      <menuitem type="radio" observes="Console:ShowWarnings" value="&warnings.label;" oncommand="changeMode('warnings', this);"/>
      <menuitem type="radio" observes="Console:Clear" value="&clear.label;" oncommand="changeMode('clear', this);"/>
    </popup>
  </popupset>  
  
  <broadcasterset id="broadcasterset">
    <broadcaster id="Console:ShowAll" toggled="true" checked="true"/>
    <broadcaster id="Console:ShowErrors"/>
    <broadcaster id="Console:ShowWarnings"/>
    <broadcaster id="Console:Clear"/>
  </broadcasterset>
  
</window>