source: content/vI_rdfDataTree.xul @ 826c34

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

replaced bundleString-Objects with inline code

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