Ignore:
Timestamp:
Sep 21, 2010, 12:29:45 AM (11 years ago)
Author:
rene <just@…>
Branches:
ng_0.6, ng_0.8, ng_0.9
Children:
c65ba0
Parents:
2e8903
Message:

changed vI_rdfDatasource into class to allow multiple instances

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_rdfDataTree.xul

    r2e8903 rc4e569  
    3838%messengercomposeDTD;
    3939<!ENTITY % filtersDTD SYSTEM "chrome://messenger/locale/FilterListDialog.dtd">%filtersDTD;
     40<!ENTITY % abMainWindowDTD SYSTEM "chrome://messenger/locale/addressbook/abMainWindow.dtd" >
     41%abMainWindowDTD;
    4042]>
    4143
     
    4446        width="750"
    4547        height="500"
    46     persist="width,height,screenX,screenY"
     48        persist="width,height,screenX,screenY"
    4749        onload="vI_rdfDataTree.init();"
    48     title="&vI_rdfDataTree.dlgTitle.label;">
     50        onunload="vI_rdfDataTree.clean();"
     51        title="&vI_rdfDataTree.dlgTitle.label;">
    4952
    5053<script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfDataTree.js" />
     
    5255<script type="application/x-javascript" src="chrome://v_identity/content/vI_helper.js" />
    5356<script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfDatasource.js" />
    54 <script type="application/x-javascript" src="chrome://v_identity/content/vI_storageExtras.js" />
    55 <script type="application/x-javascript" src="chrome://v_identity/content/vI_storage.js" />
    5657<script type="application/x-javascript" src="chrome://v_identity/content/vI_notificationBar.js"/>
    5758<script type="application/x-javascript" src="chrome://messenger/content/messengercompose/MsgComposeCommands.js"/>
    58 
    5959
    6060<stringbundleset id="stringbundleset">
     
    9696    <vbox><spacer flex="1"/>
    9797    <menubar>
    98         <menu id="editMenu" label="&vI_rdfDataTree.editMenu.label;"
    99             accesskey="&vI_rdfDataTree.editMenu.accesskey;">
    100         <menupopup onpopupshowing="if (event.target == this) vI_rdfDataTree.updateMenu();">
    101             <menuitem id="menu_modifySelected" label="&vI_rdfDataTree.modifySelected.label;"
    102                 accesskey="&vI_rdfDataTree.modifySelected.accesskey;"
    103                 oncommand="vI_rdfDataTree.modifySelected();"/>
    104             <menuitem id="menu_removeSelected" label="&vI_rdfDataTree.removeSelected.label;"
    105                 accesskey="&vI_rdfDataTree.removeSelected.accesskey;"
    106                 oncommand="vI_rdfDataTree.removeSelected();"/>
    107             <menuitem id="menu_newItem" label="&vI_rdfDataTree.newItem.label;"
    108                 accesskey="&vI_rdfDataTree.newItem.accesskey;"
    109                 oncommand="vI_rdfDataTree.newItem();"/>
    110             <menuseparator />
    111             <menuitem id="menu_menu_selectAll" label="&selectAllCmd.label;" accesskey="&selectAllCmd.accesskey;"
    112                 oncommand="vI_rdfDataTree.selectAll();"/>
     98        <menu id="editMenu" label="&vI_rdfDataTree.editMenu.label;"
     99            accesskey="&vI_rdfDataTree.editMenu.accesskey;">
     100        <menupopup onpopupshowing="if (event.target == this) vI_rdfDataTree.updateMenu();">
     101            <menuitem id="menu_modifySelected" label="&vI_rdfDataTree.modifySelected.label;"
     102                accesskey="&vI_rdfDataTree.modifySelected.accesskey;"
     103                oncommand="vI_rdfDataTree.modifySelected();"/>
     104            <menuitem id="menu_removeSelected" label="&vI_rdfDataTree.removeSelected.label;"
     105                accesskey="&vI_rdfDataTree.removeSelected.accesskey;"
     106                oncommand="vI_rdfDataTree.removeSelected();"/>
     107            <menuitem id="menu_newItem" label="&vI_rdfDataTree.newItem.label;"
     108                accesskey="&vI_rdfDataTree.newItem.accesskey;"
     109                oncommand="vI_rdfDataTree.newItem();"/>
     110            <menuseparator />
     111            <menuitem id="menu_menu_selectAll" label="&selectAllCmd.label;" accesskey="&selectAllCmd.accesskey;"
     112                oncommand="vI_rdfDataTree.selectAll();"/>
     113        </menupopup>
     114        </menu>
     115        <menu id="tasksMenu" label="&tasksMenu.label;" accesskey="&tasksMenu.accesskey;">
     116        <menupopup>
     117            <menuitem label="&importCmd.label;" accesskey="&importCmd.accesskey;" oncommand="vI_rdfDatasource = new vI_rdfDatasource(); vI_rdfDatasource.import('virtualIdentity.rdf')"/>
     118            <menuitem label="&exportCmd.label;" accesskey="&exportCmd.accesskey;" oncommand="vI_rdfDatasource = new vI_rdfDatasource(); vI_rdfDatasource.export('virtualIdentity.rdf')"/>
    113119        </menupopup>
    114120        </menu>
Note: See TracChangeset for help on using the changeset viewer.