source: chrome/content/v_identity/vI_rdfDataTree.xul @ 866fc1

multiEdit
Last change on this file since 866fc1 was 866fc1, checked in by rene <rene@…>, 11 years ago

first attempt, problems with returnValue fo dialog

  • Property mode set to 100644
File size: 15.6 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;
[97d350]40]>
41
42<window id="vI_rdfDataTreeWindow"
43    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
44        width="750"
45        height="500"
46    persist="width,height,screenX,screenY"
47        onload="vI_rdfDataTree.init();"
48    title="&vI_rdfDataTree.dlgTitle.label;">
49
[19daa3]50<script type="application/x-javascript" src="chrome://v_identity/content/vI_identityData.js" />
[866fc1]51<script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfDataTree.js" />
[97d350]52<script type="application/x-javascript" src="chrome://v_identity/content/vI_helper.js" />
53<script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfDatasource.js" />
54<script type="application/x-javascript" src="chrome://v_identity/content/vI_storageExtras.js" />
55<script type="application/x-javascript" src="chrome://v_identity/content/vI_storage.js" />
56<script type="application/x-javascript" src="chrome://v_identity/content/vI_notificationBar.js"/>
57<script type="application/x-javascript" src="chrome://messenger/content/messengercompose/MsgComposeCommands.js"/>
58
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>
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    </menubar>
116    <spacer flex="1"/></vbox>
[f99d91]117    <spacer width="20px" />
[97d350]118    <label value="&vI_rdfDataTree.filterPrefs.label;" accesskey="&vI_rdfDataTree.filterPrefs.accesskey;" control="filter"/>
119    <textbox id="filter" flex="1" oninput="vI_rdfDataTree.inputFilter(event);"/>
120    <button id="clearFilter" label="&vI_rdfDataTree.showAll.label;" accesskey="&vI_rdfDataTree.showAll.accesskey;" oncommand="vI_rdfDataTree.clearFilter();" disabled="true"/>
121</hbox>
[e60df7]122
[44a21d]123<tabbox id="TreeTabbox" flex="1">
[774108]124<tabs onselect="vI_rdfDataTree.hideInfoBox();" >
[919c17]125<tab id="emailTab" />
126<tab id="maillistTab" />
127<tab id="newsgroupTab" />
128<tab id="filterTab" />
[44a21d]129</tabs>
130<tabpanels flex="1">
131<tabpanel id="email" flex="1">
[e60df7]132<hbox flex="1">
[44a21d]133<tree id="rdfDataTree_email" flex="1" class="plain" seltype="multiple"
134    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
135    enableColumnDrag="true" context="configContext" onselect="vI_rdfDataTree.onselect(this);">
[e60df7]136    <treecols id="rdfDataTreeCols_email">
137        <treecol id="recipientCol_email" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
[44a21d]138            class="sortDirectionIndicator"
139            ignoreincolumnpicker="true"
[e60df7]140            persist="width ordinal sortDirection"/>
[44a21d]141        <splitter class="tree-splitter" />
[e60df7]142        <treecol id="senderCol_email" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
[44a21d]143            class="sortDirectionIndicator"
144            persist="hidden width ordinal sortDirection"/>
145        <splitter class="tree-splitter" />
[e60df7]146        <treecol id="smtpCol_email" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
[44a21d]147            class="sortDirectionIndicator"
148            persist="hidden width ordinal sortDirection"/>
149        <splitter class="tree-splitter" />
[e60df7]150        <treecol id="idCol_email" label="&vI_rdfDataTree.idColumn.label;" flex="10"
[44a21d]151            class="sortDirectionIndicator"
152            persist="hidden width ordinal sortDirection"/>     
153    </treecols>
[e60df7]154    <treechildren id="configTreeBody_email" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" />
[44a21d]155</tree>
[e60df7]156<vbox>
157          <button id="newButton_email" label="&newButton.label;" accesskey="&newButton.accesskey;"
158                  oncommand="vI_rdfDataTree.newItem();"/>
159          <button id="editButton_email" label="&editButton.label;" accesskey="&editButton.accesskey;"
160                  oncommand="vI_rdfDataTree.modifySelected();"/>
161          <button id="deleteButton_email" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
162                  oncommand="vI_rdfDataTree.removeSelected();"/>
163          <spacer flex="1"/>
[866fc1]164          <button id="groupEditButton_email" label="&vI_rdfDataTree.groupEditButton.label;" accesskey="&vI_rdfDataTree.groupEditButton.accesskey;"
165                  oncommand="vI_rdfDataTree.groupModifySelected();" disabled="true"/>
[e60df7]166</vbox>
167</hbox>
[44a21d]168</tabpanel>
[97d350]169
[44a21d]170<tabpanel id="maillist" flex="1">
[e60df7]171<hbox flex="1">
[44a21d]172<tree id="rdfDataTree_maillist" flex="1" class="plain" seltype="multiple"
173    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
174    enableColumnDrag="true" context="configContext" onselect="vI_rdfDataTree.onselect();">
[e60df7]175    <treecols id="rdfDataTreeCols_maillist">
176        <treecol id="recipientCol_maillist" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
[44a21d]177            class="sortDirectionIndicator"
178            ignoreincolumnpicker="true"
[e60df7]179            persist="width ordinal sortDirection"/>
[44a21d]180        <splitter class="tree-splitter" />
[e60df7]181        <treecol id="senderCol_maillist" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
[44a21d]182            class="sortDirectionIndicator"
183            persist="hidden width ordinal sortDirection"/>
184        <splitter class="tree-splitter" />
[e60df7]185        <treecol id="smtpCol_maillist" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
[44a21d]186            class="sortDirectionIndicator"
187            persist="hidden width ordinal sortDirection"/>
188        <splitter class="tree-splitter" />
[e60df7]189        <treecol id="idCol_maillist" label="&vI_rdfDataTree.idColumn.label;" flex="10"
[44a21d]190            class="sortDirectionIndicator"
191            persist="hidden width ordinal sortDirection"/>     
192    </treecols>
[e60df7]193    <treechildren id="configTreeBody_maillist" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" />
[44a21d]194</tree>
[e60df7]195<vbox>
196          <button id="newButton_maillist" label="&newButton.label;" accesskey="&newButton.accesskey;"
197                  oncommand="vI_rdfDataTree.newItem();"/>
198          <button id="editButton_maillist" label="&editButton.label;" accesskey="&editButton.accesskey;"
199                  oncommand="vI_rdfDataTree.modifySelected();"/>
200          <button id="deleteButton_maillist" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
201                  oncommand="vI_rdfDataTree.removeSelected();"/>
202          <spacer flex="1"/>
[866fc1]203      <button id="groupEditButton_maillist" label="&vI_rdfDataTree.groupEditButton.label;" accesskey="&vI_rdfDataTree.groupEditButton.accesskey;"
204                  oncommand="vI_rdfDataTree.groupModifySelected();" disabled="true"/>
[e60df7]205</vbox>
206</hbox>
[44a21d]207</tabpanel>
208<tabpanel id="newsgroup" flex="1">
[e60df7]209<hbox flex="1">
[44a21d]210<tree id="rdfDataTree_newsgroup" flex="1" class="plain" seltype="multiple"
[97d350]211    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
[593347]212    enableColumnDrag="true" context="configContext" onselect="vI_rdfDataTree.onselect();">
[e60df7]213    <treecols id="rdfDataTreeCols_newsgroup">
214        <treecol id="recipientCol_newsgroup" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
[97d350]215            class="sortDirectionIndicator"
216            ignoreincolumnpicker="true"
[e60df7]217            persist="width ordinal sortDirection"/>
[97d350]218        <splitter class="tree-splitter" />
[e60df7]219        <treecol id="senderCol_newsgroup" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
[97d350]220            class="sortDirectionIndicator"
221            persist="hidden width ordinal sortDirection"/>
222        <splitter class="tree-splitter" />
[e60df7]223        <treecol id="smtpCol_newsgroup" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
[97d350]224            class="sortDirectionIndicator"
225            persist="hidden width ordinal sortDirection"/>
226        <splitter class="tree-splitter" />
[e60df7]227        <treecol id="idCol_newsgroup" label="&vI_rdfDataTree.idColumn.label;" flex="10"
[97d350]228            class="sortDirectionIndicator"
229            persist="hidden width ordinal sortDirection"/>     
230    </treecols>
[e60df7]231    <treechildren id="configTreeBody_newsgroup" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" />
[97d350]232</tree>
[e60df7]233<vbox>
234          <button id="newButton_newsgroup" label="&newButton.label;" accesskey="&newButton.accesskey;"
235                  oncommand="vI_rdfDataTree.newItem();"/>
236          <button id="editButton_newsgroup" label="&editButton.label;" accesskey="&editButton.accesskey;"
237                  oncommand="vI_rdfDataTree.modifySelected();"/>
238          <button id="deleteButton_newsgroup" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
239                  oncommand="vI_rdfDataTree.removeSelected();"/>
240          <spacer flex="1"/>
[866fc1]241      <button id="groupEditButton_newsgroup" label="&vI_rdfDataTree.groupEditButton.label;" accesskey="&vI_rdfDataTree.groupEditButton.accesskey;"
242                  oncommand="vI_rdfDataTree.groupModifySelected();" disabled="true"/>
[e60df7]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"/>
[866fc1]291      <button id="groupEditButton_filter" label="&vI_rdfDataTree.groupEditButton.label;" accesskey="&vI_rdfDataTree.groupEditButton.accesskey;"
292                  oncommand="vI_rdfDataTree.groupModifySelected();" disabled="true"/>
[c09d7b]293</vbox>
294</hbox>
[44a21d]295</tabpanel>
296
297</tabpanels>
[e60df7]298</tabbox>
[44a21d]299<!-- <splitter /> -->
[593347]300<browser id="vI_rdfDataTreeInfoBox" class="vI_htmlTextBox" cssSource="vI_rdfTreeInfo.css" disablehistory="true" onoverflow="vI_rdfDataTree.overflow();"/>
301
[97d350]302    <splitter id="vIDebugBoxSplitter" hidden="true"/>
303    <textbox id="vIDebugBox" hidden="true" multiline="true" readonly="true"
304    DOMAttrModified="if(event.attrName == 'value') this.value = event.newValue; return true;"/>
305
306</window>
Note: See TracBrowser for help on using the repository browser.