<?xml version="1.0"?>
<?xml-stylesheet href="chrome://messenger/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/input-fields.css" type="text/css"?>
<?xml-stylesheet
    href="chrome://exteditor/content/exteditor.css"
    type="text/css"?>

<!DOCTYPE dialog SYSTEM "chrome://exteditor/locale/exteditor.dtd">

<dialog    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    xmlns:html="http://www.w3.org/1999/xhtml"
    xmlns:exteditor="http://forums.mozillazine.org/rdf/exteditor#"
    title="&exteditor-settings.title;"
    id="exteditor-settings"
    orient="vertical"
    flex="0"
    onload="ExternalEditor.onLoad();"
    buttons="accept,cancel"
    persist="screenX screenY">

    <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
    <script type="application/x-javascript" src="chrome://global/content/editMenuOverlay.js"/>

    <script type="application/x-javascript"
        src="chrome://exteditor/content/pref.js" />

    <script type="application/x-javascript"
        src="chrome://exteditor/content/settings.js" />
    <broadcaster id="exteditor_brcstEditHeaders"/>

    <description value="&exteditor-settings.title;"/>

    <groupbox>
        <caption><label id="exteditor_exe" value="&exteditor_exe.label;"/></caption>
        <vbox align="stretch">
            <hbox align="center" class="input-container">
                <label id="exteditor_editor" value="&exteditor_editor.value;"/>
                <html:input id="exteditor_leEditor"
                            preftype="string"
                            prefattribute="value"
                            prefstring="exteditor.default.editor"/>
                <button id="exteditor_btBrowse" label="&exteditor_btBrowse.label;" oncommand="ExternalEditor.selectEditor();"/>
            </hbox>
            <checkbox   id="exteditor_cbEditorUnicode"
                        label="&exteditor_cbEditorUnicode.label;"
                        preftype="bool"
                        prefattribute="checked"
                        prefstring="exteditor.editor.unicode"/>
            <checkbox   id="exteditor_cbEditor83Filename"
                        label="&exteditor_cbEditor83Filename.label;"
                        preftype="bool"
                        prefattribute="checked"
                        prefstring="exteditor.editor.83filename"/>
            <hbox align="center">
                <description id="exteditor_warn" style="width: 300px">&exteditor_warn.value;</description>
                <spacer flex="1"/>
            </hbox>
        </vbox>
    </groupbox>

    <groupbox >
        <caption>
            <checkbox   id="exteditor_cbEditHeaders"
                        label="&exteditor_cbEditHeaders.label;"
                        tooltiptext="&exteditor_cbEditHeaders.tooltiptext;"
                        oncommand="ExternalEditor.activate('exteditor_cbEditHeaders', 'exteditor_brcstEditHeaders')"
                        preftype="bool"
                        prefattribute="checked"
                        prefstring="exteditor.headers.edit"/>
        </caption>
        <grid flex="1">
            <columns>
                <column flex="1"/>
                <column flex="1"/>
                <column flex="1"/>
            </columns>
            <rows>
                <row align="center">
                    <checkbox   id="exteditor_cbEditHeaderSubject"
                                label="&exteditor_cbEditHeaderSubject.label;"
                                observes="exteditor_brcstEditHeaders"
                                preftype="bool"
                                prefattribute="checked"
                                prefstring="exteditor.headers.edit.subject"/>
                    <checkbox   id="exteditor_cbEditHeaderTo"
                                label="&exteditor_cbEditHeaderTo.label;"
                                observes="exteditor_brcstEditHeaders"
                                preftype="bool"
                                prefattribute="checked"
                                prefstring="exteditor.headers.edit.to"/>
                    <checkbox   id="exteditor_cbEditHeaderCc"
                                label="&exteditor_cbEditHeaderCc.label;"
                                observes="exteditor_brcstEditHeaders"
                                preftype="bool"
                                prefattribute="checked"
                                prefstring="exteditor.headers.edit.cc"/>
                </row>
                <row align="center">
                    <checkbox   id="exteditor_cbEditHeaderBcc"
                                label="&exteditor_cbEditHeaderBcc.label;"
                                observes="exteditor_brcstEditHeaders"
                                preftype="bool"
                                prefattribute="checked"
                                prefstring="exteditor.headers.edit.bcc"/>
                    <checkbox   id="exteditor_cbEditHeaderReplyTo"
                                label="&exteditor_cbEditHeaderReplyTo.label;"
                                observes="exteditor_brcstEditHeaders"
                                preftype="bool"
                                prefattribute="checked"
                                prefstring="exteditor.headers.edit.replyto"/>
                    <checkbox   id="exteditor_cbEditHeaderNewsgroup"
                                label="&exteditor_cbEditHeaderNewsgroup.label;"
                                observes="exteditor_brcstEditHeaders"
                                preftype="bool"
                                prefattribute="checked"
                                prefstring="exteditor.headers.edit.newsgroup"/>
                </row>
            </rows>
        </grid>
    </groupbox>
</dialog>
