1 <?xml version="1.0" encoding="UTF-8"?>
3 <!-- ***** BEGIN LICENSE BLOCK ***** {{{
4 // Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org>
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 ***** -->
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/">
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">
22 <script type="application/x-javascript;version=1.8" src="&dactyl.content;dactyl-overlay.js"/>
24 <window id="&dactyl.mainWindow;">
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 -->
33 <panel id="dactyl-visualbell" dactyl:highlight="Bell"/>
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"
41 oncommandupdate="if (dactyl.modules.events != undefined) dactyl.modules.events.onFocusChange(event);"/>
42 <commandset id="onPentadactylSelect"
45 oncommandupdate="if (dactyl.modules.events != undefined) dactyl.modules.events.onSelectionChange(event);"/>
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)"/>
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)"/>
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);"/>
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);"/>
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"/>
91 <!-- just hide them since other elements expect them -->
92 <statusbarpanel id="statusbar-display" hidden="true"/>
93 <statusbarpanel id="statusbar-progresspanel" hidden="true"/>
98 <!-- vim: set fdm=marker sw=4 ts=4 et: -->