[Phoenix-commits] rev 19264 - in public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome: content skin

andi at wyona.com andi at wyona.com
Mon Oct 9 22:47:55 CEST 2006


Author: andi
Date: 2006-10-09 22:47:54 +0200 (Mon, 09 Oct 2006)
New Revision: 19264

Added:
   public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/skin/sitetree.css
Modified:
   public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/resourceupload.xul
   public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/sitetree.js
Log:
Added folder icons for collections.


Modified: public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/resourceupload.xul
===================================================================
--- public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/resourceupload.xul	2006-10-09 20:09:27 UTC (rev 19263)
+++ public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/resourceupload.xul	2006-10-09 20:47:54 UTC (rev 19264)
@@ -24,6 +24,7 @@
 -->
 
 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+<?xml-stylesheet href="chrome://yulup/skin/sitetree.css" type="text/css"?>
 
 <!DOCTYPE dialog [
   <!ENTITY % yulupDTD SYSTEM "chrome://yulup/locale/yulup.dtd">

Modified: public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/sitetree.js
===================================================================
--- public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/sitetree.js	2006-10-09 20:09:27 UTC (rev 19263)
+++ public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/content/sitetree.js	2006-10-09 20:47:54 UTC (rev 19264)
@@ -187,11 +187,14 @@
     this.rowNodeMap      = new Array();
     this.wrappedJSObject = this;
 
+    this.__atomService = Components.classes["@mozilla.org/atom-service;1"].getService(Components.interfaces.nsIAtomService);
+
     // load the sitetree XML
     this.loadSitetreeXML(this.uri, -1);
 }
 
 SitetreeView.prototype = {
+    __atomServide  : null,
     uri            : null,
     selection      : null,
     treeBox        : null,
@@ -481,7 +484,15 @@
     },
 
     getCellProperties: function(aRow, aCol, aProperties) {
+        var node = null;
+
         ///* DEBUG */ dump("Yulup:sitetree.js:getCellProperties() invoked\n");
+
+        node = this.getSitetreeNodeAtRow(aRow);
+
+        if (node != null && node.isContainer) {
+            aProperties.AppendElement(this.__atomService.getAtom("collection"));
+        }
     },
 
     getCellValue: function(aRow, aCol) {

Added: public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/skin/sitetree.css
===================================================================
--- public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/skin/sitetree.css	2006-10-09 20:09:27 UTC (rev 19263)
+++ public/yulup/src/trunk/yulup/prototypes/prototype1/src/chrome/skin/sitetree.css	2006-10-09 20:47:54 UTC (rev 19264)
@@ -0,0 +1,6 @@
+ at namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+
+treechildren::-moz-tree-image(collection) {
+  list-style-image: url("chrome://browser/skin/bookmarks/bookmark-folder.png");
+  padding-right: 3px;
+}




More information about the Phoenix-commits mailing list