-rw-r--r-- | content/fireflix-panel.xul | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/fireflix-panel.xul b/content/fireflix-panel.xul index 1278621..b961edb 100644 --- a/content/fireflix-panel.xul +++ b/content/fireflix-panel.xul | |||
@@ -2,64 +2,66 @@ | |||
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="?" | ||
35 | oncommand="fireflix.openTab('chrome://fireflix/content/help.xml')" /> | ||
34 | </commandset> | 36 | </commandset> |
35 | 37 | ||
36 | <popupset> | 38 | <popupset> |
37 | <popup id="auth_menu"> | 39 | <popup id="auth_menu"> |
38 | <menuitem command="cmd_auth_auth"/> | 40 | <menuitem command="cmd_auth_auth"/> |
39 | <menuitem command="cmd_auth_done" hidden="true" id="menu_auth_done"/> | 41 | <menuitem command="cmd_auth_done" hidden="true" id="menu_auth_done"/> |
40 | <menuitem command="cmd_auth_unauth" /> | 42 | <menuitem command="cmd_auth_unauth" /> |
41 | <menuseparator/> | 43 | <menuseparator/> |
42 | <menuitem command="cmd_auth_open_flickr"/> | 44 | <menuitem command="cmd_auth_open_flickr"/> |
43 | </popup> | 45 | </popup> |
44 | </popupset> | 46 | </popupset> |
45 | 47 | ||
46 | <commandset id="cmdset_search"> | 48 | <commandset id="cmdset_search"> |
47 | <command id="cmd_search" label="&panel.search.cmd_search.label;" | 49 | <command id="cmd_search" label="&panel.search.cmd_search.label;" |
48 | oncommand="fireflix.foundphotos.search_photos()"/> | 50 | oncommand="fireflix.foundphotos.search_photos()"/> |
49 | <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;" |
50 | oncommand="fireflix.foundphotos.on_cmd_open(event)" /> | 52 | oncommand="fireflix.foundphotos.on_cmd_open(event)" /> |
51 | <command id="cmd_search_prev_page" | 53 | <command id="cmd_search_prev_page" |
52 | label="&panel.search.cmd_search_prev_page.label;" | 54 | label="&panel.search.cmd_search_prev_page.label;" |
53 | oncommand="fireflix.foundphotos.on_cmd_prev(event)" disabled="true"/> | 55 | oncommand="fireflix.foundphotos.on_cmd_prev(event)" disabled="true"/> |
54 | <command id="cmd_search_next_page" | 56 | <command id="cmd_search_next_page" |
55 | label="&panel.search.cmd_search_next_page.label;" | 57 | label="&panel.search.cmd_search_next_page.label;" |
56 | oncommand="fireflix.foundphotos.on_cmd_next(event)" disabled="true"/> | 58 | oncommand="fireflix.foundphotos.on_cmd_next(event)" disabled="true"/> |
57 | </commandset> | 59 | </commandset> |
58 | 60 | ||
59 | <commandset id="cmdset_sets"> | 61 | <commandset id="cmdset_sets"> |
60 | <command id="cmd_refresh_sets" label="&panel.sets.cmd_refresh_sets;" | 62 | <command id="cmd_refresh_sets" label="&panel.sets.cmd_refresh_sets;" |
61 | oncommand="fireflix.on_refresh_sets()" /> | 63 | oncommand="fireflix.on_refresh_sets()" /> |
62 | <command id="cmd_set_props" label="&panel.sets.cmd_properties;" | 64 | <command id="cmd_set_props" label="&panel.sets.cmd_properties;" |
63 | oncommand="fireflix.on_set_props()" disabled="true" /> | 65 | oncommand="fireflix.on_set_props()" disabled="true" /> |
64 | </commandset> | 66 | </commandset> |
65 | 67 | ||
@@ -76,64 +78,65 @@ | |||
76 | <command id="cmd_uploads_clear" label="&panel.uploads.clear.label;" | 78 | <command id="cmd_uploads_clear" label="&panel.uploads.clear.label;" |
77 | oncommand="fireflix.uploads.on_clear()" /> | 79 | oncommand="fireflix.uploads.on_clear()" /> |
78 | <command id="cmd_uploads_upload" label="&panel.uploads.upload.label;" | 80 | <command id="cmd_uploads_upload" label="&panel.uploads.upload.label;" |
79 | oncommand="fireflix.uploads.on_upload()" /> | 81 | oncommand="fireflix.uploads.on_upload()" /> |
80 | <command id="cmd_uploads_remove" label="&panel.uploads.remove.label;" | 82 | <command id="cmd_uploads_remove" label="&panel.uploads.remove.label;" |
81 | oncommand="fireflix.uploads.on_remove()" /> | 83 | oncommand="fireflix.uploads.on_remove()" /> |
82 | <command id="cmd_uploads_add" label="&panel.uploads.add.label;" | 84 | <command id="cmd_uploads_add" label="&panel.uploads.add.label;" |
83 | oncommand="fireflix.uploads.on_add()" /> | 85 | oncommand="fireflix.uploads.on_add()" /> |
84 | </commandset> | 86 | </commandset> |
85 | 87 | ||
86 | <popupset> | 88 | <popupset> |
87 | <popup id="uploads_menu"> | 89 | <popup id="uploads_menu"> |
88 | <menuitem command="cmd_uploads_add"/> | 90 | <menuitem command="cmd_uploads_add"/> |
89 | <menuitem command="cmd_uploads_clear"/> | 91 | <menuitem command="cmd_uploads_clear"/> |
90 | <menuitem command="cmd_uploads_remove"/> | 92 | <menuitem command="cmd_uploads_remove"/> |
91 | <menuseparator/> | 93 | <menuseparator/> |
92 | <menuitem command="cmd_uploads_upload"/> | 94 | <menuitem command="cmd_uploads_upload"/> |
93 | <menuseparator/> | 95 | <menuseparator/> |
94 | <menu label="&panel.uploads.generate_html;" id="uploads_html_menu"/> | 96 | <menu label="&panel.uploads.generate_html;" id="uploads_html_menu"/> |
95 | </popup> | 97 | </popup> |
96 | </popupset> | 98 | </popupset> |
97 | 99 | ||
98 | <vbox class="wholething" flex="1"> | 100 | <vbox class="wholething" flex="1"> |
99 | 101 | ||
100 | <groupbox context="auth_menu"> | 102 | <groupbox context="auth_menu"> |
101 | <caption label="&panel.auth_info;"/> | 103 | <caption label="&panel.auth_info;"/> |
102 | <hbox> | 104 | <hbox> |
103 | <label id="auth_info" value="&panel.no_auth_info;" flex="1" disabled="true" crop="end"/> | 105 | <label id="auth_info" value="&panel.no_auth_info;" flex="1" disabled="true" crop="end"/> |
104 | <button id="b_auth" command="cmd_auth_auth"/> | 106 | <button id="b_auth" command="cmd_auth_auth"/> |
105 | <button id="b_auth_done" command="cmd_auth_done" hidden="true"/> | 107 | <button id="b_auth_done" command="cmd_auth_done" hidden="true"/> |
106 | <button command="cmd_auth_open_flickr" | 108 | <button command="cmd_auth_open_flickr" |
107 | tooltiptext="&panel.auth.flickr.tip;"/> | 109 | tooltiptext="&panel.auth.flickr.tip;"/> |
110 | <button command="cmd_help"/> | ||
108 | </hbox> | 111 | </hbox> |
109 | </groupbox> | 112 | </groupbox> |
110 | 113 | ||
111 | <tabbox flex="1" id="fireflix_tabs"> | 114 | <tabbox flex="1" id="fireflix_tabs"> |
112 | 115 | ||
113 | <tabs> | 116 | <tabs> |
114 | <tab label="&panel.tabs.search;"/> | 117 | <tab label="&panel.tabs.search;"/> |
115 | <tab label="&panel.tabs.sets;"/> | 118 | <tab label="&panel.tabs.sets;"/> |
116 | <tab label="&panel.tabs.tags;" hidden="true"/> <!-- TODO: --> | 119 | <tab label="&panel.tabs.tags;" hidden="true"/> <!-- TODO: --> |
117 | <tab id="tab_upload" label="&panel.tabs.upload;"/> | 120 | <tab id="tab_upload" label="&panel.tabs.upload;"/> |
118 | </tabs> | 121 | </tabs> |
119 | 122 | ||
120 | <tabpanels flex="1"> | 123 | <tabpanels flex="1"> |
121 | 124 | ||
122 | <tabpanel id="tabpanel_search" flex="1"> | 125 | <tabpanel id="tabpanel_search" flex="1"> |
123 | <vbox flex="1"> | 126 | <vbox flex="1"> |
124 | <groupbox class="search_params" orient="vertical" onkeypress="if(event.keyCode==event.DOM_VK_RETURN) fireflix.foundphotos.search_photos()"> | 127 | <groupbox class="search_params" orient="vertical" onkeypress="if(event.keyCode==event.DOM_VK_RETURN) fireflix.foundphotos.search_photos()"> |
125 | <hbox> | 128 | <hbox> |
126 | <label control="search_for" value="&panel.search.search_for.label;" | 129 | <label control="search_for" value="&panel.search.search_for.label;" |
127 | accesskey="s"/> | 130 | accesskey="s"/> |
128 | <textbox id="search_for" flex="1"/> | 131 | <textbox id="search_for" flex="1"/> |
129 | </hbox> | 132 | </hbox> |
130 | <hbox> | 133 | <hbox> |
131 | <checkbox id="search_tags" label="&panel.search.mode.tagsonly.label;" | 134 | <checkbox id="search_tags" label="&panel.search.mode.tagsonly.label;" |
132 | tooltiptext="&panel.search.mode.tagsonly.tip;" checked="false" | 135 | tooltiptext="&panel.search.mode.tagsonly.tip;" checked="false" |
133 | accesskey="t" /> | 136 | accesskey="t" /> |
134 | <checkbox id="search_mine" label="&panel.search.mode.mine.label;" checked="true" accesskey="m"/> | 137 | <checkbox id="search_mine" label="&panel.search.mode.mine.label;" checked="true" accesskey="m"/> |
135 | <spacer flex="1"/> | 138 | <spacer flex="1"/> |
136 | <button command="cmd_search"/> | 139 | <button command="cmd_search"/> |
137 | </hbox> | 140 | </hbox> |
138 | </groupbox> | 141 | </groupbox> |
139 | <hbox> | 142 | <hbox> |