source: chrome/content/v_identity/vI_rdfDataTree.xul @ f99d91

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

readded edit-button

  • Property mode set to 100644
File size: 14.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<?xml-stylesheet href="chrome://global/skin/tree.css" type="text/css"?>
28<?xml-stylesheet href="chrome://messenger/skin/mailWindow1.css" type="text/css"?>
29
30<!DOCTYPE overlay [
31<!ENTITY % dataTreeDTD SYSTEM "chrome://v_identity/locale/vI_rdfDataTree.dtd">
32%dataTreeDTD;
33<!ENTITY % editDTD SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
34%editDTD;
35<!ENTITY % communicatorDTD SYSTEM "chrome://communicator/locale/contentAreaCommands.dtd" >
36  %communicatorDTD;
37  <!ENTITY % messengercomposeDTD SYSTEM "chrome://messenger/locale/messengercompose/messengercompose.dtd" >
38%messengercomposeDTD;
39<!ENTITY % filtersDTD SYSTEM "chrome://messenger/locale/FilterListDialog.dtd">%filtersDTD;
40]>
41
42<window id="vI_rdfDataTreeWindow"
43    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
44        width="750"
45        height="500"
46    persist="width,height,screenX,screenY"
47        onload="vI_rdfDataTree.init();"
48    title="&vI_rdfDataTree.dlgTitle.label;">
49
50<script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfDataTree.js" />
51<script type="application/x-javascript" src="chrome://v_identity/content/vI_identityData.js" />
52<script type="application/x-javascript" src="chrome://v_identity/content/vI_helper.js" />
53<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" />
56<script type="application/x-javascript" src="chrome://v_identity/content/vI_notificationBar.js"/>
57<script type="application/x-javascript" src="chrome://messenger/content/messengercompose/MsgComposeCommands.js"/>
58
59
60<stringbundleset id="stringbundleset">
61    <stringbundle id="vI_rdfDataTreeBundle" src="chrome://v_identity/locale/vI_rdfDataEditor.properties" />
62    <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties" />
63    <stringbundle id="vIdentBundle" src="chrome://v_identity/locale/v_identity.properties" />
64        <stringbundle id="vIStorageExtrasBundle" src="chrome://v_identity/locale/vI_storageExtras.properties" />
65</stringbundleset>
66
67<menupopup hidden="true">  <!--just to hold the localized labels-->
68    <menuitem label="&autoFormatCmd.label;" accesskey="&autoFormatCmd.accesskey;" id="format_auto"/>
69    <menuitem label="&plainTextFormatCmd.label;" accesskey="&plainTextFormatCmd.accesskey;" id="format_plain"/>
70    <menuitem label="&htmlFormatCmd.label;" accesskey="&htmlFormatCmd.accesskey;" id="format_html"/>
71    <menuitem label="&bothFormatCmd.label;" accesskey="&bothFormatCmd.accesskey;" id="format_both"/>
72</menupopup>
73
74<popup id="configContext" onpopupshowing="if (event.target == this) vI_rdfDataTree.updateContextMenu();">
75    <menuitem id="context_modifySelected" label="&vI_rdfDataTree.modifySelected.label;"
76        oncommand="vI_rdfDataTree.modifySelected(this);"/>
77    <menuitem id="context_removeSelected" label="&vI_rdfDataTree.removeSelected.label;"
78        oncommand="vI_rdfDataTree.removeSelected();"/>
79    <menuitem id="context_newItem" label="&vI_rdfDataTree.newItem.label;"
80        oncommand="vI_rdfDataTree.newItem();"/>
81    <menuseparator />
82    <menuitem id="context_menu_selectAll" label="&selectAllCmd.label;"
83        oncommand="vI_rdfDataTree.selectAll();"/>
84</popup>
85
86<keyset>
87    <key keycode="VK_ENTER" oncommand="vI_rdfDataTree.modifySelected();"/>
88    <key keycode="VK_RETURN" oncommand="vI_rdfDataTree.modifySelected();"/>
89    <key keycode="VK_DELETE" oncommand="vI_rdfDataTree.removeSelected();"/>
90    <key modifiers="accel" key="&selectAllCmd.accesskey;" oncommand="vI_rdfDataTree.selectAll();"/>
91</keyset>
92
93
94<hbox align="center">
95    <spacer width="3px" />
96    <vbox><spacer flex="1"/>
97    <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();"/>
113        </menupopup>
114        </menu>
115    </menubar>
116    <spacer flex="1"/></vbox>
117    <spacer width="20px" />
118    <label value="&vI_rdfDataTree.filterPrefs.label;" accesskey="&vI_rdfDataTree.filterPrefs.accesskey;" control="filter"/>
119    <textbox id="filter" flex="1" oninput="vI_rdfDataTree.inputFilter(event);"/>
120    <button id="clearFilter" label="&vI_rdfDataTree.showAll.label;" accesskey="&vI_rdfDataTree.showAll.accesskey;" oncommand="vI_rdfDataTree.clearFilter();" disabled="true"/>
121</hbox>
122
123<tabbox id="TreeTabbox" flex="1">
124<tabs onselect="vI_rdfDataTree.hideInfoBox();" >
125<tab id="emailTab" />
126<tab id="maillistTab" />
127<tab id="newsgroupTab" />
128<tab id="filterTab" />
129</tabs>
130<tabpanels flex="1">
131<tabpanel id="email" flex="1">
132<hbox flex="1">
133<tree id="rdfDataTree_email" flex="1" class="plain" seltype="multiple"
134    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
135    enableColumnDrag="true" context="configContext" onselect="vI_rdfDataTree.onselect(this);">
136    <treecols id="rdfDataTreeCols_email">
137        <treecol id="recipientCol_email" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
138            class="sortDirectionIndicator"
139            ignoreincolumnpicker="true"
140            persist="width ordinal sortDirection"/>
141        <splitter class="tree-splitter" />
142        <treecol id="senderCol_email" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
143            class="sortDirectionIndicator"
144            persist="hidden width ordinal sortDirection"/>
145        <splitter class="tree-splitter" />
146        <treecol id="smtpCol_email" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
147            class="sortDirectionIndicator"
148            persist="hidden width ordinal sortDirection"/>
149        <splitter class="tree-splitter" />
150        <treecol id="idCol_email" label="&vI_rdfDataTree.idColumn.label;" flex="10"
151            class="sortDirectionIndicator"
152            persist="hidden width ordinal sortDirection"/>     
153    </treecols>
154    <treechildren id="configTreeBody_email" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" />
155</tree>
156<vbox>
157          <button id="newButton_email" label="&newButton.label;" accesskey="&newButton.accesskey;"
158                  oncommand="vI_rdfDataTree.newItem();"/>
159          <button id="editButton_email" label="&editButton.label;" accesskey="&editButton.accesskey;"
160                  oncommand="vI_rdfDataTree.modifySelected();"/>
161          <button id="deleteButton_email" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
162                  oncommand="vI_rdfDataTree.removeSelected();"/>
163          <spacer flex="1"/>
164</vbox>
165</hbox>
166</tabpanel>
167
168<tabpanel id="maillist" flex="1">
169<hbox flex="1">
170<tree id="rdfDataTree_maillist" flex="1" class="plain" seltype="multiple"
171    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
172    enableColumnDrag="true" context="configContext" onselect="vI_rdfDataTree.onselect();">
173    <treecols id="rdfDataTreeCols_maillist">
174        <treecol id="recipientCol_maillist" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
175            class="sortDirectionIndicator"
176            ignoreincolumnpicker="true"
177            persist="width ordinal sortDirection"/>
178        <splitter class="tree-splitter" />
179        <treecol id="senderCol_maillist" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
180            class="sortDirectionIndicator"
181            persist="hidden width ordinal sortDirection"/>
182        <splitter class="tree-splitter" />
183        <treecol id="smtpCol_maillist" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
184            class="sortDirectionIndicator"
185            persist="hidden width ordinal sortDirection"/>
186        <splitter class="tree-splitter" />
187        <treecol id="idCol_maillist" label="&vI_rdfDataTree.idColumn.label;" flex="10"
188            class="sortDirectionIndicator"
189            persist="hidden width ordinal sortDirection"/>     
190    </treecols>
191    <treechildren id="configTreeBody_maillist" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" />
192</tree>
193<vbox>
194          <button id="newButton_maillist" label="&newButton.label;" accesskey="&newButton.accesskey;"
195                  oncommand="vI_rdfDataTree.newItem();"/>
196          <button id="editButton_maillist" label="&editButton.label;" accesskey="&editButton.accesskey;"
197                  oncommand="vI_rdfDataTree.modifySelected();"/>
198          <button id="deleteButton_maillist" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
199                  oncommand="vI_rdfDataTree.removeSelected();"/>
200          <spacer flex="1"/>
201</vbox>
202</hbox>
203</tabpanel>
204<tabpanel id="newsgroup" flex="1">
205<hbox flex="1">
206<tree id="rdfDataTree_newsgroup" flex="1" class="plain" seltype="multiple"
207    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
208    enableColumnDrag="true" context="configContext" onselect="vI_rdfDataTree.onselect();">
209    <treecols id="rdfDataTreeCols_newsgroup">
210        <treecol id="recipientCol_newsgroup" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
211            class="sortDirectionIndicator"
212            ignoreincolumnpicker="true"
213            persist="width ordinal sortDirection"/>
214        <splitter class="tree-splitter" />
215        <treecol id="senderCol_newsgroup" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
216            class="sortDirectionIndicator"
217            persist="hidden width ordinal sortDirection"/>
218        <splitter class="tree-splitter" />
219        <treecol id="smtpCol_newsgroup" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
220            class="sortDirectionIndicator"
221            persist="hidden width ordinal sortDirection"/>
222        <splitter class="tree-splitter" />
223        <treecol id="idCol_newsgroup" label="&vI_rdfDataTree.idColumn.label;" flex="10"
224            class="sortDirectionIndicator"
225            persist="hidden width ordinal sortDirection"/>     
226    </treecols>
227    <treechildren id="configTreeBody_newsgroup" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" />
228</tree>
229<vbox>
230          <button id="newButton_newsgroup" label="&newButton.label;" accesskey="&newButton.accesskey;"
231                  oncommand="vI_rdfDataTree.newItem();"/>
232          <button id="editButton_newsgroup" label="&editButton.label;" accesskey="&editButton.accesskey;"
233                  oncommand="vI_rdfDataTree.modifySelected();"/>
234          <button id="deleteButton_newsgroup" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
235                  oncommand="vI_rdfDataTree.removeSelected();"/>
236          <spacer flex="1"/>
237</vbox>
238</hbox>
239</tabpanel>
240<tabpanel id="filter" flex="1">
241<hbox flex="1">
242<tree id="rdfDataTree_filter" flex="1" class="plain" seltype="multiple"
243    persist="sortDirection sortResource" sortDirection="ascending" sortResource="indexCol"
244    enableColumnDrag="true" context="configContext" onselect="vI_rdfDataTree.onselect();">
245    <treecols id="rdfDataTreeCols_filter">
246        <treecol id="indexCol_filter" label="&vI_rdfDataTree.indexColumn.label;" flex="10"
247            ignoreincolumnpicker="true"
248            class="sortDirectionIndicator"
249            persist="width ordinal"/>
250        <splitter class="tree-splitter" />
251        <treecol id="recipientCol_filter" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
252            ignoreincolumnpicker="true"
253            class="sortDirectionIndicator"
254            persist="width ordinal"/>
255        <splitter class="tree-splitter" />
256        <treecol id="senderCol_filter" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
257            class="sortDirectionIndicator"
258            persist="hidden width ordinal"/>
259        <splitter class="tree-splitter" />
260        <treecol id="smtpCol_filter" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
261            class="sortDirectionIndicator"
262            persist="hidden width ordinal"/>
263        <splitter class="tree-splitter" />
264        <treecol id="idCol_filter" label="&vI_rdfDataTree.idColumn.label;" flex="10"
265            class="sortDirectionIndicator"
266            persist="hidden width ordinal"/>       
267    </treecols>
268    <treechildren id="configTreeBody_filter" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" />
269</tree>
270<vbox>
271          <button id="newButton_filter" label="&newButton.label;" accesskey="&newButton.accesskey;"
272                  oncommand="vI_rdfDataTree.newItem();"/>
273          <button id="editButton_filter" label="&editButton.label;" accesskey="&editButton.accesskey;"
274                  oncommand="vI_rdfDataTree.modifySelected();"/>
275          <button id="deleteButton_filter" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
276                  oncommand="vI_rdfDataTree.removeSelected();"/>
277          <spacer flex="1"/>
278          <button id="reorderUpButton_filter" label="&reorderUpButton.label;" accesskey="&reorderUpButton.accesskey;"
279                  class="up"
280                  oncommand="vI_rdfDataTree.moveUpSelected();"/>
281          <button id="reorderDownButton_filter" label="&reorderDownButton.label;" accesskey="&reorderDownButton.accesskey;"
282                  class="down"
283                  oncommand="vI_rdfDataTree.moveDownSelected();"/>
284          <spacer flex="1"/>
285</vbox>
286</hbox>
287</tabpanel>
288
289</tabpanels>
290</tabbox>
291<!-- <splitter /> -->
292<browser id="vI_rdfDataTreeInfoBox" class="vI_htmlTextBox" cssSource="vI_rdfTreeInfo.css" disablehistory="true" onoverflow="vI_rdfDataTree.overflow();"/>
293
294    <splitter id="vIDebugBoxSplitter" hidden="true"/>
295    <textbox id="vIDebugBox" hidden="true" multiline="true" readonly="true"
296    DOMAttrModified="if(event.attrName == 'value') this.value = event.newValue; return true;"/>
297
298</window>
Note: See TracBrowser for help on using the repository browser.