RetroZilla/extensions/inspector/resources/content/viewers/domNode/domNode.xul
2015-10-20 23:03:22 -04:00

92 lines
3.0 KiB
XML

<?xml version="1.0"?>
<!DOCTYPE page [
<!ENTITY % dtd1 SYSTEM "chrome://inspector/locale/inspector.dtd"> %dtd1;
<!ENTITY % dtd2 SYSTEM "chrome://inspector/locale/viewers/domNode.dtd"> %dtd2;
<!ENTITY % dtd3 SYSTEM "chrome://inspector/content/util.dtd"> %dtd3;
]>
<?xul-overlay href="chrome://inspector/content/editingOverlay.xul"?>
<?xml-stylesheet href="chrome://inspector/skin/viewers/domNode/domNode.css"?>
<page id="winNodeDefault"
style="padding: 10px"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!--============================= SCRIPTS ============================= -->
<script type="application/x-javascript" src="chrome://inspector/content/viewers/domNode/domNode.js"/>
<script type="application/x-javascript" src="chrome://inspector/content/utils.js"/>
<script type="application/x-javascript" src="chrome://inspector/content/jsutil/xpcom/XPCU.js"/>
<script type="application/x-javascript" src="chrome://inspector/content/jsutil/events/ObserverManager.js"/>
<!--============================= CONTENT ============================== -->
<commandset id="cmdsEditing"/>
<popupset id="psPopups">
<popup id="ppAttrContext">
<menuitem id="mnEditCut"/>
<menuitem id="mnEditCopy"/>
<menuitem id="mnEditPaste"/>
<menuseparator/>
<menuitem id="mnEditEdit"/>
<menuitem id="mnEditInsert"/>
<menuitem id="mnEditDelete"/>
</popup>
</popupset>
<deck id="dkContent" flex="1">
<vbox id="bxElement">
<grid>
<columns>
<column/>
<column flex="1"/>
</columns>
<rows>
<row>
<label value="&nodeName.label;" />
<textbox id="tx_nodeName" readonly="true"/>
</row>
<row>
<label value="&namespaceURI.label;" />
<textbox id="tx_namespace" readonly="true"/>
</row>
<row>
<label value="&nodeType.label;" />
<textbox id="tx_nodeType" readonly="true"/>
</row>
<row>
<label value="&nodeValue.label;" />
<textbox id="tx_nodeValue" readonly="true"/>
</row>
</rows>
</grid>
<tree id="olAttr"
class="plain"
flex="1"
enableColumnDrag="true"
contextmenu="ppAttrContext"
onselect="viewer.pane.panelset.updateAllCommands()">
<treecols>
<!-- These labels don't need to be localized since they are defined by DOM APIs -->
<treecol id="colNodeName" label="nodeName" persist="width,hidden,ordinal" flex="1"/>
<splitter class="tree-splitter"/>
<treecol id="colNodeValue" label="nodeValue" persist="width,hidden,ordinal" flex="1"/>
</treecols>
<treechildren id="olAttrBody"
alternatingbackground="true"
/>
</tree>
</vbox>
<vbox id="bxText">
<textbox id="txbTextNodeValue" multiline="true" readonly="true" flex="1"/>
</vbox>
</deck>
</page>