Changeset 15015


Ignore:
Timestamp:
03/03/10 16:04:21 (2 years ago)
Author:
sam
Message:

stylage xul sc4 suite

Location:
trunk
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_Core/content/scenariCore/widgets/matrix/matrix.xbl.css

    r15007 r15015  
    120120} 
    121121 
     122/* ======================== slotTabs ======================== */  
    122123slotTab{ 
    123124        -moz-binding: url(chrome://scenariCore/content/widgets/matrix/matrix.xbl.xml#slotTab); 
     
    127128} 
    128129 
    129 /* ======================== slotTabs ======================== */  
    130130slotTab, 
    131131slotTabContent{ 
     
    208208} 
    209209slotTabContent *[anonid=tabToolBar]{ 
    210                 padding: 1px 2px 1px 2px; 
     210        padding: 1px 2px 1px 2px; 
     211        margin: 0px 0px 0px 23px; 
    211212        -moz-border-radius-bottomleft: 10px; 
    212213        opacity:0.4; 
     
    243244} 
    244245 
    245  
    246  
    247246/* ======================== closeBtn ======================== */  
    248247toolbarbutton.closeBtn { 
     
    255254        height: 16px; 
    256255} 
    257 slotTabContent.selectedTab toolbarbutton.closeBtn{ 
     256slotTab.selectedTab toolbarbutton.closeBtn, 
     257slotTabContent.selectedTab toolbarbutton.closeBtn       { 
    258258        -moz-image-region: rect(0px, 16px, 16px, 0px); 
    259         visibility:visible; 
    260 } 
    261 toolbarbutton.closeBtn:hover, 
    262 slotTabContent.selectedTab toolbarbutton.closeBtn:hover { 
    263         -moz-image-region: rect(0px, 32px, 16px, 16px); 
    264         visibility:visible; 
    265 } 
    266 toolbarbutton.closeBtn:active, 
    267 slotTabContent.selectedTab toolbarbutton.closeBtn:active { 
    268         -moz-image-region: rect(0px, 48px, 16px, 32px); 
    269         visibility:visible; 
     259} 
     260toolbarbutton.closeBtn:hover { 
     261        -moz-image-region: rect(0px, 32px, 16px, 16px) !important; 
     262} 
     263toolbarbutton.closeBtn:active { 
     264        -moz-image-region: rect(0px, 48px, 16px, 32px) !important; 
    270265} 
    271266 
  • trunk/Xul_Core/content/scenariCore/widgets/matrix/matrix.xbl.xml

    r15007 r15015  
    639639                                <xul:label class="tabLabelTxt small-margin" xbl:inherits="value=label"/> 
    640640                                        </xul:hbox> 
    641                             <xul:toolbarbutton anonid="closeBtn" class="closeBtn" hidden="true" xbl:inherits="hidden=notClosable" oncommand="document.getBindingParent(this).closeTab();"/> 
     641                            <xul:toolbarbutton anonid="closeBtn" class="closeBtn" hidden="true" xbl:inherits="hidden=notClosable" oncommand="document.getBindingParent(this).closeTab();" tooltiptext="Fermer cet onglet"/> 
    642642            </children> 
    643643                </content> 
  • trunk/Xul_Core/content/scenariCore/widgets/matrix/slotContents.xbl.xml

    r15007 r15015  
    112112                                                <xul:hbox class="tabTools" pack="end" align="top"> 
    113113                                                        <xul:hbox anonid="tabToolBar"> 
    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();"/> 
     114                                                                <xul:toolbarbutton anonid="optionBtn" class="optionBtn" onmousedown="document.getBindingParent(this).showOptionMnu(this)" tooltiptext="Options..."/> 
     115                                                <xul:toolbarbutton anonid="closeBtn" class="closeBtn" oncommand="document.getBindingParent(this).closeTab();" tooltiptext="Fermer cet onglet"/> 
    116116                                                        </xul:hbox> 
    117117                                                </xul:hbox> 
    118118                                                <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=""/> 
     119                                <xul:menuitem disabled="true" anonid="optionMnu.refresh" label="Recharger cet onglet" oncommand="" tooltiptext=""/> 
    121120                                <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=""/> 
     121                                <xul:menuitem anonid="optionMnu.closeTab" label="Fermer cet onglet" oncommand="document.getBindingParent(this).closeTab();" tooltiptext=""/> 
     122                                <xul:menuitem disabled="true" anonid="optionMnu.CloseOtherTabs" label="Fermer les autres onglets" oncommand="" tooltiptext=""/> 
     123                                <xul:menuitem disabled="true" anonid="optionMnu.closeAllTab" label="Fermer tous les onglets" oncommand="" tooltiptext=""/> 
    125124                                                </xul:popup> 
    126125                                        </xul:stack> 
  • trunk/Xul_Wsp/content/scenariWsp/views/contentView/contentView.xbl.xml

    r14893 r15015  
    282282                                                if(vIsUriVisible) { 
    283283                                                        pView.setAttribute("label", src.getLeafFromUri(vShortDesc.srcUri)); 
    284                                                         pView.setAttribute("longDesc", vShortDesc.itTi || ""); 
     284                                                        pView.setAttribute("longDesc", (vShortDesc.itTi ? vShortDesc.itTi+" - " : "") + vShortDesc.srcUri); 
    285285                                                } else { 
    286286                                                        var vPack = packMgr.getPack(vShortDesc.itPack); 
    287287                                                        if(vShortDesc.itTi) { 
    288288                                                                pView.setAttribute("label", vShortDesc.itTi); 
    289                                                                 pView.setAttribute("longDesc", vPack.getTitle(vItem.itModel)); 
     289                                                                pView.setAttribute("longDesc", vPack.getTitle(vShortDesc.itModel)); 
    290290                                                        } else { 
    291                                                                 pView.setAttribute("label", vPack.getTitle(vItem.itModel)); 
     291                                                                pView.setAttribute("label", vPack.getTitle(vShortDesc.itModel)); 
    292292                                                                pView.setAttribute("longDesc", ""); 
    293293                                                        } 
     
    298298                                                        pView.setAttribute("iconUrl", item.getUrlIcon(vIconUrl, vShortDesc.itSt)); 
    299299                                                } else { 
    300                                                         pView.setAttribute("iconUrl", ""); 
     300                                                        var vWspTypeUi = pUriObject.getWsp().getWspTypeUi(); 
     301                                                        var vIcon; 
     302                                                        if(vWspTypeUi) vIcon = vWspTypeUi.getSpaceFolderIconUrl(); 
     303                                                        if(!vIcon) vIcon = "chrome://scenariCms/content/icon/icspace"; 
     304                                                        pView.setAttribute("iconUrl", item.getUrlIcon(vIcon, 1)); 
    301305                                                } 
    302306                                        }catch(e) { 
  • trunk/Xul_Wsp/content/scenariWsp/views/treeItemnetView/treeItemnetView.xbl.css

    r14998 r15015  
    6060        background-color: Highlight; 
    6161} 
     62 
     63toolbarbutton.ascBtn{ 
     64        list-style-image: url("chrome://scenariWsp/content/views/treeItemnetView/img/asc-button.png"); 
     65} 
     66toolbarbutton.descBtn{ 
     67        list-style-image: url("chrome://scenariWsp/content/views/treeItemnetView/img/desc-button.png"); 
     68} 
     69 
     70 
     71toolbarbutton.ascBtn, 
     72toolbarbutton.descBtn{ 
     73        -moz-appearance: none; 
     74        -moz-image-region: rect(0px, 16px, 16px, 0px); 
     75        padding: 0px 0px 0px 0px; 
     76        border: none !important; 
     77  border-right: 0px; 
     78  border-left: 0px; 
     79        width: 16px; 
     80        height: 16px; 
     81} 
     82toolbarbutton.ascBtn:hover, 
     83toolbarbutton.descBtn:hover{ 
     84  -moz-image-region: rect(0px, 32px, 16px, 16px); 
     85} 
     86toolbarbutton.ascBtn:active, 
     87toolbarbutton.descBtn:active{ 
     88  -moz-image-region: rect(0px, 48px, 16px, 32px); 
     89} 
     90toolbarbutton.ascBtn .toolbarbutton-text, 
     91toolbarbutton.descBtn .toolbarbutton-text{ 
     92        display:none; 
     93} 
     94toolbarbutton.ascBtn[checked=true], 
     95toolbarbutton.descBtn[checked=true]{ 
     96        -moz-image-region: rect(16px, 16px, 32px, 0px); 
     97  padding-top: 0px !important; 
     98  padding-bottom: 0px !important; 
     99  -moz-padding-start: 0px !important; 
     100  -moz-padding-end: 0px !important; 
     101  background-image:none; 
     102} 
     103toolbarbutton.ascBtn[checked=true]:hover, 
     104toolbarbutton.descBtn[checked=true]:hover{ 
     105  -moz-image-region: rect(16px, 32px, 32px, 16px); 
     106} 
     107toolbarbutton.ascBtn[checked=true]:active, 
     108toolbarbutton.descBtn[checked=true]:active{ 
     109  -moz-image-region: rect(16px, 48px, 32px, 32px); 
     110} 
  • trunk/Xul_Wsp/content/scenariWsp/views/treeItemnetView/treeItemnetView.xbl.xml

    r15014 r15015  
    904904                </resources> 
    905905                <content orient="horizontal"> 
    906                         <xul:toolbarbutton anonid="ascBtn" label="Asc." tooltiptext="Arbre des items ascendants" oncommand="document.getBindingParent(this).setViewAsc(true);"/> 
    907                         <xul:toolbarbutton anonid="descBtn" label="Desc." tooltiptext="Arbre des items descendants" oncommand="document.getBindingParent(this).setViewAsc(false);"/> 
     906                        <xul:toolbarbutton anonid="ascBtn" class="ascBtn" label="Asc." tooltiptext="Arbre des items ascendants" oncommand="document.getBindingParent(this).setViewAsc(true);"/> 
     907                        <xul:toolbarbutton anonid="descBtn" class="descBtn" label="Desc." tooltiptext="Arbre des items descendants" oncommand="document.getBindingParent(this).setViewAsc(false);"/> 
    908908                </content> 
    909909                <implementation> 
Note: See TracChangeset for help on using the changeset viewer.