source: chrome/content/v_identity/vI_rdfDataTree.xul @ 0a3098

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

dtd now works with TB, SM still broken

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