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

lite_0.1multiEditng_0.6ng_0.6_helpng_0.8ng_0.9
Last change on this file since f99d91 was f99d91, checked in by rene <rene@…>, 13 years ago

readded edit-button

  • Property mode set to 100644
File size: 14.7 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
50<script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfDataTree.js" />
[19daa3]51<script type="application/x-javascript" src="chrome://v_identity/content/vI_identityData.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"/>
164</vbox>
165</hbox>
[44a21d]166</tabpanel>
[97d350]167
[44a21d]168<tabpanel id="maillist" flex="1">
[e60df7]169<hbox flex="1">
[44a21d]170<tree id="rdfDataTree_maillist" flex="1" class="plain" seltype="multiple"
171    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
172    enableColumnDrag="true" context="configContext" onselect="vI_rdfDataTree.onselect();">
[e60df7]173    <treecols id="rdfDataTreeCols_maillist">
174        <treecol id="recipientCol_maillist" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
[44a21d]175            class="sortDirectionIndicator"
176            ignoreincolumnpicker="true"
[e60df7]177            persist="width ordinal sortDirection"/>
[44a21d]178        <splitter class="tree-splitter" />
[e60df7]179        <treecol id="senderCol_maillist" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
[44a21d]180            class="sortDirectionIndicator"
181            persist="hidden width ordinal sortDirection"/>
182        <splitter class="tree-splitter" />
[e60df7]183        <treecol id="smtpCol_maillist" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
[44a21d]184            class="sortDirectionIndicator"
185            persist="hidden width ordinal sortDirection"/>
186        <splitter class="tree-splitter" />
[e60df7]187        <treecol id="idCol_maillist" label="&vI_rdfDataTree.idColumn.label;" flex="10"
[44a21d]188            class="sortDirectionIndicator"
189            persist="hidden width ordinal sortDirection"/>     
190    </treecols>
[e60df7]191    <treechildren id="configTreeBody_maillist" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" />
[44a21d]192</tree>
[e60df7]193<vbox>
194          <button id="newButton_maillist" label="&newButton.label;" accesskey="&newButton.accesskey;"
195                  oncommand="vI_rdfDataTree.newItem();"/>
196          <button id="editButton_maillist" label="&editButton.label;" accesskey="&editButton.accesskey;"
197                  oncommand="vI_rdfDataTree.modifySelected();"/>
198          <button id="deleteButton_maillist" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
199                  oncommand="vI_rdfDataTree.removeSelected();"/>
200          <spacer flex="1"/>
201</vbox>
202</hbox>
[44a21d]203</tabpanel>
204<tabpanel id="newsgroup" flex="1">
[e60df7]205<hbox flex="1">
[44a21d]206<tree id="rdfDataTree_newsgroup" flex="1" class="plain" seltype="multiple"
[97d350]207    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
[593347]208    enableColumnDrag="true" context="configContext" onselect="vI_rdfDataTree.onselect();">
[e60df7]209    <treecols id="rdfDataTreeCols_newsgroup">
210        <treecol id="recipientCol_newsgroup" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
[97d350]211            class="sortDirectionIndicator"
212            ignoreincolumnpicker="true"
[e60df7]213            persist="width ordinal sortDirection"/>
[97d350]214        <splitter class="tree-splitter" />
[e60df7]215        <treecol id="senderCol_newsgroup" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
[97d350]216            class="sortDirectionIndicator"
217            persist="hidden width ordinal sortDirection"/>
218        <splitter class="tree-splitter" />
[e60df7]219        <treecol id="smtpCol_newsgroup" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
[97d350]220            class="sortDirectionIndicator"
221            persist="hidden width ordinal sortDirection"/>
222        <splitter class="tree-splitter" />
[e60df7]223        <treecol id="idCol_newsgroup" label="&vI_rdfDataTree.idColumn.label;" flex="10"
[97d350]224            class="sortDirectionIndicator"
225            persist="hidden width ordinal sortDirection"/>     
226    </treecols>
[e60df7]227    <treechildren id="configTreeBody_newsgroup" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" />
[97d350]228</tree>
[e60df7]229<vbox>
230          <button id="newButton_newsgroup" label="&newButton.label;" accesskey="&newButton.accesskey;"
231                  oncommand="vI_rdfDataTree.newItem();"/>
232          <button id="editButton_newsgroup" label="&editButton.label;" accesskey="&editButton.accesskey;"
233                  oncommand="vI_rdfDataTree.modifySelected();"/>
234          <button id="deleteButton_newsgroup" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
235                  oncommand="vI_rdfDataTree.removeSelected();"/>
236          <spacer flex="1"/>
237</vbox>
238</hbox>
[44a21d]239</tabpanel>
240<tabpanel id="filter" flex="1">
[e60df7]241<hbox flex="1">
[44a21d]242<tree id="rdfDataTree_filter" flex="1" class="plain" seltype="multiple"
[e60df7]243    persist="sortDirection sortResource" sortDirection="ascending" sortResource="indexCol"
[44a21d]244    enableColumnDrag="true" context="configContext" onselect="vI_rdfDataTree.onselect();">
[e60df7]245    <treecols id="rdfDataTreeCols_filter">
246        <treecol id="indexCol_filter" label="&vI_rdfDataTree.indexColumn.label;" flex="10"
[44a21d]247            ignoreincolumnpicker="true"
[e60df7]248            class="sortDirectionIndicator"
249            persist="width ordinal"/>
[44a21d]250        <splitter class="tree-splitter" />
[e60df7]251        <treecol id="recipientCol_filter" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
252            ignoreincolumnpicker="true"
[44a21d]253            class="sortDirectionIndicator"
[e60df7]254            persist="width ordinal"/>
[44a21d]255        <splitter class="tree-splitter" />
[e60df7]256        <treecol id="senderCol_filter" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
[44a21d]257            class="sortDirectionIndicator"
[e60df7]258            persist="hidden width ordinal"/>
[44a21d]259        <splitter class="tree-splitter" />
[e60df7]260        <treecol id="smtpCol_filter" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
[44a21d]261            class="sortDirectionIndicator"
[e60df7]262            persist="hidden width ordinal"/>
[44a21d]263        <splitter class="tree-splitter" />
[e60df7]264        <treecol id="idCol_filter" label="&vI_rdfDataTree.idColumn.label;" flex="10"
[44a21d]265            class="sortDirectionIndicator"
[e60df7]266            persist="hidden width ordinal"/>       
[44a21d]267    </treecols>
[e60df7]268    <treechildren id="configTreeBody_filter" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" />
[44a21d]269</tree>
[c09d7b]270<vbox>
[e60df7]271          <button id="newButton_filter" label="&newButton.label;" accesskey="&newButton.accesskey;"
272                  oncommand="vI_rdfDataTree.newItem();"/>
273          <button id="editButton_filter" label="&editButton.label;" accesskey="&editButton.accesskey;"
274                  oncommand="vI_rdfDataTree.modifySelected();"/>
275          <button id="deleteButton_filter" label="&deleteButton.label;" accesskey="&deleteButton.accesskey;"
276                  oncommand="vI_rdfDataTree.removeSelected();"/>
277          <spacer flex="1"/>
278          <button id="reorderUpButton_filter" label="&reorderUpButton.label;" accesskey="&reorderUpButton.accesskey;"
279                  class="up"
[69321c]280                  oncommand="vI_rdfDataTree.moveUpSelected();"/>
[e60df7]281          <button id="reorderDownButton_filter" label="&reorderDownButton.label;" accesskey="&reorderDownButton.accesskey;"
282                  class="down"
[69321c]283                  oncommand="vI_rdfDataTree.moveDownSelected();"/>
[e60df7]284          <spacer flex="1"/>
[c09d7b]285</vbox>
286</hbox>
[44a21d]287</tabpanel>
288
289</tabpanels>
[e60df7]290</tabbox>
[44a21d]291<!-- <splitter /> -->
[593347]292<browser id="vI_rdfDataTreeInfoBox" class="vI_htmlTextBox" cssSource="vI_rdfTreeInfo.css" disablehistory="true" onoverflow="vI_rdfDataTree.overflow();"/>
293
[97d350]294    <splitter id="vIDebugBoxSplitter" hidden="true"/>
295    <textbox id="vIDebugBox" hidden="true" multiline="true" readonly="true"
296    DOMAttrModified="if(event.attrName == 'value') this.value = event.newValue; return true;"/>
297
298</window>
Note: See TracBrowser for help on using the repository browser.