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