Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | - License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 5 | <!DOCTYPE window [ |
michael@0 | 6 | <!ENTITY % styleEditorDTD SYSTEM "chrome://browser/locale/devtools/styleeditor.dtd" > |
michael@0 | 7 | %styleEditorDTD; |
michael@0 | 8 | <!ENTITY % editMenuStrings SYSTEM "chrome://global/locale/editMenuOverlay.dtd"> |
michael@0 | 9 | %editMenuStrings; |
michael@0 | 10 | <!ENTITY % sourceEditorStrings SYSTEM "chrome://browser/locale/devtools/sourceeditor.dtd"> |
michael@0 | 11 | %sourceEditorStrings; |
michael@0 | 12 | ]> |
michael@0 | 13 | |
michael@0 | 14 | <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> |
michael@0 | 15 | <?xml-stylesheet href="chrome://browser/content/devtools/splitview.css" type="text/css"?> |
michael@0 | 16 | <?xml-stylesheet href="chrome://browser/skin/devtools/common.css" type="text/css"?> |
michael@0 | 17 | <?xml-stylesheet href="chrome://browser/skin/devtools/splitview.css" type="text/css"?> |
michael@0 | 18 | <?xml-stylesheet href="chrome://browser/content/devtools/styleeditor.css" type="text/css"?> |
michael@0 | 19 | <?xml-stylesheet href="chrome://browser/skin/devtools/styleeditor.css" type="text/css"?> |
michael@0 | 20 | <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?> |
michael@0 | 21 | |
michael@0 | 22 | <xul:window xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 23 | xmlns="http://www.w3.org/1999/xhtml" |
michael@0 | 24 | id="style-editor-chrome-window"> |
michael@0 | 25 | |
michael@0 | 26 | <script type="application/javascript;version=1.8" |
michael@0 | 27 | src="chrome://browser/content/devtools/theme-switching.js"/> |
michael@0 | 28 | <xul:script type="application/javascript" src="chrome://global/content/globalOverlay.js"/> |
michael@0 | 29 | <xul:script type="application/javascript"> |
michael@0 | 30 | function goUpdateSourceEditorMenuItems() { |
michael@0 | 31 | goUpdateGlobalEditMenuItems(); |
michael@0 | 32 | |
michael@0 | 33 | ['cmd_undo', 'cmd_redo', 'cmd_cut', 'cmd_paste', |
michael@0 | 34 | 'cmd_delete', 'cmd_find', 'cmd_findAgain'].forEach(goUpdateCommand); |
michael@0 | 35 | } |
michael@0 | 36 | </xul:script> |
michael@0 | 37 | |
michael@0 | 38 | <xul:popupset id="style-editor-popups"> |
michael@0 | 39 | <xul:menupopup id="sourceEditorContextMenu" |
michael@0 | 40 | onpopupshowing="goUpdateSourceEditorMenuItems()"> |
michael@0 | 41 | <xul:menuitem id="cMenu_undo"/> |
michael@0 | 42 | <xul:menuseparator/> |
michael@0 | 43 | <xul:menuitem id="cMenu_cut"/> |
michael@0 | 44 | <xul:menuitem id="cMenu_copy"/> |
michael@0 | 45 | <xul:menuitem id="cMenu_paste"/> |
michael@0 | 46 | <xul:menuitem id="cMenu_delete"/> |
michael@0 | 47 | <xul:menuseparator/> |
michael@0 | 48 | <xul:menuitem id="cMenu_selectAll"/> |
michael@0 | 49 | <xul:menuseparator/> |
michael@0 | 50 | <xul:menuitem id="se-menu-find" |
michael@0 | 51 | label="&findCmd.label;" accesskey="&findCmd.accesskey;" command="cmd_find"/> |
michael@0 | 52 | <xul:menuitem id="cMenu_findAgain"/> |
michael@0 | 53 | <xul:menuseparator/> |
michael@0 | 54 | <xul:menuitem id="se-menu-gotoLine" |
michael@0 | 55 | label="&gotoLineCmd.label;" |
michael@0 | 56 | accesskey="&gotoLineCmd.accesskey;" |
michael@0 | 57 | key="key_gotoLine" |
michael@0 | 58 | command="cmd_gotoLine"/> |
michael@0 | 59 | </xul:menupopup> |
michael@0 | 60 | <xul:menupopup id="sidebar-context"> |
michael@0 | 61 | <xul:menuitem id="context-origsources"/> |
michael@0 | 62 | </xul:menupopup> |
michael@0 | 63 | </xul:popupset> |
michael@0 | 64 | |
michael@0 | 65 | <xul:commandset id="editMenuCommands"/> |
michael@0 | 66 | |
michael@0 | 67 | <xul:commandset id="sourceEditorCommands"> |
michael@0 | 68 | <xul:command id="cmd_gotoLine" oncommand="goDoCommand('cmd_gotoLine')"/> |
michael@0 | 69 | <xul:command id="cmd_find" oncommand="goDoCommand('cmd_find')"/> |
michael@0 | 70 | <xul:command id="cmd_findAgain" oncommand="goDoCommand('cmd_findAgain')"/> |
michael@0 | 71 | </xul:commandset> |
michael@0 | 72 | |
michael@0 | 73 | <xul:keyset id="sourceEditorKeys"/> |
michael@0 | 74 | |
michael@0 | 75 | <xul:box id="style-editor-chrome" class="theme-body splitview-root loading" |
michael@0 | 76 | context="sidebar-context"> |
michael@0 | 77 | <xul:box class="splitview-controller"> |
michael@0 | 78 | <xul:box class="splitview-main"> |
michael@0 | 79 | <xul:toolbar class="devtools-toolbar"> |
michael@0 | 80 | <xul:toolbarbutton class="style-editor-newButton devtools-toolbarbutton" |
michael@0 | 81 | accesskey="&newButton.accesskey;" |
michael@0 | 82 | tooltiptext="&newButton.tooltip;" |
michael@0 | 83 | label="&newButton.label;"/> |
michael@0 | 84 | <xul:toolbarbutton class="style-editor-importButton devtools-toolbarbutton" |
michael@0 | 85 | accesskey="&importButton.accesskey;" |
michael@0 | 86 | tooltiptext="&importButton.tooltip;" |
michael@0 | 87 | label="&importButton.label;"/> |
michael@0 | 88 | </xul:toolbar> |
michael@0 | 89 | </xul:box> |
michael@0 | 90 | <xul:box id="splitview-resizer-target" class="theme-sidebar splitview-nav-container" |
michael@0 | 91 | persist="height"> |
michael@0 | 92 | <ol class="splitview-nav" tabindex="0"></ol> |
michael@0 | 93 | <div class="splitview-nav placeholder empty"> |
michael@0 | 94 | <p><strong>&noStyleSheet.label;</strong></p> |
michael@0 | 95 | <p>&noStyleSheet-tip-start.label; |
michael@0 | 96 | <a href="#" |
michael@0 | 97 | class="style-editor-newButton">&noStyleSheet-tip-action.label;</a> |
michael@0 | 98 | &noStyleSheet-tip-end.label;</p> |
michael@0 | 99 | </div> |
michael@0 | 100 | </xul:box> <!-- .splitview-nav-container --> |
michael@0 | 101 | </xul:box> <!-- .splitview-controller --> |
michael@0 | 102 | <xul:splitter class="devtools-side-splitter splitview-landscape-splitter devtools-invisible-splitter"/> |
michael@0 | 103 | <xul:box class="splitview-side-details"/> |
michael@0 | 104 | |
michael@0 | 105 | <div id="splitview-templates" hidden="true"> |
michael@0 | 106 | <li id="splitview-tpl-summary-stylesheet" tabindex="0"> |
michael@0 | 107 | <xul:label class="stylesheet-enabled" tabindex="0" |
michael@0 | 108 | tooltiptext="&visibilityToggle.tooltip;" |
michael@0 | 109 | accesskey="&saveButton.accesskey;"></xul:label> |
michael@0 | 110 | <hgroup class="stylesheet-info"> |
michael@0 | 111 | <h1><a class="stylesheet-name" tabindex="0"><xul:label crop="start"/></a></h1> |
michael@0 | 112 | <div class="stylesheet-more"> |
michael@0 | 113 | <h3 class="stylesheet-title"></h3> |
michael@0 | 114 | <h3 class="stylesheet-linked-file"></h3> |
michael@0 | 115 | <h3 class="stylesheet-rule-count"></h3> |
michael@0 | 116 | <xul:spacer/> |
michael@0 | 117 | <h3><xul:label class="stylesheet-saveButton" |
michael@0 | 118 | tooltiptext="&saveButton.tooltip;" |
michael@0 | 119 | accesskey="&saveButton.accesskey;">&saveButton.label;</xul:label></h3> |
michael@0 | 120 | </div> |
michael@0 | 121 | </hgroup> |
michael@0 | 122 | </li> |
michael@0 | 123 | |
michael@0 | 124 | <xul:box id="splitview-tpl-details-stylesheet" class="splitview-details"> |
michael@0 | 125 | <xul:resizer class="splitview-portrait-resizer" |
michael@0 | 126 | dir="bottom" |
michael@0 | 127 | element="splitview-resizer-target"/> |
michael@0 | 128 | <xul:box class="stylesheet-editor-input textbox" |
michael@0 | 129 | data-placeholder="&editorTextbox.placeholder;"/> |
michael@0 | 130 | </xul:box> |
michael@0 | 131 | </div> <!-- #splitview-templates --> |
michael@0 | 132 | </xul:box> <!-- .splitview-root --> |
michael@0 | 133 | </xul:window> |