root/trunk/uploadr/MacUploadr.app/Contents/Resources/chrome/content/uploadr/settings.xul

Revision 345, 4.4 kB (checked in by calh, 2 years ago)

added a proxy settings button to the prefs dialog

Line 
1 <?xml version="1.0"?>
2 <!--
3
4 Flickr Uploadr
5
6 Copyright (c) 2007-2008 Yahoo! Inc.  All rights reserved.  This library is
7 free software; you can redistribute it and/or modify it under the terms of
8 the GNU General Public License (GPL), version 2 only.  This library is
9 distributed WITHOUT ANY WARRANTY, whether express or implied. See the GNU
10 GPL for more details (http://www.gnu.org/licenses/gpl.html)
11
12 -->
13 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
14 <?xml-stylesheet href="chrome://uploadr/skin/settings.css" type="text/css"?>
15 <!DOCTYPE dialog [
16 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
17 %brandDTD;
18 <!ENTITY % mainDTD SYSTEM "chrome://uploadr/locale/main.dtd">
19 %mainDTD;
20 <!ENTITY % proxyDTD SYSTEM "chrome://uploadr/locale/proxy.dtd">
21 %proxyDTD;
22 ]>
23 <dialog id="dialog_settings" title="&settings;" buttons="accept,cancel"
24 ondialogaccept="settings.ok(); return true;"
25 ondialogcancel="settings.cancel(); return true;" onload="settings.load();"
26 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
27 xmlns:html="http://www.w3.org/1999/xhtml">
28         <stringbundleset>
29                 <stringbundle id="locale" src="chrome://uploadr/locale/main.properties" />
30         </stringbundleset>
31         <script src="chrome://uploadr/content/settings_dialog.js" />
32         <vbox flex="1" id="notloggedin">
33                 <html:h3>&settings.notloggedin;</html:h3>
34                 <box align="center"><button label="&login;"
35                 oncommand="settings.add_user();" /></box>
36         </vbox>
37         <vbox flex="1" id="loggedin">
38                 <groupbox flex="1">
39                         <caption label="&settings.users;" />
40                         <hbox>
41                                 <vbox>
42                                         <spacer flex="1" />
43                                         <label value="&settings.users.user;" />
44                                         <spacer flex="1" />
45                                 </vbox>
46                                 <vbox flex="1">
47                                         <spacer flex="1" />
48                                         <menulist id="user" flex="1" oncommand="settings.change_user();">
49                                                 <menupopup />
50                                         </menulist>
51                                         <spacer flex="1" />
52                                 </vbox>
53                                 <button label="&settings.users.remove;"
54                                 oncommand="settings.remove_user();" />
55                                 <button label="&settings.users.add;"
56                                 oncommand="settings.add_user();" />
57                         </hbox>
58                 </groupbox>
59                 <hbox flex="1">
60                         <groupbox flex="1">
61                                 <caption label="&settings.resize;" />
62                                 <html:p id="resize_prompt"> </html:p>
63                                 <box>
64                                         <menulist id="resize" oncommand="settings.resize(this.value);">
65                                                 <menupopup>
66                                                         <menuitem value="-1" label="&settings.resize.dont;" selected="true" />
67                                                         <menuitem value="800" label="&settings.resize.800;" />
68                                                         <menuitem value="1280" label="&settings.resize.1280;" />
69                                                         <menuitem value="1600" label="&settings.resize.1600;" />
70                                                         <menuitem value="2048" label="&settings.resize.2048;" />
71                                                 </menupopup>
72                                         </menulist>
73                                 </box>
74                         </groupbox>
75                         <groupbox flex="1">
76                                 <caption label="&connection.label;" />
77                                 <html:p>&connectionDesc.label;</html:p>
78                                 <hbox>
79                                         <spacer flex="1" />
80                                         <button label="&connectionSettings.label;" oncommand="settings.config_proxy();" />
81                                         <spacer flex="1" />
82                                 </hbox>
83                         </groupbox>
84                 </hbox>
85                 <hbox flex="1">
86                         <groupbox flex="1">
87                                 <caption label="&settings.privacy;" />
88                                 <label control="is_public" value="&settings.privacy.who;" />
89                                 <radiogroup id="is_public" value="1"
90                                 oncommand="settings.is_public(this.value);">
91                                         <radio value="0" label="&settings.privacy.private;" />
92                                                 <checkbox id="is_friend" label="&settings.privacy.friend;"
93                                                 disabled="true" oncommand="settings.is_friend(this.checked);" />
94                                                 <checkbox id="is_family" label="&settings.privacy.family;"
95                                                 disabled="true" oncommand="settings.is_family(this.checked);" />
96                                         <radio value="1" label="&settings.privacy.public;" />
97                                 </radiogroup>
98                                 <checkbox id="hidden" label="&settings.hidden;"
99                                 oncommand="settings.hidden(this.checked);" />
100                         </groupbox>
101                         <groupbox flex="1">
102                                 <caption label="&settings.safety_level;" />
103                                 <radiogroup id="safety_level" value="1"
104                                 oncommand="settings.safety_level(this.value);">
105                                         <radio value="1" label="&settings.safety_level.safe;" />
106                                         <radio value="2" label="&settings.safety_level.moderate;" />
107                                         <radio value="3" label="&settings.safety_level.restricted;" />
108                                 </radiogroup>
109                         </groupbox>
110                         <groupbox flex="1">
111                                 <caption label="&settings.content_type;" />
112                                 <radiogroup id="content_type" value="1"
113                                 oncommand="settings.content_type(this.value);">
114                                         <radio value="1" label="&settings.content_type.photo;" />
115                                         <radio value="2" label="&settings.content_type.screenshot;" />
116                                         <radio value="3" label="&settings.content_type.other;" />
117                                 </radiogroup>
118                         </groupbox>
119                 </hbox>
120         </vbox>
121 </dialog>
Note: See TracBrowser for help on using the browser.