annotate xul/buttons.xul @ 120:cbfc008b4245

digicat takes mode argument as fourth argument (needed for speedy thumbnails with mo=fit,lores)
author robcast
date Wed, 11 Jun 2003 22:40:06 +0200
parents c43700f2a966
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
115
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
1 <?xml version="1.0"?>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
2 <?xml-stylesheet href="chrome://navigator/skin/"
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
3 type="text/css"?>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
4 <window xmlns:html="http://www.w3.org/1999/xhtml"
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
5 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" >
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
6 <script language="JavaScript">
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
7 var helpText = new Array();
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
8 helpText[0] = "'back'-button|Click this button to load the previous image (usually the previous page of a document).";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
9 helpText[1] = "'next'-button|Click this button to load the next image (usually the next page of a document).";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
10 helpText[2] = "'page'-button|After clicking 'page' you will be prompted for a specific page you want to see.(br)Please note that the numbers entered into the input line refer to digital images, notwithstanding the fact that more than one text page may be on it.";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
11 helpText[3] = "'digicat'-button|Click here to open a thumbnailview of the current document (image series).";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
12 helpText[4] = "'mark'-button|You can insert marks onto the picture. After clicking 'mark' you can select the location in the image where a numbered mark will appear.(br)Check out 'reference' to communicate these marks (up to 8) to others.";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
13 helpText[5] = "'reference'-button|Choose LaTeX or HTML mode to receive a link for the actual (zoomed) picture including marks. 'New HTML' creates references that will open the respective digital object within the Mozilla version of DIGILIB, providing advanced functionality in the sidebar.";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
14 helpText[6] = "'zoom area'-button|With 'zoom area' you can zoom into any rectangular field of the current picture.(br)After clicking the button click on the image to determine any corner (for instance topleft), release the mousebutton and move the mouse until the rectangular has the desired size, then click again for fixing it.";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
15 helpText[7] = "'zoom point'-button|Click on 'zoom point', then click on the picture. This renders a zoomed picture centered around the selected point.";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
16 helpText[8] = "'zoom out'-button|To recover the original unzoomed picture (fitted to the window), click 'zoom out'.(br)Note that marks will be kept.";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
17 helpText[9] = "'move to'-button|This button changes the centre of a zoomed picture without changing the zoom-factor.(br)Click on the picture where you want to place the new centre of the image.";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
18 helpText[10] = "'scale'-button|By clicking on one of the menu entries you can select the factor the currently displayed picture will be scaled to.(br)Note: scale factor of '1.0' fits the picture right into the working area, while '2.0' makes it twice as high and large.";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
19 helpText[11] = "'mirror'-button|Mirrors the image either horizontally or vertically. Click the button and make your choice at the selection menu.";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
20 helpText[12] = "'rotate'-button|This function allows you to rotate the image by the angle you specify. Click on the button and enter a rotation angle in absolute degrees into the text box (clockwise)";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
21 helpText[13] = "'brightness'-button|The brightness command helps you to adjust the brightness of an image. Click on the button and choose a brightness level at the selection menu.";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
22 helpText[14] = "'contrast'-button|The contrast command helps you to adjust the contrast of an image. Click on the button and choose a contrast level at the selection menu.";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
23 helpText[15] = "'color'-button|You can change the color values of each of the RGB channels. This can be done eighter by adding/substratcing a defined amount or by multiplying the pixel value by the desired factor.";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
24 helpText[16] = "'?'-button|The menu includes various options: activating this context sensitive help, 'Keep area' keeps the current image area when changing to another page, 'Fit GIFs' forces the program to adjust the size of GIF-images to the working area.";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
25 helpText[17] = "'metadata'-button|Shows the metadata to the document in the main window.";
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
26 // boolean variable to eighter show or not show the additional help
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
27 // change in the menuitem its original mark
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
28 var showHelp = false;
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
29 // variable to tell if while changing to another page it should keep the area
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
30 // change in the menuitem its original mark
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
31 var keepArea = true;
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
32 </script>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
33 <script language="JavaScript" src="menu.js"></script>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
34 <popupset>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
35 <popup id="scale_popup">
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
36 <menuitem label="0.7" oncommand="window.content.scale(0.7);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
37 <menuitem label="1" oncommand="window.content.scale(1);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
38 <menuitem label="1.5" oncommand="window.content.scale(1.5);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
39 <menuitem label="2" oncommand="window.content.scale(2);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
40 <menuitem label="2.5" oncommand="window.content.scale(2.5);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
41 <menuitem label="3" oncommand="window.content.scale(3);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
42 <menuitem label="pixel by pixel" oncommand="window.content.pixelByPixel();" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
43 </popup>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
44 </popupset>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
45 <popupset>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
46 <popup id="reference_popup">
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
47 <menuitem label="LaTex" oncommand="window.content.ref(0);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
48 <menuitem label="HTML" oncommand="window.content.ref(1);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
49 <menuitem label="new HTML" oncommand="window.content.ref(2);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
50 </popup>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
51 </popupset>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
52 <popupset>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
53 <popup id="mirror_popup">
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
54 <menuitem label="Horizontal" oncommand="window.content.mirror('h');" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
55 <menuitem label="Vertical" oncommand="window.content.mirror('v');" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
56 </popup>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
57 </popupset>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
58 <popupset>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
59 <popup id="brightness_popup">
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
60 <menuitem label="very bright" oncommand="window.content.brightness(90);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
61 <menuitem label="bright" oncommand="window.content.brightness(30);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
62 <menuitem label="normal" oncommand="window.content.brightness(0);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
63 <menuitem label="dark" oncommand="window.content.brightness(-30);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
64 <menuitem label="very dark" oncommand="window.content.brightness(-90);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
65 </popup>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
66 </popupset>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
67 <popupset>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
68 <popup id="contrast_popup">
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
69 <menuitem label="much" oncommand="window.content.contrast(0.5);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
70 <menuitem label="more" oncommand="window.content.contrast(0.2);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
71 <menuitem label="normal" oncommand="window.content.contrast(0.0);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
72 <menuitem label="less" oncommand="window.content.contrast(-0.2);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
73 <menuitem label="little" oncommand="window.content.contrast(-0.5);" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
74 </popup>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
75 </popupset>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
76 <popupset>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
77 <popup id="colors_popup">
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
78 <menuitem label="add" oncommand="color_add();" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
79 <menuitem label="multiply" oncommand="color_multiply();" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
80 </popup>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
81 </popupset>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
82 <popupset>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
83 <popup id="help_popup">
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
84 <menuitem label="Contexthelp" type="checkbox" oncommand="changeHelp();"/>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
85 <menuitem label="Keep Area" type="checkbox" checked="true" oncommand="keepArea = !keepArea;" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
86 <menuitem label="Fit GIFs" type="checkbox" oncommand="window.content.fitGIFs();" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
87 </popup>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
88 </popupset>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
89 <hbox>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
90 <vbox flex="1" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
91 <vbox>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
92 <spacer style="height: 10px" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
93 <hbox>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
94 <button label="back" onclick="window.content.backPage(keepArea);" onmouseover="overButton(0)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
95 <button label="next" onclick="window.content.nextPage(keepArea);" onmouseover="overButton(1)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
96 </hbox>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
97 <button label="page" onclick="window.content.page(keepArea);" onmouseover="overButton(2)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
98 <button label="digicat" onclick="window.content.digicat();" onmouseover="overButton(3)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
99 <!-- <button label="metadata" onclick="showMetadata(window.content.location.href);" onmouseover="overButton(17)" /> -->
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
100 <spacer style="height: 15px" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
101 <button label="mark" onclick="window.content.mark();" onmouseover="overButton(4)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
102 <button label="reference" popup="reference_popup" onmouseover="overButton(5)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
103 <spacer style="height: 15px" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
104 <button label="zoom area" onclick="window.content.zoomArea();" onmouseover="overButton(6)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
105 <button label="zoom point" onclick="window.content.zoomPoint();" onmouseover="overButton(7)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
106 <button label="zoom out" onclick="window.content.zoomOut();" onmouseover="overButton(8)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
107 <button label="move to" onclick="window.content.moveTo();" onmouseover="overButton(9)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
108 <spacer style="height: 15px" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
109 <button label="scale" popup="scale_popup" onmouseover="overButton(10)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
110 <button label="mirror" popup="mirror_popup" onmouseover="overButton(11)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
111 <button label="rotate" onclick="rotate();" onmouseover="overButton(12)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
112 <spacer style="height: 15px" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
113 <button label="brightness" popup="brightness_popup" onmouseover="overButton(13)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
114 <button label="contrast" popup="contrast_popup" onmouseover="overButton(14)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
115 <button label="colors" popup="colors_popup" onmouseover="overButton(15)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
116 <spacer style="height: 15px" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
117 <button label="?" popup="help_popup" onmouseover="overButton(16)" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
118
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
119 </vbox>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
120 <vbox flex="1" />
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
121 </hbox>
c43700f2a966 bugfix link to menu.js
engler
parents: 97
diff changeset
122 </window>