Ignore:
Timestamp:
03/03/10 11:46:37 (2 years ago)
Author:
sam
Message:

stylage matrix suite

File:
1 edited

Legend:

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

    r15000 r15007  
    106106                                <children> 
    107107                                        <xul:stack> 
    108                                                 <xul:hbox class="tabLabel"> 
     108                                                <xul:hbox class="tabLabel" align="center"> 
    109109                                <xul:image class="tabLabelIco" xbl:inherits="src=image"/> 
    110110                                        <xul:label class="tabLabelTxt small-margin" xbl:inherits="value=label" minwidth="20" crop="end"/> 
     
    112112                                                <xul:hbox class="tabTools" pack="end" align="top"> 
    113113                                                        <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();"/> 
    115116                                                        </xul:hbox> 
    116117                                                </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> 
    117126                                        </xul:stack> 
    118127                    </children> 
    119128                </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> 
    120140        </binding> 
    121141</bindings> 
Note: See TracChangeset for help on using the changeset viewer.