source: chrome/content/v_identity/vI_rdfDataTree.xul @ 97d350

lite_0.1multiEditng_0.6ng_0.6_helpng_0.8ng_0.9
Last change on this file since 97d350 was 97d350, checked in by rene <rene@…>, 13 years ago

created new branch for upcoming 0.6 release. focus on object-orientation. somehow working.

  • Property mode set to 100644
File size: 6.7 KB
Line 
1<?xml version="1.0"?>
2<!-- ***** BEGIN LICENSE BLOCK *****
3   - This program is free software; you can redistribute it and/or modify
4   - it under the terms of the GNU General Public License as published by
5   - the Free Software Foundation; either version 2 of the License, or
6   - (at your option) any later version.
7
8   - This program is distributed in the hope that it will be useful,
9   - but WITHOUT ANY WARRANTY; without even the implied warranty of
10   - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11   - GNU General Public License for more details.
12
13   - You should have received a copy of the GNU General Public License
14   - along with this program; if not, write to the Free Software
15   - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
16
17   - The Original Code is the Virtual Identity Extension.
18
19   - The Initial Developer of the Original Code is Rene Ejury.
20   - Portions created by the Initial Developer are Copyright (C) 2007
21   - the Initial Developer. All Rights Reserved.
22
23   - Contributor(s):
24   - ***** END LICENSE BLOCK ***** -->
25
26<?xml-stylesheet href="chrome://v_identity/skin/v_identity.css" type="text/css"?>
27
28<!DOCTYPE overlay [
29<!ENTITY % dataTreeDTD SYSTEM "chrome://v_identity/locale/vI_rdfDataTree.dtd">
30%dataTreeDTD;
31<!ENTITY % editDTD SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
32%editDTD;
33<!ENTITY % communicatorDTD SYSTEM "chrome://communicator/locale/contentAreaCommands.dtd" >
34  %communicatorDTD;
35]>
36
37<window id="vI_rdfDataTreeWindow"
38    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
39        width="750"
40        height="500"
41    persist="width,height,screenX,screenY"
42        onload="vI_rdfDataTree.init();"
43    title="&vI_rdfDataTree.dlgTitle.label;">
44
45<script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfDataTree.js" />
46<script type="application/x-javascript" src="chrome://v_identity/content/vI_helper.js" />
47<script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfDatasource.js" />
48<script type="application/x-javascript" src="chrome://v_identity/content/vI_storageExtras.js" />
49<script type="application/x-javascript" src="chrome://v_identity/content/vI_storage.js" />
50<script type="application/x-javascript" src="chrome://v_identity/content/vI_notificationBar.js"/>
51<script type="application/x-javascript" src="chrome://messenger/content/messengercompose/MsgComposeCommands.js"/>
52
53
54<stringbundleset id="stringbundleset">
55    <stringbundle id="vI_rdfDataTreeBundle" src="chrome://v_identity/locale/vI_rdfDataEditor.properties" />
56    <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties" />
57</stringbundleset>
58
59<popup id="configContext" onpopupshowing="if (event.target == this) vI_rdfDataTree.updateContextMenu();">
60    <menuitem id="context_modifySelected" label="&vI_rdfDataTree.modifySelected.label;"
61        oncommand="vI_rdfDataTree.modifySelected();"/>
62    <menuitem id="context_removeSelected" label="&vI_rdfDataTree.removeSelected.label;"
63        oncommand="vI_rdfDataTree.removeSelected();"/>
64    <menuitem id="context_newItem" label="&vI_rdfDataTree.newItem.label;"
65        oncommand="vI_rdfDataTree.newItem();"/>
66    <menuseparator />
67    <menuitem id="context_menu_selectAll" label="&selectAllCmd.label;"
68        oncommand="vI_rdfDataTree.selectAll();"/>
69</popup>
70
71<keyset>
72    <key keycode="VK_ENTER" oncommand="vI_rdfDataTree.modifySelected();"/>
73    <key keycode="VK_RETURN" oncommand="vI_rdfDataTree.modifySelected();"/>
74    <key keycode="VK_DELETE" oncommand="vI_rdfDataTree.removeSelected();"/>
75    <key modifiers="accel" key="&selectAllCmd.accesskey;" oncommand="vI_rdfDataTree.selectAll();"/>
76</keyset>
77
78
79<hbox align="center">
80    <spacer width="3px" />
81    <vbox><spacer flex="1"/>
82    <menubar>
83        <menu id="editMenu" label="&vI_rdfDataTree.editMenu.label;"
84            accesskey="&vI_rdfDataTree.editMenu.accesskey;">
85        <menupopup onpopupshowing="if (event.target == this) vI_rdfDataTree.updateMenu();">
86            <menuitem id="menu_modifySelected" label="&vI_rdfDataTree.modifySelected.label;"
87                accesskey="&vI_rdfDataTree.modifySelected.accesskey;"
88                oncommand="vI_rdfDataTree.modifySelected();"/>
89            <menuitem id="menu_removeSelected" label="&vI_rdfDataTree.removeSelected.label;"
90                accesskey="&vI_rdfDataTree.removeSelected.accesskey;"
91                oncommand="vI_rdfDataTree.removeSelected();"/>
92            <menuitem id="menu_newItem" label="&vI_rdfDataTree.newItem.label;"
93                accesskey="&vI_rdfDataTree.newItem.accesskey;"
94                oncommand="vI_rdfDataTree.newItem();"/>
95            <menuseparator />
96            <menuitem id="menu_menu_selectAll" label="&selectAllCmd.label;" accesskey="&selectAllCmd.accesskey;"
97                oncommand="vI_rdfDataTree.selectAll();"/>
98        </menupopup>
99        </menu>
100    </menubar>
101    <spacer flex="1"/></vbox>
102    <spacer width="20px" />
103    <label value="&vI_rdfDataTree.filterPrefs.label;" accesskey="&vI_rdfDataTree.filterPrefs.accesskey;" control="filter"/>
104    <textbox id="filter" flex="1" oninput="vI_rdfDataTree.inputFilter(event);"/>
105    <button id="clearFilter" label="&vI_rdfDataTree.showAll.label;" accesskey="&vI_rdfDataTree.showAll.accesskey;" oncommand="vI_rdfDataTree.clearFilter();" disabled="true"/>
106</hbox>
107
108<tree id="rdfDataTree" flex="1" class="plain" seltype="multiple"
109    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
110    enableColumnDrag="true" context="configContext">
111    <treecols id="rdfDataTreeCols">
112        <treecol id="recipientCol" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
113            class="sortDirectionIndicator"
114            ignoreincolumnpicker="true"
115            persist="hidden width ordinal sortDirection"/>
116        <splitter class="tree-splitter" />
117        <treecol id="typeCol" label="&vI_rdfDataTree.typeColumn.label;" flex="5"
118            class="sortDirectionIndicator"
119            persist="hidden width ordinal sortDirection"/>
120        <splitter class="tree-splitter" />
121        <treecol id="senderCol" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
122            class="sortDirectionIndicator"
123            persist="hidden width ordinal sortDirection"/>
124        <splitter class="tree-splitter" />
125        <treecol id="smtpCol" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
126            class="sortDirectionIndicator"
127            persist="hidden width ordinal sortDirection"/>
128        <splitter class="tree-splitter" />
129        <treecol id="idCol" label="&vI_rdfDataTree.idColumn.label;" flex="10"
130            class="sortDirectionIndicator"
131            persist="hidden width ordinal sortDirection"/>     
132    </treecols>
133    <treechildren id="configTreeBody" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" onmouseover="vI_notificationBar.dump('## vI_rdfDataTree.xul mouseover ' + vI_rdfDataTree.__treeElem.currentIndex + '\n');" />
134</tree>
135   
136    <splitter id="vIDebugBoxSplitter" hidden="true"/>
137    <textbox id="vIDebugBox" hidden="true" multiline="true" readonly="true"
138    DOMAttrModified="if(event.attrName == 'value') this.value = event.newValue; return true;"/>
139
140</window>
Note: See TracBrowser for help on using the repository browser.