Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bandwagon/content/ui/settings.xul
blob: 3985d6ba323afab1044d6eff71f1469eb80fbd73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<?xml version="1.0" encoding="UTF-8"?>

<!-- ***** BEGIN LICENSE BLOCK *****
  -   Version: MPL 1.1/GPL 2.0/LGPL 2.1
  -
  - The contents of this file are subject to the Mozilla Public License Version
  - 1.1 (the "License"); you may not use this file except in compliance with
  - the License. You may obtain a copy of the License at
  - http://www.mozilla.org/MPL/
  - 
  - Software distributed under the License is distributed on an "AS IS" basis,
  - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  - for the specific language governing rights and limitations under the
  - License.
  -
  - The Original Code is bandwagon.
  -
  - The Initial Developer of the Original Code is
  - Mozilla Corporation.
  - Portions created by the Initial Developer are Copyright (C) 2008
  - the Initial Developer. All Rights Reserved.
  -
  - Contributor(s): David McNamara
  -                 Brian King <brian (at) briks (dot) si>
  -
  - Alternatively, the contents of this file may be used under the terms of
  - either the GNU General Public License Version 2 or later (the "GPL"), or
  - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  - in which case the provisions of the GPL or the LGPL are applicable instead
  - of those above. If you wish to allow use of your version of this file only
  - under the terms of either the GPL or the LGPL, and not to allow others to
  - use your version of this file under the terms of the MPL, indicate your
  - decision by deleting the provisions above and replace them with the notice
  - and other provisions required by the GPL or the LGPL. If you do not delete
  - the provisions above, a recipient may use your version of this file under
  - the terms of any one of the MPL, the GPL or the LGPL.
  - 
  - ***** END LICENSE BLOCK ***** -->

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
<?xml-stylesheet href="chrome://bandwagon/skin/settings.css" type="text/css"?>

<!DOCTYPE prefwindow SYSTEM "chrome://bandwagon/locale/settings.dtd">

