~jazzva/firefox-extensions/mozilla-imagezoom.upstream

« back to all changes in this revision

Viewing changes to chrome/content/pref-main.xul

  • Committer: Sasa Bodiroza
  • Date: 2008-04-01 18:38:30 UTC
  • Revision ID: jazzva@gmail.com-20080401183830-hxcisn6e2i7k0gjq
 * unzipped chrome/imagezoom.jar and removed it

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!-- ***** BEGIN LICENSE BLOCK *****
 
3
 
 
4
    Copyright (c) 2006  Jason Adams <imagezoom@yellowgorilla.net>
 
5
 
 
6
    This file is part of Image Zoom.
 
7
 
 
8
    Image Zoom is free software; you can redistribute it and/or modify
 
9
    it under the terms of the GNU General Public License as published by
 
10
    the Free Software Foundation; either version 2 of the License, or
 
11
    (at your option) any later version.
 
12
 
 
13
    Image Zoom is distributed in the hope that it will be useful,
 
14
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
    GNU General Public License for more details.
 
17
 
 
18
    You should have received a copy of the GNU General Public License
 
19
    along with Image Zoom; if not, write to the Free Software
 
20
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
21
 
 
22
***** END LICENSE BLOCK ***** -->
 
23
<!DOCTYPE window SYSTEM "chrome://imagezoom/locale/imageZoom.dtd">
 
24
 
 
25
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
 
26
<?xml-stylesheet href="chrome://imagezoom/skin/imagezoom.css" type="text/css"?>
 
27
 
 
28
<page xmlns:html="http://www.w3.org/1999/xhtml"
 
29
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 
30
      xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 
31
      headertitle="&iz.product.name; &iz.options.label;"
 
32
      onload="parent.initPanel('chrome://imagezoom/content/pref-main.xul');">
 
33
 
 
34
 
 
35
    <script type="application/x-javascript" src="chrome://imagezoom/content/options.js"/>
 
36
    <script type="application/x-javascript" src="chrome://imagezoom/content/utils.js"/>
 
37
 
 
38
<script type="application/x-javascript">
 
39
<![CDATA[
 
40
    var _elementIDs = [ "imagezoomusemouseoptions", "imagezoommouseaccess", "imagezoomimagefitbutton",
 
41
                                        "imagezoomimageresetbutton", "imagezoomscrollvalue", "imagezoomscrollmode", "imagezoomreversescroll",
 
42
                                        "imagezoomzoomvalue", "imagezoomautocenter", "imagezoomzoomvalueglobal", "imagezoomshowviewmenu", "imagezoomshowautofit", "imagezoomtogglefitreset", "imagezoomglobalzoomwarning"];
 
43
]]>
 
44
</script>
 
45
 
 
46
       <vbox flex="1">
 
47
       <label id="visitHome" class="url help" value="Help Page" onclick="openURL('http://imagezoom.yellowgorilla.net/help/?source=options&amp;version=&iz.product.version;');" />
 
48
        <groupbox align="start">
 
49
        <caption>
 
50
                <checkbox id="imagezoomusemouseoptions" label="&iz.options.usemouse.label;" prefstring="imagezoom.usescroll" oncommand="setDisableAllChildren(document.getElementById('mouseoptions'), !this.checked);"/>
 
51
        </caption>
 
52
            <vbox flex="1" id="mouseoptions">
 
53
                <hbox flex="1" align="center">
 
54
                        <label id="imagezoommouseaccessbutton" value="&iz.options.mouseaccess.label1;" control="imagezoommouseaccess"/>
 
55
                        <menulist id="imagezoommouseaccess" prefstring="imagezoom.triggerbutton">
 
56
                                <menupopup>
 
57
                                        <menuitem label="&iz.options.lmb.label;" value="1"/>
 
58
                                        <menuitem label="&iz.options.mmb.label;" value="2"/>
 
59
                                        <menuitem label="&iz.options.rmb.label;" value="3"/>
 
60
                                </menupopup>
 
61
                        </menulist>
 
62
                        <label id="imagezoommouseaccessbutton" value="&iz.options.mouseaccess.label2;" control="imagezoommouseaccess"/>
 
63
                </hbox>
 
64
                <hbox flex="1">
 
65
                        <grid flex="1">
 
66
                                <columns>
 
67
                                        <column />
 
68
                                        <column />
 
69
                                        <column />
 
70
                                </columns>
 
71
                                <rows>
 
72
                                        <row align="center" flex="1">
 
73
                                                <label id="imagezoomimagefitbuttonlable" value="&iz.options.imagefit.label;" control="imagezoomimagefitbutton"/>
 
74
                                                <hbox align="center">                                                   
 
75
                                                        <menulist id="imagezoomimagefitbutton" prefstring="imagezoom.imagefitbutton">
 
76
                                                                <menupopup>
 
77
                                                                        <menuitem label="&iz.options.none.label;" value="0"/>
 
78
                                                                        <menuitem label="&iz.options.lmb.label;" value="1"/>
 
79
                                                                        <menuitem label="&iz.options.mmb.label;" value="2"/>
 
80
                                                                        <menuitem label="&iz.options.rmb.label;" value="3"/>
 
81
                                                                </menupopup>
 
82
                                                        </menulist>
 
83
                                                </hbox>
 
84
                                                <hbox align="center" flex="1">
 
85
                                                        <spacer style="min-width: 15px" flex="1" />
 
86
                                                        <checkbox id="imagezoomtogglefitreset" label="&iz.options.togglefitreset.label;" prefstring="imagezoom.toggleFitReset"/>
 
