]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/admin/font_settings.xul
global font settings
[Evergreen.git] / Open-ILS / xul / staff_client / server / admin / font_settings.xul
1 <?xml version="1.0"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Example Template for remote xul -->
4
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
6 <!-- STYLESHEETS -->
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <?xml-stylesheet href="chrome://open_ils_staff_client/skin/global.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
10
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
12 <!-- LOCALIZATION -->
13 <!DOCTYPE window PUBLIC "" ""[
14         <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
15 ]>
16
17 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
18 <!-- OVERLAYS -->
19 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
20
21 <window id="font_settings_win" 
22         onload="try { my_init(); } catch(E) { alert(E); }"
23         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
24
25         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
26         <!-- BEHAVIOR -->
27     <script type="text/javascript">
28                 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
29         </script>
30     <scripts id="openils_util_scripts"/>
31
32         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
33         <script>
34         <![CDATA[
35                 function my_init() {
36                         try {
37                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
38                                 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
39                                 JSAN.errorLevel = "die"; // none, warn, or die
40                                 JSAN.addRepository('/xul/server/');
41                                 JSAN.use('util.error'); g.error = new util.error();
42                                 g.error.sdump('D_TRACE','my_init() for font_settings.xul');
43
44                                 JSAN.use('OpenILS.data'); g.data = new OpenILS.data(); g.data.stash_retrieve();
45
46                         } catch(E) {
47                                 try { g.error.standard_unexpected_error_alert('admin/font_settings.xul',E); } catch(F) { alert(E); }
48                         }
49                 }
50
51         ]]>
52         </script>
53
54         <groupbox>
55                 <caption label="Adjust Global Font Size"/>
56                 <hbox>
57                         <vbox>
58                                 <button class="ALL_FONTS_LARGER" label="Larger than Default" oncommand="g.data.global_font_adjust = 'ALL_FONTS_LARGER'; g.data.stash('global_font_adjust'); alert('Global Font Adjust set to Larger than Default');"/>
59                                 <button class="ALL_FONTS_DEFAULT" label="Default" oncommand="g.data.global_font_adjust = 'ALL_FONTS_DEFAULT'; g.data.stash('global_font_adjust'); alert('Global Font Adjust set to Default');"/>
60                                 <button class="ALL_FONTS_SMALLER" label="Smaller than Default" oncommand="g.data.global_font_adjust = 'ALL_FONTS_SMALLER'; g.data.stash('global_font_adjust'); alert('Global Font Adjust set to Smaller than Default');"/>
61                         </vbox>
62                         <vbox>
63                                 <button class="ALL_FONTS_XX_SMALL" label="XX-Small" oncommand="g.data.global_font_adjust = 'ALL_FONTS_XX_SMALL'; g.data.stash('global_font_adjust'); alert('Global Font set to XX-Small');"/>
64                                 <button class="ALL_FONTS_X_SMALL" label="X-Small" oncommand="g.data.global_font_adjust = 'ALL_FONTS_X_SMALL'; g.data.stash('global_font_adjust'); alert('Global Font set to X-Small');"/>
65                                 <button class="ALL_FONTS_SMALL" label="Small" oncommand="g.data.global_font_adjust = 'ALL_FONTS_SMALL'; g.data.stash('global_font_adjust'); alert('Global Font set to Small');"/>
66                                 <button class="ALL_FONTS_MEDIUM" label="Medium" oncommand="g.data.global_font_adjust = 'ALL_FONTS_MEDIUM'; g.data.stash('global_font_adjust'); alert('Global Font set to Medium');"/>
67                                 <button class="ALL_FONTS_LARGE" label="Large" oncommand="g.data.global_font_adjust = 'ALL_FONTS_LARGE'; g.data.stash('global_font_adjust'); alert('Global Font set to Large');"/>
68                                 <button class="ALL_FONTS_X_LARGE" label="X-Large" oncommand="g.data.global_font_adjust = 'ALL_FONTS_X_LARGE'; g.data.stash('global_font_adjust'); alert('Global Font set to X-Large');"/>
69                                 <button class="ALL_FONTS_XX_LARGE" label="XX-Large" oncommand="g.data.global_font_adjust = 'ALL_FONTS_XX_LARGE'; g.data.stash('global_font_adjust'); alert('Global Font set to XX-Large');"/>
70                         </vbox>
71                 </hbox>
72         </groupbox>
73
74 </window>
75