author | Michael Krelin <hacker@klever.net> | 2006-09-28 20:48:53 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2006-09-28 20:48:53 (UTC) |
commit | 84e84c0f62208bba6012e0db7296a9808bbbb148 (patch) (unidiff) | |
tree | 15efe27be66f53937f73e0022d5fbddf36e492c3 | |
parent | 438c60c606a15792893c38415d0f405ae21e433d (diff) | |
download | fireflix-84e84c0f62208bba6012e0db7296a9808bbbb148.zip fireflix-84e84c0f62208bba6012e0db7296a9808bbbb148.tar.gz fireflix-84e84c0f62208bba6012e0db7296a9808bbbb148.tar.bz2 |
croppable auth info label
git-svn-id: http://svn.klever.net/kin/fireflix/trunk@165 fe716a7a-6dde-0310-88d9-d003556173a8
-rw-r--r-- | content/fireflix-panel.xul | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/fireflix-panel.xul b/content/fireflix-panel.xul index 70a58fe..569beb0 100644 --- a/content/fireflix-panel.xul +++ b/content/fireflix-panel.xul | |||
@@ -1,192 +1,192 @@ | |||
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="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> | 24 | <commandset> |
25 | <command id="cmd_auth_auth" label="&panel.auth.auth.label;" | 25 | <command id="cmd_auth_auth" label="&panel.auth.auth.label;" |
26 | oncommand="fireflix.on_cmd_auth()"/> | 26 | oncommand="fireflix.on_cmd_auth()"/> |
27 | <command id="cmd_auth_done" label="&panel.auth.done.label;" | 27 | <command id="cmd_auth_done" label="&panel.auth.done.label;" |
28 | oncommand="fireflix.on_cmd_auth_done()" disabled="true"/> | 28 | oncommand="fireflix.on_cmd_auth_done()" disabled="true"/> |
29 | <command id="cmd_auth_open_flickr" label="&panel.auth.flickr.label;" | 29 | <command id="cmd_auth_open_flickr" label="&panel.auth.flickr.label;" |
30 | oncommand="fireflix.openTab('htp://www.flickr.com/')" /> | 30 | oncommand="fireflix.openTab('htp://www.flickr.com/')" /> |
31 | <command id="cmd_auth_unauth" label="&panel.auth.unauth.label;" | 31 | <command id="cmd_auth_unauth" label="&panel.auth.unauth.label;" |
32 | oncommand="fireflix.on_cmd_auth_unauth()" /> | 32 | oncommand="fireflix.on_cmd_auth_unauth()" /> |
33 | </commandset> | 33 | </commandset> |
34 | 34 | ||
35 | <popupset> | 35 | <popupset> |
36 | <popup id="auth_menu"> | 36 | <popup id="auth_menu"> |
37 | <menuitem command="cmd_auth_auth"/> | 37 | <menuitem command="cmd_auth_auth"/> |
38 | <menuitem command="cmd_auth_done" hidden="true" id="menu_auth_done"/> | 38 | <menuitem command="cmd_auth_done" hidden="true" id="menu_auth_done"/> |
39 | <menuitem command="cmd_auth_unauth" /> | 39 | <menuitem command="cmd_auth_unauth" /> |
40 | <menuseparator/> | 40 | <menuseparator/> |
41 | <menuitem command="cmd_auth_open_flickr"/> | 41 | <menuitem command="cmd_auth_open_flickr"/> |
42 | </popup> | 42 | </popup> |
43 | </popupset> | 43 | </popupset> |
44 | 44 | ||
45 | <commandset id="cmdset_search"> | 45 | <commandset id="cmdset_search"> |
46 | <command id="cmd_search" label="&panel.search.cmd_search.label;" | 46 | <command id="cmd_search" label="&panel.search.cmd_search.label;" |
47 | oncommand="fireflix.foundphotos.search_photos()"/> | 47 | oncommand="fireflix.foundphotos.search_photos()"/> |
48 | <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;" |
49 | oncommand="fireflix.foundphotos.on_cmd_open(event)" /> | 49 | oncommand="fireflix.foundphotos.on_cmd_open(event)" /> |
50 | </commandset> | 50 | </commandset> |
51 | 51 | ||
52 | <commandset id="cmdset_sets"> | 52 | <commandset id="cmdset_sets"> |
53 | <command id="cmd_refresh_sets" label="&panel.sets.cmd_refresh_sets;" | 53 | <command id="cmd_refresh_sets" label="&panel.sets.cmd_refresh_sets;" |
54 | oncommand="fireflix.on_refresh_sets()" /> | 54 | oncommand="fireflix.on_refresh_sets()" /> |
55 | <command id="cmd_set_props" label="&panel.sets.cmd_properties;" | 55 | <command id="cmd_set_props" label="&panel.sets.cmd_properties;" |
56 | oncommand="fireflix.on_set_props()" disabled="true" /> | 56 | oncommand="fireflix.on_set_props()" disabled="true" /> |
57 | </commandset> | 57 | </commandset> |
58 | 58 | ||
59 | <popupset> | 59 | <popupset> |
60 | <popup id="sets_menu"> | 60 | <popup id="sets_menu"> |
61 | <menuitem command="cmd_set_props"/> | 61 | <menuitem command="cmd_set_props"/> |
62 | <menuitem command="cmd_refresh_sets"/> | 62 | <menuitem command="cmd_refresh_sets"/> |
63 | <menuseparator/> | 63 | <menuseparator/> |
64 | <menu label="&panel.sets.generate_html;" id="sets_html_menu"/> | 64 | <menu label="&panel.sets.generate_html;" id="sets_html_menu"/> |
65 | </popup> | 65 | </popup> |
66 | </popupset> | 66 | </popupset> |
67 | 67 | ||
68 | <commandset id="cmdset_uploads"> | 68 | <commandset id="cmdset_uploads"> |
69 | <command id="cmd_uploads_clear" label="&panel.uploads.clear.label;" | 69 | <command id="cmd_uploads_clear" label="&panel.uploads.clear.label;" |
70 | oncommand="fireflix.uploads.on_clear()" /> | 70 | oncommand="fireflix.uploads.on_clear()" /> |
71 | <command id="cmd_uploads_upload" label="&panel.uploads.upload.label;" | 71 | <command id="cmd_uploads_upload" label="&panel.uploads.upload.label;" |
72 | oncommand="fireflix.uploads.on_upload()" /> | 72 | oncommand="fireflix.uploads.on_upload()" /> |
73 | <command id="cmd_uploads_remove" label="&panel.uploads.remove.label;" | 73 | <command id="cmd_uploads_remove" label="&panel.uploads.remove.label;" |
74 | oncommand="fireflix.uploads.on_remove()" /> | 74 | oncommand="fireflix.uploads.on_remove()" /> |
75 | <command id="cmd_uploads_add" label="&panel.uploads.add.label;" | 75 | <command id="cmd_uploads_add" label="&panel.uploads.add.label;" |
76 | oncommand="fireflix.uploads.on_add()" /> | 76 | oncommand="fireflix.uploads.on_add()" /> |
77 | </commandset> | 77 | </commandset> |
78 | 78 | ||
79 | <popupset> | 79 | <popupset> |
80 | <popup id="uploads_menu"> | 80 | <popup id="uploads_menu"> |
81 | <menuitem command="cmd_uploads_add"/> | 81 | <menuitem command="cmd_uploads_add"/> |
82 | <menuitem command="cmd_uploads_clear"/> | 82 | <menuitem command="cmd_uploads_clear"/> |
83 | <menuitem command="cmd_uploads_remove"/> | 83 | <menuitem command="cmd_uploads_remove"/> |
84 | <menuseparator/> | 84 | <menuseparator/> |
85 | <menuitem command="cmd_uploads_upload"/> | 85 | <menuitem command="cmd_uploads_upload"/> |
86 | <menuseparator/> | 86 | <menuseparator/> |
87 | <menu label="&panel.uploads.generate_html;" id="uploads_html_menu"/> | 87 | <menu label="&panel.uploads.generate_html;" id="uploads_html_menu"/> |
88 | </popup> | 88 | </popup> |
89 | </popupset> | 89 | </popupset> |
90 | 90 | ||
91 | <vbox class="wholething" flex="1"> | 91 | <vbox class="wholething" flex="1"> |
92 | 92 | ||
93 | <groupbox context="auth_menu"> | 93 | <groupbox context="auth_menu"> |
94 | <caption label="&panel.auth_info;"/> | 94 | <caption label="&panel.auth_info;"/> |
95 | <hbox> | 95 | <hbox> |
96 | <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" crop="end"/> |
97 | <button id="b_auth" command="cmd_auth_auth"/> | 97 | <button id="b_auth" command="cmd_auth_auth"/> |
98 | <button id="b_auth_done" command="cmd_auth_done" hidden="true"/> | 98 | <button id="b_auth_done" command="cmd_auth_done" hidden="true"/> |
99 | <button command="cmd_auth_open_flickr" | 99 | <button command="cmd_auth_open_flickr" |
100 | tooltiptext="&panel.auth.flickr.tip;"/> | 100 | tooltiptext="&panel.auth.flickr.tip;"/> |
101 | </hbox> | 101 | </hbox> |
102 | </groupbox> | 102 | </groupbox> |
103 | 103 | ||
104 | <tabbox flex="1" id="fireflix_tabs"> | 104 | <tabbox flex="1" id="fireflix_tabs"> |
105 | 105 | ||
106 | <tabs> | 106 | <tabs> |
107 | <tab label="&panel.tabs.search;"/> | 107 | <tab label="&panel.tabs.search;"/> |
108 | <tab label="&panel.tabs.sets;"/> | 108 | <tab label="&panel.tabs.sets;"/> |
109 | <tab label="&panel.tabs.tags;" hidden="true"/> <!-- TODO: --> | 109 | <tab label="&panel.tabs.tags;" hidden="true"/> <!-- TODO: --> |
110 | <tab id="tab_upload" label="&panel.tabs.upload;"/> | 110 | <tab id="tab_upload" label="&panel.tabs.upload;"/> |
111 | </tabs> | 111 | </tabs> |
112 | 112 | ||
113 | <tabpanels flex="1"> | 113 | <tabpanels flex="1"> |
114 | 114 | ||
115 | <tabpanel id="tabpanel_search" flex="1"> | 115 | <tabpanel id="tabpanel_search" flex="1"> |
116 | <vbox flex="1"> | 116 | <vbox flex="1"> |
117 | <groupbox class="search_params" orient="vertical" onkeypress="if(event.keyCode==event.DOM_VK_RETURN) fireflix.foundphotos.search_photos()"> | 117 | <groupbox class="search_params" orient="vertical" onkeypress="if(event.keyCode==event.DOM_VK_RETURN) fireflix.foundphotos.search_photos()"> |
118 | <hbox> | 118 | <hbox> |
119 | <label control="search_for" value="&panel.search.search_for.label;" | 119 | <label control="search_for" value="&panel.search.search_for.label;" |
120 | accesskey="s"/> | 120 | accesskey="s"/> |
121 | <textbox id="search_for" flex="1"/> | 121 | <textbox id="search_for" flex="1"/> |
122 | </hbox> | 122 | </hbox> |
123 | <hbox> | 123 | <hbox> |
124 | <checkbox id="search_tags" label="&panel.search.mode.tagsonly.label;" | 124 | <checkbox id="search_tags" label="&panel.search.mode.tagsonly.label;" |
125 | tooltiptext="&panel.search.mode.tagsonly.tip;" checked="false" | 125 | tooltiptext="&panel.search.mode.tagsonly.tip;" checked="false" |
126 | accesskey="t" /> | 126 | accesskey="t" /> |
127 | <checkbox id="search_mine" label="&panel.search.mode.mine.label;" checked="true" accesskey="m"/> | 127 | <checkbox id="search_mine" label="&panel.search.mode.mine.label;" checked="true" accesskey="m"/> |
128 | <spacer flex="1"/> | 128 | <spacer flex="1"/> |
129 | <button command="cmd_search"/> | 129 | <button command="cmd_search"/> |
130 | </hbox> | 130 | </hbox> |
131 | </groupbox> | 131 | </groupbox> |
132 | <tree id="searchresults" rows="2" flex="1" | 132 | <tree id="searchresults" rows="2" flex="1" |
133 | onselect="fireflix.foundphotos.on_select()" | 133 | onselect="fireflix.foundphotos.on_select()" |
134 | ondblclick="fireflix.foundphotos.on_cmd_open(event)" | 134 | ondblclick="fireflix.foundphotos.on_cmd_open(event)" |
135 | onkeypress="if(event.keyCode==event.DOM_VK_RETURN) | 135 | onkeypress="if(event.keyCode==event.DOM_VK_RETURN) |
136 | fireflix.foundphotos.on_cmd_open(event)"> | 136 | fireflix.foundphotos.on_cmd_open(event)"> |
137 | <treecols> | 137 | <treecols> |
138 | <treecol id="sr_title" label="&panel.search.col.title.label;" flex="2" crop="end" align="start" /> | 138 | <treecol id="sr_title" label="&panel.search.col.title.label;" flex="2" crop="end" align="start" /> |
139 | </treecols> | 139 | </treecols> |
140 | <treechildren/> | 140 | <treechildren/> |
141 | </tree> | 141 | </tree> |
142 | <groupbox id="searchresult_props" orient="horizontal" hidden="true"> | 142 | <groupbox id="searchresult_props" orient="horizontal" hidden="true"> |
143 | <vbox width="100" pack="center"> | 143 | <vbox width="100" pack="center"> |
144 | <hbox pack="center"> | 144 | <hbox pack="center"> |
145 | <image id="search_photo"/> | 145 | <image id="search_photo"/> |
146 | </hbox> | 146 | </hbox> |
147 | </vbox> | 147 | </vbox> |
148 | <vbox flex="1"> | 148 | <vbox flex="1"> |
149 | <label id="searchresult_title"/> | 149 | <label id="searchresult_title"/> |
150 | <textbox flex="1" multiline="true" class="plain" readonly="true" id="searchresult_description"/> | 150 | <textbox flex="1" multiline="true" class="plain" readonly="true" id="searchresult_description"/> |
151 | <hbox pack="end"> | 151 | <hbox pack="end"> |
152 | <button command="cmd_search_open"/> | 152 | <button command="cmd_search_open"/> |
153 | </hbox> | 153 | </hbox> |
154 | </vbox> | 154 | </vbox> |
155 | </groupbox> | 155 | </groupbox> |
156 | </vbox> | 156 | </vbox> |
157 | </tabpanel> | 157 | </tabpanel> |
158 | 158 | ||
159 | <tabpanel id="tabpanel_sets" flex="1" | 159 | <tabpanel id="tabpanel_sets" flex="1" |
160 | onkeypress="if(event.keyCode==event.DOM_VK_RETURN) | 160 | onkeypress="if(event.keyCode==event.DOM_VK_RETURN) |
161 | document.getElementById('setphotos').focus()"> | 161 | document.getElementById('setphotos').focus()"> |
162 | <vbox flex="1"> | 162 | <vbox flex="1"> |
163 | <tree id="setslist" rows="2" onselect="fireflix.photosets.on_select()" | 163 | <tree id="setslist" rows="2" onselect="fireflix.photosets.on_select()" |
164 | flex="1" context="sets_menu" | 164 | flex="1" context="sets_menu" |
165 | > | 165 | > |
166 | <treecols> | 166 | <treecols> |
167 | <treecol id="sl_name" label="&panel.sets.name.label;" flex="4" crop="end" align="start" tooltiptext="&panel.sets.name.tip;"/> | 167 | <treecol id="sl_name" label="&panel.sets.name.label;" flex="4" crop="end" align="start" tooltiptext="&panel.sets.name.tip;"/> |
168 | <splitter class="tree-splitter" /> | 168 | <splitter class="tree-splitter" /> |
169 | <treecol id="sl_photos" label="&panel.sets.photos.label;" flex="1" align="end" tooltiptext="&panel.sets.photos.tip;" /> | 169 | <treecol id="sl_photos" label="&panel.sets.photos.label;" flex="1" align="end" tooltiptext="&panel.sets.photos.tip;" /> |
170 | </treecols> | 170 | </treecols> |
171 | <treechildren/> | 171 | <treechildren/> |
172 | </tree> | 172 | </tree> |
173 | <hbox> | 173 | <hbox> |
174 | <button command="cmd_refresh_sets" /> | 174 | <button command="cmd_refresh_sets" /> |
175 | <button command="cmd_set_props" /> | 175 | <button command="cmd_set_props" /> |
176 | </hbox> | 176 | </hbox> |
177 | <tree id="setphotos" rows="2" onselect="fireflix.photoset.on_select()" | 177 | <tree id="setphotos" rows="2" onselect="fireflix.photoset.on_select()" |
178 | flex="1"> | 178 | flex="1"> |
179 | <treecols> | 179 | <treecols> |
180 | <treecol id="sp_title" label="&panel.setphotos.title.label;" flex="1" crop="end" align="start" tooltiptext="&panel.setphotos.title.tip;" /> | 180 | <treecol id="sp_title" label="&panel.setphotos.title.label;" flex="1" crop="end" align="start" tooltiptext="&panel.setphotos.title.tip;" /> |
181 | <splitter class="tree-splitter" /> | 181 | <splitter class="tree-splitter" /> |
182 | <treecol id="sp_taken" label="&panel.setphotos.taken.label;" crop="end" align="start" tooltiptext="&panel.setphotos.taken.tip;" hidden="true" /> | 182 | <treecol id="sp_taken" label="&panel.setphotos.taken.label;" crop="end" align="start" tooltiptext="&panel.setphotos.taken.tip;" hidden="true" /> |
183 | <treecol id="sp_upload" label="&panel.setphotos.upload.label;" crop="end" align="start" tooltiptext="&panel.setphotos.upload.tip;" hidden="true" /> | 183 | <treecol id="sp_upload" label="&panel.setphotos.upload.label;" crop="end" align="start" tooltiptext="&panel.setphotos.upload.tip;" hidden="true" /> |
184 | </treecols> | 184 | </treecols> |
185 | <treechildren/> | 185 | <treechildren/> |
186 | </tree> | 186 | </tree> |
187 | <groupbox id="set_photo_props" orient="horizontal"> | 187 | <groupbox id="set_photo_props" orient="horizontal"> |
188 | <vbox width="100" pack="center"> | 188 | <vbox width="100" pack="center"> |
189 | <hbox pack="center"> | 189 | <hbox pack="center"> |
190 | <image id="set_photo" hidden="true"/> | 190 | <image id="set_photo" hidden="true"/> |
191 | </hbox> | 191 | </hbox> |
192 | </vbox> | 192 | </vbox> |