<?xml version="1.0"?>
<!-- See license.txt for terms of usage -->

<?xul-overlay href="firefox/firebugMenuOverlay.xul"?>
<?xul-overlay href="chrome://firebug/content/cookies/cookiePanel.xul"?>

<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
         xmlns:html="http://www.w3.org/1999/xhtml">

    <stringbundleset id="stringbundleset">
        <stringbundle id="strings_firebug" src="chrome://firebug/locale/firebug.properties"/>
    </stringbundleset>

    <popupset id="mainPopupSet">
        <menupopup id="fbContextMenu" onpopupshowing="return Firebug.chrome.onContextShowing(event);">
            <menuitem label="Copy" command="cmd_copy" class="fbInternational"/>
        </menupopup>

        <menupopup id="fbInlineEditorPopup" />

        <tooltip id="fbTooltip" class="fbURLMenuItem"
            onpopupshowing="return Firebug.chrome.onTooltipShowing(event);"/>

        <panel id="fbQuickInfoPanel" width="210" noautofocus="true"
            onmousedown="Firebug.QuickInfoBox.quickInfoBoxHandler(event);"
            onmouseover="Firebug.QuickInfoBox.quickInfoBoxHandler(event);"
            onmouseout="Firebug.QuickInfoBox.quickInfoBoxHandler(event);">
            <vbox></vbox>
        </panel>

        <menupopup id="fbNavigationHistoryMenu"
            oncommand="Firebug.NavigationHistory.onHistoryCommand(event, Firebug.currentContext)"
            onpopupshowing="return Firebug.NavigationHistory.onPopupShowing(this, Firebug.currentContext)" />

        <panel id="fbCommandLineCompletionList" class="fbCommandLineCompletionPanel"
            noautofocus="true">
        </panel>

        <menupopup id="fbCommandHistory" noautofocus="true" ignorekeys="true">
        </menupopup>

        <!-- Context menu for the Command Editor -->
        <menupopup id="fbCommandEditorPopup" />
    </popupset>

    <!-- Main UI -->
    <vbox id="fbContentBox">
        <box id="fbPanelBox" flex="1">
            <panelBar id="fbPanelBar1" class="panelBar" flex="3" persist="width,height">
                <hbox id="fbPanelBar1-tabBox" class="panelTabBox">
                    <hbox id="fbPanelBar1-innerToolbar" class="innerToolbar fbInternational"
                            role="toolbar" aria-label="a11y.labels.firebug_tools">
                        <hbox id="fbPanelBar1-buttons">

                            <!-- Firebug Icon Menu -->
                            <toolbarbutton id="fbFirebugMenu" type="menu"
                                tooltiptext="firebug_options"
                                role="button" aria-haspopup="true" owns="fbFirebugMenuPopup"
                                class="fbInternational">

                                <!-- Button image-->
                                <image src="chrome://firebug/skin/firebug.png"/>

                                <menupopup id="menu_firebug_iconMenu" class="fbFirebugMenuPopup"
                                    onpopupshowing="return Firebug.browserOverlay.onMenuShowing(this, event);"
                                    onpopuphiding="return Firebug.browserOverlay.onMenuHiding(this, event);">
                                    <!-- Content comes from firebugMenuContent -->
                                </menupopup>
                            </toolbarbutton>

                            <!-- HTML Inspector -->
                            <toolbarbutton id="fbInspectButton" tooltiptext="firebug.InspectTooltip"
                                command="cmd_firebug_toggleInspecting" collapsed="false"
                                class="fbInternational">
                            </toolbarbutton>

                            <toolbarseparator id="fbInspectSeparator"/>

                            <!-- History of Navigation -->
                            <toolbaritem contextmenu="fbNavigationHistoryMenu" class="noTabStop">
                                <toolbarbutton id="fbNavigateBackButton" disabled="true"
                                    tooltiptext="firebug.history.Go back"
                                    command="cmd_firebug_navBack" class="fbInternational"/>
                                <toolbarbutton id="fbNavigateForwardButton" disabled="true"
                                    tooltiptext="firebug.history.Go forward"
                                    command="cmd_firebug_navForward" class="fbInternational"/>
                            </toolbaritem>

                            <toolbarseparator id="fbNavigationSeparator"/>

                            <toolbarbutton id="fbCommandPopupButton"
                                tooltiptext="panel.tooltip.Show_Command_Line_Popup"
                                command="cmd_firebug_toggleCommandPopup" class="fbInternational">
                            </toolbarbutton>
                        </hbox>

                        <!-- Panel selector (list of all panels) -->
                        <panelBarTabList id="panelBarTabList" tooltiptext="firebug.panel selector"
                            class="fbInternational"/>
                    </hbox>

                    <!-- xxxHonza: ltr should come from &locale.dir; -->
                    <panelBarArrowscrollbox id="fbPanelBar1-Arrowscrollbox" orient="horizontal"
                        flex="100" chromedir="ltr"
                        clicktoscroll="true"
                        class="panelbar-arrowscrollbox">

                        <!-- Tab Bar -->
                        <hbox id="fbPanelBar1-panelTabs" class="panelTabs" role="tablist"
                            aria-label="firebug panels" />
                    </panelBarArrowscrollbox>

                    <!-- Search Box -->
                    <splitter resizebefore="flex" resizeafter="flex" class="fbsearch-splitter"/>
                    <textbox flex="70" id="fbSearchBox" type="fbSearchBox"/>

                    <!-- Open In New Window & Minimize & Close -->
                    <hbox id="fbWindowButtons" role="toolbar" class="innerToolbar"
                        aria-label="firebug window" context="_child">
                        <menupopup onpopupshowing="Firebug.browserOverlay.onPositionPopupShowing(this)"/>
                        <toolbarbutton id="fbMinimizeButton"
                            class="toolbarbutton-iconic fbInternational"
                            tooltiptext="Minimize Firebug" command="cmd_firebug_minimizeFirebug"/>
                        <tooltip id="fbDetachButtonTooltip"
                            onpopupshowing="return Firebug.onShowDetachTooltip(this)"/>
                        <toolbarbutton id="fbDetachButton" class="toolbarbutton-iconic"
                            tooltip="fbDetachButtonTooltip" command="cmd_firebug_detachFirebug"/>
                        <toolbarbutton id="fbCloseButton"
                            class="toolbarbutton-iconic fbInternational"
                            tooltiptext="firebug.tip.Deactivate_Firebug" command="cmd_firebug_closeFirebug"/>
                    </hbox>
                </hbox>

                <!-- Firebug Panels Content -->
                <box id="fbPanelPane" flex="1" persist="orient">

                    <vbox flex="3">
                        <toolbox id="fbToolbox">
                            <toolbar id="fbToolbar" align="center" role="toolbar">

                                <hbox id="fbToolbarInner" class="innerToolbar"
                                    insertbefore="fbDetachButton" flex="1" align="center">

                                    <!-- Break On Next -->
                                    <hbox id="fbBonButtons" collapsed="true" class="noTabStop">
                                        <toolbarbutton id="fbBreakOnNextButton"
                                            command="cmd_firebug_toggleBreakOn"
                                            tooltiptext="script.Break On Next" breakable="disabled"
                                            class="fbInternational">
                                            <stack id="fbBreakOnNextButtonStack">
                                                <image id="fbBreakOnImage" class="fbBreakOnImage"></image>
                                                <image id="fbBreakOnImageArmed" class="fbBreakOnImage"></image>
                                                <!-- Badges -->
                                                <image id="fbBreakOnImageError" class="fbBreakOnImage"></image>
                                                <image id="fbBreakOnImageMutate" class="fbBreakOnImage"></image>
                                                <image id="fbBreakOnImageNext" class="fbBreakOnImage"></image>
                                                <image id="fbBreakOnImageXHR" class="fbBreakOnImage"></image>
                                            </stack>
                                        </toolbarbutton>
                                    </hbox>

                                    <hbox id="fbConsoleButtons" collapsed="true" class="noTabStop">
                                        <toolbarseparator class="fbPanelSpecificButtonsSeparator"/>
                                        <toolbarbutton id="fbConsoleClear" label="firebug.Clear"
                                            class="toolbar-text-button fbInternational"
                                            tooltiptext="firebug.ClearTooltip" command="cmd_firebug_clearConsole"/>
                                        <toolbarbutton id="fbConsolePersist"
                                            label="firebug.console.Persist"
                                            class="toolbar-text-button fbInternational"
                                            type="checkbox"
                                            tooltiptext="firebug.console.Do_Not_Clear_On_Reload2"
                                            command="cmd_firebug_togglePersistConsole"/>
                                        <toolbarbutton id="fbToggleProfiling" label="firebug.Profile"
                                            class="toolbar-text-button fbInternational"
                                            type="checkbox" command="cmd_firebug_toggleProfiling"/>
                                        <!-- <toolbarbutton id="fbToggleMemoryProfiling" label="firebug.Memory Profile"
                                            class="toolbar-text-button fbInternational"
                                            type="checkbox" command="cmd_firebug_toggleMemoryProfiling"/> -->
                                        <toolbarseparator class="fbPanelSpecificButtonsSeparator"/>
                                        <hbox id="fbConsoleFilterButtons" class="noTabStop">
                                            <toolbarbutton
                                                id="fbConsoleFilter-all"
                                                type="checkbox"
                                                label="firebug.console.All"
                                                class="toolbar-text-button fbConsoleFilter fbInternational"
                                                tooltiptext="firebug.console.Show All Log Entries"
                                                oncommand="Firebug.Console.onToggleFilter(event, Firebug.currentContext, 'all')"/>
                                            <toolbarbutton
                                                id="fbConsoleFilter-error"
                                                type="checkbox"
                                                label="firebug.console.Errors"
                                                class="toolbar-text-button fbConsoleFilter fbInternational"
                                                tooltiptext="firebug.console.Filter by Errors"
                                                oncommand="Firebug.Console.onToggleFilter(event, Firebug.currentContext, 'error')"/>
                                            <toolbarbutton
                                                id="fbConsoleFilter-warning"
                                                type="checkbox"
                                                label="firebug.console.Warnings"
                                                class="toolbar-text-button fbConsoleFilter fbInternational"
                                                tooltiptext="firebug.console.Filter by Warnings"
                                                oncommand="Firebug.Console.onToggleFilter(event, Firebug.currentContext, 'warning')"/>
                                            <toolbarbutton
                                                id="fbConsoleFilter-info"
                                                type="checkbox"
                                                label="firebug.console.Info"
                                                class="toolbar-text-button fbConsoleFilter fbInternational"
                                                tooltiptext="firebug.console.Filter by Info"
                                                oncommand="Firebug.Console.onToggleFilter(event, Firebug.currentContext, 'info')"/>
                                            <toolbarbutton
                                                id="fbConsoleFilter-debug"
                                                type="checkbox"
                                                label="firebug.console.Debug Info"
                                                class="toolbar-text-button fbConsoleFilter fbInternational"
                                                tooltiptext="firebug.console.Filter by Debug Info"
                                                oncommand="Firebug.Console.onToggleFilter(event, Firebug.currentContext, 'debug')"/>
                                        </hbox>
                                    </hbox>

                                    <hbox id="fbHTMLButtons" collapsed="true" class="noTabStop" >
                                        <toolbarseparator class="fbPanelSpecificButtonsSeparator"/>
                                        <toolbarbutton id="fbToggleHTMLEditing" label="firebug.Edit"
                                            class="toolbar-text-button fbInternational"
                                            tooltiptext="firebug.EditHTMLTooltip"
                                            command="cmd_firebug_toggleHTMLEditing"/>
                                    </hbox>

                                    <!-- Toolbar buttons for the CSS panel -->
                                    <hbox id="fbCSSButtons" collapsed="true" class="noTabStop">
                                        <toolbarbutton id="fbToggleCSSEditing"
                                            label="firebug.Edit"
                                            class="fbInternational"
                                            tooltiptext="firebug.EditCSSTooltip"
                                            command="cmd_firebug_togglecssEditMode"
                                            type="menu-button">
                                            <menupopup id="fbCSSEditorMenu"
                                                onpopupshowing="Firebug.CSSModule.onOptionsShowing(this)">
                                                <!-- id must be menu_firebug_+getEditOptionKey+mode -->
                                                <menuitem id="menu_firebug_cssEditModeSource" mode="Source"
                                                    label="firebug.css.sourceEdit"
                                                    tooltiptext="firebug.css.sourceEdit.tooltip"
                                                    oncommand="Firebug.CSSModule.onEditMode(event, this)"
                                                    type="radio" autocheck="false"
                                                    class="fbInternational"/>
                                                <menuitem id="menu_firebug_cssEditModeLive" mode="Live"
                                                    label="firebug.css.liveEdit"
                                                    tooltiptext="firebug.css.liveEdit.tooltip"
                                                    oncommand="Firebug.CSSModule.onEditMode(event, this)"
                                                    type="radio" autocheck="false"
                                                    class="fbInternational"/>
                                            </menupopup>
                                        </toolbarbutton>
                                    </hbox>

                                    <hbox id="fbScriptButtons" collapsed="true" class="noTabStop">
                                        <toolbarseparator class="fbPanelSpecificButtonsSeparator"/>
                                        <tooltip id="fbScriptFilterMenuTooltip" role="presentation"
                                            onpopupshowing="return Firebug.Debugger.onScriptFilterMenuTooltipShowing(this, Firebug.currentContext)"/>
                                        <toolbarbutton id="fbScriptFilterMenu" type="menu" tooltiptext="script.tip.Script_Type"
                                            tooltip="fbScriptFilterTooltip" role="button" aria-haspopup="true" class="fbInternational">
                                            <menupopup
                                                oncommand="return Firebug.Debugger.onScriptFilterMenuCommand(event, Firebug.currentContext)"
                                                onpopupshowing="return Firebug.Debugger.onScriptFilterMenuPopupShowing(this, Firebug.currentContext)"
                                                onpopuphiding="return Firebug.Debugger.onScriptFilterMenuPopupHiding(this, Firebug.currentContext)">
                                                <menuitem type="radio" name="fbScriptFilterMenu"
                                                    value="static" tooltiptext="script.tip.Script_Filter_Static"
                                                    class="fbInternational"/>
                                                <menuitem type="radio" name="fbScriptFilterMenu"
                                                    value="evals" tooltiptext="script.tip.Script_Filter_Evals"
                                                    class="fbInternational"/>
                                                <menuitem type="radio" name="fbScriptFilterMenu"
                                                    value="events" tooltiptext="script.tip.Script_Filter_Events"
                                                    class="fbInternational"/>
                                                <menuitem type="radio" name="fbScriptFilterMenu"
                                                    value="all" tooltiptext="script.tip.Script_Filter_All"
                                                    class="fbInternational"/>
                                            </menupopup>
                                        </toolbarbutton>
                                    </hbox>

                                    <hbox id="fbNetButtons" collapsed="true" class="noTabStop">
                                        <toolbarseparator class="fbPanelSpecificButtonsSeparator"/>
                                        <toolbarbutton id="fbNetClear" label="firebug.Clear"
                                            class="toolbar-text-button fbInternational"
                                            tooltiptext="net.tip.Clear" command="cmd_firebug_clearNet"/>
                                        <toolbarbutton id="fbNetPersist" label="firebug.console.Persist"
                                            class="toolbar-text-button fbInternational"
                                            tooltiptext="firebug.console.Do_Not_Clear_On_Reload2"
                                            command="cmd_firebug_togglePersistNet"/>
                                        <hbox id="fbNetButtonsFilter" class="noTabStop">
                                            <toolbarseparator/>
                                            <toolbarbutton id="fbNetFilter-all"
                                                type="checkbox"
                                                label="net.filter.label.All"
                                                tooltiptext="net.filter.tooltip.All"
                                                class="toolbar-text-button fbNetFilter fbInternational"
                                                oncommand="Firebug.NetMonitor.onToggleFilter(event, Firebug.currentContext, 'all')"/>
                                            <toolbarbutton id="fbNetFilter-html"
                                                type="checkbox"
                                                label="net.filter.label.HTML"
                                                tooltiptext="net.filter.tooltip.HTML"
                                                class="toolbar-text-button fbNetFilter fbInternational"
                                                oncommand="Firebug.NetMonitor.onToggleFilter(event, Firebug.currentContext, 'html')"/>
                                            <toolbarbutton id="fbNetFilter-css"
                                                type="checkbox"
                                                label="net.filter.label.CSS"
                                                tooltiptext="net.filter.tooltip.CSS"
                                                class="toolbar-text-button fbNetFilter fbInternational"
                                                oncommand="Firebug.NetMonitor.onToggleFilter(event, Firebug.currentContext, 'css')"/>
                                            <toolbarbutton id="fbNetFilter-js"
                                                type="checkbox"
                                                label="net.filter.label.JS"
                                                tooltiptext="net.filter.tooltip.JS"
                                                class="toolbar-text-button fbNetFilter fbInternational"
                                                oncommand="Firebug.NetMonitor.onToggleFilter(event, Firebug.currentContext, 'js')"/>
                                            <toolbarbutton id="fbNetFilter-xhr"
                                                type="checkbox"
                                                label="net.filter.label.XHR"
                                                tooltiptext="net.filter.tooltip.XHR"
                                                class="toolbar-text-button fbNetFilter fbInternational"
                                                oncommand="Firebug.NetMonitor.onToggleFilter(event, Firebug.currentContext, 'xhr')"/>
                                            <toolbarbutton id="fbNetFilter-image"
                                                type="checkbox"
                                                label="net.filter.label.Images"
                                                tooltiptext="net.filter.tooltip.Images"
                                                class="toolbar-text-button fbNetFilter fbInternational"
                                                oncommand="Firebug.NetMonitor.onToggleFilter(event, Firebug.currentContext, 'image')"/>
                                            <toolbarbutton id="fbNetFilter-plugin"
                                                type="checkbox"
                                                label="net.filter.label.Plugins"
                                                tooltiptext="net.filter.tooltip.Plugins"
                                                class="toolbar-text-button fbNetFilter fbInternational"
                                                oncommand="Firebug.NetMonitor.onToggleFilter(event, Firebug.currentContext, 'plugin')"/>
                                            <toolbarbutton id="fbNetFilter-media"
                                                type="checkbox"
                                                label="net.filter.label.Media"
                                                tooltiptext="net.filter.tooltip.Media"
                                                class="toolbar-text-button fbNetFilter fbInternational"
                                                oncommand="Firebug.NetMonitor.onToggleFilter(event, Firebug.currentContext, 'media')"/>
                                            <toolbarbutton id="fbNetFilter-font"
                                                type="checkbox"
                                                label="net.filter.label.Fonts"
                                                tooltiptext="net.filter.tooltip.Fonts"
                                                class="toolbar-text-button fbNetFilter fbInternational"
                                                oncommand="Firebug.NetMonitor.onToggleFilter(event, Firebug.currentContext, 'font')"/>
                                        </hbox>
                                    </hbox>

                                    <hbox id="fbTraceButtons" collapsed="true">
                                        <toolbarseparator/>
                                        <toolbarbutton id="fbTraceOpenConsole" class="toolbar-text-button"
                                            label="Open Console" tooltiptext="Open Console Tooltip"
                                            command="cmd_firebug_toggleTraceConsole"/>
                                    </hbox>

                                    <!-- Location buttons, used e.g. by the Script panel
                                        to show name of the currently displayed file name.
                                        The button also allows to pick another one. -->
                                    <hbox id="fbLocationButtons" collapsed="true">
                                        <toolbarseparator id="fbLocationSeparator"/>
                                        <toolbarbutton id="fbLocationList" type="menu"
                                            locationProvider="Firebug.chrome.getLocationProvider();"
                                            tooltip="fbTooltip" contextmenu="fbContextMenu"
                                            class="noTabStop fbInternational"
                                            role="button" aria-haspopup="true"
                                            aria-label="a11y.labels.file selector"/>
                                    </hbox>

                                    <!-- Status buttons, used e.g. by the HTML panel to show
                                        a parent list of the currently selected element. -->
                                    <hbox id="fbStatusButtons" flex="100" collapsed="true">
                                        <toolbarseparator id="fbStatusSeparator"/>
                                        <arrowscrollbox flex="1" smoothscroll="true" orient="horizontal">
                                            <panelStatus id="fbPanelStatus"
                                                tooltip="fbTooltip" contextmenu="fbContextMenu"
                                                class="noTabStop"/>
                                        </arrowscrollbox>
                                    </hbox>

                                    <hbox id="fbDebuggerButtons" collapsed="true" class="noTabStop">
                                        <toolbarbutton id="fbRerunButton" command="cmd_firebug_rerun"
                                            tooltiptext="firebug.Rerun"
                                            class="toolbar-image-button fbInternational" />
                                        <toolbarbutton id="fbContinueButton"
                                            command="cmd_firebug_resumeExecution"
                                            tooltiptext="firebug.Continue"
                                            class="toolbar-image-button fbInternational" />
                                        <toolbarbutton id="fbStepIntoButton" command="cmd_firebug_stepInto"
                                            tooltiptext="firebug.StepInto"
                                            class="toolbar-image-button fbInternational" />
                                        <toolbarbutton id="fbStepOverButton" command="cmd_firebug_stepOver"
                                            tooltiptext="firebug.StepOver"
                                            class="toolbar-image-button fbInternational" />
                                        <toolbarbutton id="fbStepOutButton" command="cmd_firebug_stepOut"
                                            tooltiptext="firebug.StepOut"
                                            class="toolbar-image-button fbInternational"/>
                                    </hbox>

                                    <!-- Toolbar buttons provided by extensions through Firebug API -->
                                    <hbox id="fbPanelToolbar" collapsed="true" class="noTabStop">
                                    </hbox>

                                    <!-- Toggle visibility of the side panels area -->
                                    <vbox id="fbToggleSidePanelsBox" collapsed="false" align="end" flex="1">
                                        <toolbarbutton id="fbToggleSidePanels"
                                            class="toolbar-image-button fbInternational"
                                            tooltiptext="firebug.tip.Toggle_Side_Panels"/>
                                    </vbox>
                                </hbox>
                            </toolbar>
                        </toolbox>

                        <deck anonid="deck" id="fbPanelBar1-deck" flex="1">
                            <!-- src attribute should be set here otherwise about:empty
                                is used by default, which could launch FirebugChrome.initializeUI
                                yet before the right content (i.e. panel.html) is loaded.
                                The same for the fbPanelBar1-browser. -->
                            <browser id="fbPanelBar1-browser"
                                     tooltip="fbTooltip" contextmenu="fbContextMenu"
                                     disablehistory="true"
                                     src="resource://firebugui/panel.html"
                                     type="content"
                                     role="tabpanel" />
                        </deck>
                    </vbox>

                    <splitter id="fbPanelSplitter"/>

                    <deck id="fbSidePanelDeck" persist="width,height">
                        <panelBar id="fbPanelBar2" class="panelBar">
                            <hbox id="fbPanelBar2-tabBox" class="panelTabBox" collapsed="true">
                                <panelBarArrowscrollbox id="fbPanelBar2-Arrowscrollbox"
                                    orient="horizontal" flex="1"
                                    style="min-width: 1px;" chromedir="ltr"
                                    clicktoscroll="true"
                                    class="panelbar-arrowscrollbox">
                                    <!-- Tab Side Bar -->
                                    <hbox id="fbPanelBar2-panelTabs"
                                        class="panelTabs fbInternational" role="tablist"
                                        aria-label="a11y.labels.firebug_side_panels" />
                                </panelBarArrowscrollbox>
                            </hbox>
                            <deck id="fbPanelBar2-deck" flex="1">
                                <browser id="fbPanelBar2-browser"
                                    tooltip="fbTooltip" contextmenu="fbContextMenu"
                                    disablehistory="true"
                                    src="resource://firebugui/panel.html"
                                    type="content"
                                    role="tabpanel" />
                            </deck>
                        </panelBar>

                        <!-- Command Editor -->
                        <vbox id="fbCommandEditorBox">
                            <hbox id="fbCommandEditor" flex="1" />
                            <hbox id="fbCommandToolbar">
                                <toolbarbutton id="fbCmdLineRunButton" label="firebug.Run"
                                    class="toolbar-text-button fbInternational"
                                    tooltiptext="firebug.Run_the_entered_command"
                                    oncommand="Firebug.CommandLine.enter(Firebug.currentContext)"/>
                                <toolbarbutton id="fbCmdLineClearButton" label="firebug.Clear"
                                    class="toolbar-text-button fbInternational"
                                    tooltiptext="firebug.Clear_the_Command_Editor"
                                    oncommand="Firebug.CommandLine.clear(Firebug.currentContext)"/>
                                <toolbarbutton id="fbCmdLineCopyButton" label="firebug.Copy"
                                    class="toolbar-text-button fbInternational"
                                    tooltiptext="firebug.Copy_the_script_as_a_bookmarklet"
                                    oncommand="Firebug.CommandLine.copyBookmarklet(Firebug.currentContext)"/>
                                <toolbarbutton id="fbCommandEditorHistoryButton"
                                    label="firebug.History"
                                    class="toolbarbutton fbInternational" type="checkbox"
                                    checked="false"
                                    tooltiptext="firebug.Insert_a_previously_entered_command"
                                    onmousedown="Firebug.CommandLine.commandHistory.show(this);"
                                    disabled="true"/>
                                <toolbarspacer flex="1"/>
                                <toolbarbutton id="fbToggleCommandEditor"
                                    tooltiptext="console.option.Show_Command_Line"
                                    class="toolbarbutton-iconic fbInternational"
                                    oncommand="Firebug.toggleCommandLine(false)"/>
                            </hbox>
                        </vbox>
                    </deck>
                </box>
            </panelBar>

            <!-- xxxHonza: where is this used? -->
            <menupopup id="inspectorPopup" style="background: transparent; border: 2px solid red">
                <label value="inspect"/>
            </menupopup>
        </box>

        <!-- CommandLine popup (available on other panels) -->
        <splitter id="fbCommandPopupSplitter" collapsed="true" collapse="after" />
        <vbox id="fbCommandPopup" collapsed="true" height="35" persist="width,height">
            <deck id="fbCommandPopup-deck" flex="1">
                <browser id="fbCommandPopupBrowser"
                     tooltip="fbTooltip" contextmenu="fbContextMenu"
                     disablehistory="true"
                     src="resource://firebugui/panel.html"
                     type="content"/>
            </deck>
        </vbox>

        <!-- Command Line (small) -->
        <hbox id="fbCommandBox">
            <toolbarbutton id="fbCommandLineHistoryButton" tooltiptext="Command_History"
                class="toolbarbutton-iconic fbInternational"
                onmousedown="Firebug.CommandLine.commandHistory.show(this);"
                disabled="true" type="checkbox" checked="false"/>
            <vbox pack="center">
                <label id="fbCommandArrow" value="&gt;&gt;&gt;"/>
            </vbox>
            <hbox flex="1">
                <vbox class="fbCommandHtmlBox" pack="center" flex="100%">
                    <!-- transparent background, silver text over user inputs -->
                    <html:div class="background">
                        <!-- completion text -->
                        <html:input id="fbCommandLineCompletion" class="fbCommandLine"
                            type="text" maxlength="2048" autocomplete="off" tabindex="-1" />
                        <textbox id="fbCommandLine" class="fbCommandLine" flex="1"
                            aria-autocomplete="inline" multiline="false" newlines="pasteintact"/>
                        <!-- font width measurer, contains 60 arbitrary characters -->
                        <html:span id="fbCommandLineMeasurer" class="fbCommandLine"
                            >aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</html:span>
                    </html:div>
                </vbox>
            </hbox>

            <!-- Toggle into multi-line command line -->
            <toolbarbutton id="fbToggleCommandLine" tooltiptext="console.option.Show_Command_Editor"
                class="toolbarbutton-iconic fbInternational"
                oncommand="Firebug.toggleCommandLine(true)"/>
        </hbox>

    </vbox>
<script>

</script>
</overlay>
