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

ng_0.8ng_0.9
Last change on this file since dd5776 was 0a3098, checked in by rene <rene@…>, 10 years ago

dtd now works with TB, SM still broken

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