Author: jmorliaguet Date: Thu Mar 16 17:09:29 2006 New Revision: 2647 Modified: cpsskins/branches/jmo-perspectives/ui/authoring/definitions.py Log:
- UI definition updates 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 Thu Mar 16 17:09:29 2006 @@ -1,7 +1,7 @@ from zope.i18nmessageid import MessageFactory -_ = MessageFactory("cpsskins") +_ = MessageFactory('cpsskins') MODELS = { 'action-pad': { @@ -75,7 +75,7 @@ 'id': 'portlet-factory', 'data': { 'url': '@@portletFactory.html', - } + }, }, 'settings': { @@ -118,10 +118,15 @@ 'id': 'tooltip', 'widget': { 'type': 'tooltip', + 'follow': True, }, 'show_effect': { 'transition': 'fadein', - 'delay': 2000, + 'delay': 1000, + }, + 'hide_effect': { + 'transition': 'fadeout', + 'delay': 1000, }, 'controllers': ['show-hide-tooltip'], }, @@ -251,7 +256,8 @@ }, 'model': 'portlet-factory', 'perspectives': ['page-designer', 'layout-designer', 'content-author'], - 'controllers': ['main-editor-perspectives'], + 'controllers': ['main-editor-perspectives', 'portlet-toolbox', + 'portlet-factory'], }, # Contextual menu @@ -332,4 +338,17 @@ 'id': 'show-hide-tooltip', 'type': 'focus observer', }, + 'portlet-factory':{ + 'id': 'portlet-factory', + 'type': 'drag-and-drop', + 'dragging': { + 'sources': ['.toolbox .factory'], + 'feedback': { + 'opacity': 0.8, + }, + 'revert': { + 'duration': 400, + } + } + }, } -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins