<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin/"?>
<?xml-stylesheet href="chrome://mozapps/content/preferences/preferences.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css" type="text/css"?>

<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        buttons="extra2,accept,cancel"
        id="firebug-external-editors-change"
        title="changeEditor.Editor_Configuration"
        onload="onLoad();"
        ondialogaccept="return onAccept();"
        persist="screenX screenY"
        class="fbInternational"
        buttonlabelextra2="test"
        ondialogextra2="testEditor()">

    <script src="chrome://firebug/content/trace.js"/>
    <script src="chrome://firebug/content/firefox/external-editors/changeeditor.js"/>

    <vbox flex="1">
        <hbox align="center">
            <label id="fbNameLabel" control="name"
                value="changeEditor.Name" class="fbInternational"/>
            <textbox id="name" flex="1" oninput="onChange()"/>
        </hbox>
        <separator class="groove"/>
        <hbox align="center">
            <label id="fbExecutableLabel" control="executable" align="baseline"
                value="changeEditor.Executable" class="fbInternational"/>
            <filefield id="executable" flex="1"/>
            <button id="browse-button" oncommand="onBrowse();"
                label="editors.Browse" class="fbInternational"/>
        </hbox>
        <separator class="thin"/>
        <hbox align="center">
            <label id="fbCmdLineLabel" control="cmdline"
                value="changeEditor.CmdLine" class="fbInternational"/>
            <textbox id="cmdline" flex="1" oninput="onChange()"/>
            <toolbarbutton type="menu" label="">
                <panel onpopupshowing="suggestionPopupShowing(this)"
                    onclick="if(event.target.className=='text-link') insertText(event.target.value,true);"
                    position="after_end"/>
            </toolbarbutton>
        </hbox>
        <vbox align="left" onclick="if(event.target.className=='text-link') insertText(event.target.textContent);">
            <description class="fbInternational">changeEditor.Supplied_arguments</description>
            <hbox><label class='text-link'>%url </label> <description class="fbInternational">changeEditor.URL_of_file</description></hbox>
            <hbox><label class='text-link'>%file </label><description class="fbInternational">changeEditor.Path_to_local_file</description></hbox>
            <hbox><label class='text-link'>%line </label><description class="fbInternational">changeEditor.Line_number</description></hbox>
        </vbox>
        <separator class="groove"/>
    </vbox>
</dialog>
