comparison chrome/content/tinyurl_dialog.xul @ 0:c14d52a3b2fe

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