source: chrome/content/v_identity/vI_rdfDataTree.xul @ dd1f45

ng_0.6ng_0.8ng_0.9
Last change on this file since dd1f45 was dd1f45, checked in by rene <just@…>, 11 years ago

cleanup and finalization of rdf-import

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