author | Michael Krelin <hacker@klever.net> | 2006-09-28 19:40:39 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2006-09-28 19:40:39 (UTC) |
commit | 438c60c606a15792893c38415d0f405ae21e433d (patch) (unidiff) | |
tree | d8a56268d5ebedf8669587af7469fedbe1527154 /content/fireflix-panel.xul | |
parent | b62171950ffbbdae7826b1b8cdd4cfd0bde8cc93 (diff) | |
download | fireflix-438c60c606a15792893c38415d0f405ae21e433d.zip fireflix-438c60c606a15792893c38415d0f405ae21e433d.tar.gz fireflix-438c60c606a15792893c38415d0f405ae21e433d.tar.bz2 |
Better tracking of auth state, added possibility to sign off and reauth
git-svn-id: http://svn.klever.net/kin/fireflix/trunk@164 fe716a7a-6dde-0310-88d9-d003556173a8
-rw-r--r-- | content/fireflix-panel.xul | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/content/fireflix-panel.xul b/content/fireflix-panel.xul index 75d6c2d..70a58fe 100644 --- a/content/fireflix-panel.xul +++ b/content/fireflix-panel.xul | |||
@@ -16,16 +16,37 @@ | |||
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> | ||
25 | <command id="cmd_auth_auth" label="&panel.auth.auth.label;" | ||
26 | oncommand="fireflix.on_cmd_auth()"/> | ||
27 | <command id="cmd_auth_done" label="&panel.auth.done.label;" | ||
28 | oncommand="fireflix.on_cmd_auth_done()" disabled="true"/> | ||
29 | <command id="cmd_auth_open_flickr" label="&panel.auth.flickr.label;" | ||
30 | oncommand="fireflix.openTab('htp://www.flickr.com/')" /> | ||
31 | <command id="cmd_auth_unauth" label="&panel.auth.unauth.label;" | ||
32 | oncommand="fireflix.on_cmd_auth_unauth()" /> | ||
33 | </commandset> | ||
34 | |||
35 | <popupset> | ||
36 | <popup id="auth_menu"> | ||
37 | <menuitem command="cmd_auth_auth"/> | ||
38 | <menuitem command="cmd_auth_done" hidden="true" id="menu_auth_done"/> | ||
39 | <menuitem command="cmd_auth_unauth" /> | ||
40 | <menuseparator/> | ||
41 | <menuitem command="cmd_auth_open_flickr"/> | ||
42 | </popup> | ||
43 | </popupset> | ||
44 | |||
24 | <commandset id="cmdset_search"> | 45 | <commandset id="cmdset_search"> |
25 | <command id="cmd_search" label="&panel.search.cmd_search.label;" | 46 | <command id="cmd_search" label="&panel.search.cmd_search.label;" |
26 | oncommand="fireflix.foundphotos.search_photos()"/> | 47 | oncommand="fireflix.foundphotos.search_photos()"/> |
27 | <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;" |
28 | oncommand="fireflix.foundphotos.on_cmd_open(event)" /> | 49 | oncommand="fireflix.foundphotos.on_cmd_open(event)" /> |
29 | </commandset> | 50 | </commandset> |
30 | 51 | ||
31 | <commandset id="cmdset_sets"> | 52 | <commandset id="cmdset_sets"> |
@@ -64,26 +85,24 @@ | |||
64 | <menuitem command="cmd_uploads_upload"/> | 85 | <menuitem command="cmd_uploads_upload"/> |
65 | <menuseparator/> | 86 | <menuseparator/> |
66 | <menu label="&panel.uploads.generate_html;" id="uploads_html_menu"/> | 87 | <menu label="&panel.uploads.generate_html;" id="uploads_html_menu"/> |
67 | </popup> | 88 | </popup> |
68 | </popupset> | 89 | </popupset> |
69 | 90 | ||
70 | <vbox class="wholething" flex="1"> | 91 | <vbox class="wholething" flex="1"> |
71 | 92 | ||
72 | <groupbox> | 93 | <groupbox context="auth_menu"> |
73 | <caption label="&panel.auth_info;"/> | 94 | <caption label="&panel.auth_info;"/> |
74 | <hbox> | 95 | <hbox> |
75 | <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"/> |
76 | <button id="b_auth" label="&panel.auth_button;" oncommand="fireflix.on_auth()"/> | 97 | <button id="b_auth" command="cmd_auth_auth"/> |
77 | <button id="b_auth_done" label="&panel.auth_complete_button;" hidden="true" | 98 | <button id="b_auth_done" command="cmd_auth_done" hidden="true"/> |
78 | oncommand="fireflix.on_auth_done()"/> | 99 | <button command="cmd_auth_open_flickr" |
79 | <button label="&panel.flickr_button.label;" | 100 | tooltiptext="&panel.auth.flickr.tip;"/> |
80 | tooltiptext="&panel.flickr_button.tip;" | ||
81 | oncommand="fireflix.openTab('http://www.flickr.com/')" /> | ||
82 | </hbox> | 101 | </hbox> |
83 | </groupbox> | 102 | </groupbox> |
84 | 103 | ||
85 | <tabbox flex="1" id="fireflix_tabs"> | 104 | <tabbox flex="1" id="fireflix_tabs"> |
86 | 105 | ||
87 | <tabs> | 106 | <tabs> |
88 | <tab label="&panel.tabs.search;"/> | 107 | <tab label="&panel.tabs.search;"/> |
89 | <tab label="&panel.tabs.sets;"/> | 108 | <tab label="&panel.tabs.sets;"/> |