source: content/vI_rdfDataTree.xul @ f29419

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

tons of changes, mostly namespace-related

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