-rw-r--r-- | content/fireflix-panel.xul | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/content/fireflix-panel.xul b/content/fireflix-panel.xul index b961edb..2356c82 100644 --- a/content/fireflix-panel.xul +++ b/content/fireflix-panel.xul | |||
@@ -1,291 +1,294 @@ | |||
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_uploads"> | 77 | <commandset id="cmdset_uploads"> |
78 | <command id="cmd_uploads_clear" label="&panel.uploads.clear.label;" | 78 | <command id="cmd_uploads_clear" label="&panel.uploads.clear.label;" |
79 | oncommand="fireflix.uploads.on_clear()" /> | 79 | oncommand="fireflix.uploads.on_clear()" /> |
80 | <command id="cmd_uploads_upload" label="&panel.uploads.upload.label;" | 80 | <command id="cmd_uploads_upload" label="&panel.uploads.upload.label;" |
81 | oncommand="fireflix.uploads.on_upload()" /> | 81 | oncommand="fireflix.uploads.on_upload()" /> |
82 | <command id="cmd_uploads_remove" label="&panel.uploads.remove.label;" | 82 | <command id="cmd_uploads_remove" label="&panel.uploads.remove.label;" |
83 | oncommand="fireflix.uploads.on_remove()" /> | 83 | oncommand="fireflix.uploads.on_remove()" /> |
84 | <command id="cmd_uploads_add" label="&panel.uploads.add.label;" | 84 | <command id="cmd_uploads_add" label="&panel.uploads.add.label;" |
85 | oncommand="fireflix.uploads.on_add()" /> | 85 | oncommand="fireflix.uploads.on_add()" /> |
86 | </commandset> | 86 | </commandset> |
87 | 87 | ||
88 | <popupset> | 88 | <popupset> |
89 | <popup id="uploads_menu"> | 89 | <popup id="uploads_menu"> |
90 | <menuitem command="cmd_uploads_add"/> | 90 | <menuitem command="cmd_uploads_add"/> |
91 | <menuitem command="cmd_uploads_clear"/> | 91 | <menuitem command="cmd_uploads_clear"/> |
92 | <menuitem command="cmd_uploads_remove"/> | 92 | <menuitem command="cmd_uploads_remove"/> |
93 | <menuseparator/> | 93 | <menuseparator/> |
94 | <menuitem command="cmd_uploads_upload"/> | 94 | <menuitem command="cmd_uploads_upload"/> |
95 | <menuseparator/> | 95 | <menuseparator/> |
96 | <menu label="&panel.uploads.generate_html;" id="uploads_html_menu"/> | 96 | <menu label="&panel.uploads.generate_html;" id="uploads_html_menu"/> |
97 | </popup> | 97 | </popup> |
98 | </popupset> | 98 | </popupset> |
99 | 99 | ||
100 | <vbox class="wholething" flex="1"> | 100 | <vbox class="wholething" flex="1"> |
101 | 101 | ||
102 | <groupbox context="auth_menu"> | 102 | <groupbox context="auth_menu"> |
103 | <caption label="&panel.auth_info;"/> | 103 | <caption label="&panel.auth_info;"/> |
104 | <hbox> | 104 | <hbox> |
105 | <label id="auth_info" value="&panel.no_auth_info;" flex="1" disabled="true" crop="end"/> | 105 | <vbox pack="center" flex="1"> |
106 | <button id="b_auth" command="cmd_auth_auth"/> | 106 | <label id="auth_info" value="&panel.no_auth_info;" disabled="true" crop="end"/> |
107 | <button id="b_auth_done" command="cmd_auth_done" hidden="true"/> | 107 | </vbox> |
108 | <button command="cmd_auth_open_flickr" | 108 | <button class="lean" id="b_auth" command="cmd_auth_auth"/> |
109 | <button class="lean" id="b_auth_done" command="cmd_auth_done" hidden="true"/> | ||
110 | <button class="lean" command="cmd_auth_open_flickr" | ||
109 | tooltiptext="&panel.auth.flickr.tip;"/> | 111 | tooltiptext="&panel.auth.flickr.tip;"/> |
110 | <button command="cmd_help"/> | 112 | <button class="lean" command="cmd_help"/> |
111 | </hbox> | 113 | </hbox> |
112 | </groupbox> | 114 | </groupbox> |
113 | 115 | ||
114 | <tabbox flex="1" id="fireflix_tabs"> | 116 | <tabbox flex="1" id="fireflix_tabs"> |
115 | 117 | ||
116 | <tabs> | 118 | <tabs> |
117 | <tab label="&panel.tabs.search;"/> | 119 | <tab label="&panel.tabs.search;"/> |
118 | <tab label="&panel.tabs.sets;"/> | 120 | <tab label="&panel.tabs.sets;"/> |
119 | <tab label="&panel.tabs.tags;" hidden="true"/> <!-- TODO: --> | 121 | <tab label="&panel.tabs.tags;" hidden="true"/> <!-- TODO: --> |
120 | <tab id="tab_upload" label="&panel.tabs.upload;"/> | 122 | <tab id="tab_upload" label="&panel.tabs.upload;"/> |
121 | </tabs> | 123 | </tabs> |
122 | 124 | ||
123 | <tabpanels flex="1"> | 125 | <tabpanels flex="1"> |
124 | 126 | ||
125 | <tabpanel id="tabpanel_search" flex="1"> | 127 | <tabpanel id="tabpanel_search" flex="1"> |
126 | <vbox flex="1"> | 128 | <vbox flex="1"> |
127 | <groupbox class="search_params" orient="vertical" onkeypress="if(event.keyCode==event.DOM_VK_RETURN) fireflix.foundphotos.search_photos()"> | 129 | <groupbox class="search_params" orient="vertical" onkeypress="if(event.keyCode==event.DOM_VK_RETURN) fireflix.foundphotos.search_photos()"> |
128 | <hbox> | 130 | <hbox> |
129 | <label control="search_for" value="&panel.search.search_for.label;" | 131 | <vbox pack="center"> |
130 | accesskey="s"/> | 132 | <label control="search_for" value="&panel.search.search_for.label;" accesskey="s"/> |
133 | </vbox> | ||
131 | <textbox id="search_for" flex="1"/> | 134 | <textbox id="search_for" flex="1"/> |
132 | </hbox> | 135 | </hbox> |
133 | <hbox> | 136 | <hbox> |
134 | <checkbox id="search_tags" label="&panel.search.mode.tagsonly.label;" | 137 | <checkbox id="search_tags" label="&panel.search.mode.tagsonly.label;" |
135 | tooltiptext="&panel.search.mode.tagsonly.tip;" checked="false" | 138 | tooltiptext="&panel.search.mode.tagsonly.tip;" checked="false" |
136 | accesskey="t" /> | 139 | accesskey="t" /> |
137 | <checkbox id="search_mine" label="&panel.search.mode.mine.label;" checked="true" accesskey="m"/> | 140 | <checkbox id="search_mine" label="&panel.search.mode.mine.label;" checked="true" accesskey="m"/> |
138 | <spacer flex="1"/> | 141 | <spacer flex="1"/> |
139 | <button command="cmd_search"/> | 142 | <button class="lean" command="cmd_search"/> |
140 | </hbox> | 143 | </hbox> |
141 | </groupbox> | 144 | </groupbox> |
142 | <hbox> | 145 | <hbox> |
143 | <button command="cmd_search_prev_page"/> | 146 | <button class="lean" command="cmd_search_prev_page"/> |
144 | <spacer flex="1"/> | 147 | <spacer flex="1"/> |
145 | <label id="search_page" hidden="true"/> | 148 | <label id="search_page" hidden="true"/> |
146 | <spacer flex="1"/> | 149 | <spacer flex="1"/> |
147 | <button command="cmd_search_next_page"/> | 150 | <button class="lean" command="cmd_search_next_page"/> |
148 | </hbox> | 151 | </hbox> |
149 | <tree id="searchresults" rows="2" flex="1" | 152 | <tree id="searchresults" rows="2" flex="1" |
150 | onselect="fireflix.foundphotos.on_select()" | 153 | onselect="fireflix.foundphotos.on_select()" |
151 | ondblclick="fireflix.foundphotos.on_cmd_open(event)" | 154 | ondblclick="fireflix.foundphotos.on_cmd_open(event)" |
152 | onkeypress="if(event.keyCode==event.DOM_VK_RETURN) | 155 | onkeypress="if(event.keyCode==event.DOM_VK_RETURN) |
153 | fireflix.foundphotos.on_cmd_open(event)"> | 156 | fireflix.foundphotos.on_cmd_open(event)"> |
154 | <treecols> | 157 | <treecols> |
155 | <treecol id="sr_title" label="&panel.search.col.title.label;" flex="2" crop="end" align="start" /> | 158 | <treecol id="sr_title" label="&panel.search.col.title.label;" flex="2" crop="end" align="start" /> |
156 | </treecols> | 159 | </treecols> |
157 | <treechildren/> | 160 | <treechildren/> |
158 | </tree> | 161 | </tree> |
159 | <groupbox id="searchresult_props" orient="horizontal" hidden="true"> | 162 | <groupbox id="searchresult_props" orient="horizontal" hidden="true"> |
160 | <vbox width="100" pack="center"> | 163 | <vbox width="100" pack="center"> |
161 | <hbox pack="center"> | 164 | <hbox pack="center"> |
162 | <image id="search_photo" | 165 | <image id="search_photo" |
163 | ondblclick="fireflix.foundphotos.on_cmd_open(event)"/> | 166 | ondblclick="fireflix.foundphotos.on_cmd_open(event)"/> |
164 | </hbox> | 167 | </hbox> |
165 | </vbox> | 168 | </vbox> |
166 | <vbox flex="1"> | 169 | <vbox flex="1"> |
167 | <label id="searchresult_title" crop="end"/> | 170 | <label id="searchresult_title" crop="end"/> |
168 | <hbox flex="1" pack="center"> | 171 | <hbox flex="1" pack="center"> |
169 | <div flex="1" id="searchresult_description" xmlns="http://www.w3.org/1999/xhtml"/> | 172 | <div flex="1" id="searchresult_description" xmlns="http://www.w3.org/1999/xhtml"/> |
170 | </hbox> | 173 | </hbox> |
171 | <hbox pack="end"> | 174 | <hbox pack="end"> |
172 | <button command="cmd_search_open"/> | 175 | <button command="cmd_search_open"/> |
173 | </hbox> | 176 | </hbox> |
174 | </vbox> | 177 | </vbox> |
175 | </groupbox> | 178 | </groupbox> |
176 | </vbox> | 179 | </vbox> |
177 | </tabpanel> | 180 | </tabpanel> |
178 | 181 | ||
179 | <tabpanel id="tabpanel_sets" flex="1" | 182 | <tabpanel id="tabpanel_sets" flex="1" |
180 | onkeypress="if(event.keyCode==event.DOM_VK_RETURN) | 183 | onkeypress="if(event.keyCode==event.DOM_VK_RETURN) |
181 | document.getElementById('setphotos').focus()"> | 184 | document.getElementById('setphotos').focus()"> |
182 | <vbox flex="1"> | 185 | <vbox flex="1"> |
183 | <tree id="setslist" rows="2" onselect="fireflix.photosets.on_select()" | 186 | <tree id="setslist" rows="2" onselect="fireflix.photosets.on_select()" |
184 | flex="1" context="sets_menu" | 187 | flex="1" context="sets_menu" |
185 | > | 188 | > |
186 | <treecols> | 189 | <treecols> |
187 | <treecol id="sl_name" label="&panel.sets.name.label;" flex="4" crop="end" align="start" tooltiptext="&panel.sets.name.tip;"/> | 190 | <treecol id="sl_name" label="&panel.sets.name.label;" flex="4" crop="end" align="start" tooltiptext="&panel.sets.name.tip;"/> |
188 | <splitter class="tree-splitter" /> | 191 | <splitter class="tree-splitter" /> |
189 | <treecol id="sl_photos" label="&panel.sets.photos.label;" flex="1" align="end" tooltiptext="&panel.sets.photos.tip;" /> | 192 | <treecol id="sl_photos" label="&panel.sets.photos.label;" flex="1" align="end" tooltiptext="&panel.sets.photos.tip;" /> |
190 | </treecols> | 193 | </treecols> |
191 | <treechildren/> | 194 | <treechildren/> |
192 | </tree> | 195 | </tree> |
193 | <hbox> | 196 | <hbox> |
194 | <button command="cmd_refresh_sets" /> | 197 | <button command="cmd_refresh_sets" /> |
195 | <button command="cmd_set_props" /> | 198 | <button command="cmd_set_props" /> |
196 | </hbox> | 199 | </hbox> |
197 | <tree id="setphotos" rows="2" onselect="fireflix.photoset.on_select()" | 200 | <tree id="setphotos" rows="2" onselect="fireflix.photoset.on_select()" |
198 | flex="1"> | 201 | flex="1"> |
199 | <treecols> | 202 | <treecols> |
200 | <treecol id="sp_title" label="&panel.setphotos.title.label;" flex="1" crop="end" align="start" tooltiptext="&panel.setphotos.title.tip;" /> | 203 | <treecol id="sp_title" label="&panel.setphotos.title.label;" flex="1" crop="end" align="start" tooltiptext="&panel.setphotos.title.tip;" /> |
201 | <splitter class="tree-splitter" /> | 204 | <splitter class="tree-splitter" /> |
202 | <treecol id="sp_taken" label="&panel.setphotos.taken.label;" crop="end" align="start" tooltiptext="&panel.setphotos.taken.tip;" hidden="true" /> | 205 | <treecol id="sp_taken" label="&panel.setphotos.taken.label;" crop="end" align="start" tooltiptext="&panel.setphotos.taken.tip;" hidden="true" /> |
203 | <treecol id="sp_upload" label="&panel.setphotos.upload.label;" crop="end" align="start" tooltiptext="&panel.setphotos.upload.tip;" hidden="true" /> | 206 | <treecol id="sp_upload" label="&panel.setphotos.upload.label;" crop="end" align="start" tooltiptext="&panel.setphotos.upload.tip;" hidden="true" /> |
204 | </treecols> | 207 | </treecols> |
205 | <treechildren/> | 208 | <treechildren/> |
206 | </tree> | 209 | </tree> |
207 | <groupbox id="set_photo_props" orient="horizontal"> | 210 | <groupbox id="set_photo_props" orient="horizontal"> |
208 | <vbox width="100" pack="center"> | 211 | <vbox width="100" pack="center"> |
209 | <hbox pack="center"> | 212 | <hbox pack="center"> |
210 | <image id="set_photo" hidden="true"/> | 213 | <image id="set_photo" hidden="true"/> |
211 | </hbox> | 214 | </hbox> |
212 | </vbox> | 215 | </vbox> |
213 | <spacer flex="1"/> | 216 | <spacer flex="1"/> |
214 | </groupbox> | 217 | </groupbox> |
215 | </vbox> | 218 | </vbox> |
216 | </tabpanel> | 219 | </tabpanel> |
217 | 220 | ||
218 | <tabpanel id="tabpanel_tags"> | 221 | <tabpanel id="tabpanel_tags"> |
219 | <listbox id="tagslist" rows="8" flex="1"> | 222 | <listbox id="tagslist" rows="8" flex="1"> |
220 | <listhead> | 223 | <listhead> |
221 | <listheader label="&panel.tagslist.tag.label;"/> | 224 | <listheader label="&panel.tagslist.tag.label;"/> |
222 | </listhead> | 225 | </listhead> |
223 | <listcols> | 226 | <listcols> |
224 | <listcol flex="1"/> | 227 | <listcol flex="1"/> |
225 | </listcols> | 228 | </listcols> |
226 | </listbox> | 229 | </listbox> |
227 | </tabpanel> | 230 | </tabpanel> |
228 | 231 | ||
229 | <tabpanel id="tabpanel_upload"> | 232 | <tabpanel id="tabpanel_upload"> |
230 | <vbox flex="1"> | 233 | <vbox flex="1"> |
231 | <tree id="uploadlist" rows="2" flex="1" | 234 | <tree id="uploadlist" rows="2" flex="1" |
232 | onselect="fireflix.uploads.selectionChanged()" | 235 | onselect="fireflix.uploads.selectionChanged()" |
233 | context="uploads_menu"> | 236 | context="uploads_menu"> |
234 | <treecols> | 237 | <treecols> |
235 | <treecol id="up_file" label="&panel.uploadlist.file.label;" flex="4" crop="start" align="start"/> | 238 | <treecol id="up_file" label="&panel.uploadlist.file.label;" flex="4" crop="start" align="start"/> |
236 | <splitter class="tree-splitter" /> | 239 | <splitter class="tree-splitter" /> |
237 | <treecol id="up_title" label="&panel.uploadlist.title.label;" flex="5" crop="end" align="start" /> | 240 | <treecol id="up_title" label="&panel.uploadlist.title.label;" flex="5" crop="end" align="start" /> |
238 | <splitter class="tree-splitter" /> | 241 | <splitter class="tree-splitter" /> |
239 | <treecol id="up_status" label="&panel.uploadlist.status.label;" flex="1" crop="end" align="start" /> | 242 | <treecol id="up_status" label="&panel.uploadlist.status.label;" flex="1" crop="end" align="start" /> |
240 | </treecols> | 243 | </treecols> |
241 | <treechildren/> | 244 | <treechildren/> |
242 | </tree> | 245 | </tree> |
243 | <progressmeter id="upload_progress" mode="undetermined" hidden="true" /> | 246 | <progressmeter id="upload_progress" mode="undetermined" hidden="true" /> |
244 | <groupbox id="upload_file_props" orient="horizontal" hidden="true"> | 247 | <groupbox id="upload_file_props" orient="horizontal" hidden="true"> |
245 | <image id="upload_file_preview" width="100" height="100" /> | 248 | <image id="upload_file_preview" width="100" height="100" /> |
246 | <grid flex="1"> | 249 | <grid flex="1"> |
247 | <columns> | 250 | <columns> |
248 | <column/> | 251 | <column/> |
249 | <column flex="1"/> | 252 | <column flex="1"/> |
250 | </columns> | 253 | </columns> |
251 | <rows> | 254 | <rows> |
252 | <row> | 255 | <row> |
253 | <label control="upload_filename" | 256 | <label control="upload_filename" |
254 | value="&panel.upload_props.filename.label;" /> | 257 | value="&panel.upload_props.filename.label;" /> |
255 | <textbox id="upload_filename" | 258 | <textbox id="upload_filename" |
256 | oninput="fireflix.uploads.propsToSel('filename')"/> | 259 | oninput="fireflix.uploads.propsToSel('filename')"/> |
257 | </row> | 260 | </row> |
258 | <row> | 261 | <row> |
259 | <label control="upload_title" value="&panel.upload_props.title.label;" /> | 262 | <label control="upload_title" value="&panel.upload_props.title.label;" /> |
260 | <textbox id="upload_title" | 263 | <textbox id="upload_title" |
261 | oninput="fireflix.uploads.propsToSel('title')"/> | 264 | oninput="fireflix.uploads.propsToSel('title')"/> |
262 | </row> | 265 | </row> |
263 | <row> | 266 | <row> |
264 | <label control="uplod_tags" value="&panel.upload_props.tags.label;" /> | 267 | <label control="uplod_tags" value="&panel.upload_props.tags.label;" /> |
265 | <textbox id="upload_tags" | 268 | <textbox id="upload_tags" |
266 | oninput="fireflix.uploads.propsToSel('tags')"/> | 269 | oninput="fireflix.uploads.propsToSel('tags')"/> |
267 | </row> | 270 | </row> |
268 | <!-- TODO: description, public, friend, family --> | 271 | <!-- TODO: description, public, friend, family --> |
269 | </rows> | 272 | </rows> |
270 | </grid> | 273 | </grid> |
271 | </groupbox> | 274 | </groupbox> |
272 | <hbox> | 275 | <hbox> |
273 | <button command="cmd_uploads_add" /> | 276 | <button class="lean" command="cmd_uploads_add" /> |
274 | <spacer flex="1"/> | 277 | <spacer flex="1"/> |
275 | <button command="cmd_uploads_remove" /> | 278 | <button class="lean" command="cmd_uploads_remove" /> |
276 | <spacer flex="1"/> | 279 | <spacer flex="1"/> |
277 | <button command="cmd_uploads_clear" /> | 280 | <button class="lean" command="cmd_uploads_clear" /> |
278 | </hbox> | 281 | </hbox> |
279 | <hbox pack="center"> | 282 | <hbox pack="center"> |
280 | <button command="cmd_uploads_upload" flex="1"/> | 283 | <button command="cmd_uploads_upload" flex="1"/> |
281 | </hbox> | 284 | </hbox> |
282 | </vbox> | 285 | </vbox> |
283 | </tabpanel> | 286 | </tabpanel> |
284 | 287 | ||
285 | </tabpanels> | 288 | </tabpanels> |
286 | 289 | ||
287 | </tabbox> | 290 | </tabbox> |
288 | 291 | ||
289 | </vbox> | 292 | </vbox> |
290 | 293 | ||
291 | </page> | 294 | </page> |