2011-10-26 02:02:08 -07:00
|
|
|
<?xml version="1.0"?>
|
2012-05-21 04:12:37 -07: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 02:02:08 -07:00
|
|
|
<!DOCTYPE window [
|
|
|
|
<!ENTITY % styleEditorDTD SYSTEM "chrome://browser/locale/devtools/styleeditor.dtd" >
|
|
|
|
%styleEditorDTD;
|
2013-11-19 15:53:13 -08:00
|
|
|
<!ENTITY % editMenuStrings SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
|
|
|
|
%editMenuStrings;
|
|
|
|
<!ENTITY % sourceEditorStrings SYSTEM "chrome://browser/locale/devtools/sourceeditor.dtd">
|
|
|
|
%sourceEditorStrings;
|
2011-10-26 02:02:08 -07:00
|
|
|
]>
|
2013-11-19 15:53:13 -08:00
|
|
|
|
2011-10-26 02:02:08 -07:00
|
|
|
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
2013-04-30 08:56:00 -07:00
|
|
|
<?xml-stylesheet href="chrome://browser/content/devtools/splitview.css" type="text/css"?>
|
2011-12-19 06:14:58 -08:00
|
|
|
<?xml-stylesheet href="chrome://browser/skin/devtools/common.css" type="text/css"?>
|
2011-10-26 02:02:08 -07:00
|
|
|
<?xml-stylesheet href="chrome://browser/skin/devtools/splitview.css" type="text/css"?>
|
2013-04-30 08:56:00 -07:00
|
|
|
<?xml-stylesheet href="chrome://browser/content/devtools/styleeditor.css" type="text/css"?>
|
2011-10-26 02:02:08 -07:00
|
|
|
<?xml-stylesheet href="chrome://browser/skin/devtools/styleeditor.css" type="text/css"?>
|
2012-02-27 10:08:45 -08:00
|
|
|
<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
|
2013-11-19 15:53:13 -08:00
|
|
|
|
2011-10-26 02:02:08 -07:00
|
|
|
<xul:window xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
2012-11-30 00:07:59 -08:00
|
|
|
id="style-editor-chrome-window">
|
2011-10-26 02:02:08 -07:00
|
|
|
|
2013-11-13 10:02:05 -08:00
|
|
|
<script type="application/javascript;version=1.8"
|
|
|
|
src="chrome://browser/content/devtools/theme-switching.js"/>
|
2012-11-30 00:07:59 -08:00
|
|
|
<xul:script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
|
2013-11-19 15:53:13 -08:00
|
|
|
<xul:script type="application/javascript">
|
|
|
|
function goUpdateSourceEditorMenuItems() {
|
|
|
|
goUpdateGlobalEditMenuItems();
|
|
|
|
|
|
|
|
['cmd_undo', 'cmd_redo', 'cmd_cut', 'cmd_paste',
|
|
|
|
'cmd_delete', 'cmd_find', 'cmd_findAgain'].forEach(goUpdateCommand);
|
|
|
|
}
|
|
|
|
</xul:script>
|
2012-02-27 10:08:45 -08:00
|
|
|
|
2012-11-30 00:07:59 -08:00
|
|
|
<xul:popupset id="style-editor-popups">
|
|
|
|
<xul:menupopup id="sourceEditorContextMenu"
|
|
|
|
onpopupshowing="goUpdateSourceEditorMenuItems()">
|
2013-11-19 15:53:13 -08:00
|
|
|
<xul:menuitem id="cMenu_undo"/>
|
2012-11-30 00:07:59 -08:00
|
|
|
<xul:menuseparator/>
|
2013-11-19 15:53:13 -08:00
|
|
|
<xul:menuitem id="cMenu_cut"/>
|
|
|
|
<xul:menuitem id="cMenu_copy"/>
|
|
|
|
<xul:menuitem id="cMenu_paste"/>
|
|
|
|
<xul:menuitem id="cMenu_delete"/>
|
2012-11-30 00:07:59 -08:00
|
|
|
<xul:menuseparator/>
|
2013-11-19 15:53:13 -08:00
|
|
|
<xul:menuitem id="cMenu_selectAll"/>
|
2012-11-30 00:07:59 -08:00
|
|
|
<xul:menuseparator/>
|
2013-11-19 15:53:13 -08:00
|
|
|
<xul:menuitem id="se-menu-find"
|
|
|
|
label="&findCmd.label;" accesskey="&findCmd.accesskey;" command="cmd_find"/>
|
|
|
|
<xul:menuitem id="cMenu_findAgain"/>
|
2012-11-30 00:07:59 -08:00
|
|
|
<xul:menuseparator/>
|
2013-11-19 15:53:13 -08:00
|
|
|
<xul:menuitem id="se-menu-gotoLine"
|
|
|
|
label="&gotoLineCmd.label;"
|
|
|
|
accesskey="&gotoLineCmd.accesskey;"
|
|
|
|
key="key_gotoLine"
|
|
|
|
command="cmd_gotoLine"/>
|
2012-11-30 00:07:59 -08:00
|
|
|
</xul:menupopup>
|
|
|
|
</xul:popupset>
|
2012-01-24 17:45:00 -08:00
|
|
|
|
2012-11-30 00:07:59 -08:00
|
|
|
<xul:commandset id="editMenuCommands"/>
|
2013-11-19 15:53:13 -08:00
|
|
|
|
|
|
|
<xul:commandset id="sourceEditorCommands">
|
|
|
|
<xul:command id="cmd_gotoLine" oncommand="goDoCommand('cmd_gotoLine')"/>
|
|
|
|
<xul:command id="cmd_find" oncommand="goDoCommand('cmd_find')"/>
|
|
|
|
<xul:command id="cmd_findAgain" oncommand="goDoCommand('cmd_findAgain')"/>
|
|
|
|
</xul:commandset>
|
2012-01-24 17:45:00 -08:00
|
|
|
|
2012-11-30 00:07:59 -08:00
|
|
|
<xul:keyset id="sourceEditorKeys"/>
|
2011-10-26 02:02:08 -07:00
|
|
|
|
2012-11-30 00:07:59 -08:00
|
|
|
<xul:box id="style-editor-chrome" class="splitview-root loading">
|
|
|
|
<xul:box class="splitview-controller">
|
|
|
|
<xul:box class="splitview-main">
|
|
|
|
<xul:toolbar class="devtools-toolbar">
|
|
|
|
<xul:toolbarbutton class="style-editor-newButton devtools-toolbarbutton"
|
|
|
|
accesskey="&newButton.accesskey;"
|
|
|
|
tooltiptext="&newButton.tooltip;"
|
2013-04-25 09:46:13 -07:00
|
|
|
label="&newButton.label;"/>
|
2012-11-30 00:07:59 -08:00
|
|
|
<xul:toolbarbutton class="style-editor-importButton devtools-toolbarbutton"
|
|
|
|
accesskey="&importButton.accesskey;"
|
|
|
|
tooltiptext="&importButton.tooltip;"
|
2013-04-25 09:46:13 -07:00
|
|
|
label="&importButton.label;"/>
|
2012-11-30 00:07:59 -08:00
|
|
|
</xul:toolbar>
|
|
|
|
</xul:box>
|
|
|
|
<xul:box id="splitview-resizer-target" class="splitview-nav-container"
|
2013-06-04 20:48:00 -07:00
|
|
|
persist="height">
|
2012-11-30 00:07:59 -08: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>
|
2011-12-19 06:14:58 -08:00
|
|
|
</div>
|
2012-11-30 00:07:59 -08:00
|
|
|
</xul:box> <!-- .splitview-nav-container -->
|
|
|
|
</xul:box> <!-- .splitview-controller -->
|
2013-06-04 20:48:00 -07:00
|
|
|
<xul:splitter class="devtools-side-splitter splitview-landscape-splitter"/>
|
2012-11-30 00:07:59 -08:00
|
|
|
<xul:box class="splitview-side-details"/>
|
2011-10-26 02:02:08 -07:00
|
|
|
|
2012-11-30 00:07:59 -08:00
|
|
|
<div id="splitview-templates" hidden="true">
|
|
|
|
<li id="splitview-tpl-summary-stylesheet" tabindex="0">
|
2013-11-05 11:24:16 -08:00
|
|
|
<xul:label class="stylesheet-enabled" tabindex="0"
|
|
|
|
tooltiptext="&visibilityToggle.tooltip;"
|
|
|
|
accesskey="&saveButton.accesskey;"></xul:label>
|
2012-11-30 00:07:59 -08:00
|
|
|
<hgroup class="stylesheet-info">
|
2013-03-27 01:01:00 -07:00
|
|
|
<h1><a class="stylesheet-name" tabindex="0"><xul:label crop="start"/></a></h1>
|
2012-11-30 00:07:59 -08:00
|
|
|
<div class="stylesheet-more">
|
|
|
|
<h3 class="stylesheet-title"></h3>
|
|
|
|
<h3 class="stylesheet-rule-count"></h3>
|
|
|
|
<h3 class="stylesheet-error-message"></h3>
|
|
|
|
<xul:spacer/>
|
2013-11-05 11:24:16 -08:00
|
|
|
<h3><xul:label class="stylesheet-saveButton"
|
|
|
|
tooltiptext="&saveButton.tooltip;"
|
|
|
|
accesskey="&saveButton.accesskey;">&saveButton.label;</xul:label></h3>
|
2012-11-30 00:07:59 -08:00
|
|
|
</div>
|
|
|
|
</hgroup>
|
|
|
|
</li>
|
2011-10-26 02:02:08 -07:00
|
|
|
|
2012-11-30 00:07:59 -08:00
|
|
|
<xul:box id="splitview-tpl-details-stylesheet" class="splitview-details">
|
|
|
|
<xul:resizer class="splitview-portrait-resizer"
|
|
|
|
dir="bottom"
|
|
|
|
element="splitview-resizer-target"/>
|
|
|
|
<xul:box class="stylesheet-editor-input textbox"
|
|
|
|
data-placeholder="&editorTextbox.placeholder;"/>
|
|
|
|
</xul:box>
|
|
|
|
</div> <!-- #splitview-templates -->
|
|
|
|
</xul:box> <!-- .splitview-root -->
|
2011-10-26 02:02:08 -07:00
|
|
|
</xul:window>
|