Jump to content

User:PerfektesChaos/js/localEdit/Firefox/chrome/content/config.xul

From Wikipedia, the free encyclopedia
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<!-- 2012-11-30 PerfektesChaos@de.wikipedia -->

<!DOCTYPE dialog [
<!ENTITY % wikilocaleditDTD
           SYSTEM "chrome://wikilocaledit/locale/wikilocaledit.dtd">
  %wikilocaleditDTD;
<!ENTITY % versionDTD
           SYSTEM "chrome://wikilocaledit/content/version.dtd">
  %versionDTD;
]>

<dialog id="WikiLocalEditConfig"
        title="&extension.title;"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        style="max-width: 100em;"
        buttons="accept, cancel"
        onload="wikiLocalEdit.cnf.onLoad();"
        ondialogaccept="return wikiLocalEdit.cnf.doOK();">

  <script type="application/x-javascript"
          src="chrome://wikilocaledit/content/permissions.js" />
  <script type="application/x-javascript"
          src="chrome://wikilocaledit/content/fileIO.js" />
  <script type="application/x-javascript"
          src="chrome://wikilocaledit/content/prefs.js" />
  <script type="application/x-javascript"
          src="chrome://wikilocaledit/locale/locale.js" />
  <script type="application/x-javascript"
          src="chrome://wikilocaledit/content/wikilocaledit.js" />
  <script type="application/x-javascript"
          src="chrome://wikilocaledit/content/config.js" />

  <groupbox id="version"
            orient="horizontal"
            pack="start">
    <hbox>
      <image src="chrome://wikilocaledit/skin/wikilocaledit-16x16.png"
             width="16"
             height="16"
             maxwidth="16"
             maxheight="16" />
      <description>&extension.title;</description>
      <description id="WikiLocalEditVersion"
                   style="margin-left:0;">&extension.version;</description>
    </hbox>
  </groupbox>
  <groupbox id="leading"
            orient="horizontal"
            pack="start">
    <checkbox id="leading_default"
              label="&leadingDefault.label;"
              checked="true"
              oncommand="wikiLocalEdit.cnf.updateLeading();"/>
  </groupbox>
  <groupbox id="basedir"
            orient="vertical"
            flex="1"
            pack="start">
    <vbox flex="1">
      <description id="basedir_default" />
      <hbox>
        <button id="basedir_select"
                label="&basedir.label;"
                flex="1"
                oncommand="wikiLocalEdit.cnf.updateBasedir();" />
        <spacer flex="10" />
      </hbox>
    </vbox>
  </groupbox>
  <groupbox id="userpages"
            orient="vertical"
            pack="start">
    <vbox>
      <description id="userpages_label">
        &userpagesDescription;</description>
      <description id="userpages_example">
        https://en.wikipedia.org/wiki/User:[...]
      </description>
    </vbox>
    <separator class="thin" />
    <hbox>
      <textbox id="userpage_textbox"
               flex="1"
               oninput="wikiLocalEdit.cnf.userpageInput(event.target);"
               onkeypress="wikiLocalEdit.cnf.userpageKeypress(event);" />
      <button id="buttonAdd"
              label="&buttonAdd.label;"
              disabled="true"
              oncommand="wikiLocalEdit.cnf.addUserpage();" />
    </hbox>
    <hbox flex="1">
      <listbox id="userpages_list"
               seltype="single"
               style="height: 10em; min-width: 30em;"
               onselect="wikiLocalEdit.cnf.userpageSelected(event.target);" />
      <vbox>
        <button id="buttonRemove"
                label="&buttonRemove.label;"
                disabled="true"
                oncommand="wikiLocalEdit.cnf.removeUserpage();" />
        <button id="buttonRemoveAll"
                label="&buttonRemoveAll.label;"
                disabled="true"
                oncommand="wikiLocalEdit.cnf.removeAllUserpages();" />
      </vbox>
    </hbox>
  </groupbox>
</dialog>