source: content/vI_rdfDataTree.xul @ 85fa10

ng_0.9
Last change on this file since 85fa10 was 85fa10, checked in by rene <rene@…>, 3 years ago

removed everything related to smtp-storage

  • Property mode set to 100644
File size: 17.8 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_rdfDataTree.js" />
64<script type="application/x-javascript" src="chrome://messenger/content/messengercompose/MsgComposeCommands.js"/>
65
66<menupopup hidden="true">  <!--just to hold the localized labels-->
67    <menuitem type="radio" name="output_format" label="&autoFormatCmd.label;" accesskey="&autoFormatCmd.accesskey;" id="format_auto" checked="true"/>
68    <menuitem type="radio" name="output_format" label="&plainTextFormatCmd.label;" accesskey="&plainTextFormatCmd.accesskey;" id="format_plain"/>
69    <menuitem type="radio" name="output_format" label="&htmlFormatCmd.label;" accesskey="&htmlFormatCmd.accesskey;" id="format_html"/>
70    <menuitem type="radio" name="output_format" label="&bothFormatCmd.label;" accesskey="&bothFormatCmd.accesskey;" id="format_both"/>
71</menupopup>
72
73<menupopup id="configContext" onpopupshowing="if (event.target == this) virtualIdentityExtension.rdfDataTreeCollection.updateContextMenu();">
74    <menuitem id="context_modifySelected" label="&vI_rdfDataTree.modifySelected.label;"
75        oncommand="virtualIdentityExtension.rdfDataTreeCollection.modifySelected(this);"/>
76    <menuitem id="context_removeSelected" label="&vI_rdfDataTree.removeSelected.label;"
77        oncommand="virtualIdentityExtension.rdfDataTreeCollection.removeSelected();"/>
78    <menuitem id="context_newItem" label="&vI_rdfDataTree.newItem.label;"
79        oncommand="virtualIdentityExtension.rdfDataTreeCollection.newItem();"/>
80    <menuseparator />
81    <menuitem id="context_menu_selectAll" label="&selectAllCmd.label;"
82        oncommand="virtualIdentityExtension.rdfDataTreeCollection.selectAll();"/>
83</menupopup>
84
85<keyset>
86    <key keycode="VK_ENTER" oncommand="virtualIdentityExtension.rdfDataTreeCollection.modifySelected();"/>
87    <key keycode="VK_RETURN" oncommand="virtualIdentityExtension.rdfDataTreeCollection.modifySelected();"/>
88    <key keycode="VK_DELETE" oncommand="virtualIdentityExtension.rdfDataTreeCollection.removeSelected();"/>
89    <key modifiers="accel" key="&selectAllCmd.accesskey;" oncommand="virtualIdentityExtension.rdfDataTreeCollection.selectAll();"/>
90</keyset>
91
92
93<hbox align="center">
94    <spacer width="3px" />
95    <vbox><spacer flex="1"/>
96    <menubar>
97        <menu id="editMenu" label="&vI_rdfDataTree.editMenu.label;"
98            accesskey="&vI_rdfDataTree.editMenu.accesskey;">
99        <menupopup onpopupshowing="if (event.target == this) virtualIdentityExtension.rdfDataTreeCollection.updateMenu();">
100            <menuitem id="menu_modifySelected" label="&vI_rdfDataTree.modifySelected.label;"
101                accesskey="&vI_rdfDataTree.modifySelected.accesskey;"
102                oncommand="virtualIdentityExtension.rdfDataTreeCollection.modifySelected();"/>
103            <menuitem id="menu_removeSelected" label="&vI_rdfDataTree.removeSelected.label;"
104                accesskey="&vI_rdfDataTree.removeSelected.accesskey;"
105                oncommand="virtualIdentityExtension.rdfDataTreeCollection.removeSelected();"/>
106            <menuitem id="menu_newItem" label="&vI_rdfDataTree.newItem.label;"
107                accesskey="&vI_rdfDataTree.newItem.accesskey;"
108                oncommand="virtualIdentityExtension.rdfDataTreeCollection.newItem();"/>
109            <menuseparator />
110            <menuitem id="menu_menu_selectAll" label="&selectAllCmd.label;" accesskey="&selectAllCmd.accesskey;"
111                oncommand="virtualIdentityExtension.rdfDataTreeCollection.selectAll();"/>
112        </menupopup>
113        </menu>
114        <menu id="tasksMenu" label="&tasksMenu.label;" accesskey="&tasksMenu.accesskey;">
115        <menupopup>
116            <menuitem label="&importCmd.label;" accesskey="&importCmd.accesskey;" oncommand="var vI_localRdfDatasource = new virtualIdentityExtension.rdfDatasourceImporter(window, 'virtualIdentity_0.10.rdf');"/>
117            <menuitem label="&exportCmd.label;" accesskey="&exportCmd.accesskey;" oncommand="var vI_localRdfDatasource = new virtualIdentityExtension.rdfDatasource(window); vI_localRdfDatasource.export('virtualIdentity_0.10.rdf')"/>
118        </menupopup>
119        </menu>
120    </menubar>
121    <spacer flex="1"/></vbox>
122    <spacer width="20px" />
123    <label value="&vI_rdfDataTree.filterPrefs.label;" accesskey="&vI_rdfDataTree.filterPrefs.accesskey;" control="filter"/>
124    <textbox id="filter" flex="1" oninput="virtualIdentityExtension.rdfDataTreeCollection.inputFilter(event);"/>
125    <button id="clearFilter" label="&vI_rdfDataTree.showAll.label;" accesskey="&vI_rdfDataTree.showAll.accesskey;" oncommand="virtualIdentityExtension.rdfDataTreeCollection.clearFilter();" disabled="true"/>
126</hbox>
127
128<tabbox id="TreeTabbox" flex="1">
129<tabs onselect="virtualIdentityExtension.rdfDataTreeCollection.onTabSelect();" >
130<tab id="emailTab" />
131<tab id="maillistTab" />
132<tab id="newsgroupTab" />
133<tab id="filterTab" />
134</tabs>
135<tabpanels flex="1">
136<tabpanel id="email" flex="1">
137<hbox flex="1">
138<tree id="rdfDataTree_email" flex="1" class="plain" seltype="multiple"
139    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
140    enableColumnDrag="true" context="configContext" onselect="virtualIdentityExtension.rdfDataTreeCollection.onselect(this);">
141    <treecols id="rdfDataTreeCols_email">
142        <treecol id="recipientCol_email" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
143            class="sortDirectionIndicator"
144            ignoreincolumnpicker="true"
145            persist="width ordinal sortDirection"/>
146        <splitter class="tree-splitter" />
147        <treecol id="senderCol_email" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
148            class="sortDirectionIndicator"
149            persist="hidden width ordinal sortDirection"/>
150        <splitter class="tree-splitter" />
151        <treecol id="idCol_email" label="&vI_rdfDataTree.idColumn.label;" flex="10"
152            class="sortDirectionIndicator"
153            persist="hidden width ordinal sortDirection"/>     
154        <splitter class="tree-splitter" />
155        <treecol id="usedCol_email" label="&vI_rdfDataTree.usedColumn.label;" flex="10"
156            class="sortDirectionIndicator"
157            persist="hidden width ordinal sortDirection"/>     
158        <splitter class="tree-splitter" />
159        <treecol id="changedCol_email" label="&vI_rdfDataTree.changedColumn.label;" flex="10"
160            class="sortDirectionIndicator"
161            persist="hidden width ordinal sortDirection"/>     
162    </treecols>
163    <treechildren id="configTreeBody_email" ondblclick="if (event.button == 0) virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" />
164</tree>
165<vbox>
166          <button id="newButton_email" label="&newButton.label;" accesskey="&newButton.accesskey;"
167                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.newItem();"/>
168          <button id="editButton_email" label="&editButton.label;" accesskey="&editButton.accesskey;"
169                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" disabled="true"/>
170          <button id="deleteButton_email" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
171                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.removeSelected();" disabled="true"/>
172          <spacer flex="1"/>
173</vbox>
174</hbox>
175</tabpanel>
176
177<tabpanel id="maillist" flex="1">
178<hbox flex="1">
179<tree id="rdfDataTree_maillist" flex="1" class="plain" seltype="multiple"
180    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
181    enableColumnDrag="true" context="configContext" onselect="virtualIdentityExtension.rdfDataTreeCollection.onselect();">
182    <treecols id="rdfDataTreeCols_maillist">
183        <treecol id="recipientCol_maillist" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
184            class="sortDirectionIndicator"
185            ignoreincolumnpicker="true"
186            persist="width ordinal sortDirection"/>
187        <splitter class="tree-splitter" />
188        <treecol id="senderCol_maillist" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
189            class="sortDirectionIndicator"
190            persist="hidden width ordinal sortDirection"/>
191        <splitter class="tree-splitter" />
192        <treecol id="idCol_maillist" label="&vI_rdfDataTree.idColumn.label;" flex="10"
193            class="sortDirectionIndicator"
194            persist="hidden width ordinal sortDirection"/>     
195        <splitter class="tree-splitter" />
196        <treecol id="usedCol_maillist" label="&vI_rdfDataTree.usedColumn.label;" flex="10"
197            class="sortDirectionIndicator"
198            persist="hidden width ordinal sortDirection"/>     
199        <splitter class="tree-splitter" />
200        <treecol id="changedCol_maillist" label="&vI_rdfDataTree.changedColumn.label;" flex="10"
201            class="sortDirectionIndicator"
202            persist="hidden width ordinal sortDirection"/>     
203    </treecols>
204    <treechildren id="configTreeBody_maillist" ondblclick="if (event.button == 0) virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" />
205</tree>
206<vbox>
207          <button id="newButton_maillist" label="&newButton.label;" accesskey="&newButton.accesskey;"
208                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.newItem();"/>
209          <button id="editButton_maillist" label="&editButton.label;" accesskey="&editButton.accesskey;"
210                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" disabled="true"/>
211          <button id="deleteButton_maillist" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
212                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.removeSelected();" disabled="true"/>
213          <spacer flex="1"/>
214</vbox>
215</hbox>
216</tabpanel>
217<tabpanel id="newsgroup" flex="1">
218<hbox flex="1">
219<tree id="rdfDataTree_newsgroup" flex="1" class="plain" seltype="multiple"
220    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
221    enableColumnDrag="true" context="configContext" onselect="virtualIdentityExtension.rdfDataTreeCollection.onselect();">
222    <treecols id="rdfDataTreeCols_newsgroup">
223        <treecol id="recipientCol_newsgroup" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
224            class="sortDirectionIndicator"
225            ignoreincolumnpicker="true"
226            persist="width ordinal sortDirection"/>
227        <splitter class="tree-splitter" />
228        <treecol id="senderCol_newsgroup" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
229            class="sortDirectionIndicator"
230            persist="hidden width ordinal sortDirection"/>
231        <splitter class="tree-splitter" />
232        <treecol id="idCol_newsgroup" label="&vI_rdfDataTree.idColumn.label;" flex="10"
233            class="sortDirectionIndicator"
234            persist="hidden width ordinal sortDirection"/>     
235        <splitter class="tree-splitter" />
236        <treecol id="usedCol_newsgroup" label="&vI_rdfDataTree.usedColumn.label;" flex="10"
237            class="sortDirectionIndicator"
238            persist="hidden width ordinal sortDirection"/>     
239        <splitter class="tree-splitter" />
240        <treecol id="changedCol_newsgroup" label="&vI_rdfDataTree.changedColumn.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="idCol_filter" label="&vI_rdfDataTree.idColumn.label;" flex="10"
278            class="sortDirectionIndicator"
279            persist="hidden width ordinal"/>       
280        <splitter class="tree-splitter" />
281        <treecol id="usedCol_filter" label="&vI_rdfDataTree.usedColumn.label;" flex="10"
282            class="sortDirectionIndicator"
283            persist="hidden width ordinal sortDirection"/>     
284        <splitter class="tree-splitter" />
285        <treecol id="changedCol_filter" label="&vI_rdfDataTree.changedColumn.label;" flex="10"
286            class="sortDirectionIndicator"
287            persist="hidden width ordinal sortDirection"/>     
288    </treecols>
289    <treechildren id="configTreeBody_filter" ondblclick="if (event.button == 0) virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" />
290</tree>
291<vbox>
292          <button id="newButton_filter" label="&newButton.label;" accesskey="&newButton.accesskey;"
293                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.newItem();"/>
294          <button id="editButton_filter" label="&editButton.label;" accesskey="&editButton.accesskey;"
295                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" disabled="true"/>
296          <button id="deleteButton_filter" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
297                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.removeSelected();" disabled="true"/>
298          <spacer flex="1"/>
299          <button id="reorderUpButton_filter" label="&reorderUpButton.label;" accesskey="&reorderUpButton.accesskey;"
300                  class="up"
301                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.moveUpSelected();"/>
302          <button id="reorderDownButton_filter" label="&reorderDownButton.label;" accesskey="&reorderDownButton.accesskey;"
303                  class="down"
304                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.moveDownSelected();"/>
305          <spacer flex="1"/>
306</vbox>
307</hbox>
308</tabpanel>
309
310</tabpanels>
311</tabbox>
312<!-- <splitter /> -->
313<browser id="rdfDataTreeCollectionInfoBox" class="vI_htmlTextBox" type="chrome" cssSource="vI_rdfTreeInfo.css" disablehistory="true" onoverflow="virtualIdentityExtension.rdfDataTreeCollection.overflow();"/>
314<textbox id="virtualIdentityExtension_debugBox" />
315</window>
Note: See TracBrowser for help on using the repository browser.