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

Last change on this file since fa4f02 was fa4f02, checked in by rene <rene@…>, 14 years ago

rearranged DataTree? Menu

  • Property mode set to 100644
File size: 6.2 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
28<!DOCTYPE overlay [
29<!ENTITY % dataTreeDTD SYSTEM "chrome://v_identity/locale/vI_rdfDataTree.dtd">
30%dataTreeDTD;
31<!ENTITY % editDTD SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
32%editDTD;
33]>
34
35<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
36        width="750"
37        height="500"
38    persist="width,height,screenX,screenY"
39        onload="vI_rdfDataTree.init();">
40
41<script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfDataTree.js" />
42<script type="application/x-javascript" src="chrome://v_identity/content/vI_helper.js" />
43<script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfDatasource.js" />
44<script type="application/x-javascript" src="chrome://v_identity/content/vI_notificationBar.js"/>
45<script type="application/x-javascript" src="chrome://messenger/content/messengercompose/MsgComposeCommands.js"/>
46
47
48<stringbundleset id="stringbundleset">
49    <stringbundle id="vI_rdfDataTreeBundle" src="chrome://v_identity/locale/vI_rdfDataEditor.properties" />
50    <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties" />
51</stringbundleset>
52
53<popup id="configContext" onpopupshowing="if (event.target == this) vI_rdfDataTree.updateContextMenu();">
54    <menuitem id="context_modifySelected" label="&vI_rdfDataTree.modifySelected.label;"
55        oncommand="vI_rdfDataTree.modifySelected();"/>
56    <menuitem id="context_removeSelected" label="&vI_rdfDataTree.removeSelected.label;"
57        oncommand="vI_rdfDataTree.removeSelected();"/>
58    <menuitem id="context_newItem" label="&vI_rdfDataTree.newItem.label;"
59        oncommand="vI_rdfDataTree.newItem();"/>
60    <menuseparator />
61    <menuitem id="context_menu_selectAll" label="&selectAllCmd.label;"
62        oncommand="vI_rdfDataTree.selectAll();"/>
63</popup>
64
65<keyset>
66    <key keycode="VK_ENTER" oncommand="vI_rdfDataTree.modifySelected();"/>
67    <key keycode="VK_RETURN" oncommand="vI_rdfDataTree.modifySelected();"/>
68    <key keycode="VK_DELETE" oncommand="vI_rdfDataTree.removeSelected();"/>
69    <key modifiers="accel" key="&selectAllCmd.accesskey;" oncommand="vI_rdfDataTree.selectAll();"/>
70</keyset>
71
72
73<hbox align="center">
74    <spacer width="3px" />
75    <vbox><spacer flex="1"/>
76    <menubar>
77        <menu id="editMenu" label="&vI_rdfDataTree.editMenu.label;"
78            accesskey="&vI_rdfDataTree.editMenu.accesskey;">
79        <menupopup onpopupshowing="if (event.target == this) vI_rdfDataTree.updateMenu();">
80            <menuitem id="menu_modifySelected" label="&vI_rdfDataTree.modifySelected.label;"
81                accesskey="&vI_rdfDataTree.modifySelected.accesskey;"
82                oncommand="vI_rdfDataTree.modifySelected();"/>
83            <menuitem id="menu_removeSelected" label="&vI_rdfDataTree.removeSelected.label;"
84                accesskey="&vI_rdfDataTree.removeSelected.accesskey;"
85                oncommand="vI_rdfDataTree.removeSelected();"/>
86            <menuitem id="menu_newItem" label="&vI_rdfDataTree.newItem.label;"
87                accesskey="&vI_rdfDataTree.newItem.accesskey;"
88                oncommand="vI_rdfDataTree.newItem();"/>
89            <menuseparator />
90            <menuitem id="menu_menu_selectAll" label="&selectAllCmd.label;" accesskey="&selectAllCmd.accesskey;"
91                oncommand="vI_rdfDataTree.selectAll();"/>
92        </menupopup>
93        </menu>
94    </menubar>
95    <spacer flex="1"/></vbox>
96    <spacer width="20px" />
97    <label value="&vI_rdfDataTree.filterPrefs.label;" accesskey="&vI_rdfDataTree.filterPrefs.accesskey;" control="filter"/>
98    <textbox id="filter" flex="1" type="timed" timeout="500" oninput="vI_rdfDataTree.inputFilter(event);"/>
99    <button id="clearFilter" label="&vI_rdfDataTree.showAll.label;" accesskey="&vI_rdfDataTree.showAll.accesskey;" oncommand="vI_rdfDataTree.clearFilter();" disabled="true"/>
100</hbox>
101
102<tree id="rdfDataTree" flex="1" class="plain" seltype="multiple"
103    persist="sortDirection sortResource" sortDirection="ascending" sortResource="recipientCol"
104    enableColumnDrag="true" context="configContext">
105    <treecols>
106        <treecol id="recipientCol" label="&vI_rdfDataTree.recipientColumn.label;" flex="10"
107            class="sortDirectionIndicator"
108            ignoreincolumnpicker="true"
109            persist="hidden width ordinal sortDirection"/>
110        <splitter class="tree-splitter" />
111        <treecol id="typeCol" label="&vI_rdfDataTree.typeColumn.label;" flex="5"
112            class="sortDirectionIndicator"
113            persist="hidden width ordinal sortDirection"/>
114        <splitter class="tree-splitter" />
115        <treecol id="senderCol" label="&vI_rdfDataTree.senderColumn.label;" flex="10"
116            class="sortDirectionIndicator"
117            persist="hidden width ordinal sortDirection"/>
118        <splitter class="tree-splitter" />
119        <treecol id="smtpCol" label="&vI_rdfDataTree.smtpColumn.label;" flex="5"
120            class="sortDirectionIndicator"
121            persist="hidden width ordinal sortDirection"/>
122        <splitter class="tree-splitter" />
123        <treecol id="idCol" label="&vI_rdfDataTree.idColumn.label;" flex="10"
124            class="sortDirectionIndicator"
125            persist="hidden width ordinal sortDirection"/>     
126    </treecols>
127    <treechildren id="configTreeBody" ondblclick="if (event.button == 0) vI_rdfDataTree.modifySelected();"/>
128</tree>
129   
130    <splitter id="vIDebugBoxSplitter" hidden="true"/>
131    <textbox id="vIDebugBox" hidden="true" multiline="true" readonly="true"
132    DOMAttrModified="if(event.attrName == 'value') this.value = event.newValue; return true;"/>
133
134</window>
Note: See TracBrowser for help on using the repository browser.