source: chrome/content/v_identity/vI_rdfDataTree.xul @ 46da30

ng_0.8
Last change on this file since 46da30 was c3feaa, checked in by rene <rene@…>, 10 years ago

clean namespace from pollution

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