[kune-commits] r1546 - in trunk: img/webtemplate src/main/java/cc/kune/common/client/ui src/main/java/cc/kune/hspace/client

Vicente J. Ruiz Jurado vjrj_ at ourproject.org
Thu Oct 6 15:32:53 CEST 2011


Author: vjrj_
Date: 2011-10-06 15:32:53 +0200 (Thu, 06 Oct 2011)
New Revision: 1546

Modified:
   trunk/img/webtemplate/web_home_template-2011.svg
   trunk/src/main/java/cc/kune/common/client/ui/IconLabel.java
   trunk/src/main/java/cc/kune/hspace/client/HSpacePanel.java
Log:
NEW - # 132: Global public stats 
http://kune.ourproject.org/issues/ticket/132

Modified: trunk/img/webtemplate/web_home_template-2011.svg
===================================================================
--- trunk/img/webtemplate/web_home_template-2011.svg	2011-10-05 12:53:57 UTC (rev 1545)
+++ trunk/img/webtemplate/web_home_template-2011.svg	2011-10-06 13:32:53 UTC (rev 1546)
@@ -1219,7 +1219,7 @@
        height="15"
        width="15"
        id="rect15395"
-       style="color:#000000;fill:#ffb380;fill-opacity:1;stroke:none;stroke-width:1.40678155;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
+       style="color:#000000;fill:#ffccaa;fill-opacity:1;stroke:none;stroke-width:1.40678155000000005;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
     <rect
        style="color:#000000;fill:#ffb380;fill-opacity:1;stroke:none;stroke-width:1.40678155;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
        id="rect15397"

Modified: trunk/src/main/java/cc/kune/common/client/ui/IconLabel.java
===================================================================
--- trunk/src/main/java/cc/kune/common/client/ui/IconLabel.java	2011-10-05 12:53:57 UTC (rev 1545)
+++ trunk/src/main/java/cc/kune/common/client/ui/IconLabel.java	2011-10-06 13:32:53 UTC (rev 1546)
@@ -102,6 +102,12 @@
     flow.clear();
   }
 
+  private void commonStyle(final Image icon, final String imgCss) {
+    icon.setUrl(GWT.getModuleBaseURL() + "images/clear.gif");
+    icon.setStyleName(imgCss);
+    icon.addStyleName("oc-ico-pad");
+  }
+
   public HasClickHandlers getFocus() {
     return self;
   }
@@ -135,10 +141,8 @@
   }
 
   public void setLeftIcon(final String imgCss) {
-    iconLeft.setUrl(GWT.getModuleBaseURL() + "images/clear.gif");
-    iconLeft.setStyleName(imgCss);
+    commonStyle(iconLeft, imgCss);
     iconLeft.addStyleName("k-iconlabel-left");
-    iconLeft.addStyleName("oc-ico-pad");
     iconLeft.setVisible(true);
   }
 
@@ -164,9 +168,7 @@
   }
 
   public void setRightIcon(final String imgCss) {
-    iconRight.setUrl("images/clear.gif");
-    iconRight.setStyleName(imgCss);
-    iconRight.addStyleName("oc-ico-pad");
+    commonStyle(iconRight, imgCss);
     iconRight.addStyleName("k-iconlabel-right");
     iconRight.setVisible(true);
   }

Modified: trunk/src/main/java/cc/kune/hspace/client/HSpacePanel.java
===================================================================
--- trunk/src/main/java/cc/kune/hspace/client/HSpacePanel.java	2011-10-05 12:53:57 UTC (rev 1545)
+++ trunk/src/main/java/cc/kune/hspace/client/HSpacePanel.java	2011-10-06 13:32:53 UTC (rev 1546)
@@ -89,6 +89,8 @@
     tabPanel.addTab(lastPublishedPanel);
     globalStats.removeFromParent();
     // groupStats.removeFromParent();
+
+    // FIXME: Make this optional (aitor's comment)
     globalStatsParent = RootPanel.get("k-home-global-stats");
     globalStatsParent.add(globalStats);
     groupStatsParent = RootPanel.get("k-home-group-stats");




More information about the kune-commits mailing list