]> git.evergreen-ils.org Git - Evergreen.git/blob - Evergreen/staff_client/chrome/content/evergreen/main/app_shell_overlay.xul
Various stuff to find a speed bottleneck. It was the register_window function. need...
[Evergreen.git] / Evergreen / staff_client / chrome / content / evergreen / main / app_shell_overlay.xul
1 <?xml version="1.0"?>
2 <!DOCTYPE overlay SYSTEM "chrome://evergreen/locale/app_shell.dtd">
3 <overlay id="app_shell_overlay" 
4         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
5
6         <script>mw.sdump('D_TRACE','Loading app_shell_overlay.xul\n');</script>
7
8         <?xul-overlay href="chrome://evergreen/content/main/app_shell_menus_overlay.xul"?>
9
10 <commandset id="AppShell_cmds">
11
12         <command id="cmd_close_window" oncommand="
13                 window.close();" />
14
15         <command id="cmd_new_window" oncommand="
16                 mw.spawn_main();" />
17
18         <command id="cmd_new_tab" oncommand="
19                 mw.new_tab(document,'main_tabbox');" />
20
21         <command id="cmd_close_tab" oncommand="
22                 mw.close_tab(document,'main_tabbox');" />
23
24         <command id="cmd_cat_main" oncommand="
25                 mw.spawn_opac_navigator(document,'replace_tab','main_tabbox',{}); "/>   
26
27         <command id="cmd_circ_checkout" oncommand="
28                 mw.spawn_check_out(document,'replace_tab','main_tabbox',{}); "/>        
29
30         <command id="cmd_circ_search" oncommand="
31                 mw.spawn_patron_search(document,'replace_tab','main_tabbox',{}); "/>    
32
33         <command id="cmd_circ_display" oncommand="
34                 mw.spawn_circ_display(document,'replace_tab','main_tabbox',{}); "/>
35
36         <command id="cmd_circ_checkin" oncommand="
37                 mw.spawn_check_in(document,'replace_tab','main_tabbox',{}); "/> 
38
39         <command id="cmd_search_opac" oncommand="
40                 mw.spawn_opac_navigator(document,'replace_tab','main_tabbox',{}); "/>   
41
42         <command id="cmd_patron_register" oncommand="
43                 mw.spawn_patron_register(document,'replace_tab','main_tabbox',{}); "/>  
44
45         <command id="cmd_survey_wizard" oncommand="
46                 mw.spawn_survey_admin_wizard(document,'new_window','',{}); "/>  
47
48         <command id="cmd_copy_stat_cat_edit" oncommand="
49                 mw.spawn_copy_stat_cat_edit(document,'replace_tab','main_tabbox',{}); "/>       
50
51         <command id="cmd_patron_stat_cat_edit" oncommand="
52                 mw.spawn_patron_stat_cat_edit(document,'replace_tab','main_tabbox',{}); "/>     
53
54         <command id="cmd_z39_50_import_old" oncommand="
55                 mw.spawn_z3950_import(document,'replace_tab','main_tabbox',{}); "/>     
56
57         <command id="cmd_console" oncommand="
58                 mw.spawn_javascript_console(document,'new_tab','main_tabbox',{}); "/>
59
60         <command id="cmd_shell" oncommand="
61                 mw.spawn_javascript_shell(document,'new_tab','main_tabbox',{}); "/>
62
63         <command id="cmd_xuleditor" oncommand="
64                 mw.spawn_xuleditor(document,'new_tab','main_tabbox',{}); "/>
65
66         <command id="cmd_test" oncommand="
67                 mw.spawn_interface(
68                         document,
69                         'new_tab',
70                         'main_tabbox',
71                         'chrome://evergreen/content/patron/patron_search_form.xul',
72                         'test',
73                         { }
74                 ); "/>
75
76         <command id="cmd_broken" oncommand="
77                 alert('Not Yet Implemented'); "/>
78
79 </commandset>
80
81 <!-- The top level widget for the staff client -->
82 <box id="AppShell_main" flex="1" orient="vertical">
83         <toolbox id="main_toolbox"/>
84         <tabbox id="main_tabbox" flex="1" eventnode="window" handleCtrlTab="true">
85                 <tabs id="main_tabs" closebutton="true">
86                         <tab id="tab_1" accesskey="1" label="Tab 1" hidden="true" />
87                         <tab id="tab_2" accesskey="2" label="Tab 2" hidden="true" />
88                         <tab id="tab_3" accesskey="3" label="Tab 3" hidden="true" />
89                         <tab id="tab_4" accesskey="4" label="Tab 4" hidden="true" />
90                         <tab id="tab_5" accesskey="5" label="Tab 5" hidden="true" />
91                         <tab id="tab_6" accesskey="6" label="Tab 6" hidden="true" />
92                         <tab id="tab_7" accesskey="7" label="Tab 7" hidden="true" />
93                         <tab id="tab_8" accesskey="8" label="Tab 8" hidden="true" />
94                         <tab id="tab_9" accesskey="9" label="Tab 9" hidden="true" />
95                 </tabs>
96                 <tabpanels id="main_panels" flex="1">
97                         <tabpanel id="panel_1"><label value="panel_1"/></tabpanel>
98                         <tabpanel id="panel_2"><label value="panel_2"/></tabpanel>
99                         <tabpanel id="panel_3"><label value="panel_3"/></tabpanel>
100                         <tabpanel id="panel_4"><label value="panel_4"/></tabpanel>
101                         <tabpanel id="panel_5"><label value="panel_5"/></tabpanel>
102                         <tabpanel id="panel_6"><label value="panel_6"/></tabpanel>
103                         <tabpanel id="panel_7"><label value="panel_7"/></tabpanel>
104                         <tabpanel id="panel_8"><label value="panel_8"/></tabpanel>
105                         <tabpanel id="panel_9"><label value="panel_9"/></tabpanel>
106                 </tabpanels>
107         </tabbox>
108         <toolbox id="entity_toolbox"/>
109 </box>
110
111 <!-- The main top level menubar -->
112 <toolbox id="main_toolbox">
113         <menubar id="main_menubar">
114                 <menu id="main.menu.file" />
115                 <menu id="main.menu.edit" />
116                 <menu id="main.menu.search" />
117                 <menu id="main.menu.circ" />
118                 <menu id="main.menu.cat" />
119                 <menu id="main.menu.serials" />
120                 <menu id="main.menu.acquisitions" />
121                 <menu id="main.menu.reports" />
122                 <spacer flex="1" />
123                 <menu id="main.menu.admin" />
124                 <menu id="main.menu.help" />
125         </menubar>
126 </toolbox>
127
128 <!-- The Entity top level menubar -->
129 <!--
130 <toolbox id="entity_toolbox">
131         <menubar id="entity_menubar">
132                 <menu id="patron-menu" label="&main.menu.entity.patron.label;" accesskey="&main.menu.entity.patron.key;" command="cmd_broken"/>
133                 <menu id="copy-menu" label="&main.menu.entity.copy.label;" accesskey="&main.menu.entity.copy.key;" command="cmd_broken"/>
134                 <menu id="volume-menu" label="&main.menu.entity.volume.label;" accesskey="&main.menu.entity.volume.key;" command="cmd_broken"/>
135                 <menu id="bib-menu" label="&main.menu.entity.bib.label;" accesskey="&main.menu.entity.bib.key;" command="cmd_broken"/>
136         </menubar>
137 </toolbox>
138 -->
139
140 <!-- The Patron menu on the Entity menubar -->
141 <!--
142 <menu id="patron-menu">
143         <menupopup id="patron-popup">
144                 <menuitem label="&main.menu.circ.patron_registration.label;" accesskey="&main.menu.entity.patron.register.key;" command="cmd_patron_register"/>
145                 <menuitem label="stub" />
146                 <menuitem label="stub" />
147         </menupopup>
148 </menu>
149 -->
150
151 <!-- The Items menu on the Entity menubar -->
152 <!--
153 <menu id="copy-menu">
154         <menupopup id="copy-popup">
155                 <menuitem label="stub" />
156                 <menuitem label="stub" />
157                 <menuitem label="stub" />
158         </menupopup>
159 </menu>
160 -->
161
162 <!-- The Volumes menu on the Entity menubar -->
163 <!--
164 <menu id="volume-menu">
165         <menupopup id="volume-popup">
166                 <menuitem label="stub" />
167                 <menuitem label="stub" />
168                 <menuitem label="stub" />
169         </menupopup>
170 </menu>
171 -->
172
173 <!-- The Bib Records menu on the Entity menubar -->
174 <!--
175 <menu id="bib-menu">
176         <menupopup id="bib-popup">
177                 <menuitem label="stub" />
178                 <menuitem label="stub" />
179                 <menuitem label="stub" />
180         </menupopup>
181 </menu>
182 -->
183
184 <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
185 <keyset id="AppShell_keys">
186         <key id="file-new-key" modifiers="accel" key="N" command="cmd_new_window"/>
187         <key id="file-new-tab-key" modifiers="accel" key="T" command="cmd_new_tab"/>
188         <key id="file-open-key" modifiers="accel" key="O" command=""/>
189         <key id="file-save-key" modifiers="accel" key="S" command=""/>
190         <key id="file-close-tab-key" modifiers="accel" key="W" command="cmd_close_tab"/>
191         <key id="file-close-key" modifiers="accel" key="Q" command="cmd_close_window"/>
192
193         <key id="edit-undo-key" modifiers="accel" key="Z" command=""/>
194         <key id="edit-redo-key" modifiers="accel" key="Y" command=""/>
195         <key id="edit-cut-key" modifiers="accel" key="X" command=""/>
196         <key id="edit-copy-key" modifiers="accel" key="C" command=""/>
197         <key id="edit-paste-key" modifiers="accel" key="V" command=""/>
198         <key id="edit-delete-key" modifiers="" keycode="VK_DELETE" command=""/>
199         <key id="edit-select-all-key" modifiers="accel" key="A" command=""/>
200         <key id="edit-find-key" modifiers="accel" key="F" command=""/>
201         <key id="edit-find-again-key" modifiers="accel" key="G" command=""/>
202
203         <key id="circ-patron-status-key" keycode="VK_F11" command="cmd_circ_display"/>
204         <key id="circ-copy-status-key" keycode="VK_F9" command=""/>
205         <key id="circ-check-out-key" keycode="VK_F1" command="cmd_circ_checkout"/>
206         <key id="circ-check-in-key" keycode="VK_F2" command="cmd_circ_checkin"/>
207         <key id="circ-renew-key" keycode="VK_F3" command=""/>
208         <key id="circ-mark-used-key" keycode="VK_F4" command=""/>
209         <key id="circ-place-hold-key" keycode="VK_F5" command=""/>
210         <key id="circ-patron-registration-key" keycode="VK_F12" command=""/>
211 </keyset>
212
213 </overlay>