browser/devtools/scratchpad/scratchpad.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <?xml version="1.0"?>
michael@0 2
michael@0 3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 - License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
michael@0 6
michael@0 7 <!DOCTYPE window [
michael@0 8 <!ENTITY % scratchpadDTD SYSTEM "chrome://browser/locale/devtools/scratchpad.dtd" >
michael@0 9 %scratchpadDTD;
michael@0 10 <!ENTITY % editMenuStrings SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
michael@0 11 %editMenuStrings;
michael@0 12 <!ENTITY % sourceEditorStrings SYSTEM "chrome://browser/locale/devtools/sourceeditor.dtd">
michael@0 13 %sourceEditorStrings;
michael@0 14 ]>
michael@0 15
michael@0 16 <?xml-stylesheet href="chrome://global/skin/global.css"?>
michael@0 17 <?xml-stylesheet href="chrome://browser/skin/devtools/common.css"?>
michael@0 18 <?xml-stylesheet href="chrome://browser/skin/devtools/scratchpad.css"?>
michael@0 19 <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
michael@0 20
michael@0 21 <window id="main-window"
michael@0 22 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 23 title="&window.title;"
michael@0 24 windowtype="devtools:scratchpad"
michael@0 25 macanimationtype="document"
michael@0 26 fullscreenbutton="true"
michael@0 27 screenX="4" screenY="4"
michael@0 28 width="640" height="480"
michael@0 29 persist="screenX screenY width height sizemode">
michael@0 30
michael@0 31 <script type="application/javascript;version=1.8"
michael@0 32 src="chrome://browser/content/devtools/theme-switching.js"/>
michael@0 33 <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
michael@0 34 <script type="application/javascript" src="chrome://browser/content/devtools/scratchpad.js"/>
michael@0 35
michael@0 36 <commandset id="editMenuCommands"/>
michael@0 37
michael@0 38 <commandset id="sourceEditorCommands">
michael@0 39 <command id="cmd_gotoLine" oncommand=";"/>
michael@0 40 </commandset>
michael@0 41
michael@0 42 <commandset id="sp-commandset">
michael@0 43 <command id="sp-cmd-newWindow" oncommand=";"/>
michael@0 44 <command id="sp-cmd-openFile" oncommand=";"/>
michael@0 45 <command id="sp-cmd-clearRecentFiles" oncommand=";"/>
michael@0 46 <command id="sp-cmd-save" oncommand=";"/>
michael@0 47 <command id="sp-cmd-saveas" oncommand=";"/>
michael@0 48 <command id="sp-cmd-revert" oncommand=";" disabled="true"/>
michael@0 49 <command id="sp-cmd-close" oncommand=";"/>
michael@0 50 <command id="sp-cmd-line-numbers" oncommand=";"/>
michael@0 51 <command id="sp-cmd-wrap-text" oncommand=";"/>
michael@0 52 <command id="sp-cmd-highlight-trailing-space" oncommand=";"/>
michael@0 53 <command id="sp-cmd-larger-font" oncommand=";"/>
michael@0 54 <command id="sp-cmd-smaller-font" oncommand=";"/>
michael@0 55 <command id="sp-cmd-normal-font" oncommand=";"/>
michael@0 56 <command id="sp-cmd-run" oncommand=";"/>
michael@0 57 <command id="sp-cmd-inspect" oncommand=";"/>
michael@0 58 <command id="sp-cmd-display" oncommand=";"/>
michael@0 59 <command id="sp-cmd-pprint" oncommand=";"/>
michael@0 60 <command id="sp-cmd-contentContext" oncommand=";"/>
michael@0 61 <command id="sp-cmd-browserContext" oncommand=";" disabled="true"/>
michael@0 62 <command id="sp-cmd-reloadAndRun" oncommand=";"/>
michael@0 63 <command id="sp-cmd-evalFunction" oncommand=";"/>
michael@0 64 <command id="sp-cmd-errorConsole" oncommand=";" disabled="true"/>
michael@0 65 <command id="sp-cmd-webConsole" oncommand=";"/>
michael@0 66 <command id="sp-cmd-documentationLink" oncommand=";"/>
michael@0 67 <command id="sp-cmd-hideSidebar" oncommand=";"/>
michael@0 68 </commandset>
michael@0 69
michael@0 70 <keyset id="editMenuKeys"/>
michael@0 71
michael@0 72 <keyset id="sp-keyset">
michael@0 73 <key id="sp-key-window"
michael@0 74 key="&newWindowCmd.commandkey;"
michael@0 75 command="sp-cmd-newWindow"
michael@0 76 modifiers="accel"/>
michael@0 77 <key id="sp-key-open"
michael@0 78 key="&openFileCmd.commandkey;"
michael@0 79 command="sp-cmd-openFile"
michael@0 80 modifiers="accel"/>
michael@0 81 <key id="sp-key-save"
michael@0 82 key="&saveFileCmd.commandkey;"
michael@0 83 command="sp-cmd-save"
michael@0 84 modifiers="accel"/>
michael@0 85 <key id="sp-key-close"
michael@0 86 key="&closeCmd.key;"
michael@0 87 command="sp-cmd-close"
michael@0 88 modifiers="accel"/>
michael@0 89 <key id="sp-key-larger-font"
michael@0 90 key="&largerFont.commandkey;"
michael@0 91 command="sp-cmd-larger-font"
michael@0 92 modifiers="accel"/>
michael@0 93 <key id="sp-key-smaller-font"
michael@0 94 key="&smallerFont.commandkey;"
michael@0 95 command="sp-cmd-smaller-font"
michael@0 96 modifiers="accel"/>
michael@0 97 <key id="sp-key-normal-size-font"
michael@0 98 key="&normalSize.commandkey;"
michael@0 99 command="sp-cmd-normal-font"
michael@0 100 modifiers="accel"/>
michael@0 101 <key id="sp-key-run"
michael@0 102 key="&run.key;"
michael@0 103 command="sp-cmd-run"
michael@0 104 modifiers="accel"/>
michael@0 105 <key id="sp-key-inspect"
michael@0 106 key="&inspect.key;"
michael@0 107 command="sp-cmd-inspect"
michael@0 108 modifiers="accel"/>
michael@0 109 <key id="sp-key-display"
michael@0 110 key="&display.key;"
michael@0 111 command="sp-cmd-display"
michael@0 112 modifiers="accel"/>
michael@0 113 <key id="sp-key-pprint"
michael@0 114 key="&pprint.key;"
michael@0 115 command="sp-cmd-pprint"
michael@0 116 modifiers="accel"/>
michael@0 117 <key id="sp-key-reloadAndRun"
michael@0 118 key="&reloadAndRun.key;"
michael@0 119 command="sp-cmd-reloadAndRun"
michael@0 120 modifiers="accel,shift"/>
michael@0 121 <key id="sp-key-evalFunction"
michael@0 122 key="&evalFunction.key;"
michael@0 123 command="sp-cmd-evalFunction"
michael@0 124 modifiers="accel"/>
michael@0 125 <key id="sp-key-errorConsole"
michael@0 126 key="&errorConsoleCmd.commandkey;"
michael@0 127 command="sp-cmd-errorConsole"
michael@0 128 modifiers="accel,shift"/>
michael@0 129 <key id="sp-key-hideSidebar"
michael@0 130 keycode="VK_ESCAPE"
michael@0 131 command="sp-cmd-hideSidebar"/>
michael@0 132 <key id="key_openHelp"
michael@0 133 keycode="VK_F1"
michael@0 134 command="sp-cmd-documentationLink"/>
michael@0 135 <key id="key_gotoLine"
michael@0 136 key="&gotoLineCmd.key;"
michael@0 137 command="key_gotoLine"
michael@0 138 modifiers="accel"/>
michael@0 139
michael@0 140 </keyset>
michael@0 141
michael@0 142 <menubar id="sp-menubar">
michael@0 143 <menu id="sp-file-menu" label="&fileMenu.label;" accesskey="&fileMenu.accesskey;">
michael@0 144 <menupopup id="sp-menu-filepopup">
michael@0 145 <menuitem id="sp-menu-newscratchpad"
michael@0 146 label="&newWindowCmd.label;"
michael@0 147 accesskey="&newWindowCmd.accesskey;"
michael@0 148 key="sp-key-window"
michael@0 149 command="sp-cmd-newWindow"/>
michael@0 150 <menuseparator/>
michael@0 151
michael@0 152 <menuitem id="sp-menu-open"
michael@0 153 label="&openFileCmd.label;"
michael@0 154 command="sp-cmd-openFile"
michael@0 155 key="sp-key-open"
michael@0 156 accesskey="&openFileCmd.accesskey;"/>
michael@0 157
michael@0 158 <menu id="sp-open_recent-menu" label="&openRecentMenu.label;"
michael@0 159 accesskey="&openRecentMenu.accesskey;"
michael@0 160 disabled="true">
michael@0 161 <menupopup id="sp-menu-open_recentPopup"/>
michael@0 162 </menu>
michael@0 163
michael@0 164 <menuitem id="sp-menu-save"
michael@0 165 label="&saveFileCmd.label;"
michael@0 166 accesskey="&saveFileCmd.accesskey;"
michael@0 167 key="sp-key-save"
michael@0 168 command="sp-cmd-save"/>
michael@0 169 <menuitem id="sp-menu-saveas"
michael@0 170 label="&saveFileAsCmd.label;"
michael@0 171 accesskey="&saveFileAsCmd.accesskey;"
michael@0 172 command="sp-cmd-saveas"/>
michael@0 173 <menuitem id="sp-menu-revert"
michael@0 174 label="&revertCmd.label;"
michael@0 175 accesskey="&revertCmd.accesskey;"
michael@0 176 command="sp-cmd-revert"/>
michael@0 177 <menuseparator/>
michael@0 178
michael@0 179 <menuitem id="sp-menu-close"
michael@0 180 label="&closeCmd.label;"
michael@0 181 key="sp-key-close"
michael@0 182 accesskey="&closeCmd.accesskey;"
michael@0 183 command="sp-cmd-close"/>
michael@0 184 </menupopup>
michael@0 185 </menu>
michael@0 186
michael@0 187 <menu id="sp-edit-menu" label="&editMenu.label;"
michael@0 188 accesskey="&editMenu.accesskey;">
michael@0 189 <menupopup id="sp-menu_editpopup">
michael@0 190 <menuitem id="menu_undo"/>
michael@0 191 <menuitem id="menu_redo"/>
michael@0 192 <menuseparator/>
michael@0 193 <menuitem id="menu_cut"/>
michael@0 194 <menuitem id="menu_copy"/>
michael@0 195 <menuitem id="menu_paste"/>
michael@0 196 <menuseparator/>
michael@0 197 <menuitem id="menu_selectAll"/>
michael@0 198 <menuseparator/>
michael@0 199 <menuitem id="menu_find"/>
michael@0 200 <menuitem id="menu_findAgain"/>
michael@0 201 <menuseparator/>
michael@0 202 <menuitem id="se-menu-gotoLine"
michael@0 203 label="&gotoLineCmd.label;"
michael@0 204 accesskey="&gotoLineCmd.accesskey;"
michael@0 205 key="key_gotoLine"
michael@0 206 command="cmd_gotoLine"/>
michael@0 207 <menuitem id="sp-menu-pprint"
michael@0 208 label="&pprint.label;"
michael@0 209 accesskey="&pprint.accesskey;"
michael@0 210 key="sp-key-pprint"
michael@0 211 command="sp-cmd-pprint"/>
michael@0 212 </menupopup>
michael@0 213 </menu>
michael@0 214
michael@0 215 <menu id="sp-view-menu" label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
michael@0 216 <menupopup id="sp-menu-viewpopup">
michael@0 217 <menuitem id="sp-menu-line-numbers"
michael@0 218 label="&lineNumbers.label;"
michael@0 219 accesskey="&lineNumbers.accesskey;"
michael@0 220 type="checkbox"
michael@0 221 checked="true"
michael@0 222 command="sp-cmd-line-numbers"/>
michael@0 223 <menuitem id="sp-menu-word-wrap"
michael@0 224 label="&wordWrap.label;"
michael@0 225 accesskey="&wordWrap.accesskey;"
michael@0 226 type="checkbox"
michael@0 227 command="sp-cmd-wrap-text"/>
michael@0 228 <menuitem id="sp-menu-highlight-trailing-space"
michael@0 229 label="&highlightTrailingSpace.label;"
michael@0 230 accesskey="&highlightTrailingSpace.accesskey;"
michael@0 231 type="checkbox"
michael@0 232 command="sp-cmd-highlight-trailing-space"/>
michael@0 233 <menuseparator/>
michael@0 234 <menuitem id="sp-menu-larger-font"
michael@0 235 label="&largerFont.label;"
michael@0 236 key="sp-key-larger-font"
michael@0 237 accesskey="&largerFont.accesskey;"
michael@0 238 command="sp-cmd-larger-font"/>
michael@0 239 <menuitem id="sp-menu-smaller-font"
michael@0 240 label="&smallerFont.label;"
michael@0 241 key="sp-key-smaller-font"
michael@0 242 accesskey="&smallerFont.accesskey;"
michael@0 243 command="sp-cmd-smaller-font"/>
michael@0 244 <menuitem id="sp-menu-normal-size-font"
michael@0 245 label="&normalSize.label;"
michael@0 246 key="sp-menu-normal-font"
michael@0 247 accesskey="&normalSize.accesskey;"
michael@0 248 command="sp-cmd-normal-font"/>
michael@0 249 </menupopup>
michael@0 250 </menu>
michael@0 251
michael@0 252 <menu id="sp-execute-menu" label="&executeMenu.label;"
michael@0 253 accesskey="&executeMenu.accesskey;">
michael@0 254 <menupopup id="sp-menu_executepopup">
michael@0 255 <menuitem id="sp-text-run"
michael@0 256 label="&run.label;"
michael@0 257 accesskey="&run.accesskey;"
michael@0 258 key="sp-key-run"
michael@0 259 command="sp-cmd-run"/>
michael@0 260 <menuitem id="sp-text-inspect"
michael@0 261 label="&inspect.label;"
michael@0 262 accesskey="&inspect.accesskey;"
michael@0 263 key="sp-key-inspect"
michael@0 264 command="sp-cmd-inspect"/>
michael@0 265 <menuitem id="sp-text-display"
michael@0 266 label="&display.label;"
michael@0 267 accesskey="&display.accesskey;"
michael@0 268 key="sp-key-display"
michael@0 269 command="sp-cmd-display"/>
michael@0 270 <menuseparator/>
michael@0 271 <menuitem id="sp-text-reloadAndRun"
michael@0 272 label="&reloadAndRun.label;"
michael@0 273 key="sp-key-reloadAndRun"
michael@0 274 accesskey="&reloadAndRun.accesskey;"
michael@0 275 command="sp-cmd-reloadAndRun"/>
michael@0 276 <menuitem id="sp-text-evalFunction"
michael@0 277 label="&evalFunction.label;"
michael@0 278 key="sp-key-evalFunction"
michael@0 279 accesskey="&evalFunction.accesskey;"
michael@0 280 command="sp-cmd-evalFunction"/>
michael@0 281 </menupopup>
michael@0 282 </menu>
michael@0 283
michael@0 284 <menu id="sp-environment-menu"
michael@0 285 label="&environmentMenu.label;"
michael@0 286 accesskey="&environmentMenu.accesskey;"
michael@0 287 hidden="true">
michael@0 288 <menupopup id="sp-menu-environment">
michael@0 289 <menuitem id="sp-menu-content"
michael@0 290 label="&contentContext.label;"
michael@0 291 accesskey="&contentContext.accesskey;"
michael@0 292 command="sp-cmd-contentContext"
michael@0 293 checked="true"
michael@0 294 type="radio"/>
michael@0 295 <menuitem id="sp-menu-browser"
michael@0 296 command="sp-cmd-browserContext"
michael@0 297 label="&browserContext.label;"
michael@0 298 accesskey="&browserContext.accesskey;"
michael@0 299 type="radio"/>
michael@0 300 </menupopup>
michael@0 301 </menu>
michael@0 302
michael@0 303 #ifdef XP_WIN
michael@0 304 <menu id="sp-help-menu"
michael@0 305 label="&helpMenu.label;"
michael@0 306 accesskey="&helpMenuWin.accesskey;">
michael@0 307 #else
michael@0 308 <menu id="sp-help-menu"
michael@0 309 label="&helpMenu.label;"
michael@0 310 accesskey="&helpMenu.accesskey;">
michael@0 311 #endif
michael@0 312 <menupopup id="sp-menu-help">
michael@0 313 <menuitem id="sp-menu-documentation"
michael@0 314 label="&documentationLink.label;"
michael@0 315 accesskey="&documentationLink.accesskey;"
michael@0 316 command="sp-cmd-documentationLink"
michael@0 317 key="key_openHelp"/>
michael@0 318 </menupopup>
michael@0 319 </menu>
michael@0 320 </menubar>
michael@0 321
michael@0 322 <toolbar id="sp-toolbar"
michael@0 323 class="devtools-toolbar">
michael@0 324 <toolbarbutton id="sp-toolbar-open"
michael@0 325 class="devtools-toolbarbutton"
michael@0 326 label="&openFileCmd.label;"
michael@0 327 command="sp-cmd-openFile"/>
michael@0 328 <toolbarbutton id="sp-toolbar-save"
michael@0 329 class="devtools-toolbarbutton"
michael@0 330 label="&saveFileCmd.label;"
michael@0 331 command="sp-cmd-save"/>
michael@0 332 <toolbarbutton id="sp-toolbar-saveAs"
michael@0 333 class="devtools-toolbarbutton"
michael@0 334 label="&saveFileAsCmd.label;"
michael@0 335 command="sp-cmd-saveas"/>
michael@0 336 <toolbarspacer/>
michael@0 337 <toolbarbutton id="sp-toolbar-run"
michael@0 338 class="devtools-toolbarbutton"
michael@0 339 label="&run.label;"
michael@0 340 command="sp-cmd-run"/>
michael@0 341 <toolbarbutton id="sp-toolbar-inspect"
michael@0 342 class="devtools-toolbarbutton"
michael@0 343 label="&inspect.label;"
michael@0 344 command="sp-cmd-inspect"/>
michael@0 345 <toolbarbutton id="sp-toolbar-display"
michael@0 346 class="devtools-toolbarbutton"
michael@0 347 label="&display.label;"
michael@0 348 command="sp-cmd-display"/>
michael@0 349 <toolbarspacer/>
michael@0 350 <toolbarbutton id="sp-toolbar-pprint"
michael@0 351 class="devtools-toolbarbutton"
michael@0 352 label="&pprint.label;"
michael@0 353 command="sp-cmd-pprint"/>
michael@0 354 </toolbar>
michael@0 355
michael@0 356
michael@0 357 <popupset id="scratchpad-popups">
michael@0 358 <menupopup id="scratchpad-text-popup">
michael@0 359 <menuitem id="cMenu_cut"/>
michael@0 360 <menuitem id="cMenu_copy"/>
michael@0 361 <menuitem id="cMenu_paste"/>
michael@0 362 <menuitem id="cMenu_delete"/>
michael@0 363 <menuseparator/>
michael@0 364 <menuitem id="cMenu_selectAll"/>
michael@0 365 <menuseparator/>
michael@0 366 <menuitem id="sp-text-run"
michael@0 367 label="&run.label;"
michael@0 368 accesskey="&run.accesskey;"
michael@0 369 key="sp-key-run"
michael@0 370 command="sp-cmd-run"/>
michael@0 371 <menuitem id="sp-text-inspect"
michael@0 372 label="&inspect.label;"
michael@0 373 accesskey="&inspect.accesskey;"
michael@0 374 key="sp-key-inspect"
michael@0 375 command="sp-cmd-inspect"/>
michael@0 376 <menuitem id="sp-text-display"
michael@0 377 label="&display.label;"
michael@0 378 accesskey="&display.accesskey;"
michael@0 379 key="sp-key-display"
michael@0 380 command="sp-cmd-display"/>
michael@0 381 <menuitem id="sp-text-evalFunction"
michael@0 382 label="&evalFunction.label;"
michael@0 383 key="sp-key-evalFunction"
michael@0 384 accesskey="&evalFunction.accesskey;"
michael@0 385 command="sp-cmd-evalFunction"/>
michael@0 386 <menuseparator/>
michael@0 387 <menuitem id="sp-text-reloadAndRun"
michael@0 388 label="&reloadAndRun.label;"
michael@0 389 key="sp-key-reloadAndRun"
michael@0 390 accesskey="&reloadAndRun.accesskey;"
michael@0 391 command="sp-cmd-reloadAndRun"/>
michael@0 392 </menupopup>
michael@0 393 </popupset>
michael@0 394
michael@0 395 <notificationbox id="scratchpad-notificationbox" flex="1">
michael@0 396 <hbox flex="1">
michael@0 397 <vbox id="scratchpad-editor" flex="1"/>
michael@0 398 <splitter class="devtools-side-splitter"/>
michael@0 399 <tabbox id="scratchpad-sidebar" class="devtools-sidebar-tabs"
michael@0 400 width="300"
michael@0 401 hidden="true">
michael@0 402 <tabs/>
michael@0 403 <tabpanels flex="1"/>
michael@0 404 </tabbox>
michael@0 405 </hbox>
michael@0 406 </notificationbox>
michael@0 407
michael@0 408 </window>

mercurial