source: content/vI_rdfDataTree.xul @ 2d6762

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

fix, broken param

  • Property mode set to 100644
File size: 18.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<!-- 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.rdf');"/>
117            <menuitem label="&exportCmd.label;" accesskey="&exportCmd.accesskey;" oncommand="var vI_localRdfDatasource = new virtualIdentityExtension.rdfDatasource(window); vI_localRdfDatasource.export('virtualIdentity.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="smtpCol_email" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
152            class="sortDirectionIndicator"
153            persist="hidden width ordinal sortDirection"/>
154        <splitter class="tree-splitter" />
155        <treecol id="idCol_email" label="&vI_rdfDataTree.idColumn.label;" flex="10"
156            class="sortDirectionIndicator"
157            persist="hidden width ordinal sortDirection"/>     
158        <splitter class="tree-splitter" />
159        <treecol id="usedCol_email" label="&vI_rdfDataTree.usedColumn.label;" flex="10"
160            class="sortDirectionIndicator"
161            persist="hidden width ordinal sortDirection"/>     
162        <splitter class="tree-splitter" />
163        <treecol id="changedCol_email" label="&vI_rdfDataTree.changedColumn.label;" flex="10"
164            class="sortDirectionIndicator"
165            persist="hidden width ordinal sortDirection"/>     
166    </treecols>
167    <treechildren id="configTreeBody_email" ondblclick="if (event.button == 0) virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" />
168</tree>
169<vbox>
170          <button id="newButton_email" label="&newButton.label;" accesskey="&newButton.accesskey;"
171                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.newItem();"/>
172          <button id="editButton_email" label="&editButton.label;" accesskey="&editButton.accesskey;"
173                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" disabled="true"/>
174          <button id="deleteButton_email" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
175                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.removeSelected();" disabled="true"/>
176          <spacer flex="1"/>
177</vbox>
178</hbox>
179</tabpanel>
180
181<tabpanel id="maillist" flex="1">
182<hbox flex="1">
183<tree id="rdfDataTree_maillist" flex="1" class="plain" seltype="multiple"
184    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
185    enableColumnDrag="true" context="configContext" onselect="virtualIdentityExtension.rdfDataTreeCollection.onselect();">
186    <treecols id="rdfDataTreeCols_maillist">
187        <treecol id="recipientCol_maillist" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
188            class="sortDirectionIndicator"
189            ignoreincolumnpicker="true"
190            persist="width ordinal sortDirection"/>
191        <splitter class="tree-splitter" />
192        <treecol id="senderCol_maillist" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
193            class="sortDirectionIndicator"
194            persist="hidden width ordinal sortDirection"/>
195        <splitter class="tree-splitter" />
196        <treecol id="smtpCol_maillist" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
197            class="sortDirectionIndicator"
198            persist="hidden width ordinal sortDirection"/>
199        <splitter class="tree-splitter" />
200        <treecol id="idCol_maillist" label="&vI_rdfDataTree.idColumn.label;" flex="10"
201            class="sortDirectionIndicator"
202            persist="hidden width ordinal sortDirection"/>     
203        <splitter class="tree-splitter" />
204        <treecol id="usedCol_maillist" label="&vI_rdfDataTree.usedColumn.label;" flex="10"
205            class="sortDirectionIndicator"
206            persist="hidden width ordinal sortDirection"/>     
207        <splitter class="tree-splitter" />
208        <treecol id="changedCol_maillist" label="&vI_rdfDataTree.changedColumn.label;" flex="10"
209            class="sortDirectionIndicator"
210            persist="hidden width ordinal sortDirection"/>     
211    </treecols>
212    <treechildren id="configTreeBody_maillist" ondblclick="if (event.button == 0) virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" />
213</tree>
214<vbox>
215          <button id="newButton_maillist" label="&newButton.label;" accesskey="&newButton.accesskey;"
216                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.newItem();"/>
217          <button id="editButton_maillist" label="&editButton.label;" accesskey="&editButton.accesskey;"
218                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" disabled="true"/>
219          <button id="deleteButton_maillist" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
220                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.removeSelected();" disabled="true"/>
221          <spacer flex="1"/>
222</vbox>
223</hbox>
224</tabpanel>
225<tabpanel id="newsgroup" flex="1">
226<hbox flex="1">
227<tree id="rdfDataTree_newsgroup" flex="1" class="plain" seltype="multiple"
228    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
229    enableColumnDrag="true" context="configContext" onselect="virtualIdentityExtension.rdfDataTreeCollection.onselect();">
230    <treecols id="rdfDataTreeCols_newsgroup">
231        <treecol id="recipientCol_newsgroup" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
232            class="sortDirectionIndicator"
233            ignoreincolumnpicker="true"
234            persist="width ordinal sortDirection"/>
235        <splitter class="tree-splitter" />
236        <treecol id="senderCol_newsgroup" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
237            class="sortDirectionIndicator"
238            persist="hidden width ordinal sortDirection"/>
239        <splitter class="tree-splitter" />
240        <treecol id="smtpCol_newsgroup" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
241            class="sortDirectionIndicator"
242            persist="hidden width ordinal sortDirection"/>
243        <splitter class="tree-splitter" />
244        <treecol id="idCol_newsgroup" label="&vI_rdfDataTree.idColumn.label;" flex="10"
245            class="sortDirectionIndicator"
246            persist="hidden width ordinal sortDirection"/>     
247        <splitter class="tree-splitter" />
248        <treecol id="usedCol_newsgroup" label="&vI_rdfDataTree.usedColumn.label;" flex="10"
249            class="sortDirectionIndicator"
250            persist="hidden width ordinal sortDirection"/>     
251        <splitter class="tree-splitter" />
252        <treecol id="changedCol_newsgroup" label="&vI_rdfDataTree.changedColumn.label;" flex="10"
253            class="sortDirectionIndicator"
254            persist="hidden width ordinal sortDirection"/>     
255    </treecols>
256    <treechildren id="configTreeBody_newsgroup" ondblclick="if (event.button == 0) virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" />
257</tree>
258<vbox>
259          <button id="newButton_newsgroup" label="&newButton.label;" accesskey="&newButton.accesskey;"
260                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.newItem();"/>
261          <button id="editButton_newsgroup" label="&editButton.label;" accesskey="&editButton.accesskey;"
262                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" disabled="true"/>
263          <button id="deleteButton_newsgroup" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
264                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.removeSelected();" disabled="true"/>
265          <spacer flex="1"/>
266</vbox>
267</hbox>
268</tabpanel>
269<tabpanel id="filter" flex="1">
270<hbox flex="1">
271<tree id="rdfDataTree_filter" flex="1" class="plain" seltype="multiple"
272    persist="sortDirection sortResource" sortDirection="ascending" sortResource="indexCol"
273    enableColumnDrag="true" context="configContext" onselect="virtualIdentityExtension.rdfDataTreeCollection.onselect();">
274    <treecols id="rdfDataTreeCols_filter">
275        <treecol id="indexCol_filter" label="&vI_rdfDataTree.indexColumn.label;" flex="10"
276            ignoreincolumnpicker="true"
277            class="sortDirectionIndicator"
278            persist="width ordinal"/>
279        <splitter class="tree-splitter" />
280        <treecol id="recipientCol_filter" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
281            ignoreincolumnpicker="true"
282            class="sortDirectionIndicator"
283            persist="width ordinal"/>
284        <splitter class="tree-splitter" />
285        <treecol id="senderCol_filter" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
286            class="sortDirectionIndicator"
287            persist="hidden width ordinal"/>
288        <splitter class="tree-splitter" />
289        <treecol id="smtpCol_filter" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
290            class="sortDirectionIndicator"
291            persist="hidden width ordinal"/>
292        <splitter class="tree-splitter" />
293        <treecol id="idCol_filter" label="&vI_rdfDataTree.idColumn.label;" flex="10"
294            class="sortDirectionIndicator"
295            persist="hidden width ordinal"/>       
296        <splitter class="tree-splitter" />
297        <treecol id="usedCol_filter" label="&vI_rdfDataTree.usedColumn.label;" flex="10"
298            class="sortDirectionIndicator"
299            persist="hidden width ordinal sortDirection"/>     
300        <splitter class="tree-splitter" />
301        <treecol id="changedCol_filter" label="&vI_rdfDataTree.changedColumn.label;" flex="10"
302            class="sortDirectionIndicator"
303            persist="hidden width ordinal sortDirection"/>     
304    </treecols>
305    <treechildren id="configTreeBody_filter" ondblclick="if (event.button == 0) virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" />
306</tree>
307<vbox>
308          <button id="newButton_filter" label="&newButton.label;" accesskey="&newButton.accesskey;"
309                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.newItem();"/>
310          <button id="editButton_filter" label="&editButton.label;" accesskey="&editButton.accesskey;"
311                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.modifySelected();" disabled="true"/>
312          <button id="deleteButton_filter" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
313                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.removeSelected();" disabled="true"/>
314          <spacer flex="1"/>
315          <button id="reorderUpButton_filter" label="&reorderUpButton.label;" accesskey="&reorderUpButton.accesskey;"
316                  class="up"
317                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.moveUpSelected();"/>
318          <button id="reorderDownButton_filter" label="&reorderDownButton.label;" accesskey="&reorderDownButton.accesskey;"
319                  class="down"
320                  oncommand="virtualIdentityExtension.rdfDataTreeCollection.moveDownSelected();"/>
321          <spacer flex="1"/>
322</vbox>
323</hbox>
324</tabpanel>
325
326</tabpanels>
327</tabbox>
328<!-- <splitter /> -->
329<browser id="rdfDataTreeCollectionInfoBox" class="vI_htmlTextBox" type="chrome" cssSource="vI_rdfTreeInfo.css" disablehistory="true" onoverflow="virtualIdentityExtension.rdfDataTreeCollection.overflow();"/>
330<textbox id="virtualIdentityExtension_debugBox" />
331</window>
Note: See TracBrowser for help on using the repository browser.