Changeset 15051
- Timestamp:
- 03/05/10 19:38:19 (2 years ago)
- Location:
- trunk/Xul_Wsp
- Files:
-
- 1 added
- 9 edited
-
content/scenariWsp/desks/wspDesk/wspDesk.js (modified) (4 diffs)
-
content/scenariWsp/views/wspNavView/wspNavView.xbl.css (modified) (1 diff)
-
content/scenariWsp/views/wspNavView/wspNavView.xbl.xml (modified) (3 diffs)
-
content/scenariWsp/widgets/refItem/refItem.xbl.css (modified) (2 diffs)
-
content/scenariWsp/widgets/refItem/refItem.xbl.xml (modified) (3 diffs)
-
content/scenariWsp/windows/itemSelector/selItem.css (modified) (1 diff)
-
content/scenariWsp/windows/itemSelector/selItem.js (modified) (1 diff)
-
content/scenariWsp/windows/itemSelector/selItem.xul (modified) (2 diffs)
-
content/scenariWsp/windows/itemSelector/wspNavViewSelector.xbl.xml (added)
-
modules/scenariWsp/views/wspNavView/WspNavView.jsm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Xul_Wsp/content/scenariWsp/desks/wspDesk/wspDesk.js
r15050 r15051 191 191 extPoints.addToList("event:load:wspDesk", "windowTitle", 1, function(){ 192 192 document.documentElement.setAttribute("title", desk.getWsp().getCode() + " - " + document.documentElement.getAttribute("title")); 193 } );193 }, 0); 194 194 195 195 //onload : Gestion de la fonction de maximisation d'un block. … … 197 197 document.addEventListener(SCMAXIMIZEBLOCK_EVENT, scMaxBlockOnMaximize, false); 198 198 document.addEventListener(SCNORMALIZEBLOCK_EVENT, scMaxBlockOnNormalize, false); 199 } );199 }, 0); 200 200 201 201 //onload : Ajustements et inits graphiques menus, matrix... … … 209 209 accelKeyMgr.initFromMapActions(extPoints.getListAsMap("accelKey:deskWsp")); 210 210 accelKeyMgr.listenEventsOnWindow(window); 211 } );211 }, 0); 212 212 213 213 //onload : Ouverture d'une Uri... 214 214 extPoints.addToList("event:load:wspDesk", "launchUri", 1, function(){ 215 if(window.arguments .length > 0) {215 if(window.arguments && window.arguments.length > 0) { 216 216 var vLaunchContext = window.arguments[0]; 217 217 if(vLaunchContext && vLaunchContext.refUriToOpen) { … … 219 219 } 220 220 } 221 } );221 }, 100); 222 222 223 223 -
trunk/Xul_Wsp/content/scenariWsp/views/wspNavView/wspNavView.xbl.css
r15016 r15051 68 68 } 69 69 70 treechildren:-moz-tree-cell-text(WrongType){ 71 color:gray; 72 } 73 treechildren:-moz-tree-cell-text(GoodType){ 74 font-weight: bold; 75 } 76 70 77 71 78 vbox[anonid="noContent"] description{ -
trunk/Xul_Wsp/content/scenariWsp/views/wspNavView/wspNavView.xbl.xml
r14994 r15051 82 82 try{ 83 83 if(this.fViewMgr) return; //déja initialisé 84 this.xInitViewMgr(); 85 }catch(e){log.debug("wspNavView.onViewShown:: " + e);} 86 ]]></body> 87 </method> 88 <method name="xInitViewMgr"> 89 <body><![CDATA[ 90 try{ 84 91 var vWsp = desk.getWsp(); 85 92 Components.utils.import("resource://scenariWsp/views/wspNavView/WspNavView.jsm", this); 86 93 this.fViewMgr = new this.WspNavView(window, vWsp, this.fTree, document.getAnonymousElementByAttribute(this, "anonid", "tooltip"), document.getAnonymousElementByAttribute(this, "anonid", "noContent")); 87 94 this.fViewMgr.setAccelKeyMgr(new actions.AccelKeyMgr().initFromMapActions(extPoints.mergeListsAsMap(["accelKey:wspNavView", "accelKey:common:uri"]))); 88 }catch(e){log.debug("wspNavView. onViewShown:: " + e);}95 }catch(e){log.debug("wspNavView.xInitViewMgr:: " + e);} 89 96 ]]></body> 90 97 </method> … … 97 104 </implementation> 98 105 <handlers> 99 <handler event="viewShown" >106 <handler event="viewShown" phase="target"> 100 107 this.onViewShown(); 101 108 </handler> … … 122 129 </handlers> 123 130 </binding> 131 124 132 </bindings> -
trunk/Xul_Wsp/content/scenariWsp/widgets/refItem/refItem.xbl.css
r15049 r15051 40 40 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 41 41 42 ptritem{43 -moz-user-focus: normal;44 padding: 1px;45 cursor: pointer;46 margin-left: 4px;47 }48 49 ptritem[isNull][notnull]{50 background-image: url(chrome://scenariXedLib/content/libUiBase/skin/img/error.png);51 background-repeat: no-repeat;52 padding-left: 15px;53 }54 55 *[empty] ptritem[isNull][notnull]{56 background-image: none;57 padding-left: 4px;58 }59 60 shortDescDrawerRef {61 -moz-binding: url("chrome://scenariWsp/content/widgets/shortDescDrawer/shortDescDrawer.xbl.xml#ref");62 }63 42 shortDescDrawerRefMini { 64 43 -moz-binding: url("chrome://scenariWsp/content/widgets/shortDescDrawer/shortDescDrawer.xbl.xml#refMini"); … … 68 47 -moz-binding: url("chrome://scenariCms/content/widgets/item/tooltipItemTypes.xbl.xml#tooltip"); 69 48 } 49 50 hbox[anonid="errorLink"] { 51 display: none; 52 } 53 *[error]>hbox[anonid="errorLink"] { 54 display: block; 55 } 56 57 image[anonid="imgError"] { 58 list-style: url(chrome://scenariXedLib/content/libUiBase/skin/img/error.png); 59 margin: 0px 3px; 60 } -
trunk/Xul_Wsp/content/scenariWsp/widgets/refItem/refItem.xbl.xml
r15050 r15051 51 51 <content orient="vertical"> 52 52 <xul:shortDescDrawerRefMini anonid="drawer"/> 53 <xul:hbox tooltip="_child" hidden="true">53 <xul:hbox anonid="errorLink" tooltip="_child"> 54 54 <xul:tooltip anonid="typesAllowed"/> 55 <xul:image />56 <xul:text />55 <xul:image anonid="imgError"/> 56 <xul:text value="Cet item n'est pas du bon type."/> 57 57 </xul:hbox> 58 58 </content> … … 60 60 61 61 <field name="fUriObject">ut.searchUriObject(this)</field> 62 63 <field name="fRegexpSgn"/> 62 64 63 65 <property name="isEmpty" onget="return this.getAttribute('empty')=='true';"/> … … 163 165 </binding> 164 166 167 168 <!-- TODO... --> 165 169 <binding id="refItemEdit" extends="#refItemView"> 166 170 <implementation> -
trunk/Xul_Wsp/content/scenariWsp/windows/itemSelector/selItem.css
r15049 r15051 47 47 /*-moz-binding: url("chrome://scenariWsp/content/widgets/shortDescDrawer/shortDescDrawer.xbl.xml#refMini");*/ 48 48 } 49 #btnsBar{ 50 min-height: 4em; 51 padding: 3px 10px; 52 } 49 53 -
trunk/Xul_Wsp/content/scenariWsp/windows/itemSelector/selItem.js
r15050 r15051 101 101 //Init du contexte 102 102 vRefItemView.fUriObject = new UriObjectWsp(desk.getWsp().getCode(), desk.getWsp().getDataProvider()); 103 vRefItemView.fRegexpSgn = sContext.regexpSgn; 103 104 //Abonnement à DeskInfo pour mettre à jour l'item sélectionné 104 105 var vListener = { -
trunk/Xul_Wsp/content/scenariWsp/windows/itemSelector/selItem.xul
r15049 r15051 62 62 <matrix id="matrix" orient="horizontal"/> 63 63 64 <hbox id="btnsBar" >64 <hbox id="btnsBar" align="center"> 65 65 <hbox id="itemViewBox" align="center"> 66 66 <text id="itemViewLabel" value="Item sélectionné : "/> … … 79 79 var sThisCallback = window.arguments[2] || sContext.window; 80 80 var sResult = {}; 81 log.info("sContext::::::::::"+log.listProperties(sContext));82 81 83 82 //Init de la fontSize de la window -
trunk/Xul_Wsp/modules/scenariWsp/views/wspNavView/WspNavView.jsm
r15037 r15051 116 116 WspNavView.prototype.getAccelKeyMgr = function(){ 117 117 return this.fAccelKeyMgr; 118 } 119 120 WspNavView.prototype.setRegexpSgn = function(pRegexpSgn){ 121 this.fRegexpSgn = pRegexpSgn; 122 if(pRegexpSgn) { 123 var vServiceAtom = Cc["@mozilla.org/atom-service;1"].getService(Ci.nsIAtomService); 124 this.fWrongType = vServiceAtom.getAtom("WrongType"); 125 this.fGoodType = vServiceAtom.getAtom("GoodType"); 126 } 127 } 128 WspNavView.prototype.getRegexpSgn = function(){ 129 return this.fRegexpSgn; 118 130 } 119 131 … … 232 244 WspNavView.prototype.getCellProperties = function(pRow, pCol, pProps){ 233 245 if(this.fIsCutting && this.xGetItem(pRow).isCutting) pProps.AppendElement(this.fInCut); 234 if(this.xGetItem(pRow).tmpItem) pProps.AppendElement(this.fTmpItem); 246 var vItem = this.xGetItem(pRow); 247 if(vItem.tmpItem) pProps.AppendElement(this.fTmpItem); 248 if(this.fRegexpSgn) { 249 if(!("ittyOk" in vItem)){ 250 vItem.ittyOk = 0; 251 if(vItem.itSgn) vItem.ittyOk = this.fRegexpSgn.test(vItem.itSgn) ? 1 : -1; 252 } 253 if(vItem.ittyOk != 0) pProps.AppendElement(vItem.ittyOk>0 ? this.fGoodType : this.fWrongType); 254 } 235 255 } 236 256
Note: See TracChangeset
for help on using the changeset viewer.