home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 August / PCpro_2005_08.ISO / files / firefox / ScrapBook.xpi / chrome / scrapbook.jar / content / manage.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-03-27  |  6.4 KB  |  139 lines

  1. <?xml version="1.0" ?>
  2.  
  3. <!--skin-->
  4. <?xml-stylesheet href="chrome://global/skin/" type="text/css" ?>
  5. <?xml-stylesheet href="chrome://scrapbook/skin/scrapbook.css" type="text/css" ?>
  6.  
  7. <!--overlay-->
  8. <?xul-overlay href="chrome://scrapbook/content/tree.xul"?>
  9.  
  10. <!--locale-->
  11. <!DOCTYPE window [
  12. <!ENTITY % scrapbookDTD SYSTEM "chrome://scrapbook/locale/scrapbook.dtd" >
  13. %scrapbookDTD;
  14. <!ENTITY % propertyDTD  SYSTEM "chrome://scrapbook/locale/property.dtd" >
  15. %propertyDTD;
  16. <!ENTITY % treeDTD      SYSTEM "chrome://scrapbook/locale/tree.dtd" >
  17. %treeDTD;
  18. ]>
  19.  
  20. <!--window-->
  21. <window id="ScrapBookManageWindow"
  22.         title="&sb.title; - &sb.manage;"
  23.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  24.         xmlns:SB="http://amb.vis.ne.jp/mozilla/scrapbook-rdf#"
  25.         width="640" height="480" persist="width height screenX screenY"
  26.         onload="SB_initManage();">
  27.  
  28.     <!--JavaScript-->
  29.     <script type="application/x-javascript" src="chrome://scrapbook/content/common.js" />
  30.     <script type="application/x-javascript" src="chrome://scrapbook/content/datasource.js" />
  31.     <script type="application/x-javascript" src="chrome://scrapbook/content/scrapbook.js" />
  32.     <script type="application/x-javascript" src="chrome://scrapbook/content/manage.js" />
  33.     <!--JavaScript for Drag And Drop-->
  34.     <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js" />
  35.     <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js" />
  36.     <script type="application/x-javascript" src="chrome://global/content/nsJSSupportsUtils.js" />
  37.     <script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js" />
  38.  
  39.     <!--StringBundle-->
  40.     <stringbundle id="ScrapBookString" src="chrome://scrapbook/locale/scrapbook.properties" />
  41.  
  42.     <!--keyset-->
  43.     <keyset id="ScrapBookWindowKey" />
  44.  
  45.     <!--popup-->
  46.     <popupset>
  47.         <popup id="ScrapBookTreePopup" />
  48.     </popupset>
  49.  
  50.     <!--toolbox-->
  51.     <toolbox class="plain">
  52.         <!--main toolbar-->
  53.         <toolbar id="ScrapBookMainToolbar">
  54.             <toolbarbutton tooltiptext="&sb.new.folder;"    image="chrome://scrapbook/skin/tool_createfolder.png" oncommand="SB_createFolder();" />
  55.             <toolbarbutton tooltiptext="&sb.toggleallopen;" image="chrome://scrapbook/skin/tool_togglefolder.png" oncommand="SBtreeUtil.toggleAllFolders();" />
  56.             <toolbarseparator />
  57.             <toolbarbutton label="&sb.move;..."     image="chrome://scrapbook/skin/tool_selectfolder.png" oncommand="SB_moveIntoFolder();" />
  58.             <toolbarseparator />
  59.             <toolbarbutton label="&sb.delete;..."   image="chrome://scrapbook/skin/menu_delete.png"   oncommand="SB_delete();" />
  60.             <toolbarseparator />
  61.             <toolbarbutton label="&sb.property;..." image="chrome://scrapbook/skin/menu_property.png" oncommand="SB_transmit('P');" />
  62.         </toolbar>
  63.     </toolbox>
  64.  
  65.     <!--tree-->
  66.     <tree id="ScrapBookManageTree"
  67.           datasources="rdf:null"
  68.           ref="urn:scrapbook:root"
  69.           flags="dont-build-content"
  70.           onclick="SBtreeUtil.onClickDefault(event);"
  71.           ondblclick="if (event.button == 0) SB_openDblClick(event);"
  72.           onkeypress="SB_onKeyPressItem(event);"
  73.           ondraggesture="if (event.originalTarget.localName == 'treechildren') nsDragAndDrop.startDrag(event,SBdragObserver);event.stopPropagation();"
  74.           ondragover="nsDragAndDrop.dragOver(event,SBdropObserver);event.stopPropagation();"
  75.           ondragdrop="nsDragAndDrop.drop(event,SBdropObserver);event.stopPropagation();"
  76.           contextmenu="ScrapBookTreePopup"
  77.           enableColumnDrag="true"
  78.           seltype="multiple"
  79.           class="plain" flex="1">
  80.  
  81.         <treecols>
  82.             <treecol id="ScrapBookTreecolTitle" flex="6" label="&sb.prop.title;" primary="true"
  83.                 class="sortDirectionIndicator" sortActive="true" sort="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#title"
  84.                 persist="width hidden ordinal" />
  85.             <splitter class="tree-splitter" />
  86.             <treecol id="ScrapBookTreecolSource" flex="3" label="&sb.prop.source;"
  87.                 class="sortDirectionIndicator" sortActive="true" sort="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#source"
  88.                 persist="width hidden ordinal" />
  89.             <splitter class="tree-splitter" />
  90.             <treecol id="ScrapBookTreecolType" flex="1" label="&sb.prop.type;"
  91.                 class="sortDirectionIndicator" sortActive="true" sort="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#type"
  92.                 hidden="true"
  93.                 persist="width hidden ordinal" />
  94.             <splitter class="tree-splitter" />
  95.             <treecol id="ScrapBookTreecolIcon" flex="1" label="&sb.prop.icon;"
  96.                 class="sortDirectionIndicator" sortActive="true" sort="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#icon"
  97.                 hidden="true"
  98.                 persist="width hidden ordinal" />
  99.             <splitter class="tree-splitter" />
  100.             <treecol id="ScrapBookTreecolChars" flex="1" label="&sb.prop.encode;"
  101.                 class="sortDirectionIndicator" sortActive="true" sort="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#chars"
  102.                 hidden="true"
  103.                 persist="width hidden ordinal" />
  104.             <splitter class="tree-splitter" />
  105.             <treecol id="ScrapBookTreecolComment" flex="3" label="&sb.prop.comment;"
  106.                 class="sortDirectionIndicator" sortActive="true" sort="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#comment"
  107.                 persist="width hidden ordinal" />
  108.             <splitter class="tree-splitter" />
  109.             <treecol id="ScrapBookTreecolID" flex="2" label="&sb.prop.id.date;"
  110.                 class="sortDirectionIndicator" sortActive="true" sort="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#id"
  111.                 persist="width hidden ordinal" />
  112.         </treecols>
  113.  
  114.         <template>
  115.             <rule>
  116.                 <treechildren flex="1">
  117.                     <treeitem uri="rdf:*">
  118.                         <treerow>
  119.                             <treecell id="ScrapBookTreeItem"
  120.                                       label="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#title"
  121.                                       src="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#icon"
  122.                                       properties="Name rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#type"/>
  123.                             <treecell label="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#source" />
  124.                             <treecell label="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#type" />
  125.                             <treecell label="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#icon" />
  126.                             <treecell label="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#chars" />
  127.                             <treecell label="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#comment" />
  128.                             <treecell label="rdf:http://amb.vis.ne.jp/mozilla/scrapbook-rdf#id" />
  129.                         </treerow>
  130.                     </treeitem>
  131.                 </treechildren>
  132.             </rule>
  133.         </template>
  134.     </tree>
  135.  
  136.     <sidebarheader id="ScrapBookStatusBar" />
  137.  
  138. </window>
  139.