зеркало из https://github.com/mozilla/gecko-dev.git
changes submitted by Brian King (briano9@yahoo.com); improvements to image map editor for skinnability and localization
This commit is contained in:
Родитель
a6c89dfe21
Коммит
344de80885
|
@ -66,14 +66,14 @@
|
|||
<key id="nudgeleft" keycode="VK_LEFT" onkeypress="nudge(event, 'left')" />
|
||||
<key id="nudgedown" keycode="VK_DOWN" onkeypress="nudge(event, 'down')" />
|
||||
<key id="nudgeright" keycode="VK_RIGHT" onkeypress="nudge(event, 'right')" />
|
||||
<key id="mapclearkb" xulkey="true" key="d" observes="Map:Clear" />
|
||||
<key id="mapselectkb" xulkey="true" key="a" observes="Map:SelectAll" />
|
||||
<key id="mapclosekb" xulkey="true" key="l" observes="Map:Close" />
|
||||
<key id="mapcutkb" xulkey="true" key="x" observes="Map:Cut" />
|
||||
<key id="mapcopykb" xulkey="true" key="c" observes="Map:Copy" />
|
||||
<key id="mappastekb" xulkey="true" key="v" observes="Map:Paste" />
|
||||
<key id="mappropskb" xulkey="true" key="p" observes="Map:Props" />
|
||||
<key id="maptbarkb" xulkey="true" key="t" observes="Map:ViewToolbar" />
|
||||
<key id="mapclearkb" xulkey="true" key="&clear.accesskey;" observes="Map:Clear" />
|
||||
<key id="mapselectkb" xulkey="true" key="&selectall.accesskey;" observes="Map:SelectAll" />
|
||||
<key id="mapclosekb" xulkey="true" key="&close.accesskey;" observes="Map:Close" />
|
||||
<key id="mapcutkb" xulkey="true" key="&cut.accesskey;" observes="Map:Cut" />
|
||||
<key id="mapcopykb" xulkey="true" key="©.accesskey;" observes="Map:Copy" />
|
||||
<key id="mappastekb" xulkey="true" key="&paste.accesskey;" observes="Map:Paste" />
|
||||
<key id="mappropskb" xulkey="true" key="&props.accesskey;" observes="Map:Props" />
|
||||
<key id="maptbarkb" xulkey="true" key="&tbar.accesskey;" observes="Map:ViewToolbar" />
|
||||
|
||||
</keyset>
|
||||
|
||||
|
@ -144,25 +144,27 @@
|
|||
</menubar>
|
||||
|
||||
|
||||
<toolbar id="toolbar" class="standard" persist="collapsed">
|
||||
<titledbutton id="cutButton" class="button28" observes="Map:Cut"/>
|
||||
<titledbutton id="copyButton" class="button28" observes="Map:Copy"/>
|
||||
<titledbutton id="pasteButton" class="button28" observes="Map:Paste"/>
|
||||
<titledbutton id="zoomInButton" class="button28" observes="Map:ZoomIn"/>
|
||||
<titledbutton id="zoomOutButton" class="button28" observes="Map:ZoomOut"/>
|
||||
<titledbutton id="contrastButton" class="button28" observes="Map:Contrast"/>
|
||||
<toolbar id="toolbar" class="toolbar-primary" persist="collapsed">
|
||||
<button id="cutButton" class="button-toolbar-2 top" observes="Map:Cut"/>
|
||||
<button id="copyButton" class="button-toolbar-2 top" observes="Map:Copy"/>
|
||||
<button id="pasteButton" class="button-toolbar-2 top" observes="Map:Paste"/>
|
||||
<button id="zoomInButton" class="button-toolbar-2 top" observes="Map:ZoomIn"/>
|
||||
<button id="zoomOutButton" class="button-toolbar-2 top" observes="Map:ZoomOut"/>
|
||||
<button id="contrastButton" class="button-toolbar-2 top" observes="Map:Contrast"/>
|
||||
<spring flex="1"/>
|
||||
</toolbar>
|
||||
|
||||
|
||||
<box orient="horizontal" flex="1">
|
||||
<box align="horizontal" flex="100">
|
||||
|
||||
<toolbar id="toolbox" orient="vertical">
|
||||
<titledbutton id="pointerButton" class="tool" toggled="1" onclick="changeTool(event, 'pointer')"/>
|
||||
<titledbutton id="rectButton" class="tool" onclick="changeTool(event, 'rect')"/>
|
||||
<titledbutton id="cirButton" class="tool" onclick="changeTool(event, 'cir')"/>
|
||||
<titledbutton id="polyButton" class="tool" onclick="changeTool(event, 'poly')"/>
|
||||
<box orient="vertical">
|
||||
<button id="pointerButton" class="tool" toggled="1" onclick="changeTool(event, 'pointer')"/>
|
||||
<button id="rectButton" class="tool" onclick="changeTool(event, 'rect')"/>
|
||||
<button id="cirButton" class="tool" onclick="changeTool(event, 'cir')"/>
|
||||
<button id="polyButton" class="tool" onclick="changeTool(event, 'poly')"/>
|
||||
<spring flex="1"/>
|
||||
</box>
|
||||
</toolbar>
|
||||
|
||||
<!-- Content Area -->
|
||||
|
|
|
@ -29,62 +29,84 @@
|
|||
|
||||
<!DOCTYPE window SYSTEM "chrome://editor/locale/EditorImageMapHotSpot.dtd">
|
||||
|
||||
<xul:window class="dialog" title="&windowTitle.label;"
|
||||
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns="http://www.w3.org/TR/REC-html40"
|
||||
<window class="dialog" title="&windowTitle.label;"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
onload = "Startup()"
|
||||
orient="vertical">
|
||||
orient="vertical"
|
||||
>
|
||||
|
||||
<!-- Methods common to all editor dialogs -->
|
||||
<script language="JavaScript" src="chrome://editor/content/EdDialogCommon.js"/>
|
||||
<script language="JavaScript" src="chrome://global/content/dialogOverlay.js"/>
|
||||
|
||||
<script language="JavaScript" src="chrome://editor/content/EdImageMapHotSpot.js"/>
|
||||
|
||||
<xul:broadcaster id="args" value=""/>
|
||||
<broadcaster id="args" value=""/>
|
||||
|
||||
<titledbox orient="vertical" flex="1">
|
||||
<title><text id="titleInput" value="&link.label;"/></title>
|
||||
|
||||
<grid>
|
||||
<columns><column/><column/><column/></columns>
|
||||
<rows>
|
||||
<row>
|
||||
<text class = "label" for="urlInput" value="&urlFieldset.label;" align = "right"/>
|
||||
|
||||
<textfield id="urlInput" class="MinWidth20em" value="http://"/>
|
||||
|
||||
<button class="dialog dialog" id="Browse" oncommand = "chooseFile()" value="&browseButton.label;"/>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<text class="label" for="altInput" value="&altFieldset.label;" align = "right"/>
|
||||
|
||||
<textfield class="MinWidth20em" id="altInput"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</titledbox>
|
||||
|
||||
|
||||
<table border="1" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<label for="urlInput" id="urlLabel">&urlFieldset.label;</label>
|
||||
<br/>
|
||||
<input type="text" id="urlInput" value="http://" size="30"/>
|
||||
</td>
|
||||
<td valign="bottom">
|
||||
<xul:button class="dialog dialog" id="Browse" oncommand = "chooseFile()" value="&browseButton.label;"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="altInput" id="titleLabel">&altFieldset.label;</label>
|
||||
<br/>
|
||||
<input type="text" id="altInput" size="30"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="middle">
|
||||
<fieldset style="height:100%; padding:5">
|
||||
<legend class="dialog" id="targetLabel" align="left">&targetFieldset.label;</legend>
|
||||
<label for="targetInput" id="targetLabel">&target.label;</label>
|
||||
<br/>
|
||||
<input type="text" id="targetInput" size="20"/>
|
||||
</fieldset>
|
||||
</td>
|
||||
<td>
|
||||
<fieldset style="height:100%; padding:5">
|
||||
<legend class="dialog" id="commonLabel" align="center">&commonFieldset.label;</legend>
|
||||
<select name="common_targets" id="commonInput" size="4" oncommand="changeTarget()" onchange="changeTarget()">
|
||||
<option value="_self">Same Frame</option>
|
||||
<option value="_top">Whole Page</option>
|
||||
<option value="_blank">New Window</option>
|
||||
<option value="_parent">Parent Frame</option>
|
||||
</select>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<xul:box align="horizontal">
|
||||
<xul:box id="okCancelButtons"/>
|
||||
</xul:box>
|
||||
</xul:window>
|
||||
<titledbox orient="vertical" flex="1">
|
||||
<title><text id="targetLabel" value="&targetFieldset.label;"/></title>
|
||||
<grid>
|
||||
<columns><column/><column/><column/></columns>
|
||||
<rows>
|
||||
<row>
|
||||
<text class="label" for="targetInput" value="&target.label;" align = "right" />
|
||||
</row>
|
||||
<row>
|
||||
<textfield class="MinWidth20em" id="targetInput"/>
|
||||
|
||||
<text class="label" id="commonLabel" value="&commonFieldset.label;"/>
|
||||
|
||||
<menulist id = "commonInput" onchange ="changeTarget()">
|
||||
<menupopup valign="middle">
|
||||
<menuitem class="middle" value="_self"><text class="label" value = "&same.value;"/></menuitem>
|
||||
<menuitem class="middle" value="_top"><text class="label" value = "&whole.value;"/></menuitem>
|
||||
<menuitem class="middle" value="_blank"><text class="label" value = "&new.value;"/></menuitem>
|
||||
<menuitem class="middle" value="_parent"><text class="label" value = "&parent.value;"/></menuitem>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
|
||||
<!--
|
||||
<html:select name="common_targets" id="commonInput" size="4" oncommand="changeTarget()" onchange="changeTarget()">
|
||||
<html:option value="_self">Same Frame</html:option>
|
||||
<html:option value="_top">Whole Page</html:option>
|
||||
<html:option value="_blank">New Window</voption>
|
||||
<html:option value="_parent">Parent Frame</html:option>
|
||||
</html:select>
|
||||
-->
|
||||
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</titledbox>
|
||||
|
||||
|
||||
<box orient="horizontal">
|
||||
<box id="okCancelButtons"/>
|
||||
</box>
|
||||
</window>
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
-
|
||||
- Contributor(s):
|
||||
- Dan Haddix (dan6992@hotmail.com)
|
||||
- Brian King (briano9@yahoo.com)
|
||||
-->
|
||||
|
||||
<!-- These strings are for use specifically in the editor's image map dialog. -->
|
||||
|
@ -75,4 +76,14 @@
|
|||
|
||||
<!ENTITY zoominCmd.label "Zoom In">
|
||||
<!ENTITY zoomoutCmd.label "Zoom Out">
|
||||
<!ENTITY delSpotCmd.label "Delete Spot">
|
||||
<!ENTITY delSpotCmd.label "Delete Spot">
|
||||
|
||||
<!-- Keys -->
|
||||
<!ENTITY clear.accesskey "d">
|
||||
<!ENTITY selectall.accesskey "a">
|
||||
<!ENTITY close.accesskey "l">
|
||||
<!ENTITY cut.accesskey "x">
|
||||
<!ENTITY copy.accesskey "c">
|
||||
<!ENTITY paste.accesskey "v">
|
||||
<!ENTITY props.accesskey "p">
|
||||
<!ENTITY tbar.accesskey "t">
|
|
@ -19,17 +19,24 @@
|
|||
-
|
||||
- Contributor(s):
|
||||
- Dan Haddix (dan6992@hotmail.com)
|
||||
- Brian King (briano9@yahoo.com)
|
||||
-->
|
||||
|
||||
<!-- Window title -->
|
||||
|
||||
<!ENTITY windowTitle.label "Hotspot Properties">
|
||||
|
||||
|
||||
<!ENTITY urlFieldset.label "Hotspot URL:">
|
||||
<!ENTITY altFieldset.label "Hotspot Alt Text:">
|
||||
<!ENTITY browseButton.label "Browse...">
|
||||
<!ENTITY link.label "Hotspot Link">
|
||||
<!ENTITY urlFieldset.label "Hotspot URL:">
|
||||
<!ENTITY altFieldset.label "Hotspot Alt Text:">
|
||||
<!ENTITY browseButton.label "Browse...">
|
||||
<!ENTITY targetFieldset.label "Target Setting">
|
||||
<!ENTITY target.label "Hotspot Target:">
|
||||
<!ENTITY commonFieldset.label "Common Targets">
|
||||
<!ENTITY target.label "Hotspot Target">
|
||||
|
||||
<!-- Targets -->
|
||||
<!ENTITY commonFieldset.label "Common Targets:">
|
||||
<!ENTITY same.value "Same Frame">
|
||||
<!ENTITY whole.value "Whole Page">
|
||||
<!ENTITY new.value "New Window">
|
||||
<!ENTITY parent.value "Parent Frame">
|
||||
|
||||
|
|
|
@ -27,16 +27,16 @@ toolbar#toolbox {
|
|||
padding: 4px; 0px; 0px; 0px;
|
||||
}
|
||||
|
||||
toolbar#toolbox titledbutton.tool:active {
|
||||
margin: 2px 0px 0px 2px;
|
||||
toolbar#toolbox button.tool:active {
|
||||
margin: 2px 0px 0px 2px;
|
||||
}
|
||||
|
||||
toolbar#toolbox titledbutton.tool[toggled="1"] {
|
||||
toolbar#toolbox button.tool[toggled="1"] {
|
||||
margin: 2px 0px 0px 2px;
|
||||
border: 1px white inset;
|
||||
}
|
||||
|
||||
toolbar#toolbox titledbutton.tool {
|
||||
toolbar#toolbox button.tool {
|
||||
border: 1px solid transparent;
|
||||
margin: 1px 1px 1px 1px;
|
||||
padding: 2px;
|
||||
|
@ -44,42 +44,46 @@ toolbar#toolbox titledbutton.tool {
|
|||
color: inherit;
|
||||
}
|
||||
|
||||
toolbar#toolbox titledbutton#pointerButton {
|
||||
toolbar.toolbox > toolbargrippy {
|
||||
visibility: collapse;
|
||||
}
|
||||
|
||||
#pointerButton {
|
||||
list-style-image:url("chrome://editor/skin/images/Map_pointerTool.gif");
|
||||
}
|
||||
|
||||
toolbar#toolbox titledbutton#rectButton {
|
||||
#rectButton {
|
||||
list-style-image:url("chrome://editor/skin/images/Map_rectangleTool.gif");
|
||||
}
|
||||
|
||||
toolbar#toolbox titledbutton#cirButton {
|
||||
#cirButton {
|
||||
list-style-image:url("chrome://editor/skin/images/Map_circleTool.gif");
|
||||
}
|
||||
|
||||
toolbar#toolbox titledbutton#polyButton {
|
||||
#polyButton {
|
||||
list-style-image:url("chrome://editor/skin/images/Map_polygonTool.gif");
|
||||
}
|
||||
|
||||
toolbar#toolbar titledbutton#cutButton {
|
||||
#cutButton {
|
||||
list-style-image:url("chrome://editor/skin/images/Map_Cut.gif");
|
||||
}
|
||||
|
||||
toolbar#toolbar titledbutton#copyButton {
|
||||
#copyButton {
|
||||
list-style-image:url("chrome://editor/skin/images/Map_Copy.gif");
|
||||
}
|
||||
|
||||
toolbar#toolbar titledbutton#pasteButton {
|
||||
#pasteButton {
|
||||
list-style-image:url("chrome://editor/skin/images/Map_Paste.gif");
|
||||
}
|
||||
|
||||
toolbar#toolbar titledbutton#zoomInButton {
|
||||
#zoomInButton {
|
||||
list-style-image:url("chrome://editor/skin/images/Map_zoomIn.gif");
|
||||
}
|
||||
|
||||
toolbar#toolbar titledbutton#zoomOutButton {
|
||||
#zoomOutButton {
|
||||
list-style-image:url("chrome://editor/skin/images/Map_zoomOut.gif");
|
||||
}
|
||||
|
||||
toolbar#toolbar titledbutton#contrastButton {
|
||||
#contrastButton {
|
||||
list-style-image:url("chrome://editor/skin/images/Map_contrast.gif");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче