Author: jmorliaguet
Date: Fri Jan  6 17:03:00 2006
New Revision: 2162

Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_contextualmenu_test.html
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_demo.html
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_panel_test.html
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_tooltip.html
   cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/panel5.html
   cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_test.html
   cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/p3.html
Log:

- we use <cpsskins:view widget="tooltip"> for creating views
  (instead of <cpsskins:tooltip>)



Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js (original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Fri Jan  6 
17:03:00 2006
@@ -31,20 +31,18 @@
   },
 
   parse: function(node) {
-    var elements = node.getElementsByTagName("*");
-    $A(elements).findAll(function(e) {
-      return e.tagName.match(/^cpsskins:/i)
-    }).each(function(e, index) {
-      switch (e.tagName.toLowerCase()) {
-        case "cpsskins:contextmenu": {
+    var elements = node.getElementsByTagName("cpsskins:view");
+    $A(elements).each(function(e, index) {
+      switch (e.getAttribute("widget").toLowerCase()) {
+        case "contextmenu": {
           Renderers.contextmenu(e);
           break;
         }
-        case "cpsskins:tooltip": {
+        case "tooltip": {
           Renderers.tooltip(e);
           break;
         }
-        case "cpsskins:panel": {
+        case "panel": {
           var perspectives = (e.getAttribute("perspectives")
                               || "default").split(",");
           var panel = new Renderers.panel(e);

Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_contextualmenu_test.html
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_contextualmenu_test.html
  (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_contextualmenu_test.html
  Fri Jan  6 17:03:00 2006
@@ -22,7 +22,7 @@
 
     <!-- View: contextual menu widget -->
 
-    <cpsskins:contextmenu controller="controller">
+    <cpsskins:view widget="contextmenu" controller="controller">
       <item label="Edit" icon="edit.png" action="edit"
             visible="editable"></item>
 
@@ -50,7 +50,7 @@
 
       <item label="Delete" icon="delete.png" action="delete"
             visible="editable" confirm="Deleting, are you sure?"></item>
-    </cpsskins:contextmenu>
+    </cpsskins:view widget="contextmenu">
 
 
     <!-- Model: data provider -->

Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_demo.html
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_demo.html
 (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_demo.html
 Fri Jan  6 17:03:00 2006
@@ -34,22 +34,22 @@
   -->
   <div id="editArea" style="border: 1px solid #ccc; padding: 2em; margin: 1em">
 
-  <cpsskins:contextmenu controller="controller">
+  <cpsskins:view widget="contextmenu" controller="controller">
     <submenu label="Set perspective">
       <items action="perspective" choices="perspectives"></items>
     </submenu>
-  </cpsskins:contextmenu>
+  </cpsskins:view widget="contextmenu">
 
   <table style="width:100%">
     <tr style="vertical-align: top">
       <td colspan="3">
 
-        <cpsskins:panel perspectives="page-designer,layout-designer"
+        <cpsskins:view widget="panel" 
perspectives="page-designer,layout-designer"
                         url="panel2.html">
-        </cpsskins:panel>
+        </cpsskins:view widget="panel">
 
-        <cpsskins:panel perspectives="site-designer" url="panel4.html">
-        </cpsskins:panel>
+        <cpsskins:view widget="panel" perspectives="site-designer" 
url="panel4.html">
+        </cpsskins:view widget="panel">
 
       </td>
     </tr>
@@ -57,35 +57,35 @@
     <tr style="vertical-align: top">
       <td style="width: 20%">
 
-        <cpsskins:panel perspectives="page-designer" url="panel4.html">
-        </cpsskins:panel>
+        <cpsskins:view widget="panel" perspectives="page-designer" 
url="panel4.html">
+        </cpsskins:view widget="panel">
 
-        <cpsskins:panel perspectives="site-designer,layout-designer"
+        <cpsskins:view widget="panel" 
perspectives="site-designer,layout-designer"
                         url="panel3.html">
-        </cpsskins:panel>
+        </cpsskins:view widget="panel">
 
       </td>
       <td syle="width: 60%">
 
-        <cpsskins:panel perspectives="page-designer" url="panel3.html">
-        </cpsskins:panel>
+        <cpsskins:view widget="panel" perspectives="page-designer" 
url="panel3.html">
+        </cpsskins:view widget="panel">
 
 
-        <cpsskins:panel perspectives="site-designer,page-designer" 
url="panel1.html">
-        </cpsskins:panel>
+        <cpsskins:view widget="panel" 
perspectives="site-designer,page-designer" url="panel1.html">
+        </cpsskins:view widget="panel">
 
       </td>
       <td style="width: 20%">
 
-        <cpsskins:panel perspectives="site-designer,layout-designer"
+        <cpsskins:view widget="panel" 
perspectives="site-designer,layout-designer"
                         url="panel4.html">
-        </cpsskins:panel>
+        </cpsskins:view widget="panel">
 
-        <cpsskins:panel perspectives="site-designer" url="panel3.html">
-        </cpsskins:panel>
+        <cpsskins:view widget="panel" perspectives="site-designer" 
url="panel3.html">
+        </cpsskins:view widget="panel">
 
-        <cpsskins:panel perspectives="page-designer" url="panel4.html">
-        </cpsskins:panel>
+        <cpsskins:view widget="panel" perspectives="page-designer" 
url="panel4.html">
+        </cpsskins:view widget="panel">
       </td>
 
     </tr>

Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_panel_test.html
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_panel_test.html
   (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_panel_test.html
   Fri Jan  6 17:03:00 2006
@@ -40,17 +40,17 @@
     <tr style="vertical-align: top">
       <td colspan="3">
 
-        <cpsskins:panel
+        <cpsskins:view widget="panel"
             perspectives="page-designer,layout-designer"
             url="panel1.html"
             css="style1.css">
-        </cpsskins:panel>
+        </cpsskins:view widget="panel">
 
-        <cpsskins:panel
+        <cpsskins:view widget="panel"
             perspectives="site-designer"
             url="panel2.html"
             css="style2.css">
-        </cpsskins:panel>
+        </cpsskins:view widget="panel">
 
       </td>
     </tr>
@@ -58,42 +58,42 @@
     <tr style="vertical-align: top">
       <td style="width: 20%">
 
-        <cpsskins:panel perspectives="page-designer" url="panel2.html">
-        </cpsskins:panel>
+        <cpsskins:view widget="panel" perspectives="page-designer" 
url="panel2.html">
+        </cpsskins:view widget="panel">
 
-        <cpsskins:panel perspectives="site-designer,layout-designer"
+        <cpsskins:view widget="panel" 
perspectives="site-designer,layout-designer"
                         url="panel3.html">
-        </cpsskins:panel>
+        </cpsskins:view widget="panel">
 
       </td>
       <td syle="width: 60%">
 
-        <cpsskins:panel perspectives="page-designer" url="panel3.html">
-        </cpsskins:panel>
+        <cpsskins:view widget="panel" perspectives="page-designer" 
url="panel3.html">
+        </cpsskins:view widget="panel">
 
-        <cpsskins:panel perspectives="page-designer" url="panel4.html">
-        </cpsskins:panel>
+        <cpsskins:view widget="panel" perspectives="page-designer" 
url="panel4.html">
+        </cpsskins:view widget="panel">
 
       </td>
       <td style="width: 20%">
 
-        <cpsskins:panel perspectives="site-designer,layout-designer"
+        <cpsskins:view widget="panel" 
perspectives="site-designer,layout-designer"
                         url="panel4.html">
-        </cpsskins:panel>
+        </cpsskins:view widget="panel">
 
-        <cpsskins:panel perspectives="site-designer" url="panel2.html">
-        </cpsskins:panel>
+        <cpsskins:view widget="panel" perspectives="site-designer" 
url="panel2.html">
+        </cpsskins:view widget="panel">
 
       </td>
 
     </tr>
   </table>
 
-  <cpsskins:panel
+  <cpsskins:view widget="panel"
       perspectives="element-editor"
       url="panel5.html"
       css="popup.css">
-  </cpsskins:panel>
+  </cpsskins:view widget="panel">
 
   <div id="message"></div>
 

Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_tooltip.html
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_tooltip.html
      (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_tooltip.html
      Fri Jan  6 17:03:00 2006
@@ -28,7 +28,7 @@
     <!-- model: {"hint":"Click here to close the document."} -->
     <a href="#">Close</a>
 
-    <cpsskins:tooltip showdelay="1000" hidedelay="500"></cpsskins:tooltip>
+    <cpsskins:view widget="tooltip" showdelay="1000" 
hidedelay="500"></cpsskins:tooltip>
 
     <p>Show delay: 1s<br/>
        Hide delay: 500ms</p>
@@ -45,7 +45,7 @@
     <!-- model: {"hint":"Click here to close the file."} -->
     <a href="#">Close</a>
 
-    <cpsskins:tooltip showdelay="500" hidedelay="1000"></cpsskins:tooltip>
+    <cpsskins:view widget="tooltip" showdelay="500" 
hidedelay="1000"></cpsskins:tooltip>
 
     <p>Show delay: 500ms<br/>
        Hide delay: 1s</p>

Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/panel5.html
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/panel5.html    
    (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/panel5.html    
    Fri Jan  6 17:03:00 2006
@@ -20,28 +20,28 @@
   <table style="width: 100%; padding:1em">
     <tr>
       <td>
-        <cpsskins:panel fadein="true"
+        <cpsskins:view widget="panel" fadein="true"
                         perspectives="element-editor/1" url="panel1.html">
-        </cpsskins:panel>
+        </cpsskins:view widget="panel">
       </td>
       <td>
-        <cpsskins:panel fadein="true"
+        <cpsskins:view widget="panel" fadein="true"
                         perspectives="element-editor/1" url="panel2.html">
-        </cpsskins:panel>
+        </cpsskins:view widget="panel">
       </td>
       <td>
-        <cpsskins:panel fadein="true"
+        <cpsskins:view widget="panel" fadein="true"
                         perspectives="element-editor/2" url="panel3.html">
-        </cpsskins:panel>
+        </cpsskins:view widget="panel">
       </td>
       <td>
-        <cpsskins:panel fadein="true"
+        <cpsskins:view widget="panel" fadein="true"
                         perspectives="element-editor/2" url="panel4.html">
-        </cpsskins:panel>
+        </cpsskins:view widget="panel">
       </td>
       <td>
-        <cpsskins:panel perspectives="element-editor/3" url="panel6.html">
-        </cpsskins:panel>
+        <cpsskins:view widget="panel" perspectives="element-editor/3" 
url="panel6.html">
+        </cpsskins:view widget="panel">
       </td>
     </tr>
     </tr>

Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_test.html
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_test.html   
    (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_test.html   
    Fri Jan  6 17:03:00 2006
@@ -49,17 +49,17 @@
   </div>
 
   <!-- panels -->
-  <cpsskins:panel perspectives="1" url="p1.html"></cpsskins:panel>
+  <cpsskins:view widget="panel" perspectives="1" 
url="p1.html"></cpsskins:panel>
 
-  <cpsskins:panel perspectives="1,2" url="p2.html"></cpsskins:panel>
+  <cpsskins:view widget="panel" perspectives="1,2" 
url="p2.html"></cpsskins:panel>
 
-  <cpsskins:panel perspectives="3" url="p3.html"></cpsskins:panel>
+  <cpsskins:view widget="panel" perspectives="3" 
url="p3.html"></cpsskins:panel>
 
-  <cpsskins:panel perspectives="1/2" url="p1_2.html"></cpsskins:panel>
+  <cpsskins:view widget="panel" perspectives="1/2" 
url="p1_2.html"></cpsskins:panel>
 
-  <cpsskins:panel perspectives="2/3" url="p2_3.html"></cpsskins:panel>
+  <cpsskins:view widget="panel" perspectives="2/3" 
url="p2_3.html"></cpsskins:panel>
 
-  <cpsskins:panel perspectives="2/3/1" url="p2_3_1.html"></cpsskins:panel>
+  <cpsskins:view widget="panel" perspectives="2/3/1" 
url="p2_3_1.html"></cpsskins:panel>
 
 </div>
 

Modified: cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/p3.html
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/p3.html  
(original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/p3.html  Fri Jan 
 6 17:03:00 2006
@@ -1,5 +1,5 @@
 <div id="p3">
 
-  <cpsskins:panel perspectives="4" url="p4.html"></cpsskins:panel>
+  <cpsskins:view widget="panel" perspectives="4" 
url="p4.html"></cpsskins:panel>
 
 </div>
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to