Changeset 15007
- Timestamp:
- 03/03/10 11:46:37 (2 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 7 edited
-
Xul_Core/content/scenariCore/widgets/matrix/img/option-button.png (added)
-
Xul_Core/content/scenariCore/widgets/matrix/matrix.xbl.css (modified) (8 diffs)
-
Xul_Core/content/scenariCore/widgets/matrix/matrix.xbl.xml (modified) (14 diffs)
-
Xul_Core/content/scenariCore/widgets/matrix/slotContents.xbl.xml (modified) (2 diffs)
-
Xul_Wsp/content/scenariWsp/desks/wspDesk/wspDesk.css (modified) (1 diff)
-
Xul_Wsp/content/scenariWsp/res (added)
-
Xul_Wsp/content/scenariWsp/res/btnAdditem.png (added)
-
Xul_Wsp/content/scenariWsp/res/btnAddspace.png (added)
-
Xul_Wsp/content/scenariWsp/views/outlineView/outline.css (modified) (1 diff)
-
Xul_Wsp/content/scenariWsp/views/treeItemnetView/treeItemnetView.xbl.xml (modified) (2 diffs)
-
Xul_Wsp/content/scenariWsp/views/wspNavView/wspNavView.xbl.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Xul_Core/content/scenariCore/widgets/matrix/matrix.xbl.css
r15002 r15007 69 69 70 70 hbox[anonid=header]{ 71 min-height:2 0px;71 min-height:25px; 72 72 } 73 73 hbox[anonid=tabsContainer]:empty{ … … 91 91 } 92 92 93 93 /* ======================== maxBtn ======================== */ 94 toolbarbutton[anonid=maxBtn] { 95 -moz-appearance: none; 96 list-style-image: url("chrome://scenariCore/content/widgets/matrix/img/bkMax.png"); 97 -moz-image-region: rect(0px, 16px, 16px, 0px); 98 padding: 0px 0px 0px 5px; 99 border: none; 100 border-bottom: 1px solid ThreeDShadow; 101 width: 23px; 102 } 103 toolbarbutton[anonid=maxBtn] .toolbarbutton-icon{ 104 opacity:0.5; 105 } 106 toolbarbutton[anonid=maxBtn]:hover { 107 -moz-image-region: rect(0px, 32px, 16px, 16px); 108 } 109 toolbarbutton[anonid=maxBtn]:hover .toolbarbutton-icon{ 110 opacity:1; 111 } 112 toolbarbutton[anonid=maxBtn]:active { 113 -moz-image-region: rect(0px, 48px, 16px, 32px); 114 } 115 toolbarbutton[anonid=maxBtn]:active .toolbarbutton-icon{ 116 opacity:1; 117 } 118 *[BlockMax=true] toolbarbutton[anonid=maxBtn] { 119 list-style-image: url("chrome://scenariCore/content/widgets/matrix/img/bkNorm.png"); 120 } 121 94 122 slotTab{ 95 123 -moz-binding: url(chrome://scenariCore/content/widgets/matrix/matrix.xbl.xml#slotTab); … … 99 127 } 100 128 129 /* ======================== slotTabs ======================== */ 101 130 slotTab, 102 131 slotTabContent{ … … 138 167 139 168 140 slotTab:focus ,141 slotTabContent:focus {169 slotTab:focus .tabLabelTxt, 170 slotTabContent:focus .tabLabelTxt{ 142 171 /* outline: 1px dotted; pose des pbs avec le xul:arrowscrollbox qui entourre les onglets : les boutons restent parfois affichés. */ 143 172 border: 1px dotted; 144 173 } 145 174 146 slotTabContent[dirty]{147 font-weight: bold;148 }149 175 150 176 slotTab .tabLabel, … … 156 182 padding-left:0px; 157 183 padding-right:0px; 158 } 159 slotTab .tabTools, 184 border: 1px solid transparent; 185 } 186 187 /* ======================== slotTab ======================== */ 188 slotTab toolbarbutton.closeBtn{ 189 padding-right:2px; 190 display: none; 191 } 192 slotTab.selectedTab toolbarbutton.closeBtn[hidden=false]{ 193 display: inline; 194 } 195 196 197 /* ======================== slotTabContent ======================== */ 198 slotTabContent[dirty]{ 199 font-weight: bold; 200 } 160 201 slotTabContent .tabTools{ 161 202 visibility:hidden; … … 163 204 padding: 0px; 164 205 } 165 slotTab:hover .tabTools,166 206 slotTabContent:hover .tabTools { 167 207 visibility:visible; 168 208 } 169 slotTab *[anonid=tabToolBar],170 209 slotTabContent *[anonid=tabToolBar]{ 171 padding: 1px 2px 1px 4px;172 -moz-border-radius-bottomleft: 4px;173 opacity:0. 5;210 padding: 1px 2px 1px 2px; 211 -moz-border-radius-bottomleft: 10px; 212 opacity:0.4; 174 213 background: -moz-linear-gradient(top, threedhighlight,threedface); 175 214 -moz-box-shadow: threedshadow -1px 1px 2px 1px ; 176 215 } 177 slotTab.selectedTab *[anonid=tabToolBar],178 216 slotTabContent.selectedTab *[anonid=tabToolBar]{ 179 217 -moz-border-radius-topright: 4px; 180 218 } 181 slotTab.selectedTab *[anonid=tabToolBar]:empty,182 slotTabContent.selectedTab *[anonid=tabToolBar]:empty{183 display: none;184 }185 slotTab *[anonid=tabToolBar]:hover,186 219 slotTabContent *[anonid=tabToolBar]:hover{ 187 220 opacity:0.9; 188 221 } 189 190 arrowscrollbox[anonid=tabsBar]{191 }192 222 hbox[anonid=buttonsBar]{ 193 223 border-bottom: 1px solid ThreeDShadow; … … 204 234 border: 1px solid ThreeDShadow; 205 235 } 206 207 /* ======================== maxBtn ======================== */ 208 toolbarbutton[anonid=maxBtn] { 209 -moz-appearance: none; 210 list-style-image: url("chrome://scenariCore/content/widgets/matrix/img/bkMax.png"); 211 -moz-image-region: rect(0px, 16px, 16px, 0px); 212 padding: 0px; 213 border: none; 214 border-bottom: 1px solid ThreeDShadow; 215 width: 20px; 216 } 217 toolbarbutton[anonid=maxBtn] .toolbarbutton-icon{ 218 opacity:0.5; 219 } 220 toolbarbutton[anonid=maxBtn]:hover { 221 -moz-image-region: rect(0px, 32px, 16px, 16px); 222 } 223 toolbarbutton[anonid=maxBtn]:hover .toolbarbutton-icon{ 224 opacity:1; 225 } 226 toolbarbutton[anonid=maxBtn]:active { 227 -moz-image-region: rect(0px, 48px, 16px, 32px); 228 } 229 toolbarbutton[anonid=maxBtn]:active .toolbarbutton-icon{ 230 opacity:1; 231 } 232 *[BlockMax=true] toolbarbutton[anonid=maxBtn] { 233 list-style-image: url("chrome://scenariCore/content/widgets/matrix/img/bkNorm.png"); 234 } 235 236 /* ======================== closeBtn ======================== */ 237 toolbarbutton[anonid=closeBtn] { 238 list-style-image: url("chrome://scenariCore/content/widgets/matrix/img/close-button.png"); 239 -moz-image-region: rect(0px, 64px, 16px, 48px); 236 hbox[anonid=buttonsBar] toolbarbutton, 237 toolbar[anonid=buttonsBar2] toolbarbutton{ 240 238 -moz-appearance: none; 241 239 padding: 0px; … … 244 242 height: 16px; 245 243 } 246 .selectedTab>toolbarbutton[anonid=closeBtn]{ 244 245 246 247 /* ======================== closeBtn ======================== */ 248 toolbarbutton.closeBtn { 249 list-style-image: url("chrome://scenariCore/content/widgets/matrix/img/close-button.png"); 250 -moz-image-region: rect(0px, 64px, 16px, 48px); 251 -moz-appearance: none; 252 padding: 0px; 253 border: none !important; 254 width: 16px; 255 height: 16px; 256 } 257 slotTabContent.selectedTab toolbarbutton.closeBtn{ 247 258 -moz-image-region: rect(0px, 16px, 16px, 0px); 248 259 visibility:visible; 249 260 } 250 toolbarbutton[anonid=closeBtn]:hover { 261 toolbarbutton.closeBtn:hover, 262 slotTabContent.selectedTab toolbarbutton.closeBtn:hover { 251 263 -moz-image-region: rect(0px, 32px, 16px, 16px); 252 264 visibility:visible; 253 265 } 254 toolbarbutton[anonid=closeBtn]:active { 266 toolbarbutton.closeBtn:active, 267 slotTabContent.selectedTab toolbarbutton.closeBtn:active { 255 268 -moz-image-region: rect(0px, 48px, 16px, 32px); 256 269 visibility:visible; 257 270 } 271 272 /* ======================== optionBtn ======================== */ 273 toolbarbutton.optionBtn{ 274 list-style-image: url("chrome://scenariCore/content/widgets/matrix/img/option-button.png"); 275 -moz-appearance: none; 276 -moz-image-region: rect(0px, 16px, 16px, 0px); 277 padding: 0px 0px 0px 0px; 278 border: none !important; 279 border-right: 0px; 280 border-left: 0px; 281 width: 16px; 282 height: 16px; 283 } 284 toolbarbutton.optionBtn:hover { 285 -moz-image-region: rect(0px, 32px, 16px, 16px); 286 } 287 toolbarbutton.optionBtn:active { 288 -moz-image-region: rect(0px, 48px, 16px, 32px); 289 } 290 toolbarbutton.optionBtn > .toolbarbutton-text{ 291 display:none; 292 } -
trunk/Xul_Core/content/scenariCore/widgets/matrix/matrix.xbl.xml
r15004 r15007 48 48 </content> 49 49 <implementation> 50 <!-- Doit être appelé pour initialiser la structure (sur le onload d'une page). --> 50 <!-- Doit être appelé pour initialiser la structure (sur le onload d'une page). 51 --> 51 52 <method name="initMatrix"> 52 53 <body><![CDATA[ … … 57 58 ]]></body> 58 59 </method> 59 <!-- Doit être appelé suite à un ajout / suppresion de slots / slotSet. --> 60 <!-- Doit être appelé suite à un ajout / suppresion de slots / slotSet. 61 --> 60 62 <method name="onMatrixUpdates"> 61 63 <body><![CDATA[ … … 112 114 ]]></body> 113 115 </method> 114 <!-- Doit être appelé suite à un ajout / suppresion de slots / slotSet. --> 116 <!-- Doit être appelé suite à un ajout / suppresion de slots / slotSet. 117 --> 115 118 <method name="onMatrixUpdates"> 116 119 <body><![CDATA[ … … 182 185 </property> 183 186 184 <!-- Doit être appelé pour initialiser le slot (cf matrix.initMatrix()). --> 187 <!-- Doit être appelé pour initialiser le slot (cf matrix.initMatrix()). 188 --> 185 189 <method name="initSlot"> 186 190 <body><![CDATA[ … … 199 203 </method> 200 204 201 <!-- Doit être appelée en cas d'ajout ou de modification de la définition des views de ce slot. --> 205 <!-- Doit être appelée en cas d'ajout ou de modification de la définition des views de ce slot. 206 --> 202 207 <method name="onViewDefinitionUpdates"> 203 208 <parameter name="pView"/> … … 276 281 277 282 278 <!-- Interne. Appelé par le xul:deck lors d'un chgt d'offset du panel affiché. --> 283 <!-- Interne. Appelé par le xul:deck lors d'un chgt d'offset du panel affiché. 284 --> 279 285 <method name="onSelectedView"> 280 286 <parameter name="pEvent"/> … … 290 296 </method> 291 297 292 <!-- Interne. Redessine les contours des onglets en fonction de views. --> 298 <!-- Interne. Redessine les contours des onglets en fonction de views. 299 --> 293 300 <method name="redrawSructTabs"> 294 301 <parameter name="pSelectedView"/> … … 385 392 </method> 386 393 387 <!-- Interne. Effectue les différents traitements suite à l'affichage d'une view. --> 394 <!-- Interne. Effectue les différents traitements suite à l'affichage d'une view. 395 --> 388 396 <method name="setNewViewShown"> 389 397 <parameter name="pView"/> … … 431 439 <!-- Interne. Diffuse un évènement informant du changement de view. 432 440 Non implémenté dans le slot de base. 433 Voir les slotContents. --> 441 Voir les slotContents. 442 --> 434 443 <method name="dispatchChange"> 435 444 <parameter name="pOldView"/> … … 440 449 </method> 441 450 442 <!-- Interne. Permet des redraw du slot lorsqu'aucune view n'est sélectionné (buttonsBar...). --> 451 <!-- Interne. Permet des redraw du slot lorsqu'aucune view n'est sélectionné (buttonsBar...). 452 --> 443 453 <method name="noViewSelected"> 444 454 <body><![CDATA[ … … 447 457 </method> 448 458 449 <!-- Interne. Gestion graphique quand un sous-bloc (dans la view) est maximisé. --> 459 <!-- Interne. Gestion graphique quand un sous-bloc (dans la view) est maximisé. 460 --> 450 461 <method name="onMaximizeSubBlock"> 451 462 <parameter name="pEvent"/> … … 465 476 ]]></body> 466 477 </method> 467 <!-- Interne. Gestion graphique quand un sous-bloc (dans la view) est normalisé. --> 478 <!-- Interne. Gestion graphique quand un sous-bloc (dans la view) est normalisé. 479 --> 468 480 <method name="onNormalizeSubBlock"> 469 481 <parameter name="pEvent"/> … … 623 635 <content align="center"> 624 636 <children> 625 <xul:stack> 626 <xul:hbox class="tabLabel"> 627 <xul:image class="tabLabelIco" xbl:inherits="src=image"/> 628 <xul:label class="tabLabelTxt small-margin" xbl:inherits="value=label"/> 629 </xul:hbox> 630 <xul:hbox class="tabTools" pack="end" align="top"> 631 <xul:hbox anonid="tabToolBar"> 632 <xul:toolbarbutton anonid="closeBtn" hidden="true" xbl:inherits="hidden=notClosable" oncommand="document.getBindingParent(this).closeTab();"/> 633 </xul:hbox> 634 </xul:hbox> 635 </xul:stack> 637 <xul:hbox class="tabLabel"> 638 <xul:image class="tabLabelIco" xbl:inherits="src=image"/> 639 <xul:label class="tabLabelTxt small-margin" xbl:inherits="value=label"/> 640 </xul:hbox> 641 <xul:toolbarbutton anonid="closeBtn" class="closeBtn" hidden="true" xbl:inherits="hidden=notClosable" oncommand="document.getBindingParent(this).closeTab();"/> 636 642 </children> 637 643 </content> … … 774 780 </method> 775 781 776 <!-- Doit être appelé en cas de changement des propriétés (label, icon, longdesc). --> 782 <!-- Doit être appelé en cas de changement des propriétés (label, icon, longdesc). 783 --> 777 784 <method name="onDefinitionUpdates"> 778 785 <body><![CDATA[ -
trunk/Xul_Core/content/scenariCore/widgets/matrix/slotContents.xbl.xml
r15000 r15007 106 106 <children> 107 107 <xul:stack> 108 <xul:hbox class="tabLabel" >108 <xul:hbox class="tabLabel" align="center"> 109 109 <xul:image class="tabLabelIco" xbl:inherits="src=image"/> 110 110 <xul:label class="tabLabelTxt small-margin" xbl:inherits="value=label" minwidth="20" crop="end"/> … … 112 112 <xul:hbox class="tabTools" pack="end" align="top"> 113 113 <xul:hbox anonid="tabToolBar"> 114 <xul:toolbarbutton anonid="closeBtn" oncommand="document.getBindingParent(this).closeTab();"/> 114 <xul:toolbarbutton anonid="optionBtn" class="optionBtn" onmousedown="document.getBindingParent(this).showOptionMnu(this)"/> 115 <xul:toolbarbutton anonid="closeBtn" class="closeBtn" oncommand="document.getBindingParent(this).closeTab();"/> 115 116 </xul:hbox> 116 117 </xul:hbox> 118 <xul:popup anonid="optionMnu"> 119 <xul:menuitem disabled="true" anonid="ctxMenu.refresh" label="Actualiser" oncommand=""/> 120 <xul:menuitem disabled="true" label="Recharger cet onglet" oncommand=""/> 121 <xul:menuseparator/> 122 <xul:menuitem disabled="true" anonid="mnuCloseTab" label="Fermer cet onglet" oncommand=""/> 123 <xul:menuitem disabled="true" anonid="mnuCloseOtherTabs" label="Fermer les autres onglets" oncommand=""/> 124 <xul:menuitem disabled="true" anonid="mnuCloseAllTab" label="Fermer tous les onglets" oncommand=""/> 125 </xul:popup> 117 126 </xul:stack> 118 127 </children> 119 128 </content> 129 <xbl:implementation> 130 <field name="fOptionMnu">document.getAnonymousElementByAttribute(this, "anonid", "optionMnu")</field> 131 <method name="showOptionMnu"> 132 <parameter name="pNode"/> 133 <body><![CDATA[ 134 try{ 135 this.fOptionMnu.openPopup(document.getAnonymousElementByAttribute(this, "anonid", "optionBtn"), 'after_start', 0, 1, true, false); 136 }catch(e){log.debug("slotTabContent.showOptionMnu : "+e);} 137 ]]></body> 138 </method> 139 </xbl:implementation> 120 140 </binding> 121 141 </bindings> -
trunk/Xul_Wsp/content/scenariWsp/desks/wspDesk/wspDesk.css
r14986 r15007 50 50 } 51 51 matrix { 52 margin:3px 0 1px 0;52 margin:3px 1px 1px 1px; 53 53 } 54 54 statusbar { -
trunk/Xul_Wsp/content/scenariWsp/views/outlineView/outline.css
r14998 r15007 44 44 -moz-box-flex:1; 45 45 overflow:auto; 46 margin: 0px;47 padding: 2px;46 margin:2px; 47 padding:2px; 48 48 border: 0px; 49 49 background-color: -moz-Field; 50 50 color: -moz-FieldText; 51 -moz-border-radius-bottomleft: 2px;52 -moz-border-radius-bottomright: 2px;53 51 } 54 52 -
trunk/Xul_Wsp/content/scenariWsp/views/treeItemnetView/treeItemnetView.xbl.xml
r14890 r15007 88 88 var sView = this; 89 89 this.fBtnAsc = document.createElementNS(dom.XULNS, "toolbarbutton"); 90 this.fBtnAsc.className = "ascBtn"; 90 91 this.fBtnAsc.setAttribute("label", "@jsStr;Asc."); 91 92 this.fBtnAsc.setAttribute("tooltiptext", "@jsStr;Arbre des items ascendants"); … … 94 95 }, false); 95 96 this.fBtnDesc = document.createElementNS(dom.XULNS, "toolbarbutton"); 97 this.fBtnDesc = "descBtn"; 96 98 this.fBtnDesc.setAttribute("label", "@jsStr;Desc."); 97 99 this.fBtnDesc.setAttribute("tooltiptext", "@jsStr;Arbre des items descendants"); -
trunk/Xul_Wsp/content/scenariWsp/views/wspNavView/wspNavView.xbl.css
r14998 r15007 69 69 70 70 71 vbox[anonid="noContent"] {72 margin: 0.5em 0;71 vbox[anonid="noContent"] description{ 72 font-style: italic; 73 73 } 74 vbox[anonid="noContent"] button { 75 list-style-image: url("chrome://scenariWsp/content/res/btnAddspace.png"); 76 }
Note: See TracChangeset
for help on using the changeset viewer.