2011-10-26 09:02:08 +00:00
|
|
|
<?xml version="1.0"?>
|
2012-05-21 11:12:37 +00:00
|
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
2011-10-26 09:02:08 +00:00
|
|
|
<!DOCTYPE window [
|
|
|
|
<!ENTITY % styleEditorDTD SYSTEM "chrome://browser/locale/devtools/styleeditor.dtd" >
|
|
|
|
%styleEditorDTD;
|
|
|
|
]>
|
|
|
|
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
|
|
|
<?xml-stylesheet href="chrome://browser/content/splitview.css" type="text/css"?>
|
2011-12-19 14:14:58 +00:00
|
|
|
<?xml-stylesheet href="chrome://browser/skin/devtools/common.css" type="text/css"?>
|
2011-10-26 09:02:08 +00:00
|
|
|
<?xml-stylesheet href="chrome://browser/skin/devtools/splitview.css" type="text/css"?>
|
|
|
|
<?xml-stylesheet href="chrome://browser/content/styleeditor.css" type="text/css"?>
|
|
|
|
<?xml-stylesheet href="chrome://browser/skin/devtools/styleeditor.css" type="text/css"?>
|
2012-02-27 18:08:45 +00:00
|
|
|
<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
|
|
|
|
<?xul-overlay href="chrome://browser/content/source-editor-overlay.xul"?>
|
2011-10-26 09:02:08 +00:00
|
|
|
<xul:window xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
id="style-editor-chrome-window"
|
|
|
|
title="&window.title;"
|
|
|
|
windowtype="Tools:StyleEditor"
|
|
|
|
width="800" height="280"
|
|
|
|
persist="screenX screenY width height sizemode">
|
|
|
|
<xul:script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
|
|
|
|
|
2012-02-27 18:08:45 +00:00
|
|
|
<xul:popupset id="style-editor-popups">
|
2012-03-08 17:37:35 +00:00
|
|
|
<xul:menupopup id="sourceEditorContextMenu"
|
|
|
|
onpopupshowing="goUpdateSourceEditorMenuItems()">
|
|
|
|
<xul:menuitem id="se-cMenu-undo"/>
|
|
|
|
<xul:menuseparator/>
|
|
|
|
<xul:menuitem id="se-cMenu-cut"/>
|
|
|
|
<xul:menuitem id="se-cMenu-copy"/>
|
|
|
|
<xul:menuitem id="se-cMenu-paste"/>
|
|
|
|
<xul:menuitem id="se-cMenu-delete"/>
|
|
|
|
<xul:menuseparator/>
|
|
|
|
<xul:menuitem id="se-cMenu-selectAll"/>
|
|
|
|
<xul:menuseparator/>
|
|
|
|
<xul:menuitem id="se-cMenu-find"/>
|
|
|
|
<xul:menuitem id="se-cMenu-findAgain"/>
|
|
|
|
<xul:menuseparator/>
|
|
|
|
<xul:menuitem id="se-cMenu-gotoLine"/>
|
|
|
|
</xul:menupopup>
|
2012-02-27 18:08:45 +00:00
|
|
|
</xul:popupset>
|
|
|
|
|
|
|
|
<xul:commandset id="editMenuCommands"/>
|
|
|
|
<xul:commandset id="sourceEditorCommands"/>
|
2012-01-25 01:45:00 +00:00
|
|
|
<xul:commandset id="style-editor-commandset">
|
|
|
|
<xul:command id="style-editor-cmd-close" oncommand="window.close();"/>
|
|
|
|
</xul:commandset>
|
|
|
|
|
2012-02-27 18:08:45 +00:00
|
|
|
<xul:keyset id="sourceEditorKeys"/>
|
2012-01-25 01:45:00 +00:00
|
|
|
<xul:keyset id="style-editor-keyset">
|
|
|
|
<xul:key id="style-editor-key-close"
|
|
|
|
key="&closeCmd.key;"
|
|
|
|
command="style-editor-cmd-close"
|
|
|
|
modifiers="accel"/>
|
|
|
|
</xul:keyset>
|
|
|
|
|
2012-01-12 16:26:31 +00:00
|
|
|
<xul:box id="style-editor-chrome" class="splitview-root loading">
|
2012-01-25 03:02:00 +00:00
|
|
|
<xul:box class="splitview-controller">
|
2011-10-26 09:02:08 +00:00
|
|
|
<xul:box class="splitview-main">
|
2011-12-19 14:14:58 +00:00
|
|
|
<xul:toolbar class="devtools-toolbar">
|
|
|
|
<xul:toolbarbutton class="style-editor-newButton devtools-toolbarbutton"
|
2011-10-26 09:02:08 +00:00
|
|
|
accesskey="&newButton.accesskey;"
|
|
|
|
tooltiptext="&newButton.tooltip;"
|
2012-01-12 16:26:31 +00:00
|
|
|
label="&newButton.label;"
|
|
|
|
disabled="true"/>
|
2011-12-19 14:14:58 +00:00
|
|
|
<xul:toolbarbutton class="style-editor-importButton devtools-toolbarbutton"
|
2011-10-26 09:02:08 +00:00
|
|
|
accesskey="&importButton.accesskey;"
|
|
|
|
tooltiptext="&importButton.tooltip;"
|
2012-01-12 16:26:31 +00:00
|
|
|
label="&importButton.label;"
|
|
|
|
disabled="true"/>
|
2011-12-19 14:14:58 +00:00
|
|
|
</xul:toolbar>
|
2011-10-26 09:02:08 +00:00
|
|
|
</xul:box>
|
2012-01-25 03:02:00 +00:00
|
|
|
<xul:box id="splitview-resizer-target" class="splitview-nav-container"
|
|
|
|
persist="width height">
|
2011-10-26 09:02:08 +00:00
|
|
|
<ol class="splitview-nav" tabindex="0"></ol>
|
|
|
|
<div class="splitview-nav placeholder empty">
|
|
|
|
<p><strong>&noStyleSheet.label;</strong></p>
|
|
|
|
<p>&noStyleSheet-tip-start.label;
|
|
|
|
<a href="#"
|
|
|
|
class="style-editor-newButton">&noStyleSheet-tip-action.label;</a>
|
|
|
|
&noStyleSheet-tip-end.label;</p>
|
|
|
|
</div>
|
|
|
|
</xul:box> <!-- .splitview-nav-container -->
|
|
|
|
</xul:box> <!-- .splitview-controller -->
|
2011-12-19 14:14:58 +00:00
|
|
|
<xul:box class="splitview-side-details"/>
|
2011-10-26 09:02:08 +00:00
|
|
|
|
|
|
|
<div id="splitview-templates" hidden="true">
|
|
|
|
<li id="splitview-tpl-summary-stylesheet" tabindex="0">
|
|
|
|
<a class="stylesheet-enabled" tabindex="0" href="#"
|
|
|
|
title="&visibilityToggle.tooltip;"
|
|
|
|
accesskey="&saveButton.accesskey;"></a>
|
|
|
|
<hgroup class="stylesheet-info">
|
2012-01-23 19:26:03 +00:00
|
|
|
<h1><a class="stylesheet-name" href="#"><xul:label crop="start"/></a></h1>
|
2011-12-19 14:14:58 +00:00
|
|
|
<div class="stylesheet-more">
|
|
|
|
<h3 class="stylesheet-title"></h3>
|
2011-10-26 09:02:08 +00:00
|
|
|
<h3 class="stylesheet-rule-count"></h3>
|
2011-12-19 14:14:58 +00:00
|
|
|
<h3 class="stylesheet-error-message"></h3>
|
|
|
|
<xul:spacer/>
|
|
|
|
<h3><a class="stylesheet-saveButton" href="#"
|
2011-10-26 09:02:08 +00:00
|
|
|
title="&saveButton.tooltip;"
|
2011-12-19 14:14:58 +00:00
|
|
|
accesskey="&saveButton.accesskey;">&saveButton.label;</a></h3>
|
|
|
|
</div>
|
|
|
|
</hgroup>
|
2011-10-26 09:02:08 +00:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<xul:box id="splitview-tpl-details-stylesheet" class="splitview-details">
|
2011-12-19 14:14:58 +00:00
|
|
|
<xul:resizer class="splitview-portrait-resizer"
|
2012-01-25 03:02:00 +00:00
|
|
|
dir="bottom"
|
|
|
|
element="splitview-resizer-target"/>
|
2011-12-19 14:14:58 +00:00
|
|
|
<xul:toolbar id="splitview-details-toolbar" class="devtools-toolbar">
|
|
|
|
<xul:resizer class="splitview-landscape-resizer"
|
|
|
|
dir="bottomend"
|
2012-01-25 03:02:00 +00:00
|
|
|
element="splitview-resizer-target"/>
|
2011-12-19 14:14:58 +00:00
|
|
|
</xul:toolbar>
|
|
|
|
<xul:box class="stylesheet-editor-input textbox"
|
|
|
|
data-placeholder="&editorTextbox.placeholder;"/>
|
2011-10-26 09:02:08 +00:00
|
|
|
</xul:box>
|
|
|
|
</div> <!-- #splitview-templates -->
|
|
|
|
</xul:box> <!-- .splitview-root -->
|
|
|
|
|
|
|
|
<xul:script type="application/javascript"><![CDATA[
|
|
|
|
Components.utils.import("resource:///modules/devtools/StyleEditorChrome.jsm");
|
|
|
|
let chromeRoot = document.getElementById("style-editor-chrome");
|
2012-02-10 13:39:47 +00:00
|
|
|
let args = window.arguments[0].wrappedJSObject;
|
|
|
|
let contentWindow = args.contentWindow;
|
2011-10-26 09:02:08 +00:00
|
|
|
let chrome = new StyleEditorChrome(chromeRoot, contentWindow);
|
2012-02-10 13:39:47 +00:00
|
|
|
chrome.selectStyleSheet(args.selectedStyleSheet, args.line, args.col);
|
2011-10-26 09:02:08 +00:00
|
|
|
window.styleEditorChrome = chrome;
|
|
|
|
]]></xul:script>
|
|
|
|
</xul:window>
|