annotate chrome/content/tinyurl_dialog.xul @ 1:bebb38edfc61

removed dangling spaces.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 11 Aug 2008 20:36:59 +0900
parents c14d52a3b2fe
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
1 <?xml version="1.0"?>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
2 <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
3
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
4 <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
5 id="tinyurlDialog" title="TinyUrl Creator"
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
6 buttons="cancel, accept"
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
7 onload="tinyurl_load();"
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
8 ondialogaccept="document.getElementById('tinyurlDialogMain').style.cursor = 'wait'; tinyurl_createNew(); return false;"
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
9 ondialogcancel="if(opener != null)opener.focus(); return true;"
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
10 persist="width height" style="padding: 1px; margin: 0;"
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
11 buttonpack="center" buttonalign="center">
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
12 <script type="application/x-javascript" src="chrome://tinyurl/content/tinyurl.js"></script>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
13 <script type="application/x-javascript" src="chrome://tinyurl/content/saved.js"></script>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
14
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
15 <keyset>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
16 <key id="copy-key" key="c" modifiers="control" oncommand="tinyurl_copy_command();" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
17 <key id="close-key" key="w" modifiers="accel" oncommand="self.close();" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
18 </keyset>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
19
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
20 <vbox flex="1" style="overflow: auto; padding: 7px;">
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
21 <tabbox id="tinyurl-tabs" flex="1">
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
22 <tabs>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
23 <tab label="Create" id="tinyurl-create-tab" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
24 <tab label="Saved" id="tinyurl-saved-tab" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
25 </tabs>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
26 <tabpanels flex="1">
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
27
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
28 <!-- Create TinyUrl -->
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
29 <tabpanel id="tinyurl-create-tab" orient="vertical" flex="1" align="center">
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
30 <grid flex="1" id="tinyurlDialogMain">
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
31 <rows>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
32 <row align="center">
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
33 <label value="Long URL:" style="font-weight: bold;"/>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
34 <textbox id="longurl-field" value="" flex="1" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
35 <button id="create-button" label="Get Tiny Url" dlgtype="accept" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
36 </row>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
37 <row align="center">
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
38 <label value="Tiny URL:" style="font-weight: bold;" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
39 <textbox id="tinyurl-field" value="" flex="1" readonly="true" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
40 <button id="copy-button" label="Copy" oncommand="tinyurl_copy()" disabled="true" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
41 <button id="save-button" label="Save" oncommand="" disabled="true" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
42 </row>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
43 </rows>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
44 </grid>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
45 </tabpanel>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
46
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
47 <!-- Veiw Saved TinyUrl's -->
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
48 <tabpanel id="tinyurl-saved-tabpanel" orient="vertical" flex="1">
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
49 <tree id="saved-tree" flex="2" rows="5" seltype="single" onselect="tinyurl_saved_disable(false)" hidecolumnpicker="false" stlye="overflow: auto;">
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
50 <treecols>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
51 <treecol label="Title" id="title-col" flex="3" fixed="false" persist="width ordinal hidden" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
52 <splitter class="tree-splitter" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
53 <treecol label="Tiny Url" id="tiny-col" flex="2" fixed="false" persist="width ordinal hidden" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
54 <splitter class="tree-splitter" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
55 <treecol label="Real Url" id="real-col" flex="3" fixed="false" hidden="true" persist="width ordinal hidden" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
56 </treecols>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
57 <treechildren id="saved-items">
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
58 <!--
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
59 <treeitem container="true" open="true">
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
60 <treerow>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
61 <treecell label="Test1"/>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
62 </treerow>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
63 </treeitem>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
64 -->
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
65 </treechildren>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
66 </tree>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
67 <spacer height="5" width="1" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
68 <hbox pack="center" align="center">
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
69 <button id="go-saved-button" label="Go" disabled="true" oncommand="tinyurl_saved_go();" image="chrome://tinyurl/content/icons/go_off.png" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
70 <button id="copy-saved-button" label="Copy" disabled="true" oncommand="tinyurl_saved_copy()" image="chrome://tinyurl/content/icons/copy_off.png" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
71 <button id="edit-saved-button" label="View / Edit" disabled="true" oncommand="tinyurl_saved_openEdit();" image="chrome://tinyurl/content/icons/edit_off.png" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
72 <button id="remove-saved-button" label="Remove" disabled="true" oncommand="tinyurl_saved_remove();" image="chrome://tinyurl/content/icons/remove_off.png" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
73 </hbox>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
74 </tabpanel>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
75 </tabpanels>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
76 </tabbox>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
77 </vbox>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
78
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
79 <hbox>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
80 <hbox pack="center" align="center" flex="2">
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
81 <label id="disclaimer_1" value="This extension uses" style="color: #666; font-size: xx-small;" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
82 <label id="disclaimer_2" value="http://tinyurl.com" style="color: #00F; font-size: xx-small; margin-left: 0; text-decoration: underline; cursor: pointer;" onclick="tinyurl_gotoTinyUrl();" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
83 <label id="disclaimer_3" value="to generate URLs" style="color: #666; font-size: xx-small; margin-left: 0;" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
84 </hbox>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
85 <resizer id="windowResizer" dir="bottomright" />
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
86 </hbox>
c14d52a3b2fe initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
87 </dialog>