source: chrome/content/v_identity/vI_rdfDataTree.xul @ 44a21d

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

tabbed rdf Data Editor (not completely working)

  • Property mode set to 100644
File size: 12.3 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 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;
37  <!ENTITY % messengercomposeDTD SYSTEM "chrome://messenger/locale/messengercompose/messengercompose.dtd" >
38%messengercomposeDTD;
39]>
40
41<window id="vI_rdfDataTreeWindow"
42    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
43        width="750"
44        height="500"
45    persist="width,height,screenX,screenY"
46        onload="vI_rdfDataTree.init();"
47    title="&vI_rdfDataTree.dlgTitle.label;">
48
49<script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfDataTree.js" />
50<script type="application/x-javascript" src="chrome://v_identity/content/vI_identityData.js" />
51<script type="application/x-javascript" src="chrome://v_identity/content/vI_helper.js" />
52<script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfDatasource.js" />
53<script type="application/x-javascript" src="chrome://v_identity/content/vI_storageExtras.js" />
54<script type="application/x-javascript" src="chrome://v_identity/content/vI_storage.js" />
55<script type="application/x-javascript" src="chrome://v_identity/content/vI_notificationBar.js"/>
56<script type="application/x-javascript" src="chrome://messenger/content/messengercompose/MsgComposeCommands.js"/>
57
58
59<stringbundleset id="stringbundleset">
60    <stringbundle id="vI_rdfDataTreeBundle" src="chrome://v_identity/locale/vI_rdfDataEditor.properties" />
61    <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties" />
62    <stringbundle id="vIdentBundle" src="chrome://v_identity/locale/v_identity.properties" />
63        <stringbundle id="vIStorageExtrasBundle" src="chrome://v_identity/locale/vI_storageExtras.properties" />
64</stringbundleset>
65
66<menupopup hidden="true">  <!--just to hold the localized labels-->
67    <menuitem label="&autoFormatCmd.label;" accesskey="&autoFormatCmd.accesskey;" id="format_auto"/>
68    <menuitem label="&plainTextFormatCmd.label;" accesskey="&plainTextFormatCmd.accesskey;" id="format_plain"/>
69    <menuitem label="&htmlFormatCmd.label;" accesskey="&htmlFormatCmd.accesskey;" id="format_html"/>
70    <menuitem label="&bothFormatCmd.label;" accesskey="&bothFormatCmd.accesskey;" id="format_both"/>
71</menupopup>
72
73<popup id="configContext" onpopupshowing="if (event.target == this) vI_rdfDataTree.updateContextMenu();">
74    <menuitem id="context_modifySelected" label="&vI_rdfDataTree.modifySelected.label;"
75        oncommand="vI_rdfDataTree.modifySelected(this);"/>
76    <menuitem id="context_removeSelected" label="&vI_rdfDataTree.removeSelected.label;"
77        oncommand="vI_rdfDataTree.removeSelected();"/>
78    <menuitem id="context_newItem" label="&vI_rdfDataTree.newItem.label;"
79        oncommand="vI_rdfDataTree.newItem();"/>
80    <menuseparator />
81    <menuitem id="context_menu_selectAll" label="&selectAllCmd.label;"
82        oncommand="vI_rdfDataTree.selectAll();"/>
83</popup>
84
85<keyset>
86    <key keycode="VK_ENTER" oncommand="vI_rdfDataTree.modifySelected();"/>
87    <key keycode="VK_RETURN" oncommand="vI_rdfDataTree.modifySelected();"/>
88    <key keycode="VK_DELETE" oncommand="vI_rdfDataTree.removeSelected();"/>
89    <key modifiers="accel" key="&selectAllCmd.accesskey;" oncommand="vI_rdfDataTree.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) vI_rdfDataTree.updateMenu();">
100            <menuitem id="menu_modifySelected" label="&vI_rdfDataTree.modifySelected.label;"
101                accesskey="&vI_rdfDataTree.modifySelected.accesskey;"
102                oncommand="vI_rdfDataTree.modifySelected();"/>
103            <menuitem id="menu_removeSelected" label="&vI_rdfDataTree.removeSelected.label;"
104                accesskey="&vI_rdfDataTree.removeSelected.accesskey;"
105                oncommand="vI_rdfDataTree.removeSelected();"/>
106            <menuitem id="menu_newItem" label="&vI_rdfDataTree.newItem.label;"
107                accesskey="&vI_rdfDataTree.newItem.accesskey;"
108                oncommand="vI_rdfDataTree.newItem();"/>
109            <menuseparator />
110            <menuitem id="menu_menu_selectAll" label="&selectAllCmd.label;" accesskey="&selectAllCmd.accesskey;"
111                oncommand="vI_rdfDataTree.selectAll();"/>
112        </menupopup>
113        </menu>
114    </menubar>
115    <spacer flex="1"/></vbox>
116    <spacer width="20px" />
117    <label value="&vI_rdfDataTree.filterPrefs.label;" accesskey="&vI_rdfDataTree.filterPrefs.accesskey;" control="filter"/>
118    <textbox id="filter" flex="1" oninput="vI_rdfDataTree.inputFilter(event);"/>
119    <button id="clearFilter" label="&vI_rdfDataTree.showAll.label;" accesskey="&vI_rdfDataTree.showAll.accesskey;" oncommand="vI_rdfDataTree.clearFilter();" disabled="true"/>
120</hbox>
121<tabbox id="TreeTabbox" flex="1">
122<tabs>
123<tab label="Emails"/>
124<tab label="Mailing Lists"/>
125<tab label="Newsgroups"/>
126<tab label="Filter"/>
127</tabs>
128<tabpanels flex="1">
129<tabpanel id="email" flex="1">
130<tree id="rdfDataTree_email" flex="1" class="plain" seltype="multiple"
131    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
132    enableColumnDrag="true" context="configContext" onselect="vI_rdfDataTree.onselect(this);">
133    <treecols id="rdfDataTreeCols">
134        <treecol id="recipientCol" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
135            class="sortDirectionIndicator"
136            ignoreincolumnpicker="true"
137            persist="hidden width ordinal sortDirection"/>
138        <splitter class="tree-splitter" />
139        <treecol id="typeCol" label="&vI_rdfDataTree.typeColumn.label;" flex="5"
140            class="sortDirectionIndicator"
141            persist="hidden width ordinal sortDirection"/>
142        <splitter class="tree-splitter" />
143        <treecol id="senderCol" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
144            class="sortDirectionIndicator"
145            persist="hidden width ordinal sortDirection"/>
146        <splitter class="tree-splitter" />
147        <treecol id="smtpCol" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
148            class="sortDirectionIndicator"
149            persist="hidden width ordinal sortDirection"/>
150        <splitter class="tree-splitter" />
151        <treecol id="idCol" label="&vI_rdfDataTree.idColumn.label;" flex="10"
152            class="sortDirectionIndicator"
153            persist="hidden width ordinal sortDirection"/>     
154    </treecols>
155    <treechildren id="configTreeBody" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" />
156</tree>
157</tabpanel>
158
159<tabpanel id="maillist" flex="1">
160<tree id="rdfDataTree_maillist" flex="1" class="plain" seltype="multiple"
161    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
162    enableColumnDrag="true" context="configContext" onselect="vI_rdfDataTree.onselect();">
163    <treecols id="rdfDataTreeCols">
164        <treecol id="recipientCol" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
165            class="sortDirectionIndicator"
166            ignoreincolumnpicker="true"
167            persist="hidden width ordinal sortDirection"/>
168        <splitter class="tree-splitter" />
169        <treecol id="typeCol" label="&vI_rdfDataTree.typeColumn.label;" flex="5"
170            class="sortDirectionIndicator"
171            persist="hidden width ordinal sortDirection"/>
172        <splitter class="tree-splitter" />
173        <treecol id="senderCol" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
174            class="sortDirectionIndicator"
175            persist="hidden width ordinal sortDirection"/>
176        <splitter class="tree-splitter" />
177        <treecol id="smtpCol" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
178            class="sortDirectionIndicator"
179            persist="hidden width ordinal sortDirection"/>
180        <splitter class="tree-splitter" />
181        <treecol id="idCol" label="&vI_rdfDataTree.idColumn.label;" flex="10"
182            class="sortDirectionIndicator"
183            persist="hidden width ordinal sortDirection"/>     
184    </treecols>
185    <treechildren id="configTreeBody" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" />
186</tree>
187</tabpanel>
188<tabpanel id="newsgroup" flex="1">
189<tree id="rdfDataTree_newsgroup" flex="1" class="plain" seltype="multiple"
190    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
191    enableColumnDrag="true" context="configContext" onselect="vI_rdfDataTree.onselect();">
192    <treecols id="rdfDataTreeCols">
193        <treecol id="recipientCol" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
194            class="sortDirectionIndicator"
195            ignoreincolumnpicker="true"
196            persist="hidden width ordinal sortDirection"/>
197        <splitter class="tree-splitter" />
198        <treecol id="typeCol" label="&vI_rdfDataTree.typeColumn.label;" flex="5"
199            class="sortDirectionIndicator"
200            persist="hidden width ordinal sortDirection"/>
201        <splitter class="tree-splitter" />
202        <treecol id="senderCol" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
203            class="sortDirectionIndicator"
204            persist="hidden width ordinal sortDirection"/>
205        <splitter class="tree-splitter" />
206        <treecol id="smtpCol" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
207            class="sortDirectionIndicator"
208            persist="hidden width ordinal sortDirection"/>
209        <splitter class="tree-splitter" />
210        <treecol id="idCol" label="&vI_rdfDataTree.idColumn.label;" flex="10"
211            class="sortDirectionIndicator"
212            persist="hidden width ordinal sortDirection"/>     
213    </treecols>
214    <treechildren id="configTreeBody" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" />
215</tree>
216</tabpanel>
217<tabpanel id="filter" flex="1">
218<tree id="rdfDataTree_filter" flex="1" class="plain" seltype="multiple"
219    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
220    enableColumnDrag="true" context="configContext" onselect="vI_rdfDataTree.onselect();">
221    <treecols id="rdfDataTreeCols">
222        <treecol id="recipientCol" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
223            class="sortDirectionIndicator"
224            ignoreincolumnpicker="true"
225            persist="hidden width ordinal sortDirection"/>
226        <splitter class="tree-splitter" />
227        <treecol id="typeCol" label="&vI_rdfDataTree.typeColumn.label;" flex="5"
228            class="sortDirectionIndicator"
229            persist="hidden width ordinal sortDirection"/>
230        <splitter class="tree-splitter" />
231        <treecol id="senderCol" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
232            class="sortDirectionIndicator"
233            persist="hidden width ordinal sortDirection"/>
234        <splitter class="tree-splitter" />
235        <treecol id="smtpCol" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
236            class="sortDirectionIndicator"
237            persist="hidden width ordinal sortDirection"/>
238        <splitter class="tree-splitter" />
239        <treecol id="idCol" label="&vI_rdfDataTree.idColumn.label;" flex="10"
240            class="sortDirectionIndicator"
241            persist="hidden width ordinal sortDirection"/>     
242    </treecols>
243    <treechildren id="configTreeBody" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();" />
244</tree>
245</tabpanel>
246
247</tabpanels>
248</tabbox> -->
249<!-- <splitter /> -->
250<browser id="vI_rdfDataTreeInfoBox" class="vI_htmlTextBox" cssSource="vI_rdfTreeInfo.css" disablehistory="true" onoverflow="vI_rdfDataTree.overflow();"/>
251
252    <splitter id="vIDebugBoxSplitter" hidden="true"/>
253    <textbox id="vIDebugBox" hidden="true" multiline="true" readonly="true"
254    DOMAttrModified="if(event.attrName == 'value') this.value = event.newValue; return true;"/>
255
256</window>
Note: See TracBrowser for help on using the repository browser.