summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--content/fireflix-panel.xul2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/fireflix-panel.xul b/content/fireflix-panel.xul
index 70a58fe..569beb0 100644
--- a/content/fireflix-panel.xul
+++ b/content/fireflix-panel.xul
@@ -1,271 +1,271 @@
1<?xml version="1.0"?> 1<?xml version="1.0"?>
2<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 2<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
3<?xml-stylesheet href="fireflix.css" type="text/css"?> 3<?xml-stylesheet href="fireflix.css" type="text/css"?>
4<!DOCTYPE page SYSTEM "chrome://fireflix/locale/fireflix.dtd"> 4<!DOCTYPE page SYSTEM "chrome://fireflix/locale/fireflix.dtd">
5<page 5<page
6 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 6 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
7 id="fireflixwindow" title="Fireflix" 7 id="fireflixwindow" title="Fireflix"
8 onload="fireflix.init()" 8 onload="fireflix.init()"
9 orient="vertical" 9 orient="vertical"
10 ondragover="nsDragAndDrop.dragOver(event,fireflix.uploadObserver)" 10 ondragover="nsDragAndDrop.dragOver(event,fireflix.uploadObserver)"
11 ondragdrop="nsDragAndDrop.drop(event,fireflix.uploadObserver)" 11 ondragdrop="nsDragAndDrop.drop(event,fireflix.uploadObserver)"
12 > 12 >
13 13
14 <script src="chrome://global/content/nsDragAndDrop.js"/> 14 <script src="chrome://global/content/nsDragAndDrop.js"/>
15 <script src="chrome://global/content/nsTransferable.js"/> 15 <script src="chrome://global/content/nsTransferable.js"/>
16 <script type="application/x-javascript" src="md5.js" /> 16 <script type="application/x-javascript" src="md5.js" />
17 <script type="application/x-javascript" src="flickr.js" /> 17 <script type="application/x-javascript" src="flickr.js" />
18 <script type="application/x-javascript" src="fireflix.js" /> 18 <script type="application/x-javascript" src="fireflix.js" />
19 19
20 <stringbundleset> 20 <stringbundleset>
21 <stringbundle id="loc_strings" src="chrome://fireflix/locale/fireflix.properties" /> 21 <stringbundle id="loc_strings" src="chrome://fireflix/locale/fireflix.properties" />
22 </stringbundleset> 22 </stringbundleset>
23 23
24 <commandset> 24 <commandset>
25 <command id="cmd_auth_auth" label="&panel.auth.auth.label;" 25 <command id="cmd_auth_auth" label="&panel.auth.auth.label;"
26 oncommand="fireflix.on_cmd_auth()"/> 26 oncommand="fireflix.on_cmd_auth()"/>
27 <command id="cmd_auth_done" label="&panel.auth.done.label;" 27 <command id="cmd_auth_done" label="&panel.auth.done.label;"
28 oncommand="fireflix.on_cmd_auth_done()" disabled="true"/> 28 oncommand="fireflix.on_cmd_auth_done()" disabled="true"/>
29 <command id="cmd_auth_open_flickr" label="&panel.auth.flickr.label;" 29 <command id="cmd_auth_open_flickr" label="&panel.auth.flickr.label;"
30 oncommand="fireflix.openTab('htp://www.flickr.com/')" /> 30 oncommand="fireflix.openTab('htp://www.flickr.com/')" />
31 <command id="cmd_auth_unauth" label="&panel.auth.unauth.label;" 31 <command id="cmd_auth_unauth" label="&panel.auth.unauth.label;"
32 oncommand="fireflix.on_cmd_auth_unauth()" /> 32 oncommand="fireflix.on_cmd_auth_unauth()" />
33 </commandset> 33 </commandset>
34 34
35 <popupset> 35 <popupset>
36 <popup id="auth_menu"> 36 <popup id="auth_menu">
37 <menuitem command="cmd_auth_auth"/> 37 <menuitem command="cmd_auth_auth"/>
38 <menuitem command="cmd_auth_done" hidden="true" id="menu_auth_done"/> 38 <menuitem command="cmd_auth_done" hidden="true" id="menu_auth_done"/>
39 <menuitem command="cmd_auth_unauth" /> 39 <menuitem command="cmd_auth_unauth" />
40 <menuseparator/> 40 <menuseparator/>
41 <menuitem command="cmd_auth_open_flickr"/> 41 <menuitem command="cmd_auth_open_flickr"/>
42 </popup> 42 </popup>
43 </popupset> 43 </popupset>
44 44
45 <commandset id="cmdset_search"> 45 <commandset id="cmdset_search">
46 <command id="cmd_search" label="&panel.search.cmd_search.label;" 46 <command id="cmd_search" label="&panel.search.cmd_search.label;"
47 oncommand="fireflix.foundphotos.search_photos()"/> 47 oncommand="fireflix.foundphotos.search_photos()"/>
48 <command id="cmd_search_open" label="&panel.search.cmd_search_open.label;" 48 <command id="cmd_search_open" label="&panel.search.cmd_search_open.label;"
49 oncommand="fireflix.foundphotos.on_cmd_open(event)" /> 49 oncommand="fireflix.foundphotos.on_cmd_open(event)" />
50 </commandset> 50 </commandset>
51 51
52 <commandset id="cmdset_sets"> 52 <commandset id="cmdset_sets">
53 <command id="cmd_refresh_sets" label="&panel.sets.cmd_refresh_sets;" 53 <command id="cmd_refresh_sets" label="&panel.sets.cmd_refresh_sets;"
54 oncommand="fireflix.on_refresh_sets()" /> 54 oncommand="fireflix.on_refresh_sets()" />
55 <command id="cmd_set_props" label="&panel.sets.cmd_properties;" 55 <command id="cmd_set_props" label="&panel.sets.cmd_properties;"
56 oncommand="fireflix.on_set_props()" disabled="true" /> 56 oncommand="fireflix.on_set_props()" disabled="true" />
57 </commandset> 57 </commandset>
58 58
59 <popupset> 59 <popupset>
60 <popup id="sets_menu"> 60 <popup id="sets_menu">
61 <menuitem command="cmd_set_props"/> 61 <menuitem command="cmd_set_props"/>
62 <menuitem command="cmd_refresh_sets"/> 62 <menuitem command="cmd_refresh_sets"/>
63 <menuseparator/> 63 <menuseparator/>
64 <menu label="&panel.sets.generate_html;" id="sets_html_menu"/> 64 <menu label="&panel.sets.generate_html;" id="sets_html_menu"/>
65 </popup> 65 </popup>
66 </popupset> 66 </popupset>
67 67
68 <commandset id="cmdset_uploads"> 68 <commandset id="cmdset_uploads">
69 <command id="cmd_uploads_clear" label="&panel.uploads.clear.label;" 69 <command id="cmd_uploads_clear" label="&panel.uploads.clear.label;"
70 oncommand="fireflix.uploads.on_clear()" /> 70 oncommand="fireflix.uploads.on_clear()" />
71 <command id="cmd_uploads_upload" label="&panel.uploads.upload.label;" 71 <command id="cmd_uploads_upload" label="&panel.uploads.upload.label;"
72 oncommand="fireflix.uploads.on_upload()" /> 72 oncommand="fireflix.uploads.on_upload()" />
73 <command id="cmd_uploads_remove" label="&panel.uploads.remove.label;" 73 <command id="cmd_uploads_remove" label="&panel.uploads.remove.label;"
74 oncommand="fireflix.uploads.on_remove()" /> 74 oncommand="fireflix.uploads.on_remove()" />
75 <command id="cmd_uploads_add" label="&panel.uploads.add.label;" 75 <command id="cmd_uploads_add" label="&panel.uploads.add.label;"
76 oncommand="fireflix.uploads.on_add()" /> 76 oncommand="fireflix.uploads.on_add()" />
77 </commandset> 77 </commandset>
78 78
79 <popupset> 79 <popupset>
80 <popup id="uploads_menu"> 80 <popup id="uploads_menu">
81 <menuitem command="cmd_uploads_add"/> 81 <menuitem command="cmd_uploads_add"/>
82 <menuitem command="cmd_uploads_clear"/> 82 <menuitem command="cmd_uploads_clear"/>
83 <menuitem command="cmd_uploads_remove"/> 83 <menuitem command="cmd_uploads_remove"/>
84 <menuseparator/> 84 <menuseparator/>
85 <menuitem command="cmd_uploads_upload"/> 85 <menuitem command="cmd_uploads_upload"/>
86 <menuseparator/> 86 <menuseparator/>
87 <menu label="&panel.uploads.generate_html;" id="uploads_html_menu"/> 87 <menu label="&panel.uploads.generate_html;" id="uploads_html_menu"/>
88 </popup> 88 </popup>
89 </popupset> 89 </popupset>
90 90
91 <vbox class="wholething" flex="1"> 91 <vbox class="wholething" flex="1">
92 92
93 <groupbox context="auth_menu"> 93 <groupbox context="auth_menu">
94 <caption label="&panel.auth_info;"/> 94 <caption label="&panel.auth_info;"/>
95 <hbox> 95 <hbox>
96 <label id="auth_info" value="&panel.no_auth_info;" flex="1" disabled="true"/> 96 <label id="auth_info" value="&panel.no_auth_info;" flex="1" disabled="true" crop="end"/>
97 <button id="b_auth" command="cmd_auth_auth"/> 97 <button id="b_auth" command="cmd_auth_auth"/>
98 <button id="b_auth_done" command="cmd_auth_done" hidden="true"/> 98 <button id="b_auth_done" command="cmd_auth_done" hidden="true"/>
99 <button command="cmd_auth_open_flickr" 99 <button command="cmd_auth_open_flickr"
100 tooltiptext="&panel.auth.flickr.tip;"/> 100 tooltiptext="&panel.auth.flickr.tip;"/>
101 </hbox> 101 </hbox>
102 </groupbox> 102 </groupbox>
103 103
104 <tabbox flex="1" id="fireflix_tabs"> 104 <tabbox flex="1" id="fireflix_tabs">
105 105
106 <tabs> 106 <tabs>
107 <tab label="&panel.tabs.search;"/> 107 <tab label="&panel.tabs.search;"/>
108 <tab label="&panel.tabs.sets;"/> 108 <tab label="&panel.tabs.sets;"/>
109 <tab label="&panel.tabs.tags;" hidden="true"/> <!-- TODO: --> 109 <tab label="&panel.tabs.tags;" hidden="true"/> <!-- TODO: -->
110 <tab id="tab_upload" label="&panel.tabs.upload;"/> 110 <tab id="tab_upload" label="&panel.tabs.upload;"/>
111 </tabs> 111 </tabs>
112 112
113 <tabpanels flex="1"> 113 <tabpanels flex="1">
114 114
115 <tabpanel id="tabpanel_search" flex="1"> 115 <tabpanel id="tabpanel_search" flex="1">
116 <vbox flex="1"> 116 <vbox flex="1">
117 <groupbox class="search_params" orient="vertical" onkeypress="if(event.keyCode==event.DOM_VK_RETURN) fireflix.foundphotos.search_photos()"> 117 <groupbox class="search_params" orient="vertical" onkeypress="if(event.keyCode==event.DOM_VK_RETURN) fireflix.foundphotos.search_photos()">
118 <hbox> 118 <hbox>
119 <label control="search_for" value="&panel.search.search_for.label;" 119 <label control="search_for" value="&panel.search.search_for.label;"
120 accesskey="s"/> 120 accesskey="s"/>
121 <textbox id="search_for" flex="1"/> 121 <textbox id="search_for" flex="1"/>
122 </hbox> 122 </hbox>
123 <hbox> 123 <hbox>
124 <checkbox id="search_tags" label="&panel.search.mode.tagsonly.label;" 124 <checkbox id="search_tags" label="&panel.search.mode.tagsonly.label;"
125 tooltiptext="&panel.search.mode.tagsonly.tip;" checked="false" 125 tooltiptext="&panel.search.mode.tagsonly.tip;" checked="false"
126 accesskey="t" /> 126 accesskey="t" />
127 <checkbox id="search_mine" label="&panel.search.mode.mine.label;" checked="true" accesskey="m"/> 127 <checkbox id="search_mine" label="&panel.search.mode.mine.label;" checked="true" accesskey="m"/>
128 <spacer flex="1"/> 128 <spacer flex="1"/>
129 <button command="cmd_search"/> 129 <button command="cmd_search"/>
130 </hbox> 130 </hbox>
131 </groupbox> 131 </groupbox>
132 <tree id="searchresults" rows="2" flex="1" 132 <tree id="searchresults" rows="2" flex="1"
133 onselect="fireflix.foundphotos.on_select()" 133 onselect="fireflix.foundphotos.on_select()"
134 ondblclick="fireflix.foundphotos.on_cmd_open(event)" 134 ondblclick="fireflix.foundphotos.on_cmd_open(event)"
135 onkeypress="if(event.keyCode==event.DOM_VK_RETURN) 135 onkeypress="if(event.keyCode==event.DOM_VK_RETURN)
136 fireflix.foundphotos.on_cmd_open(event)"> 136 fireflix.foundphotos.on_cmd_open(event)">
137 <treecols> 137 <treecols>
138 <treecol id="sr_title" label="&panel.search.col.title.label;" flex="2" crop="end" align="start" /> 138 <treecol id="sr_title" label="&panel.search.col.title.label;" flex="2" crop="end" align="start" />
139 </treecols> 139 </treecols>
140 <treechildren/> 140 <treechildren/>
141 </tree> 141 </tree>
142 <groupbox id="searchresult_props" orient="horizontal" hidden="true"> 142 <groupbox id="searchresult_props" orient="horizontal" hidden="true">
143 <vbox width="100" pack="center"> 143 <vbox width="100" pack="center">
144 <hbox pack="center"> 144 <hbox pack="center">
145 <image id="search_photo"/> 145 <image id="search_photo"/>
146 </hbox> 146 </hbox>
147 </vbox> 147 </vbox>
148 <vbox flex="1"> 148 <vbox flex="1">
149 <label id="searchresult_title"/> 149 <label id="searchresult_title"/>
150 <textbox flex="1" multiline="true" class="plain" readonly="true" id="searchresult_description"/> 150 <textbox flex="1" multiline="true" class="plain" readonly="true" id="searchresult_description"/>
151 <hbox pack="end"> 151 <hbox pack="end">
152 <button command="cmd_search_open"/> 152 <button command="cmd_search_open"/>
153 </hbox> 153 </hbox>
154 </vbox> 154 </vbox>
155 </groupbox> 155 </groupbox>
156 </vbox> 156 </vbox>
157 </tabpanel> 157 </tabpanel>
158 158
159 <tabpanel id="tabpanel_sets" flex="1" 159 <tabpanel id="tabpanel_sets" flex="1"
160 onkeypress="if(event.keyCode==event.DOM_VK_RETURN) 160 onkeypress="if(event.keyCode==event.DOM_VK_RETURN)
161 document.getElementById('setphotos').focus()"> 161 document.getElementById('setphotos').focus()">
162 <vbox flex="1"> 162 <vbox flex="1">
163 <tree id="setslist" rows="2" onselect="fireflix.photosets.on_select()" 163 <tree id="setslist" rows="2" onselect="fireflix.photosets.on_select()"
164 flex="1" context="sets_menu" 164 flex="1" context="sets_menu"
165 > 165 >
166 <treecols> 166 <treecols>
167 <treecol id="sl_name" label="&panel.sets.name.label;" flex="4" crop="end" align="start" tooltiptext="&panel.sets.name.tip;"/> 167 <treecol id="sl_name" label="&panel.sets.name.label;" flex="4" crop="end" align="start" tooltiptext="&panel.sets.name.tip;"/>
168 <splitter class="tree-splitter" /> 168 <splitter class="tree-splitter" />
169 <treecol id="sl_photos" label="&panel.sets.photos.label;" flex="1" align="end" tooltiptext="&panel.sets.photos.tip;" /> 169 <treecol id="sl_photos" label="&panel.sets.photos.label;" flex="1" align="end" tooltiptext="&panel.sets.photos.tip;" />
170 </treecols> 170 </treecols>
171 <treechildren/> 171 <treechildren/>
172 </tree> 172 </tree>
173 <hbox> 173 <hbox>
174 <button command="cmd_refresh_sets" /> 174 <button command="cmd_refresh_sets" />
175 <button command="cmd_set_props" /> 175 <button command="cmd_set_props" />
176 </hbox> 176 </hbox>
177 <tree id="setphotos" rows="2" onselect="fireflix.photoset.on_select()" 177 <tree id="setphotos" rows="2" onselect="fireflix.photoset.on_select()"
178 flex="1"> 178 flex="1">
179 <treecols> 179 <treecols>
180 <treecol id="sp_title" label="&panel.setphotos.title.label;" flex="1" crop="end" align="start" tooltiptext="&panel.setphotos.title.tip;" /> 180 <treecol id="sp_title" label="&panel.setphotos.title.label;" flex="1" crop="end" align="start" tooltiptext="&panel.setphotos.title.tip;" />
181 <splitter class="tree-splitter" /> 181 <splitter class="tree-splitter" />
182 <treecol id="sp_taken" label="&panel.setphotos.taken.label;" crop="end" align="start" tooltiptext="&panel.setphotos.taken.tip;" hidden="true" /> 182 <treecol id="sp_taken" label="&panel.setphotos.taken.label;" crop="end" align="start" tooltiptext="&panel.setphotos.taken.tip;" hidden="true" />
183 <treecol id="sp_upload" label="&panel.setphotos.upload.label;" crop="end" align="start" tooltiptext="&panel.setphotos.upload.tip;" hidden="true" /> 183 <treecol id="sp_upload" label="&panel.setphotos.upload.label;" crop="end" align="start" tooltiptext="&panel.setphotos.upload.tip;" hidden="true" />
184 </treecols> 184 </treecols>
185 <treechildren/> 185 <treechildren/>
186 </tree> 186 </tree>
187 <groupbox id="set_photo_props" orient="horizontal"> 187 <groupbox id="set_photo_props" orient="horizontal">
188 <vbox width="100" pack="center"> 188 <vbox width="100" pack="center">
189 <hbox pack="center"> 189 <hbox pack="center">
190 <image id="set_photo" hidden="true"/> 190 <image id="set_photo" hidden="true"/>
191 </hbox> 191 </hbox>
192 </vbox> 192 </vbox>
193 <spacer flex="1"/> 193 <spacer flex="1"/>
194 </groupbox> 194 </groupbox>
195 </vbox> 195 </vbox>
196 </tabpanel> 196 </tabpanel>
197 197
198 <tabpanel id="tabpanel_tags"> 198 <tabpanel id="tabpanel_tags">
199 <listbox id="tagslist" rows="8" flex="1"> 199 <listbox id="tagslist" rows="8" flex="1">
200 <listhead> 200 <listhead>
201 <listheader label="&panel.tagslist.tag.label;"/> 201 <listheader label="&panel.tagslist.tag.label;"/>
202 </listhead> 202 </listhead>
203 <listcols> 203 <listcols>
204 <listcol flex="1"/> 204 <listcol flex="1"/>
205 </listcols> 205 </listcols>
206 </listbox> 206 </listbox>
207 </tabpanel> 207 </tabpanel>
208 208
209 <tabpanel id="tabpanel_upload"> 209 <tabpanel id="tabpanel_upload">
210 <vbox flex="1"> 210 <vbox flex="1">
211 <tree id="uploadlist" rows="2" flex="1" 211 <tree id="uploadlist" rows="2" flex="1"
212 onselect="fireflix.uploads.selectionChanged()" 212 onselect="fireflix.uploads.selectionChanged()"
213 context="uploads_menu"> 213 context="uploads_menu">
214 <treecols> 214 <treecols>
215 <treecol id="up_file" label="&panel.uploadlist.file.label;" flex="4" crop="start" align="start"/> 215 <treecol id="up_file" label="&panel.uploadlist.file.label;" flex="4" crop="start" align="start"/>
216 <splitter class="tree-splitter" /> 216 <splitter class="tree-splitter" />
217 <treecol id="up_title" label="&panel.uploadlist.title.label;" flex="5" crop="end" align="start" /> 217 <treecol id="up_title" label="&panel.uploadlist.title.label;" flex="5" crop="end" align="start" />
218 <splitter class="tree-splitter" /> 218 <splitter class="tree-splitter" />
219 <treecol id="up_status" label="&panel.uploadlist.status.label;" flex="1" crop="end" align="start" /> 219 <treecol id="up_status" label="&panel.uploadlist.status.label;" flex="1" crop="end" align="start" />
220 </treecols> 220 </treecols>
221 <treechildren/> 221 <treechildren/>
222 </tree> 222 </tree>
223 <progressmeter id="upload_progress" mode="undetermined" hidden="true" /> 223 <progressmeter id="upload_progress" mode="undetermined" hidden="true" />
224 <groupbox id="upload_file_props" orient="horizontal" hidden="true"> 224 <groupbox id="upload_file_props" orient="horizontal" hidden="true">
225 <image id="upload_file_preview" width="100" height="100" /> 225 <image id="upload_file_preview" width="100" height="100" />
226 <grid flex="1"> 226 <grid flex="1">
227 <columns> 227 <columns>
228 <column/> 228 <column/>
229 <column flex="1"/> 229 <column flex="1"/>
230 </columns> 230 </columns>
231 <rows> 231 <rows>
232 <row> 232 <row>
233 <label control="upload_filename" 233 <label control="upload_filename"
234 value="&panel.upload_props.filename.label;" /> 234 value="&panel.upload_props.filename.label;" />
235 <textbox id="upload_filename" 235 <textbox id="upload_filename"
236 oninput="fireflix.uploads.propsToSel('filename')"/> 236 oninput="fireflix.uploads.propsToSel('filename')"/>
237 </row> 237 </row>
238 <row> 238 <row>
239 <label control="upload_title" value="&panel.upload_props.title.label;" /> 239 <label control="upload_title" value="&panel.upload_props.title.label;" />
240 <textbox id="upload_title" 240 <textbox id="upload_title"
241 oninput="fireflix.uploads.propsToSel('title')"/> 241 oninput="fireflix.uploads.propsToSel('title')"/>
242 </row> 242 </row>
243 <row> 243 <row>
244 <label control="uplod_tags" value="&panel.upload_props.tags.label;" /> 244 <label control="uplod_tags" value="&panel.upload_props.tags.label;" />
245 <textbox id="upload_tags" 245 <textbox id="upload_tags"
246 oninput="fireflix.uploads.propsToSel('tags')"/> 246 oninput="fireflix.uploads.propsToSel('tags')"/>
247 </row> 247 </row>
248 <!-- TODO: description, public, friend, family --> 248 <!-- TODO: description, public, friend, family -->
249 </rows> 249 </rows>
250 </grid> 250 </grid>
251 </groupbox> 251 </groupbox>
252 <hbox> 252 <hbox>
253 <button command="cmd_uploads_add" /> 253 <button command="cmd_uploads_add" />
254 <spacer flex="1"/> 254 <spacer flex="1"/>
255 <button command="cmd_uploads_remove" /> 255 <button command="cmd_uploads_remove" />
256 <spacer flex="1"/> 256 <spacer flex="1"/>
257 <button command="cmd_uploads_clear" /> 257 <button command="cmd_uploads_clear" />
258 </hbox> 258 </hbox>
259 <hbox pack="center"> 259 <hbox pack="center">
260 <button command="cmd_uploads_upload" flex="1"/> 260 <button command="cmd_uploads_upload" flex="1"/>
261 </hbox> 261 </hbox>
262 </vbox> 262 </vbox>
263 </tabpanel> 263 </tabpanel>
264 264
265 </tabpanels> 265 </tabpanels>
266 266
267 </tabbox> 267 </tabbox>
268 268
269 </vbox> 269 </vbox>
270 270
271</page> 271</page>