mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-28 05:32:27 +01:00
--HG-- rename : xulmus/AUTHORS => melodactyl/AUTHORS rename : xulmus/Makefile => melodactyl/Makefile rename : xulmus/NEWS => melodactyl/NEWS rename : xulmus/TODO => melodactyl/TODO rename : xulmus/chrome.manifest => melodactyl/chrome.manifest rename : xulmus/components/commandline-handler.js => melodactyl/components/commandline-handler.js rename : xulmus/components/protocols.js => melodactyl/components/protocols.js rename : xulmus/content/config.js => melodactyl/content/config.js rename : xulmus/content/dactyl.dtd => melodactyl/content/dactyl.dtd rename : xulmus/content/library.js => melodactyl/content/library.js rename : xulmus/content/logo.png => melodactyl/content/logo.png rename : xulmus/content/xulmus.xul => melodactyl/content/melodactyl.xul rename : xulmus/content/player.js => melodactyl/content/player.js rename : xulmus/content/xulmus.svg => melodactyl/content/xulmus.svg rename : xulmus/contrib/vim/Makefile => melodactyl/contrib/vim/Makefile rename : xulmus/contrib/vim/ftdetect/xulmus.vim => melodactyl/contrib/vim/ftdetect/melodactyl.vim rename : xulmus/contrib/vim/mkvimball.txt => melodactyl/contrib/vim/mkvimball.txt rename : xulmus/contrib/vim/syntax/xulmus.vim => melodactyl/contrib/vim/syntax/melodactyl.vim rename : xulmus/defaults/preferences/dactyl.js => melodactyl/defaults/preferences/dactyl.js rename : xulmus/install.rdf => melodactyl/install.rdf rename : xulmus/locale/en-US/all.xml => melodactyl/locale/en-US/all.xml rename : xulmus/locale/en-US/autocommands.xml => melodactyl/locale/en-US/autocommands.xml rename : xulmus/locale/en-US/browsing.xml => melodactyl/locale/en-US/browsing.xml rename : xulmus/locale/en-US/dactyl.dtd => melodactyl/locale/en-US/dactyl.dtd rename : xulmus/locale/en-US/gui.xml => melodactyl/locale/en-US/gui.xml rename : xulmus/locale/en-US/intro.xml => melodactyl/locale/en-US/intro.xml rename : xulmus/locale/en-US/player.xml => melodactyl/locale/en-US/player.xml rename : xulmus/locale/en-US/tabs.xml => melodactyl/locale/en-US/tabs.xml rename : xulmus/skin/icon.png => melodactyl/skin/icon.png
127 lines
7.3 KiB
XML
127 lines
7.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
||
<!-- ***** BEGIN LICENSE BLOCK ***** {{{
|
||
Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org>
|
||
|
||
This work is licensed for reuse under an MIT license. Details are
|
||
given in the LICENSE.txt file included with this file.
|
||
}}} ***** END LICENSE BLOCK ***** -->
|
||
|
||
<?xml-stylesheet href="chrome://dactyl/skin/dactyl.css" type="text/css"?>
|
||
<!DOCTYPE overlay SYSTEM "dactyl.dtd" [
|
||
<!ENTITY and "&&">
|
||
<!ENTITY dactyl.content "chrome://dactyl/content/">
|
||
<!ENTITY commandline "if (window.dactyl) return dactyl.modules.commandline">
|
||
<!ENTITY events "if (window.dactyl ∧ dactyl.modules.loaded.events) return dactyl.modules.events">
|
||
<!ENTITY status "dactyl-statusline-field-">
|
||
]>
|
||
|
||
<overlay id="dactyl"
|
||
xmlns:dactyl="http://vimperator.org/namespaces/liberator"
|
||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||
xmlns:nc="http://home.netscape.com/NC-rdf#"
|
||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||
|
||
<script type="application/x-javascript;version=1.8" src="&dactyl.content;dactyl-overlay.js"/>
|
||
|
||
<window id="&dactyl.mainWindow;">
|
||
<keyset id="mainKeyset">
|
||
<!-- Why do we need this? ––Kris -->
|
||
<key id="key_stop" keycode="VK_ESCAPE" oncommand="&events;.onEscape();"/>
|
||
<!-- other keys are handled inside the event loop in events.js -->
|
||
</keyset>
|
||
|
||
<popupset>
|
||
<panel id="dactyl-visualbell" dactyl:highlight="Bell"
|
||
noautohide="true" noautofocus="true"/>
|
||
|
||
<menupopup id="dactyl-contextmenu"
|
||
onpopupshowing="return event.target != this || document.popupNode instanceof HTMLAnchorElement;">
|
||
<menuitem id="dactyl-context-copylink"
|
||
label="Copy Link Location"
|
||
oncommand="goDoCommand('cmd_copyLink');"/>
|
||
</menupopup>
|
||
</popupset>
|
||
|
||
<!--this notifies us also of focus events in the XUL
|
||
from: http://developer.mozilla.org/en/docs/XUL_Tutorial:Updating_Commands !-->
|
||
<!-- I don't think we really need this. ––Kris -->
|
||
<commandset id="onPentadactylFocus" commandupdater="true" events="focus"
|
||
oncommandupdate="&events;.onFocusChange(event);"/>
|
||
<commandset id="onPentadactylSelect" commandupdater="true" events="select"
|
||
oncommandupdate="&events;.onSelectionChange(event);"/>
|
||
</window>
|
||
|
||
<vbox id="&dactyl.commandContainer;">
|
||
|
||
<vbox class="dactyl-container" hidden="false" collapsed="true">
|
||
<iframe id="dactyl-multiline-output" src="chrome://dactyl/content/buffer.xhtml"
|
||
flex="1" hidden="false" collapsed="false"
|
||
contextmenu="dactyl-contextmenu"
|
||
onclick="&commandline;.onMultilineOutputEvent(event)"/>
|
||
</vbox>
|
||
|
||
<vbox class="dactyl-container" hidden="false" collapsed="true">
|
||
<iframe class="dactyl-completions" id="dactyl-completions-dactyl-commandline" src="chrome://dactyl/content/buffer.xhtml"
|
||
contextmenu="dactyl-contextmenu"
|
||
flex="1" hidden="false" collapsed="false"
|
||
onclick="&commandline;.onMultilineOutputEvent(event)"/>
|
||
</vbox>
|
||
|
||
<vbox id="dactyl-completions-&status;commandline-container" class="dactyl-container" hidden="false" collapsed="true" insertbefore="addon-bar,status-bar">
|
||
<iframe class="dactyl-completions" id="dactyl-completions-&status;commandline" src="chrome://dactyl/content/buffer.xhtml"
|
||
contextmenu="dactyl-contextmenu"
|
||
flex="1" hidden="false" collapsed="false"
|
||
onclick="&commandline;.onMultilineOutputEvent(event)"/>
|
||
</vbox>
|
||
|
||
<stack orient="horizontal" align="stretch" class="dactyl-container" id="dactyl-container" dactyl:highlight="CmdLine CmdCmdLine">
|
||
<textbox class="plain" id="dactyl-mode" flex="1" readonly="true"/>
|
||
<textbox class="plain" id="dactyl-message" flex="1" readonly="true"/>
|
||
|
||
<hbox id="dactyl-commandline" hidden="false" class="dactyl-container" dactyl:highlight="Normal CmdNormal" collapsed="true">
|
||
<label id="dactyl-commandline-prompt" class="dactyl-commandline-prompt plain" flex="0" crop="end" value="" collapsed="true"/>
|
||
<textbox id="dactyl-commandline-command" class="dactyl-commandline-command plain" flex="1" type="input" timeout="100"
|
||
oninput="&commandline;.onEvent(event);" onkeyup="&commandline;.onEvent(event);"
|
||
onfocus="&commandline;.onEvent(event);" onblur="&commandline;.onEvent(event);"/>
|
||
</hbox>
|
||
</stack>
|
||
|
||
<vbox class="dactyl-container" hidden="false" collapsed="false" dactyl:highlight="CmdLine">
|
||
<textbox id="dactyl-multiline-input" class="plain" flex="1" rows="1" hidden="false" collapsed="true" multiline="true"
|
||
dactyl:highlight="Normal"
|
||
onkeypress="&commandline;.onMultilineInputEvent(event);" oninput="&commandline;.onMultilineInputEvent(event);"
|
||
onblur="&commandline;.onMultilineInputEvent(event);"/>
|
||
</vbox>
|
||
</vbox>
|
||
|
||
<statusbar id="status-bar" dactyl:highlight="StatusLine">
|
||
<hbox insertbefore="&dactyl.statusBefore;" insertafter="&dactyl.statusAfter;"
|
||
style="background: inherit;" id="&status;container" flex="1" hidden="false" align="center">
|
||
<stack orient="horizontal" align="stretch" flex="1" class="dactyl-container" dactyl:highlight="CmdLine StatusCmdLine">
|
||
<textbox class="plain" id="&status;url" flex="1" readonly="false" crop="end"/>
|
||
<textbox class="plain" id="&status;mode" flex="1" readonly="true" crop="end" collapsed="true"/>
|
||
<textbox class="plain" id="&status;message" flex="1" readonly="true" collapsed="true" dactyl:highlight="Normal StatusNormal"/>
|
||
|
||
<hbox id="&status;commandline" hidden="false" class="dactyl-container" dactyl:highlight="Normal StatusNormal" collapsed="true">
|
||
<label id="&status;commandline-prompt" class="dactyl-commandline-prompt plain" flex="0" crop="end" value="" collapsed="true"/>
|
||
<textbox id="&status;commandline-command" class="dactyl-commandline-command plain" flex="1" type="text" timeout="100"
|
||
oninput="&commandline;.onEvent(event);" onkeyup="&commandline;.onEvent(event);"
|
||
onfocus="&commandline;.onEvent(event);" onblur="&commandline;.onEvent(event);"/>
|
||
</hbox>
|
||
</stack>
|
||
<label class="plain" id="&status;inputbuffer" flex="0"/>
|
||
<label class="plain" id="&status;progress" flex="0"/>
|
||
<label class="plain" id="&status;tabcount" flex="0"/>
|
||
<label class="plain" id="&status;bufferposition" flex="0"/>
|
||
<label class="plain" id="&status;zoomlevel" flex="0"/>
|
||
</hbox>
|
||
<!-- just hide them since other elements expect them -->
|
||
<statusbarpanel id="statusbar-display" hidden="true"/>
|
||
<statusbarpanel id="statusbar-progresspanel" hidden="true"/>
|
||
</statusbar>
|
||
</overlay>
|
||
|
||
<!-- vim: set fdm=marker sw=4 ts=4 et: -->
|