<?xml version="1.0"?>

<!-- ***** BEGIN LICENSE BLOCK *****
   - Version: MPL 1.1/GPL 2.0/LGPL 2.1
   -
   - The contents of this file are subject to the Mozilla 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/MPL/
   -
   - 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 the Initial Developer are Copyright (C) 1998-1999
   - the Initial Developer. All Rights Reserved.
   -
   - Contributor(s):
   -   Bruno Escherl <aqualon@aquachan.de>
   -
   - Alternatively, the contents of this file may be used under the terms of
   - either the GNU General Public License Version 2 or later (the "GPL"), or
   - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
   - in which case the provisions of the GPL or the LGPL are applicable instead
   - of those above. If you wish to allow use of your version of this file only
   - under the terms of either the GPL or the LGPL, and not to allow others to
   - use your version of this file under the terms of the MPL, indicate your
   - decision by deleting the provisions above and replace them with the notice
   - and other provisions required by the LGPL or the GPL. If you do not delete
   - the provisions above, a recipient may use your version of this file under
   - the terms of any one of the MPL, the GPL or the LGPL.
   -
   - ***** END LICENSE BLOCK ***** -->

<!DOCTYPE overlay SYSTEM "chrome://inspector/locale/prefs.dtd">

<?xml-stylesheet href="chrome://inspector/skin/"?>

<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <prefpane id="inspector_pane"
            label="&Inspector.label;"
            script="chrome://inspector/content/extensions/wsm-colorpicker.js
                    chrome://inspector/content/prefs/pref-inspector.js
                    chrome://inspector/content/prefs/pref-sidebar.js
                    chrome://inspector/content/jsutil/xpcom/XPCU.js
                    chrome://inspector/content/jsutil/rdf/RDFU.js">

    <stringbundle id="inspector-bundle" src="chrome://inspector/locale/inspector.properties"/>

    <preferences id="inspector_preferences">
      <preference id="inspector.blink.on"
                  name="inspector.blink.on"
                  type="bool"
                  onchange="enableBlinkPrefs(this.value);"/>
      <preference id="inspector.blink.border-color"
                  name="inspector.blink.border-color"
                  type="string"/>
      <preference id="inspector.blink.border-width"
                  name="inspector.blink.border-width"
                  type="int"/>
      <preference id="inspector.blink.duration"
                  name="inspector.blink.duration"
                  type="int"/>
      <preference id="inspector.blink.speed"
                  name="inspector.blink.speed"
                  type="int"/>
      <preference id="inspector.blink.invert"
                  name="inspector.blink.invert"
                  type="bool"/>
      <!-- preference id="inspector.hooks.navigator"
                  name="inspector.hooks.navigator"
                  type="bool"/ -->
    </preferences>

    <groupbox id="tbxBlink">
      <caption label="&elementBlinking.label;"/>
      <vbox>
        <checkbox id="cbElOn" label="&blinkSelectedElement.label;"
                  preference="inspector.blink.on"
                  accesskey="&blinkSelectedElement.accesskey;"/>
        <grid>
          <columns>
            <column/>
            <column flex="1"/>
          </columns>
          <rows>
            <row align="center">
              <label id="lbElBorderColor" control="cprElBorderColor"
                     value="&borderColor.label;"
                     accesskey="&borderColor.accesskey;"/>
              <hbox align="center">
                <colorpicker id="cprElBorderColor" type="button"
                             preference="inspector.blink.border-color"/>
              </hbox>
            </row>
            <row align="center">
              <label id="lbElBorderWidth" control="txfElBorderWidth"
                     value="&borderWidth.label;"
                     accesskey="&borderWidth.accesskey;"/>
              <hbox align="center">
                <textbox id="txfElBorderWidth" style="width: 4em"
                         preference="inspector.blink.border-width"/>
                <label value="&px.label;"/>
              </hbox>
            </row>
            <row align="center">
            <label id="lbElDuration" control="txfElDuration"
                   value="&blinkDuration.label;"
                   accesskey="&blinkDuration.accesskey;"/>
              <hbox align="center">
                <textbox id="txfElDuration" style="width: 4em"
                         preference="inspector.blink.duration"/>
               <label value="&ms.label;"/>
              </hbox>
            </row>
            <row align="center">
              <label id="lbElSpeed" control="txfElSpeed"
                     value="&blinkSpeed.label;"
                     accesskey="&blinkSpeed.accesskey;"/>
              <hbox align="center">
                <textbox id="txfElSpeed" style="width: 4em"
                         preference="inspector.blink.speed"/>
                <label value="&ms.label;"/>
              </hbox>
            </row>
          </rows>
        </grid>
        <vbox align="start">
          <checkbox id="cbElInvert" label="&invertColors.label;"
                    preference="inspector.blink.invert"
                    accesskey="&invertColors.accesskey;"/>
        </vbox>
      </vbox>
    </groupbox>

    <groupbox id="tbxSidebar">
      <caption label="&Sidebar.label;"/>
      <vbox flex="1">
        <vbox id="bxSidebarInstall" flex="1">
          <hbox>
            <description id="txSidebarMsg" flex="1">&installHowTo.label;</description>
          </hbox>
          <button id="btnSidebarInstall" label="&install.label;"
                  oncommand="sidebarPref.installSidebar()"
                  accesskey="&install.accesskey;"/>
        </vbox>
      </vbox>
    </groupbox>

    <!--
    <vbox>
      <checkbox id="cbxNavIntegration" label="&addNavigatorHooks.label;"
                preference="inspector.hooks.navigator"
                accesskey="&addNavigatorHooks.accesskey;"/>
    </vbox>
    -->

  </prefpane>
</overlay>