87
                                                </hbox>                                                 
 
88
                                                <spacer flex="1" />
 
89
                                        </row>
 
90
                                        <row align="center" flex="1">
 
91
                                                <label id="imagezoomimageresetbuttonlable" value="&iz.options.imagereset.label;" control="imagezoomimageresetbutton"/>
 
92
                                                <menulist id="imagezoomimageresetbutton" prefstring="imagezoom.imageresetbutton">
 
93
                                                        <menupopup>
 
94
                                                                <menuitem label="&iz.options.none.label;" value="0"/>
 
95
                                                                <menuitem label="&iz.options.lmb.label;" value="1"/>
 
96
                                                                <menuitem label="&iz.options.mmb.label;" value="2"/>
 
97
                                                                <menuitem label="&iz.options.rmb.label;" value="3"/>
 
98
                                                        </menupopup>
 
99
                                                </menulist>
 
100
                                                <spacer flex="1" />
 
101
                                        </row>
 
102
                                        <row align="center" flex="1">
 
103
                                                <label id="imagezoomscrollvaluelabelbefore" value="&iz.options.defaultscroll.label;" control="imagezoomscrollvalue"/>
 
104
                                                <hbox align="center">
 
105
                                                        <menulist id="imagezoomscrollvalue" prefstring="imagezoom.scrollvalue">
 
106
                                                                <menupopup>
 
107
                                                                        <menuitem label="100" value="100"/>
 
108
                                                                        <menuitem label="75" value="75"/>
 
109
                                                                        <menuitem label="50" value="50"/>
 
110
                                                                        <menuitem label="25" value="25"/>
 
111
                                                                        <menuitem label="10" value="10"/>
 
112
                                                                        <menuitem label="7" value="7"/>
 
113
                                                                        <menuitem label="5" value="5"/>
 
114
                                                                        <menuitem label="4" value="4"/>
 
115
                                                                        <menuitem label="3" value="3"/>
 
116
                                                                        <menuitem label="2" value="2"/>
 
117
                                                                        <menuitem label="1" value="1"/>
 
118
                                                                </menupopup>
 
119
                                                        </menulist>
 
120
                                                        <label id="imagezoomscrollvaluelabelafter" value="%" />
 
121
                                                </hbox>
 
122
                                                <hbox align="center" flex="1">
 
123
                                                        <spacer style="min-width: 15px" flex="1" />
 
124
                                                        <checkbox id="imagezoomreversescroll" label="&iz.options.reversescroll.label;" prefstring="imagezoom.reversescrollzoom"/>
 
125
                                                </hbox>
 
126
                                        </row>
 
127
                                        <row align="center" flex="1">
 
128
                                                <label id="imagezoomscrollmodelabelbefore" value="&iz.options.scrollmode.label;" control="imagezoomscrollmode"/>
 
129
                                                <menulist id="imagezoomscrollmode" prefstring="imagezoom.scrollmode">
 
130
                                                        <menupopup>
 
131
                                                                <menuitem label="&iz.options.scrollrelative.label;" value="0"/>
 
132
                                                                <menuitem label="&iz.options.scrollabsolute.label;" value="1"/>
 
133
                                                        </menupopup>
 
134
                                                </menulist>
 
135
                                        </row>                                          
 
136
                                </rows>
 
137
                        </grid>
 
138
                  </hbox>
 
139
             </vbox>
 
140
      </groupbox>
 
141
 
 
142
        <groupbox align="start">
 
143
        <caption label="&iz.options.singlezoom.label;"/>
 
144
        <grid flex="1">
 
145
          <columns>
 
146
                <column/>
 
147
                <column/>
 
148
                <column/>
 
149
          </columns>
 
150
          <rows>
 
151
                <row align="center">
 
152
                        <label style="width: 130px" value="&iz.options.defaultzoom.label;" control="imagezoomzoomvalue"/>
 
153
                        <menulist id="imagezoomzoomvalue" prefstring="imagezoom.zoomvalue">
 
154
                                <menupopup>
 
155
                                        <menuitem label="400" value="400"/>
 
156
                                        <menuitem label="300" value="300"/>
 
157
                                        <menuitem label="200" value="200"/>
 
158
                                        <menuitem label="175" value="175"/>
 
159
                                        <menuitem label="150" value="150"/>
 
160
                                        <menuitem label="125" value="125"/>
 
161
                                        <menuitem label="110" value="110"/>
 
162
                                </menupopup>
 
163
                        </menulist>
 
164
                        <label value="%"/>
 
165
                </row>
 
166
          </rows>
 
167
        </grid>
 
168
        <checkbox id="imagezoomautocenter" label="&iz.options.autocenter.label;" prefstring="imagezoom.autocenter"/>
 
169
      </groupbox>
 
170
        <groupbox align="start">
 
171
        <caption>
 
172
                <checkbox id="imagezoomshowviewmenu" label="&iz.options.globalzoom.label;" prefstring="imagezoom.showViewMenu" oncommand="setDisableAllChildren(document.getElementById('globalOptions'), !this.checked);"/>
 
173
        </caption>
 
174
        <vbox id="globalOptions">
 
175
                <checkbox id="imagezoomshowautofit" label="&iz.options.showautofit.label;" prefstring="imagezoom.showAutoFitInMenu"/>
 
176
                <checkbox id="imagezoomglobalzoomwarning" label="&iz.options.warnifnotdefaultglobalzoom.label;" prefstring="imagezoom.globalZoomWarning"/>
 
177
        </vbox>
 
178
      </groupbox>
 
179
    </vbox>
 
180
</page>