]> git.donarmstrong.com Git - dactyl.git/blob - teledactyl/content/compose/dactyl.xul
Import 1.0b7.1 supporting Firefox up to 8.*
[dactyl.git] / teledactyl / content / compose / dactyl.xul
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!-- ***** BEGIN LICENSE BLOCK ***** {{{
4 // Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org>
5 //
6 // This work is licensed for reuse under an MIT license. Details are
7 // given in the LICENSE.txt file included with this file.
8 }}} ***** END LICENSE BLOCK ***** -->
9
10 <?xml-stylesheet href="chrome://dactyl/skin/dactyl.css" type="text/css"?>
11 <!DOCTYPE overlay SYSTEM "dactyl.dtd" [
12     <!ENTITY dactyl.content "chrome://dactyl/content/">
13 ]>
14
15 <overlay id="dactyl"
16     xmlns:dactyl="http://vimperator.org/namespaces/liberator"
17     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
18     xmlns:nc="http://home.netscape.com/NC-rdf#"
19     xmlns:html="http://www.w3.org/1999/xhtml"
20     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
21
22     <script type="application/x-javascript;version=1.8" src="&dactyl.content;dactyl-overlay.js"/>
23
24     <window id="&dactyl.mainWindow;">
25
26         <keyset id="mainKeyset">
27             <key id="key_open_vimbar" key=":" oncommand="dactyl.modules.commandline.open(':', '', dactyl.modules.modes.EX);" modifiers=""/>
28             <key id="key_stop" keycode="VK_ESCAPE" oncommand="dactyl.modules.events.onEscape();"/>
29             <!-- other keys are handled inside the event loop in events.js -->
30         </keyset>
31
32         <popupset>
33             <panel id="dactyl-visualbell" dactyl:highlight="Bell"/>
34         </popupset>
35
36         <!--this notifies us also of focus events in the XUL
37             from: http://developer.mozilla.org/en/docs/XUL_Tutorial:Updating_Commands !-->
38         <commandset id="onPentadactylFocus"
39             commandupdater="true"
40             events="focus"
41             oncommandupdate="if (dactyl.modules.events != undefined) dactyl.modules.events.onFocusChange(event);"/>
42         <commandset id="onPentadactylSelect"
43             commandupdater="true"
44             events="select"
45             oncommandupdate="if (dactyl.modules.events != undefined) dactyl.modules.events.onSelectionChange(event);"/>
46
47         <!-- As of Firefox 3.1pre, <iframe>.height changes do not seem to have immediate effect,
48              therefore we need to put them into a <vbox> for which that works just fine -->
49         <vbox class="dactyl-container" hidden="false" collapsed="true">
50             <iframe id="dactyl-multiline-output" src="chrome://dactyl/content/buffer.xhtml"
51                 flex="1" hidden="false" collapsed="false"
52                 onclick="dactyl.modules.commandline.onMultilineOutputEvent(event)"/>
53         </vbox>
54
55         <vbox class="dactyl-container" hidden="false" collapsed="true">
56             <iframe id="dactyl-completions" src="chrome://dactyl/content/buffer.xhtml"
57                 flex="1" hidden="false" collapsed="false"
58                 onclick="dactyl.modules.commandline.onMultilineOutputEvent(event)"/>
59         </vbox>
60
61         <stack orient="horizontal" align="stretch" class="dactyl-container" dactyl:highlight="CmdLine">
62             <textbox class="plain" id="dactyl-message" flex="1" readonly="true" dactyl:highlight="Normal"/>
63             <hbox id="dactyl-commandline" hidden="false" collapsed="true" class="dactyl-container" dactyl:highlight="Normal">
64                 <label class="plain" id="dactyl-commandline-prompt"  flex="0" crop="end" value="" collapsed="true"/>
65                 <textbox class="plain" id="dactyl-commandline-command" flex="1" type="timed" timeout="100"
66                     oninput="dactyl.modules.commandline.onEvent(event);"
67                     onkeyup="dactyl.modules.commandline.onEvent(event);"
68                     onfocus="dactyl.modules.commandline.onEvent(event);"
69                     onblur="dactyl.modules.commandline.onEvent(event);"/>
70             </hbox>
71         </stack>
72
73         <vbox class="dactyl-container" hidden="false" collapsed="false">
74             <textbox id="dactyl-multiline-input" class="plain" flex="1" rows="1" hidden="false" collapsed="true" multiline="true"
75                 onkeypress="dactyl.modules.commandline.onMultilineInputEvent(event);"
76                 oninput="dactyl.modules.commandline.onMultilineInputEvent(event);"
77                 onblur="dactyl.modules.commandline.onMultilineInputEvent(event);"/>
78         </vbox>
79
80     </window>
81
82     <statusbar id="status-bar" dactyl:highlight="StatusLine">
83         <hbox insertbefore="&dactyl.statusBefore;" insertafter="&dactyl.statusAfter;"
84               id="dactyl-statusline" flex="1" hidden="false" align="center">
85             <textbox class="plain" id="dactyl-statusline-field-url" readonly="false" flex="1" crop="end"/>
86             <label class="plain" id="dactyl-statusline-field-inputbuffer"    flex="0"/>
87             <label class="plain" id="dactyl-statusline-field-progress"       flex="0"/>
88             <label class="plain" id="dactyl-statusline-field-tabcount"       flex="0"/>
89             <label class="plain" id="dactyl-statusline-field-bufferposition" flex="0"/>
90         </hbox>
91         <!-- just hide them since other elements expect them -->
92         <statusbarpanel id="statusbar-display" hidden="true"/>
93         <statusbarpanel id="statusbar-progresspanel" hidden="true"/>
94     </statusbar>
95
96 </overlay>
97
98 <!-- vim: set fdm=marker sw=4 ts=4 et: -->