summaryrefslogtreecommitdiffstats
path: root/devtools/client/projecteditor/chrome/content/projecteditor.xul
blob: 795fe9fab2222359b0d867dd78ea275620972bd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0"?>
<!-- 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/. -->
<?xml-stylesheet href="chrome://devtools/skin/light-theme.css" type="text/css"?>
<?xml-stylesheet href="chrome://devtools/skin/projecteditor/projecteditor.css" type="text/css"?>
<?xml-stylesheet href="chrome://devtools/content/debugger/debugger.css" type="text/css"?>
<?xml-stylesheet href="resource://devtools/client/themes/common.css" type="text/css"?>
<?xml-stylesheet href="chrome://devtools/skin/markup.css" type="text/css"?>

<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>

<!DOCTYPE window [
<!ENTITY % scratchpadDTD SYSTEM "chrome://devtools/locale/scratchpad.dtd" >
 %scratchpadDTD;
<!ENTITY % editMenuStrings SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
%editMenuStrings;
<!ENTITY % sourceEditorStrings SYSTEM "chrome://devtools/locale/sourceeditor.dtd">
%sourceEditorStrings;
]>

<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="theme-body theme-light">

  <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>

  <commandset id="projecteditor-commandset" />
  <commandset id="editMenuCommands"/>
  <keyset id="projecteditor-keyset" />
  <keyset id="editMenuKeys"/>

  <!-- Eventually we want to let plugins declare their own menu items.
       Wait unti app manager lands to deal with this integration point.
  -->
  <menubar id="projecteditor-menubar">
    <menu id="file-menu" label="&fileMenu.label;" accesskey="&fileMenu.accesskey;">
      <menupopup id="file-menu-popup" />
    </menu>

    <menu id="edit-menu" label="&editMenu.label;"
          accesskey="&editMenu.accesskey;">
      <menupopup id="edit-menu-popup">
        <menuitem id="menu_undo"/>
        <menuitem id="menu_redo"/>
        <menuseparator/>
        <menuitem id="menu_cut"/>
        <menuitem id="menu_copy"/>
        <menuitem id="menu_paste"/>
      </menupopup>
    </menu>
  </menubar>

  <popupset>
    <menupopup id="context-menu-popup">
    </menupopup>
    <menupopup id="texteditor-context-popup">
      <menuitem id="cMenu_cut"/>
      <menuitem id="cMenu_copy"/>
      <menuitem id="cMenu_paste"/>
      <menuitem id="cMenu_delete"/>
      <menuseparator/>
      <menuitem id="cMenu_selectAll"/>
    </menupopup>
  </popupset>

  <deck id="main-deck" flex="1">
    <vbox flex="1" id="source-deckitem">
      <hbox id="sources-body" flex="1">
        <vbox width="250" id="sources">
          <vbox flex="1">
          </vbox>
          <toolbar id="project-toolbar" class="devtools-toolbar" hidden="true"></toolbar>
        </vbox>
        <splitter id="source-editor-splitter" class="devtools-side-splitter"/>
        <vbox id="shells" flex="4">
          <toolbar id="projecteditor-toolbar" class="devtools-toolbar">
            <hbox id="plugin-toolbar-left"/>
            <spacer flex="1"/>
            <hbox id="plugin-toolbar-right"/>
          </toolbar>
          <box id="shells-deck-container" flex="4"></box>
          <toolbar id="projecteditor-toolbar-bottom" class="devtools-toolbar">
          </toolbar>
        </vbox>
      </hbox>
    </vbox>
  </deck>
</page>