Author: jmorliaguet
Date: Tue Apr 11 11:11:01 2006
New Revision: 2810

Modified:
   cpsskins/branches/jmo-perspectives/ui/authoring/definitions.py
   cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
Log:

- attached the 'portlet factory' drag and drop controller to the entire screen



Modified: cpsskins/branches/jmo-perspectives/ui/authoring/definitions.py
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/authoring/definitions.py      
(original)
+++ cpsskins/branches/jmo-perspectives/ui/authoring/definitions.py      Tue Apr 
11 11:11:01 2006
@@ -135,6 +135,15 @@
 
 VIEWS = {
 
+    'screen': {
+        'id': 'screen',
+        'widget': {
+            'area': 'screen',
+        },
+        'perspectives': ['page-designer', 'layout-designer', 'content-author'],
+        'controllers': ['main-editor-perspectives', 'portlet-factory'],
+    },
+
     # Top area
     'action-pad': {
         'id': 'action-pad',
@@ -218,7 +227,7 @@
         'model': 'page-designer',
         'perspectives': ['page-designer'],
         'controllers': ['main-editor-perspectives', 'theme-switcher',
-                        'portlet-factory', 'element-mover'],
+                        'element-mover'],
     },
 
     'layout-designer': {
@@ -229,7 +238,7 @@
         'model': 'layout-designer',
         'perspectives': ['layout-designer'],
         'controllers': ['main-editor-perspectives', 'theme-switcher',
-                        'portlet-factory', 'element-mover'],
+                        'element-mover'],
     },
 
     'interaction-designer': {
@@ -249,8 +258,7 @@
         },
         'model': 'content-author',
         'perspectives': ['content-author'],
-        'controllers': ['main-editor-perspectives', 'portlet-factory',
-                        'element-mover'],
+        'controllers': ['main-editor-perspectives', 'element-mover'],
     },
 
     # screen
@@ -322,7 +330,7 @@
         },
         'model': 'portlet-factory',
         'perspectives': ['page-designer', 'layout-designer', 'content-author'],
-        'controllers': ['main-editor-perspectives', 'portlet-factory'],
+        'controllers': ['main-editor-perspectives'],
     },
 
     # Contextual menu

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 Tue Apr 11 
11:11:01 2006
@@ -726,6 +726,7 @@
     var dragEvent = this.dragEvent.bindAsEventListener(
                       Object.extend(this, {'widget': widget}));
     Event.observe(widget, "mousedown", dragEvent);
+
   },
 
   unregister: function(view) {
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to