home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / AIMP2 / aimp_2.61.583.exe / $TEMP / YandexPackSetup.msi / filE99F1209920F0FD124329B27F99A8C8E < prev    next >
Extensible Markup Language  |  2010-07-12  |  3KB  |  71 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://yasearch/skin/spellchecker/user-dict-dialog.css" type="text/css"?>
  3. <!DOCTYPE dialog [
  4. <!ENTITY % yaBrandDTD SYSTEM "chrome://yasearch/locale/yasearch.dtd">
  5. %yaBrandDTD;
  6. <!ENTITY % yaSpellcheckerDTD SYSTEM "chrome://yasearch/locale/spellchecker/spellchecker.dtd">
  7. %yaSpellcheckerDTD;
  8. ]>
  9.  
  10. <dialog id="yasearch-spellchecker-user-dict-dialog"
  11.         windowtype="Yasearch:SpellcheckerUserDictDialog"
  12.         onload="YaSpellcheckerUserDict.init();"
  13.         onunload="YaSpellcheckerUserDict.onDialogUnload();"
  14.         ondialogaccept="return YaSpellcheckerUserDict.onDialogAccept()"
  15.         ondialogcancel="return YaSpellcheckerUserDict.onDialogCancel()"
  16.         title="&yasearch.spellchecker.dialog.title;"
  17.         buttons="accept,cancel"
  18.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  19.         xmlns:html="http://www.w3.org/1999/xhtml">
  20.   
  21.   <script type="application/x-javascript" src="chrome://yasearch/content/utils.js"/>
  22.   <script type="application/x-javascript" src="chrome://yasearch/content/spellchecker/user-dict-dialog.js"/>
  23.   
  24.   <keyset id="yaDictKeys">
  25.     <key id="add-key" keycode="VK_INSERT" command="add-command"/>
  26.     <key id="remove-key" keycode="VK_DELETE" command="remove-command"/>
  27.     <key id="selectall-key" key="a" modifiers="accel" command="selectall-command"/>
  28.   </keyset>
  29.   
  30.   <commandset id="yaDictCommands">
  31.     <command id="add-command" oncommand="YaSpellcheckerUserDict.addRow()"/>
  32.     <command id="edit-command" oncommand="YaSpellcheckerUserDict.editRow()"/>
  33.     <command id="remove-command" oncommand="YaSpellcheckerUserDict.removeRows()"/>
  34.     <command id="selectall-command" oncommand="YaSpellcheckerUserDict.tree.view.selection.selectAll()"/>
  35.   </commandset>
  36.   
  37.   <hbox flex="1">
  38.     <stack flex="1">
  39.       <tree id="words-list" flex="1" seltype="multiple" hidecolumnpicker="true" editable="true">
  40.         <treecols>
  41.           <treecol primary="true" hideheader="true" flex="10"/>
  42.         </treecols>
  43.         <treechildren id="words-list-treechildren"/>
  44.       </tree>
  45.     </stack>
  46.     <vbox>
  47.       <button label="&yasearch.spellchecker.button.add.label;"
  48.               command="add-command"/>
  49.       <button id="dict-button-edit"
  50.               label="&yasearch.spellchecker.button.edit.label;" disabled="true"
  51.               command="edit-command"/>
  52.       <button id="dict-button-remove"
  53.               label="&yasearch.spellchecker.button.delete.label;" disabled="true"
  54.               command="remove-command"/>
  55.       
  56.       <separator class="thin" flex="1"/>
  57.       
  58.       <hbox id="info-box" visible="false">
  59.         <description style="width: 9em">&yasearch.spellchecker.help.add.descr;</description>
  60.       </hbox>
  61.       
  62.       <separator class="thin" flex="4"/>
  63.       
  64.       <button id="dict-button-save"
  65.               label="&yasearch.spellchecker.button.save.label;" disabled="true"
  66.               oncommand="document.documentElement.acceptDialog()"/>
  67.       <button label="&yasearch.spellchecker.button.cancel.label;"
  68.               oncommand="document.documentElement.cancelDialog()"/>
  69.     </vbox>
  70.   </hbox>
  71. </dialog>