Changeset 19633
- Timestamp:
- 02/02/12 23:25:01 (4 months ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
Wsp_Modeling/es/content/collab/simpleTask/xml.xed.xml (modified) (3 diffs)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs/sm_simpleTask.xml (modified) (1 diff)
-
Xul_Core/content/Core/widgets/jsForm/jsForm.xbl.css (modified) (1 diff)
-
Xul_Wsp/content/Collab/widgets/jsForm/taskInputs.jsm (modified) (3 diffs)
-
Xul_Wsp/content/Collab/widgets/jsForm/taskInputs.xbl.xml (modified) (3 diffs)
-
Xul_Wsp/content/Collab/widgets/taskBox/taskBox.css (modified) (2 diffs)
-
Xul_Wsp/content/Collab/widgets/taskBox/taskBox.xbl.xml (modified) (2 diffs)
-
Xul_Wsp/content/Wsp/widgets/jsForm/wspJsForm.xbl.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/es/content/collab/simpleTask/xml.xed.xml
r19545 r19633 49 49 <attribute se:id="att_position" se:name="position" se:bind="attribute" tooltiptext="Positions par défaut : creators(100), executors(200), followers(300), label(400), stage(500), deadline(600), description(700), comment(800)."> 50 50 <wordsInput trim="true" validRegExp="^[0-9]+$" frenchPonct="false"/> 51 </attribute> 52 <attribute se:id="att_closed" se:name="closed" se:bind="attribute"> 53 <choiceInput> 54 <ciItem label="true"/> 55 <ciItem label="false"/> 56 </choiceInput> 51 57 </attribute> 52 58 </se:lib> … … 359 365 <se:ref se:refid="att_position"/> 360 366 <se:ref se:refid="att_display"/> 367 <se:ref se:refid="att_closed"/> 361 368 </atts> 362 369 <childs> … … 386 393 </attribute> 387 394 <se:ref se:refid="att_position"/> 395 <se:ref se:refid="att_closed"/> 388 396 </atts> 389 397 <childs> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs/sm_simpleTask.xml
r19571 r19633 326 326 <xsl:value-of select="chaineProtegeJs(si($pFormWidget[@name], $pFormWidget/@name, @name))"/> 327 327 <xsl:text>")</xsl:text> 328 <!-- @display --> 328 329 <xsl:choose> 329 330 <xsl:when test="$pFormWidget/@display='none'">.setVisible(false)</xsl:when> 330 331 <xsl:when test="$pFormWidget/@display='readOnly'">.setReadOnly(true)</xsl:when> 331 332 </xsl:choose> 333 <!-- @closed --> 334 <xsl:if test="$pFormWidget/@closed">.setClosed(<xsl:value-of select="$pFormWidget/@closed='true'"/>)</xsl:if> 335 <!-- sm:perms --> 332 336 <!-- TODO perms 333 337 .addWritePermName() -
trunk/Xul_Core/content/Core/widgets/jsForm/jsForm.xbl.css
r19438 r19633 211 211 padding: 3px 3px 6px; 212 212 } 213 214 /* elements collapsables */ 215 *[closed] label[anonid=label]{ 216 -moz-padding-start : 18px; 217 background-repeat: no-repeat; 218 -moz-user-select: element; 219 } 220 221 *[closed=true] label[anonid=label]{ 222 background-image: url("chrome://scenariCore/content/widgets/jsForm/img/right-button.png"); 223 } 224 *[closed=false] label[anonid=label]{ 225 background-image: url("chrome://scenariCore/content/widgets/jsForm/img/down-button.png"); 226 } 227 228 *[closed=true] .maskIfClosed{ 229 visibility: collapse; 230 } -
trunk/Xul_Wsp/content/Collab/widgets/jsForm/taskInputs.jsm
r19549 r19633 68 68 } 69 69 taskInputs.DescriptionInputArea.prototype = { 70 __proto__ : wspJsForm.XedInputArea.prototype 70 __proto__ : wspJsForm.XedInputArea.prototype, 71 setClosed: function(pValue) { 72 this._closedStatus = pValue; 73 return this; 74 }, 75 buildBody: function(pDomParentElt, pContext){ 76 var vInput = wspJsForm.XedInputArea.prototype.buildBody.call(this, pDomParentElt, pContext); 77 if("_closedStatus" in this) vInput.setAttribute("closed", this._closedStatus); 78 return vInput; 79 } 71 80 } 72 81 … … 82 91 if(src.isNewSrcUri(pContext.shortDesc.srcUri)) return false; 83 92 return wspJsForm.XedInputArea.prototype.isVisible.call(this, pContext); 93 }, 94 setClosed: function(pValue) { 95 this._closedStatus = pValue; 96 return this; 97 }, 98 buildBody: function(pDomParentElt, pContext){ 99 var vInput = wspJsForm.XedInputArea.prototype.buildBody.call(this, pDomParentElt, pContext); 100 if("_closedStatus" in this) vInput.setAttribute("closed", this._closedStatus); 101 return vInput; 84 102 } 85 103 } … … 98 116 return this; 99 117 }, 100 101 118 isVisible : function(pContext) { 102 119 if(src.isNewSrcUri(pContext.shortDesc.srcUri)) return false; 103 120 return jsForm.InputArea.prototype.isVisible.call(this, pContext); 104 121 }, 105 122 setClosed: function(pValue) { 123 this._closedStatus = pValue; 124 return this; 125 }, 106 126 buildBody: function(pDomParentElt, pContext){ 107 127 var vInput = this.buildBaseBody(pDomParentElt, pContext); 108 128 vInput.setAttribute("genCd", this.fGenCd); 129 if("_closedStatus" in this) vInput.setAttribute("closed", this._closedStatus); 109 130 return vInput; 110 131 } 111 112 132 } 113 133 -
trunk/Xul_Wsp/content/Collab/widgets/jsForm/taskInputs.xbl.xml
r19549 r19633 298 298 --> 299 299 <binding id="generatorView"> 300 <resources> 301 <stylesheet src="chrome://scenariCore/content/widgets/jsForm/jsForm.xbl.css"/> 302 </resources> 300 303 <content orient="vertical"> 301 <xul:label anonid="label" xbl:inherits="value=label"/>302 <xul:iframe anonid="genView" flex="1"/>304 <xul:label anonid="label" xbl:inherits="value=label" onclick="document.getBindingParent(this).toggleOpenState()"/> 305 <xul:iframe anonid="genView" class="maskIfClosed" flex="1"/> 303 306 </content> 304 307 <implementation> … … 310 313 var vUrl = "/u/itemDynGen/"+ encodeURIComponent(vUriObject.getWspCd()) + "/" + this.getAttribute("genCd") + "/refUri'" + encodeURIComponent(pContext.shortDesc.srcId) + "'/co"; 311 314 var vIframe = document.getAnonymousElementByAttribute(this, "anonid", "genView"); 315 vIframe.addEventListener("underflow", function(pEvent) { 316 vIframe.style.height = pEvent.target.scrollHeight + 'px'; 317 }.bind(this), true); 312 318 vIframe.setAttribute("src", vUriObject.getWsp().getDataProvider().getServiceUrl(vUrl)); 313 319 //window.setTimeout(function(){log.info("log::::::::::::::\n"+log.getXml(vIframe.contentDocument));}, 2000); … … 315 321 this.hidden = true; 316 322 } 323 ]]></body> 324 </method> 325 326 <method name="toggleOpenState"> 327 <body><![CDATA[ 328 if(this.hasAttribute("closed")) this.setAttribute("closed", this.getAttribute("closed")!='true'); 317 329 ]]></body> 318 330 </method> -
trunk/Xul_Wsp/content/Collab/widgets/taskBox/taskBox.css
r19630 r19633 43 43 .startBox{ 44 44 background-color : #d4dbed; 45 width : 3 0px;45 width : 35px; 46 46 box-shadow: 0px 0px 5px 0px #777777; 47 47 margin-right : 5px; … … 53 53 width : 2px; 54 54 box-shadow: 0px 0px 3px #777777; 55 margin-left : 10px;*/ 55 margin-left : 10px; 56 */ 56 57 } 57 58 -
trunk/Xul_Wsp/content/Collab/widgets/taskBox/taskBox.xbl.xml
r19630 r19633 222 222 this.fCancelBtn.disabled = true; 223 223 this.fReloadBtn.disabled = false; 224 if( this._NeedSave) {224 if(window.fNeedSave) { 225 225 var vEvent = document.createEvent("Events"); 226 226 vEvent.initEvent("XEDStatusNotDirty", true, false); 227 227 this.fJsForm.dispatchEvent(vEvent); 228 this._NeedSave = false;228 window.fNeedSave = false; 229 229 } 230 230 ]]></body> … … 241 241 vEvent.initEvent("XEDStatusDirty", true, false); 242 242 this.fJsForm.dispatchEvent(vEvent); 243 this._NeedSave = true;243 window.fNeedSave = true; 244 244 } 245 245 ]]></body> -
trunk/Xul_Wsp/content/Wsp/widgets/jsForm/wspJsForm.xbl.xml
r19488 r19633 43 43 <!-- 44 44 Input embarquant un XED. 45 @closed 45 46 --> 46 47 <binding id="xedInput" extends="chrome://scenariCore/content/widgets/jsForm/jsForm.xbl.xml#baseInput"> 48 <resources> 49 <stylesheet src="chrome://scenariWsp/content/widgets/jsForm/wspJsForm.xbl.css"/> 50 </resources> 47 51 <content orient="vertical"> 48 <xul:hbox minheight="25" align="center">49 <xul:label anonid="label" xbl:inherits="value=label"/>50 <xul:xedToolBar anonid="toolBar" style="-moz-binding: url(chrome://scenariXedLib/content/libUiBase/widgets/xedUiBase.xbl.xml#xedToolBar);" />51 </xul:hbox>52 <xul:editXedBox anonid="xedBox" hideStructBar="true" xmlErrorsAllowed="false" style="-moz-binding: url(chrome://scenariXedLib/content/core/xed.xbl.xml#xedBoxNoScroll);" xbl:inherits="hideStructBar,xmlErrorsAllowed"/>52 <xul:hbox minheight="25" align="center"> 53 <xul:label anonid="label" xbl:inherits="value=label" onclick="document.getBindingParent(this).toggleOpenState()"/> 54 <xul:xedToolBar anonid="toolBar" style="-moz-binding: url(chrome://scenariXedLib/content/libUiBase/widgets/xedUiBase.xbl.xml#xedToolBar);" /> 55 </xul:hbox> 56 <xul:editXedBox anonid="xedBox" class="maskIfClosed" hideStructBar="true" xmlErrorsAllowed="false" style="-moz-binding: url(chrome://scenariXedLib/content/core/xed.xbl.xml#xedBoxNoScroll);" xbl:inherits="hideStructBar,xmlErrorsAllowed"/> 53 57 </content> 54 58 <implementation> … … 78 82 ]]></body> 79 83 </method> 84 85 <!-- 86 ouvre/ferme l'élément 87 --> 88 <method name="toggleOpenState"> 89 <body><![CDATA[ 90 if(this.hasAttribute("closed")) this.setAttribute("closed", this.getAttribute("closed")!='true'); 91 ]]></body> 92 </method> 80 93 </implementation> 81 94 <handlers>
Note: See TracChangeset
for help on using the changeset viewer.