Chrome List extension
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 1 Feb 2009 04:45:10 +0000 (04:45 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 1 Feb 2009 04:45:10 +0000 (04:45 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/staff-client-experiment@12029 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/chrome/chrome.manifest
Open-ILS/xul/staff_client/chrome/content/auth/controller.js
Open-ILS/xul/staff_client/chrome/content/main/main.js
Open-ILS/xul/staff_client/chrome/content/main/main.xul
Open-ILS/xul/staff_client/server/main/menu_frame_menus.xul

index 3771991..7741cc4 100644 (file)
 <!ENTITY staff.main.auth.debug.javascript.accesskey "J">
 <!ENTITY staff.main.auth.debug.debugger "Debugger">
 <!ENTITY staff.main.auth.debug.debugger.accesskey "D">
+<!ENTITY staff.main.auth.debug.inspector "DOM Inspector">
+<!ENTITY staff.main.auth.debug.inspector.accesskey "I">
+<!ENTITY staff.main.auth.debug.chrome_list "Chrome List">
+<!ENTITY staff.main.auth.debug.chrome_list.accesskey "">
 <!ENTITY staff.main.auth.hostname "Hostname">
 <!ENTITY staff.main.auth.hostname.accesskey "H">
 <!ENTITY staff.main.auth.offline.caption "Offline Use">
index da0c5ef..7447d7d 100644 (file)
@@ -37,3 +37,10 @@ content inspector jar:inspector.jar!/content/inspector/ xpcnativewrappers=no
 overlay chrome://inspector/content/commandOverlay.xul chrome://inspector/content/viewers/dom/commandOverlay.xul
 overlay chrome://inspector/content/inspector.xul chrome://browser/content/baseMenuOverlay.xul application={ec8030f7-c20a-464f-9b0e-13a3a9e97384}
 overlay chrome://inspector/content/inspector.xul chrome://communicator/content/tasksOverlay.xul application={92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}
+
+content   chromelist                                jar:chrome_list.jar!/content/
+skin      chromelist       modern/1.0               jar:chrome_list.jar!/skin/
+locale    chromelist       en-US                    jar:chrome_list.jar!/locale/
+overlay   chrome://browser/content/browser.xul      chrome://chromelist/content/overlay/ChromeListOverlay.xul
+overlay   chrome://messenger/content/messenger.xul  chrome://chromelist/content/overlay/ChromeListOverlay.xul
+
index 82045db..5d22a8c 100644 (file)
@@ -72,6 +72,12 @@ auth.controller.prototype = {
                             start_inspector();
                         }
                     ],
+                    'cmd_chrome_list' : [
+                        ['command'],
+                        function() {
+                            start_chrome_list();
+                        }
+                    ],
                                        'cmd_override' : [
                                                ['command'],
                                                function() {
index 121c6f9..8e304cd 100644 (file)
@@ -56,6 +56,14 @@ function start_inspector() {
     );
 };
 
+function start_chrome_list() {
+    setTimeout(
+        function() {
+            try { startChromeList(); } catch(E) { alert(E); }
+        }, 0
+    );
+};
+
 function main_init() {
        dump('entering main_init()\n');
        try {
index f0cb70e..a153b13 100644 (file)
@@ -57,6 +57,8 @@
 
     <script type="text/javascript" src="chrome://venkman/content/venkman-overlay.js"/>
     <script type="application/x-javascript" src="chrome://inspector/content/hooks.js"/>
+    <script type="application/x-javascript" src="chrome://chromelist/content/overlay/ChromeListOverlay.js" />
+
        <messagecatalog id="authStrings" src="chrome://open_ils_staff_client/locale/auth.properties"/>
        <messagecatalog id="offlineStrings" src="chrome://open_ils_staff_client/locale/offline.properties"/>
 
@@ -71,6 +73,7 @@
                <command id="cmd_js_console"/>
                <command id="cmd_debugger"/>
                <command id="cmd_inspector"/>
+               <command id="cmd_chrome_list"/>
                <command id="cmd_clear_cache"/>
                <command id="cmd_test_server"/>
                <command id="cmd_ssl_exception" hidden="true"/>
                                <button label="&staff.main.auth.debug.javascript;" accesskey="&staff.main.auth.debug.javascript.accesskey;" command="cmd_js_console"/>
                                <button label="&staff.main.auth.debug.debugger;" accesskey="&staff.main.auth.debug.debugger.accesskey;" command="cmd_debugger"/>
                                <button label="&staff.main.auth.debug.inspector;" accesskey="&staff.main.auth.debug.inspector.accesskey;" command="cmd_inspector"/>
+                               <button label="&staff.main.auth.debug.chrome_list;" accesskey="&staff.main.auth.debug.chrome_list.accesskey;" command="cmd_chrome_list"/>
                                <button label="&staff.main.auth.debug.clear;" accesskey="&staff.main.auth.debug.clear.accesskey;" command="cmd_clear_cache"/>
                        </hbox>
                </groupbox>
index a1cea03..18bbc9e 100644 (file)
                                <menuitem label="&staff.main.menu.admin.about_config.label;" command="cmd_about_config"/>
                                <menuitem label="&staff.main.menu.admin.venkman.label;" oncommand="try{xulG.window.win.start_debugger();}catch(E){alert(E);}"/>
                                <menuitem label="&staff.main.auth.debug.inspector;" oncommand="try{xulG.window.win.start_inspector();}catch(E){alert(E);}"/>
+                               <menuitem label="&staff.main.auth.debug.chrome_list;" oncommand="try{xulG.window.win.start_chrome_list();}catch(E){alert(E);}"/>
                        </menupopup>
                </menu>
        </menupopup>