home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / mozil06.zip / bin / chrome / messenger.jar / content / messenger / FilterListDialog.xul < prev    next >
Extensible Markup Language  |  2001-02-14  |  5KB  |  141 lines

  1. <?xml version="1.0"?>
  2. <!--
  3. The contents of this file are subject to the Netscape Public
  4. License Version 1.1 (the "License"); you may not use this file
  5. except in compliance with the License. You may obtain a copy of
  6. the License at http://www.mozilla.org/NPL/
  7.  
  8. Software distributed under the License is distributed on an "AS
  9. IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10. implied. See the License for the specific language governing
  11. rights and limitations under the License.
  12.  
  13. The Original Code is Mozilla Communicator client code, released
  14. March 31, 1998.
  15.  
  16. The Initial Developer of the Original Code is Netscape
  17. Communications Corporation. Portions created by Netscape are
  18.  Copyright (C) 1998-1999 Netscape Communications Corporation. All
  19. Rights Reserved.
  20. -->
  21.  
  22. <?xml-stylesheet href="chrome://messenger/skin/messenger.css" type="text/css"?>
  23. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  24.  
  25. <!DOCTYPE window SYSTEM "chrome://messenger/locale/FilterListDialog.dtd" >
  26. <window class="dialog"
  27.   xmlns:nc="http://home.netscape.com/NC-rdf#"
  28.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  29.   orient="vertical"
  30.   onload="onLoad();"
  31.   style="width: 34em;"
  32.   title="&window.title;">
  33.  
  34.   <script language="JavaScript" src="chrome://messenger/content/FilterListDialog.js"/>
  35.   <script language="JavaScript" src="chrome://global/content/strres.js"/>
  36.  
  37.   <!-- <script src="resource:/res/samples/DumpDOM.js"/> -->
  38.  
  39.   <keyset id="keyset"/>
  40.  
  41.   <grid flex="1">
  42.     <columns>
  43.       <column flex="1"/>
  44.       <column/>
  45.       <column/>
  46.     </columns>
  47.     <rows>
  48.       <row>
  49.         <text class="label" value="&filtersForPrefix.label;"/>
  50.         <box/>
  51.         <box/>
  52.       </row>
  53.       <row>
  54.         <menulist oncommand="onServerClick(event);" id="serverMenu">
  55.           <menupopup datasources="rdf:msgaccountmanager"
  56.                      containment="http://home.netscape.com/NC-rdf#child"
  57.                      ref="msgaccounts:/">
  58.             <template>
  59.               <rule nc:SupportsFilters="true">
  60.                 <menuitem uri="..." data="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
  61.               </rule>
  62.             </template>
  63.           </menupopup>
  64.         </menulist>
  65.         <box/>
  66.         <box/>
  67.       </row>
  68.       <row>
  69.         <separator/>
  70.         <box/>
  71.         <box/>
  72.       </row>
  73.       <row>
  74.         <box orient="vertical">
  75.           <html>&filterHeader.label;</html>
  76.           <tree id="filterTree" class="inset" flex="1"
  77.                 onselect="onFilterSelect(event);"
  78.                 datasources="rdf:msgfilters rdf:msgaccountmanager "
  79.                 containment="http://home.netscape.com/NC-rdf#child">
  80.  
  81.             <treehead>
  82.               <treerow>
  83.                 <treecell class="treecell-header treecell-inset-header" 
  84.                           persist="hidden width" value="&nameColumn.label;"/>
  85.                 <treecell class="treecell-header treecell-inset-header" 
  86.                           persist="hidden width" value="&activeColumn.label;"/>
  87.               </treerow>
  88.             </treehead>
  89.  
  90.             <template>
  91.               <rule>
  92.                 <treechildren>
  93.                   <treeitem uri="..." open="true"
  94.                             Enabled="rdf:http://home.netscape.com/NC-rdf#Enabled">
  95.                     <treerow >
  96.                       <treecell indent="true" value="rdf:http://home.netscape.com/NC-rdf#Name"/>
  97.                       <treecell allowevents="true"
  98.                                 class="enabledcol treecell-image"
  99.                                 value="rdf:http://home.netscape.com/NC-rdf#Enabled"
  100.                                 onclick="onToggleEnabled(event);"/>
  101.                     </treerow>
  102.                   </treeitem>
  103.                 </treechildren>
  104.               </rule>
  105.             </template>
  106.           
  107.             <treecolgroup>
  108.               <treecol style="width: 0px" flex="1" resource="http://home.netscape.com/NC-rdf#Name" id="nameColumn"/>
  109.               <treecol id="activeColumn"/>
  110.             </treecolgroup>
  111.           
  112.             <treechildren flex="1"/>
  113.             
  114.           </tree>
  115.         </box>
  116.         <box orient="vertical">
  117.           <spring flex="1"/>
  118.           <button class="reorder-up" oncommand="onUp(event);"/>
  119.           <button class="reorder-down" oncommand="onDown(event);"/>
  120.           <spring flex="1"/>
  121.         </box>
  122.         <box orient="vertical">
  123.           <button id="newButton" value="&newButton.label;" onclick="onNewFilter();"/>
  124.           <button id="editButton" value="&editButton.label;" onclick="onEditFilter();"/>
  125.           <button id="deleteButton" value="&deleteButton.label;" onclick="onDeleteFilter();"/>
  126.           <spring flex="1"/>
  127.           <!-- take out for PR2
  128.             <button value="&runFiltersNow.label;" width="0em"/>
  129.             <button onclick="DumpDOM(document.getElementById('filterTree'));" value="dump"/>
  130.           -->
  131.         </box>
  132.       </row>
  133.     </rows>
  134.   </grid>
  135.      
  136.   <separator/>
  137.  
  138.   <box id="okCancelButtonsRight"/>
  139.  
  140. </window>
  141.