Ignore:
Timestamp:
03/02/10 10:57:16 (2 years ago)
Author:
sys
Message:

wspNavView : noContent box.

File:
1 edited

Legend:

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

    r14843 r14994  
    5656                <content flex="1" orient="vertical" label="Explorateur" iconUrl="" longDesc="Explorateur de l'atelier" contextmenu="_child"> 
    5757                        <xul:menupopup actionsLists="menu:wspNavView menu:common:uri" groupsOrder="uriCopyPaste uriEdit uriCreate uriActions * uriActionsOut" xbl:inherits="groupsOrder" onpopupshowing="return this.parentNode.fViewMgr.onPopupShowing(event);" onpopuphiding="this.parentNode.fViewMgr.onPopupHiding(event);" onclick="event.stopPropagation();"/> 
     58                        <xul:vbox anonid="noContent" hidden="true"> 
     59                                <xul:description>Cet atelier est vide.</xul:description> 
     60                                <xul:description>Commencez par créer un espace de travail, vous pourrez ensuite créer des items.</xul:description> 
     61                                <xul:button label="Créer un espace" oncommand="document.getBindingParent(this).fViewMgr.createSpace(event);"/> 
     62                        </xul:vbox> 
    5863                        <xul:tree flex="1" hidecolumnpicker="true" seltype="single" _selectDelay="500" flags="dont-build-content"> 
    5964                                <xul:treecols> 
     
    6873                                <xul:iframe class="itemViewPreview" style="overflow:hidden;" hidden="true" width="350" height="150" xbl:inherits="width=widthpreview, height=heightpreview"/> 
    6974                        </xul:tooltip> 
    70                         <xul:iframe anonid="iframe" flex="0" style="visibility: collapse;"/><!-- For zip download... XXX Better way ?--> 
    7175                </content> 
    7276 
     
    8084                                        var vWsp = desk.getWsp(); 
    8185                                        Components.utils.import("resource://scenariWsp/views/wspNavView/WspNavView.jsm", this); 
    82                                         this.fViewMgr = new this.WspNavView(window, vWsp, this.fTree, document.getAnonymousElementByAttribute(this, "anonid", "tooltip")); 
     86                                        this.fViewMgr = new this.WspNavView(window, vWsp, this.fTree, document.getAnonymousElementByAttribute(this, "anonid", "tooltip"), document.getAnonymousElementByAttribute(this, "anonid", "noContent")); 
    8387                                        this.fViewMgr.setAccelKeyMgr(new actions.AccelKeyMgr().initFromMapActions(extPoints.mergeListsAsMap(["accelKey:wspNavView", "accelKey:common:uri"]))); 
    8488                                }catch(e){log.debug("wspNavView.onViewShown:: " + e);} 
Note: See TracChangeset for help on using the changeset viewer.