Changeset 15061


Ignore:
Timestamp:
03/06/10 12:21:07 (2 years ago)
Author:
sys
Message:

déclaration tree.css

Location:
trunk/Xul_Wsp/content/scenariWsp/views
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_Wsp/content/scenariWsp/views/historyView/historyView.xbl.xml

    r15043 r15061  
    44        xmlns:xbl="http://www.mozilla.org/xbl"> 
    55 
    6         <binding id="historyView" 
    7                 extends="chrome://scenariCore/content/widgets/matrix/matrix.xbl.xml#view-base"> 
     6        <binding id="historyView" extends="chrome://scenariCore/content/widgets/matrix/matrix.xbl.xml#view-base"> 
    87                <resources> 
     8                        <stylesheet src="chrome://scenariCommons/content/widgets/tree/tree.css"/> 
    99                        <stylesheet src="chrome://scenariWsp/content/views/historyView/history.css"/> 
    1010                </resources> 
    11                 <content orient="vertical" flex="1"> 
    12                         <xul:tree type="jsTree" columnsLists="columns:historyView" flex="1" seltype="single" 
    13                                 flags="dont-build-content"/> 
     11                <content label="Historique" orient="vertical" flex="1"> 
     12                        <xul:tree type="jsTree" columnsLists="columns:historyView" flex="1" seltype="single" flags="dont-build-content"/> 
    1413                </content> 
    1514                <implementation> 
    16                         <field name="fTreeNode">document.getAnonymousElementByAttribute(this, "type", 
    17                                 "jsTree")</field> 
     15                        <field name="fTreeNode">document.getAnonymousElementByAttribute(this, "type", "jsTree")</field> 
    1816 
    1917                        <constructor><![CDATA[ 
     
    7068                                        Components.utils.import("resource://scenariCommons/widgets/jsTree/columns.jsm", this); 
    7169                                         
    72                                         var columnDate = new this.columns.Column("date").setLabel("Date").setFlex(1); 
     70                                        var columnDate = new this.columns.Column("date").setLabel("Date").setFlex(1).setWidth(100); 
    7371                                        columnDate.setCellBuilderFactory(function(pJsTreeRoot){ 
    7472                                                return new pJsTreeRoot.CellBuilderLeafDate("srcDt", true, "%3$s/%2$s/%1$s %4$s:%5$s:%6$s"); 
    7573                                        }); 
    76                                         extPoints.addToList("columns:historyView", "columnDate", 1, columnDate, 60); 
     74                                        extPoints.addToList("columns:historyView", "columnDate", 1, columnDate, 10); 
    7775                                         
    78                                         var columnUser = new this.columns.Column("contrib").setLabel("Contributeur").setFlex(1); 
    79                                         columnUser.setCellBuilderFactory(function(pJsTreeRoot){ 
    80                                                 return new pJsTreeRoot.CellBuilderLeafString("srcUser", true); 
    81                                         }); 
    82                                         extPoints.registerSvcByInst("columnUser", 1, columnUser); 
    83                                         extPoints.addToList("columns:historyView", "columnUser", 1, columnUser, 60); 
     76                                        var columnUser = extPoints.getSvc("columnContrib"); 
     77                                        if(!columnUser) { 
     78                                                columnUser = new this.columns.Column("contrib").setLabel("Contributeur").setFlex(1).setWidth(120); 
     79                                                columnUser.setCellBuilderFactory(function(pJsTreeRoot){ 
     80                                                        return new pJsTreeRoot.CellBuilderLeafString("srcUser", true); 
     81                                                }); 
     82                                        } 
     83                                        extPoints.addToList("columns:historyView", "columnUser", 1, columnUser, 20); 
    8484                                }catch(e){log.debug(e);} 
    8585                                ]]></body> 
  • trunk/Xul_Wsp/content/scenariWsp/views/outlineView/outlineView.xbl.xml

    r15027 r15061  
    4848                        <stylesheet src="chrome://scenariWsp-platform/content/views/outlineView/outline.css"/> 
    4949                </resources> 
    50                 <content orient="vertical" flex="1"> 
     50                <content label="Plan" orient="vertical" flex="1"> 
    5151                        <xul:root root="this"/> 
    5252                </content> 
  • trunk/Xul_Wsp/content/scenariWsp/views/treeItemnetView/treeItemnetView.xbl.xml

    r15022 r15061  
    5555                        <stylesheet src="chrome://scenariWsp/content/views/treeItemnetView/treeItemnetView.xbl.css"/> 
    5656                </resources> 
    57                 <content view="asc" flex="1" orient="vertical" label="Liens" iconUrl="" longDesc="Parcours des liens entre items" contextmenu="_child"> 
     57                <content view="asc" flex="1" orient="vertical" label="Liens" longDesc="Parcours des liens entre items" contextmenu="_child"> 
    5858                        <xul:menupopup actionsLists="menu:treeItemnetView menu:common:uri" groupsOrder="uriCopyPaste uriActions * uriActionsOut" xbl:inherits="groupsOrder" onpopupshowing="this.parentNode.onPopupShowing(event);" onpopuphiding="this.parentNode.onPopupHiding(event);" onclick="event.stopPropagation();"/> 
    5959                        <xul:vbox class="dirMsg"> 
Note: See TracChangeset for help on using the changeset viewer.