<prefwindow id="bandwagon-settings"
            xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
            title="&window.title;"
            ondialogaccept="return Bandwagon.Controller.Settings.doAccept();"
            ondialogcancel="return Bandwagon.Controller.Settings.doCancel();"
            persist="lastSelected screenX screenY">

    <prefpane id="paneManage"
              label="&manage.label;"
              flex="1">
        <preferences>
            <preference id="extensions.bandwagon.updateall.enabled"
                        name="extensions.bandwagon.updateall.enabled"
                        type="bool"/>
            <preference id="extensions.bandwagon.addonsperpage.enabled"
                        name="extensions.bandwagon.addonsperpage.enabled"
                        type="bool"/>
            <preference id="extensions.bandwagon.notifyall.enabled"
                        name="extensions.bandwagon.notifyall.enabled"
                        type="bool"/>
        </preferences>

        <hbox>
            <vbox>
                <label id="collections-list-header" crop="end" value="&subscriptions.header;"/>
                <richlistbox id="collections-list" flex="1"/>
            </vbox>
            <vbox flex="1">
                <!-- <label id="collection-name" crop="end" value=""/> -->
  
                <!-- Update Interval Settings -->
                <groupbox>
                    <caption label="&frequency.label;"/>
                    <radiogroup id="updates-group">
                        <radio id="updates-default" label="&default.label;"/>
                        <hbox align="center">
                            <radio id="updates-custom" label="&custom.label;"/>
                            <label id="checkbox-updateinterval-percollection" value="&updatesingle.label;"/>
                            <textbox id="textbox-updateinterval-quantity-percollection"
                                     type="number"
                                     min="1"
                                     size="3"
                                     maxlength="3"
                                     value=""/>
                            <menulist id="menulist-updateinterval-units-percollection"
                                      class=""
                                      crop="none">
                                <menupopup>
                                    <menuitem label="&minutes.label;" value="1"/>
                                    <menuitem label="&hours.label;" value="2"/>
                                    <menuitem label="&days.label;" value="3"/>
                                </menupopup>
                            </menulist>
                        </hbox>
                    </radiogroup>
                </groupbox>

                <!-- Show Notification Settings -->
                <groupbox>
                    <caption label="&notifications.label;"/>
                    <radiogroup id="notifications-group">
                        <radio id="notifications-default" label="&default.label;"/>
                        <hbox>
                            <radio id="notifications-custom" label="&custom.label;"/>
                            <radiogroup id="checkbox-shownotifications-percollection"
                                        orient="horizontal">
                                <radio id="shownotifications-percollection-on" label="&on.label;"/>
                                <radio id="shownotifications-percollection-off" label="&off.label;"/>
                            </radiogroup>
                        </hbox>
                    </radiogroup>
                </groupbox>

                <!-- Add-ons Per Page Settings -->
                <groupbox>
                    <caption label="&perpage.label;"/>
                    <radiogroup id="perpage-group">
                        <radio id="perpage-default" label="&default.label;"/>
                        <hbox align="center">
                            <radio id="perpage-custom" label="&custom.label;"/>
                            <label id="label-addonsshow-percollection"> &addonsleadin.label;</label>
                            <textbox id="textbox-addonsperpage-percollection"
                                     type="number"
                                     size="3"/>
                            <label id="label-addonsperpage-percollection"> &addonsperpage.label;</label>
                        </hbox>
                    </radiogroup>
                </groupbox>
                <hbox align="center" pack="end">
                    <button id="remove-button"
                            label="&remove.label;"
                            oncommand="Bandwagon.Controller.Settings.doRemove();"/>
                </hbox>
            </vbox>
        </hbox>

    </prefpane>

    <prefpane id="paneGeneral"
              label="&general.label;">
        <preferences>
            <preference id="extensions.bandwagon.addonsperpage"
                        name="extensions.bandwagon.addonsperpage"
                        type="int"/>
            <preference id="extensions.bandwagon.updateall.interval"
                        name="extensions.bandwagon.updateall.interval"
                        type="int"/>
            <preference id="extensions.bandwagon.updateall.units"
                        name="extensions.bandwagon.updateall.units"
                        type="int"/>
        </preferences>
        <groupbox>
            <caption label="&subscriptions.label;"/>
            <hbox align="center">
                <label id="updateinterval-all" value="&updateall.label;"/>
                <textbox id="textbox-updateinterval-quantity"
                         type="number"
                         min="1"
                         size="3"
                         maxlength="3"
                         value=""
                         onkeypress=""
                         onchange=""
                         preference="extensions.bandwagon.updateall.interval"/>
                <menulist id="menulist-updateinterval-units" class="" crop="none" preference="extensions.bandwagon.updateallglobal.units">
                    <menupopup>
                        <menuitem label="&minutes.label;" value="1"/>
                        <menuitem label="&hours.label;" value="2"/>
                        <menuitem label="&days.label;" value="3"/>
                    </menupopup>
                </menulist>
            </hbox>
            <hbox align="center">
                <label id="notify-all" value="&notifyglobal.label;"/>
                <radiogroup id="notify-all-group" orient="horizontal">
                    <radio id="notify-all-on" label="&on.label;"/>
                    <radio id="notify-all-off" label="&off.label;"/>
                </radiogroup>
            </hbox>
            <hbox align="center">
                <label id="label-addonsshow"> &addonsleadin.label;</label>
                <textbox id="textbox-addonsperpage-global"
                         type="number"
                         size="3"
                         preference="extensions.bandwagon.addonsperpage"/>
                <label id="label-addonsperpage"> &addonsperpage.label;</label>
            </hbox>
        </groupbox>

        <groupbox>
            <caption label="&data.label;"/>
            <hbox align="center" pack="start">
                <label id="clear-emails-text" value="" />
                <button id="clear-emails-button"
                        label="&clearemails.label;"
                        oncommand="Bandwagon.Controller.Settings.doClearEmails();"/>
            </hbox>
            <hbox align="center" pack="start">
                <label id="login-status-text" value="" />
                <button id="login-button"
                        label="&login.label;"
                        oncommand="Bandwagon.Controller.Settings.doLogin();"/>
                <button id="logout-button"
                        label="&logout.label;"
                        oncommand="Bandwagon.Controller.Settings.doLogout();"
                        collapsed="true"/>
            </hbox>
        </groupbox>
    </prefpane>

    <prefpane id="paneAuto"
              label="&pub.label;">
                <!-- Auto-publish Settings -->
                <!--
                <checkbox id="checkbox-autopublish-percollection" label="&autopublish.label;"/>
                -->
        <groupbox>
            <caption label="&auto.label;"/>
            <description>&autoleadin.label;</description>
            <separator class="thin"/>
            <grid>
              <columns>
                <column/>
                <column/>
              </columns>
              <rows>
                <row align="center">
                  <label value="&name.label;"/>
                  <textbox id="auto-name"/>
                </row>
                <row align="center">
                  <spacer/>
                  <checkbox id="auto-list" label="&list.label;"/>
                </row>
              </rows>
            </grid>
            <separator class="thin"/>
            <grid>
              <columns>
                <column/>
                <column/>
                <column/>
              </columns>
              <rows>
                <row align="center">
                  <label value="&types.label;"/>
                  <checkbox id="auto-type-extensions" label="&type.extensions.label;"/>
                  <checkbox id="auto-type-themes" label="&type.themes.label;"/>
                </row>
                <row align="center">
                  <spacer/>
                  <checkbox id="auto-type-dicts" label="&type.dicts.label;"/>
                  <checkbox id="auto-type-langpacks" label="&type.langpacks.label;"/>
                </row>
              </rows>
            </grid>
        </groupbox>
        <hbox class="bottomBox" pack="center">
            <groupbox id="auto-groupbox" orient="horizontal">
                <button id="auto-create-button"
                        label="&createauto.label;"
                        oncommand="Bandwagon.Controller.Settings.doAutoCreate();"/>
                <button id="auto-delete-button"
                        label="&deleteauto.label;"
                        oncommand="Bandwagon.Controller.Settings.doAutoDelete();"
                        collapsed="true"/>
                <image id="auto-spinner" src="chrome://bandwagon/skin/images/spinner-small.gif" collapsed="true"/>
            </groupbox>
        </hbox>
        <label id="auto-error" style="color: red;" value=" " collapsed="true"/>
    </prefpane>

    <stringbundle id="bandwagon-strings" src="chrome://bandwagon/locale/settings.properties"/>

    <script type="application/x-javascript" src="chrome://bandwagon/content/ui/dialog.js"/>
    <script type="application/x-javascript" src="chrome://bandwagon/content/ui/settingsController.js"/>

</prefwindow>