author | Michael Krelin <hacker@klever.net> | 2006-11-16 21:54:55 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2006-11-16 21:54:55 (UTC) |
commit | 8db8cc953a91ccba910228bdaf2563ffd92f3d61 (patch) (unidiff) | |
tree | cce7bfe83b5273f309f8b3a47ae0373bc029910d /content/fireflix-panel.xul | |
parent | 26b7e66a091703dab249ca11f00a1cb49987c393 (diff) | |
download | fireflix-8db8cc953a91ccba910228bdaf2563ffd92f3d61.zip fireflix-8db8cc953a91ccba910228bdaf2563ffd92f3d61.tar.gz fireflix-8db8cc953a91ccba910228bdaf2563ffd92f3d61.tar.bz2 |
open flickr page on enter or dblclicking photo in set browser
git-svn-id: http://svn.klever.net/kin/fireflix/trunk@226 fe716a7a-6dde-0310-88d9-d003556173a8
-rw-r--r-- | content/fireflix-panel.xul | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/content/fireflix-panel.xul b/content/fireflix-panel.xul index 2356c82..b2ca7dc 100644 --- a/content/fireflix-panel.xul +++ b/content/fireflix-panel.xul | |||
@@ -139,34 +139,33 @@ | |||
139 | accesskey="t" /> | 139 | accesskey="t" /> |
140 | <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"/> |
141 | <spacer flex="1"/> | 141 | <spacer flex="1"/> |
142 | <button class="lean" command="cmd_search"/> | 142 | <button class="lean" command="cmd_search"/> |
143 | </hbox> | 143 | </hbox> |
144 | </groupbox> | 144 | </groupbox> |
145 | <hbox> | 145 | <hbox> |
146 | <button class="lean" command="cmd_search_prev_page"/> | 146 | <button class="lean" command="cmd_search_prev_page"/> |
147 | <spacer flex="1"/> | 147 | <spacer flex="1"/> |
148 | <label id="search_page" hidden="true"/> | 148 | <label id="search_page" hidden="true"/> |
149 | <spacer flex="1"/> | 149 | <spacer flex="1"/> |
150 | <button class="lean" command="cmd_search_next_page"/> | 150 | <button class="lean" command="cmd_search_next_page"/> |
151 | </hbox> | 151 | </hbox> |
152 | <tree id="searchresults" rows="2" flex="1" | 152 | <tree id="searchresults" rows="2" flex="1" |
153 | onselect="fireflix.foundphotos.on_select()" | 153 | onselect="fireflix.foundphotos.on_select()" |
154 | ondblclick="fireflix.foundphotos.on_cmd_open(event)" | 154 | ondblclick="fireflix.foundphotos.on_cmd_open(event)" |
155 | onkeypress="if(event.keyCode==event.DOM_VK_RETURN) | 155 | onkeypress="if(event.keyCode==event.DOM_VK_RETURN) fireflix.foundphotos.on_cmd_open(event)"> |
156 | fireflix.foundphotos.on_cmd_open(event)"> | ||
157 | <treecols> | 156 | <treecols> |
158 | <treecol id="sr_title" label="&panel.search.col.title.label;" flex="2" crop="end" align="start" /> | 157 | <treecol id="sr_title" label="&panel.search.col.title.label;" flex="2" crop="end" align="start" /> |
159 | </treecols> | 158 | </treecols> |
160 | <treechildren/> | 159 | <treechildren/> |
161 | </tree> | 160 | </tree> |
162 | <groupbox id="searchresult_props" orient="horizontal" hidden="true"> | 161 | <groupbox id="searchresult_props" orient="horizontal" hidden="true"> |
163 | <vbox width="100" pack="center"> | 162 | <vbox width="100" pack="center"> |
164 | <hbox pack="center"> | 163 | <hbox pack="center"> |
165 | <image id="search_photo" | 164 | <image id="search_photo" |
166 | ondblclick="fireflix.foundphotos.on_cmd_open(event)"/> | 165 | ondblclick="fireflix.foundphotos.on_cmd_open(event)"/> |
167 | </hbox> | 166 | </hbox> |
168 | </vbox> | 167 | </vbox> |
169 | <vbox flex="1"> | 168 | <vbox flex="1"> |
170 | <label id="searchresult_title" crop="end"/> | 169 | <label id="searchresult_title" crop="end"/> |
171 | <hbox flex="1" pack="center"> | 170 | <hbox flex="1" pack="center"> |
172 | <div flex="1" id="searchresult_description" xmlns="http://www.w3.org/1999/xhtml"/> | 171 | <div flex="1" id="searchresult_description" xmlns="http://www.w3.org/1999/xhtml"/> |
@@ -185,45 +184,47 @@ | |||
185 | <vbox flex="1"> | 184 | <vbox flex="1"> |
186 | <tree id="setslist" rows="2" onselect="fireflix.photosets.on_select()" | 185 | <tree id="setslist" rows="2" onselect="fireflix.photosets.on_select()" |
187 | flex="1" context="sets_menu" | 186 | flex="1" context="sets_menu" |
188 | > | 187 | > |
189 | <treecols> | 188 | <treecols> |
190 | <treecol id="sl_name" label="&panel.sets.name.label;" flex="4" crop="end" align="start" tooltiptext="&panel.sets.name.tip;"/> | 189 | <treecol id="sl_name" label="&panel.sets.name.label;" flex="4" crop="end" align="start" tooltiptext="&panel.sets.name.tip;"/> |
191 | <splitter class="tree-splitter" /> | 190 | <splitter class="tree-splitter" /> |
192 | <treecol id="sl_photos" label="&panel.sets.photos.label;" flex="1" align="end" tooltiptext="&panel.sets.photos.tip;" /> | 191 | <treecol id="sl_photos" label="&panel.sets.photos.label;" flex="1" align="end" tooltiptext="&panel.sets.photos.tip;" /> |
193 | </treecols> | 192 | </treecols> |
194 | <treechildren/> | 193 | <treechildren/> |
195 | </tree> | 194 | </tree> |
196 | <hbox> | 195 | <hbox> |
197 | <button command="cmd_refresh_sets" /> | 196 | <button command="cmd_refresh_sets" /> |
198 | <button command="cmd_set_props" /> | 197 | <button command="cmd_set_props" /> |
199 | </hbox> | 198 | </hbox> |
200 | <tree id="setphotos" rows="2" onselect="fireflix.photoset.on_select()" | 199 | <tree id="setphotos" rows="2" onselect="fireflix.photoset.on_select()" |
201 | flex="1"> | 200 | flex="1" ondblclick="fireflix.photoset.on_cmd_open(event)" |
201 | onkeypress="if(event.keyCode==event.DOM_VK_RETURN) fireflix.photoset.on_cmd_open(event)"> | ||
202 | <treecols> | 202 | <treecols> |
203 | <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;" /> |
204 | <splitter class="tree-splitter" /> | 204 | <splitter class="tree-splitter" /> |
205 | <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" /> |
206 | <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" /> |
207 | </treecols> | 207 | </treecols> |
208 | <treechildren/> | 208 | <treechildren/> |
209 | </tree> | 209 | </tree> |
210 | <groupbox id="set_photo_props" orient="horizontal"> | 210 | <groupbox id="set_photo_props" orient="horizontal"> |
211 | <vbox width="100" pack="center"> | 211 | <vbox width="100" pack="center"> |
212 | <hbox pack="center"> | 212 | <hbox pack="center"> |
213 | <image id="set_photo" hidden="true"/> | 213 | <image id="set_photo" hidden="true" |
214 | ondblclick="fireflix.photoset.on_cmd_open(event)" /> | ||
214 | </hbox> | 215 | </hbox> |
215 | </vbox> | 216 | </vbox> |
216 | <spacer flex="1"/> | 217 | <spacer flex="1"/> |
217 | </groupbox> | 218 | </groupbox> |
218 | </vbox> | 219 | </vbox> |
219 | </tabpanel> | 220 | </tabpanel> |
220 | 221 | ||
221 | <tabpanel id="tabpanel_tags"> | 222 | <tabpanel id="tabpanel_tags"> |
222 | <listbox id="tagslist" rows="8" flex="1"> | 223 | <listbox id="tagslist" rows="8" flex="1"> |
223 | <listhead> | 224 | <listhead> |
224 | <listheader label="&panel.tagslist.tag.label;"/> | 225 | <listheader label="&panel.tagslist.tag.label;"/> |
225 | </listhead> | 226 | </listhead> |
226 | <listcols> | 227 | <listcols> |
227 | <listcol flex="1"/> | 228 | <listcol flex="1"/> |
228 | </listcols> | 229 | </listcols> |
229 | </listbox> | 230 | </listbox> |