This commit is contained in:
brade%netscape.com 1999-08-23 14:59:46 +00:00
Родитель 256a2f7a8a
Коммит b868913ed8
1 изменённых файлов: 334 добавлений и 258 удалений

Просмотреть файл

@ -41,8 +41,8 @@
<td align="right" valign="middle"> <td align="right" valign="middle">
<label <label
class = "enabled" class = "enabled"
for = "image.srcInput"> for = "image.srcInput">
&locationEditField.label; &locationEditField.label;
</label> </label>
@ -51,16 +51,16 @@
<td valign="middle"> <td valign="middle">
<input <input
type = "text" type = "text"
size = "30" size = "30"
length = "30" length = "30"
id = "image.srcInput" id = "image.srcInput"
onkeypress = "OnChangeSrc()" onkeypress = "OnChangeSrc()"
onkeyup = "checkForImage( this.id ); doValueChanged()" onkeyup = "checkForImage( this.id ); doValueChanged()"
onmouseup = "checkForImage( this.id ); doValueChanged()" onmouseup = "checkForImage( this.id ); doValueChanged()"
onblur = "checkForImage( this.id ); doValueChanged()" onblur = "/*checkForImage( this.id ); doValueChanged()*/"
onfocus = "checkForImage( this.id ); doValueChanged()" onfocus = "checkForImage( this.id ); doValueChanged()"
onchange = "OnChangeSrc(); doOverallEnabling()" /> onchange = "OnChangeSrc(); doOverallEnabling()" />
<!-- onmouseup checks for a paste <!-- onmouseup checks for a paste
onkeyup checks for typing onkeyup checks for typing
@ -72,8 +72,8 @@
<td> <td>
<button <button
id = "ChooseFile" id = "ChooseFile"
onclick = "chooseFile(); checkForImage( 'image.srcInput' );"> onclick = "chooseFile(); checkForImage( 'image.srcInput' );">
&chooseButton.label; &chooseButton.label;
</button> </button>
@ -85,9 +85,9 @@
<td align="right" valign="middle"> <td align="right" valign="middle">
<label <label
class = "enabled" class = "enabled"
for = "image.altTextInput" for = "image.altTextInput"
id = "image.altTextLabel"> id = "image.altTextLabel">
&altTextEditField.label; &altTextEditField.label;
</label> </label>
@ -96,26 +96,26 @@
<td> <td>
<input <input
type ="text" type ="text"
size = "30" size = "30"
id = "image.altTextInput" id = "image.altTextInput"
onchange = "doValueChanged()"/> onchange = "doValueChanged()"/>
</td> </td>
<td/> <td/>
</tr> </tr>
</table> </table>
</fieldset> </fieldset>
</td> </td>
<td/> <td/>
</tr> </tr>
<tr> <tr>
<td> <td>
<button <button
id = "MoreFewerButton" id = "MoreFewerButton"
class = "disabled" class = "disabled"
onclick = "onMoreFewer()"> onclick = "onMoreFewer()">
&FewerButton.label; &FewerButton.label;
</button> </button>
@ -131,12 +131,12 @@
<tr> <tr>
<td> <td>
<fieldset <fieldset
id = "imagedimensionsFieldset" > id = "imagedimensionsFieldset" >
<legend <legend
id = "dimensionsLegend" id = "dimensionsLegend"
class = "disabled" class = "disabled"
align = "left"> align = "left">
&dimensionsFieldset.label; &dimensionsFieldset.label;
</legend> </legend>
@ -148,19 +148,19 @@
<!-- THIS NEEDS TO BE onchange RATHER THAN onclick --> <!-- THIS NEEDS TO BE onchange RATHER THAN onclick -->
<input <input
type = "radio" type = "radio"
name = "image.dimensionType" name = "image.dimensionType"
id = "originalsizeRadio" id = "originalsizeRadio"
onclick = "doValueChanged()" onclick = " doValueChanged();"
checked = "true" /> checked = "true" />
</td> </td>
<td colspan="3"> <td colspan="3">
<label <label
class = "disabled" class = "disabled"
for = "originalsizeRadio" for = "originalsizeRadio"
id = "originalsizeLabel" > id = "originalsizeLabel" >
&originalSizeRadio.label; &originalSizeRadio.label;
</label> </label>
@ -173,17 +173,17 @@
<!-- THIS NEEDS TO BE onchange RATHER THAN onclick --> <!-- THIS NEEDS TO BE onchange RATHER THAN onclick -->
<input type="radio" <input type="radio"
name = "image.dimensionType" name = "image.dimensionType"
id = "customsizeRadio" id = "customsizeRadio"
onclick = "doValueChanged()" /> onclick = "doDimensionEnabling( true );" />
</td> </td>
<td colspan="3"> <td colspan="3">
<label <label
class = "disabled" class = "disabled"
for = "customsizeRadio" for = "customsizeRadio"
id = "customsizeLabel" > id = "customsizeLabel" >
&customSizeRadio.label; &customSizeRadio.label;
</label> </label>
@ -197,9 +197,9 @@
<td> <td>
<label <label
class = "disabled" class = "disabled"
for = "imagewidthInput" for = "imagewidthInput"
id = "imagewidthLabel"> id = "imagewidthLabel">
&widthEditField.label; &widthEditField.label;
</label> </label>
@ -209,23 +209,28 @@
<input <input
type = "text" size="4" length="4" type = "text"
id = "imagewidthInput" size = "4"
onfocus = "oldSourceInt = this.value;" length = "4"
onkeyup = "constrainProportions(this.id, 'imageheightInput')" id = "imagewidthInput"
onchange = "doValueChanged()" /> disabled = "true"
onfocus = "oldSourceInt = this.value;"
onkeyup = "constrainProportions(this.id, 'imageheightInput')"
onchange = "doValueChanged()" />
</td> </td>
<td> <td>
<xul:titledbutton <xul:titledbutton
class = "popup" class = "popup"
id = "widthunitSelect" id = "widthunitSelect"
value = "&pixelsPopup.value;" style = "width: 50px;"
align = "right" disabled = "true"
popup = "PixelOrPercentMenu1" value = "&pixelsPopup.value;"
popupanchor = "bottomleft" align = "left"
onchange = "doValueChanged()" /> popup = "PixelOrPercentMenu1"
popupanchor = "bottomleft"
onchange = "doValueChanged()" />
</td> </td>
</tr> </tr>
@ -237,9 +242,9 @@
<td> <td>
<label <label
class = "disabled" class = "disabled"
for = "imageheightInput" for = "imageheightInput"
id = "imageheightLabel"> id = "imageheightLabel">
&heightEditField.label; &heightEditField.label;
</label> </label>
@ -248,25 +253,28 @@
<td> <td>
<input <input
type = "text" type = "text"
size = "4" size = "4"
length = "4" length = "4"
id = "imageheightInput" id = "imageheightInput"
onfocus = "oldSourceInt = this.value;" disabled = "true"
onkeyup = "constrainProportions(this.id, 'imagewidthInput')" onfocus = "oldSourceInt = this.value;"
onchange = "doValueChanged()" /> onkeyup = "constrainProportions(this.id, 'imagewidthInput')"
onchange = "doValueChanged()" />
</td> </td>
<td> <td>
<xul:titledbutton <xul:titledbutton
class = "popup" class = "popup"
id = "heightunitSelect" id = "heightunitSelect"
value = "&pixelsPopup.value;" style = "width: 50px;"
align = "right" disabled = "true"
popup = "PixelOrPercentMenu2" value = "&pixelsPopup.value;"
popupanchor = "bottomleft" align = "left"
onchange = "doValueChanged()" /> popup = "PixelOrPercentMenu2"
popupanchor = "bottomleft"
onchange = "doValueChanged()" />
</td> </td>
</tr> </tr>
@ -280,13 +288,13 @@
<td colspan="2"> <td colspan="2">
<input <input
type = "checkbox" type = "checkbox"
id = "constrainCheckbox" /> id = "constrainCheckbox" />
<label <label
class = "disabled" class = "disabled"
id = "constrainLabel" id = "constrainLabel"
for = "constrainCheckbox"> for = "constrainCheckbox">
&constrainCheckbox.label; &constrainCheckbox.label;
</label> </label>
@ -297,44 +305,42 @@
</fieldset> </fieldset>
<button <button
id = "AdvancedButton" id = "AdvancedButton"
class = "disabled" class = "disabled"
onclick = "onAdvanced()"> onclick = "onAdvanced()">
&AdvancedEditButton.label; &AdvancedEditButton.label;
</button> </button>
</td> </td>
<td> <td align="right">
<!-- IMAGE ALIGNMENT --> <!-- IMAGE ALIGNMENT -->
<label <label
class = "disabled" class = "selectbox"
for = "image.alignType" for = "image.alignType"
id = "imagealignmentLabel"> id = "imagealignmentLabel">
&alignment.label; &alignment.label;
</label> </label>
<xul:titledbutton <xul:titledbutton
id = "image.alignType" id = "image.alignType"
class = "popup" src = "resource:/chrome/editor/skin/default/images/ED_imgalignbottom.gif"
popup = "ImageTextAlignment" class = "popup"
popupanchor = "bottomleft" popup = "ImageTextAlignment"
align = "left" popupanchor = "bottomleft"
value = "&bottomPopup.value;" align = "left"
src = "&bottomIcon.url;" onchange = "doValueChanged()" />
onchange = "doValueChanged()" />
<fieldset
id = "spacing.fieldset">
<fieldset <legend
id = "spacing.fieldset"> id = "spacingLegend"
class = "disabled"
<legend align = "left">
id = "spacingLegend"
class = "disabled"
align = "left">
&spacingFieldset.label; &spacingFieldset.label;
</legend> </legend>
@ -344,9 +350,9 @@
<td align="right"> <td align="right">
<label <label
class = "disabled" class = "disabled"
for = "imageleftrightInput" for = "imageleftrightInput"
id = "leftrightLabel"> id = "leftrightLabel">
&leftRightEditField.label; &leftRightEditField.label;
</label> </label>
@ -354,35 +360,35 @@
</td> </td>
<td> <td>
<input <input
type = "text" type = "text"
size = "4" size = "4"
length = "4" length = "4"
maxlength = "4" maxlength = "4"
id = "imageleftrightInput" id = "imageleftrightInput"
onkeyup = "forceInteger(this.id)" onkeyup = "forceInteger(this.id)"
onchange = "doValueChanged()"/> onchange = "doValueChanged()"/>
</td> </td>
<td valign="middle"> <td valign="middle">
<label <label
class = "disabled" class = "disabled"
for = "imageleftrightInput" for = "imageleftrightInput"
id = "leftrighttypeLabel"> id = "leftrighttypeLabel">
&pixelsPopup.value; &pixelsPopup.value;
</label> </label>
</td> </td>
</tr> </tr>
<tr valign="middle"> <tr valign="middle">
<td align="right"> <td align="right">
<label <label
class = "disabled" class = "disabled"
for = "imagetopbottomInput" for = "imagetopbottomInput"
id = "topbottomLabel"> id = "topbottomLabel">
&topBottomEditField.label; &topBottomEditField.label;
</label> </label>
@ -391,35 +397,35 @@
<td> <td>
<input <input
type = "text" type = "text"
size = "4" size = "4"
length = "4" length = "4"
maxlength = "4" maxlength = "4"
id = "imagetopbottomInput" id = "imagetopbottomInput"
onkeyup = "forceInteger(this.id)" onkeyup = "forceInteger(this.id)"
onchange = "doValueChanged()"/> onchange = "doValueChanged()"/>
</td> </td>
<td valign="middle"> <td valign="middle">
<label <label
class = "disabled" class = "disabled"
for = "imagetopbottomInput" for = "imagetopbottomInput"
id = "topbottomtypeLabel"> id = "topbottomtypeLabel">
&pixelsPopup.value; &pixelsPopup.value;
</label> </label>
</td> </td>
</tr> </tr>
<tr valign="middle"> <tr valign="middle">
<td align="right"> <td align="right">
<label <label
class = "disabled" class = "disabled"
for = "imageborderInput" for = "imageborderInput"
id = "borderLabel"> id = "borderLabel">
&borderEditField.label; &borderEditField.label;
</label> </label>
@ -428,21 +434,21 @@
<td> <td>
<input <input
type ="text" type ="text"
size = "4" size = "4"
length = "4" length = "4"
maxlength = "4" maxlength = "4"
id = "imageborderInput" id = "imageborderInput"
onkeyup = "forceInteger(this.id)" onkeyup = "forceInteger(this.id)"
onchange = "doValueChanged()" /> onchange = "doValueChanged()" />
</td> </td>
<td valign="middle"> <td valign="middle">
<label <label
class = "disabled" class = "disabled"
for = "imageborderInput" for = "imageborderInput"
id = "bordertypeLabel"> id = "bordertypeLabel">
&pixelsPopup.value; &pixelsPopup.value;
</label> </label>
@ -464,16 +470,16 @@
<td align="right"> <td align="right">
<button <button
id = "OK" id = "OK"
class = "disabled" class = "disabled"
onclick = "onOK()"> onclick = "onOK()">
&OKButton.label; &OKButton.label;
</button> </button>
<button <button
id = "Cancel" id = "Cancel"
onclick = "onCancel()"> onclick = "onCancel()">
&CancelButton.label; &CancelButton.label;
</button> </button>
@ -491,101 +497,171 @@
<!-- ///////////////////// Image Percent 1 PopUp Window //////////////////////// --> <!-- ///////////////////// Image Percent 1 PopUp Window //////////////////////// -->
<xul:popup id = "PixelOrPercentMenu1"> <xul:popup id = "PixelOrPercentMenu1">
<xul:menu> <xul:window
class = "popup"
xmlns = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
name = "menu2"
align = "vertical"
flex = "100%"
style="
background-color: #CCCCDD;
width: 70px;
height: auto;
display: block;
overflow: hidden;
font: 3mm tahoma,arial,helvetica,sans-serif;
padding: 0px;"
>
<xul:menuitem <xul:box align="vertical" flex="100%" style="border: 1px outset white;">
value = "&pixelsPopup.value;"
onclick = "SetPixelOrPercentByID('widthunitSelect', '')" />
<xul:menuitem
value = "&percentPopup.value;"
onclick = "SetPixelOrPercentByID('widthunitSelect', '%')" />
</xul:menu> <xul:titledbutton
class = "select"
value = "&pixelsPopup.value;"
align = "center"
style = "height:20px; vertical-align: middle;"
onclick = "opener.SetPixelOrPercentByID('heightunitSelect', '');
opener.popupSelectedImage('&pixelsPopup.value;', 'widthunitSelect', 'value');
window.close();"/>
<xul:titledbutton
class = "select"
value = "&percentPopup.value;"
align = "center"
style = "height:20px; vertical-align: middle;"
onclick = "opener.SetPixelOrPercentByID('heightunitSelect', '%');
opener.popupSelectedImage('&percentPopup.value;', 'widthunitSelect', 'value');
window.close();"/>
</xul:box>
</xul:window>
</xul:popup> </xul:popup>
<!-- ///////////////////// Image Percent 2 PopUp Window //////////////////////// --> <!-- ///////////////////// Image Percent 2 PopUp Window //////////////////////// -->
<xul:popup id = "PixelOrPercentMenu2"> <xul:popup id = "PixelOrPercentMenu2">
<xul:menu> <xul:window
class = "popup"
xmlns = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
name = "menu2"
align = "vertical"
flex = "100%"
style="
background-color: #CCCCDD;
width: 70px;
height: auto;
display: block;
overflow: hidden;
font: 3mm tahoma,arial,helvetica,sans-serif;
padding: 0px;"
>
<xul:menuitem
value = "&pixelsPopup.value;"
onclick = "SetPixelOrPercentByID('heightunitSelect', '')" />
<xul:menuitem
value = "&percentPopup.value;"
onclick = "SetPixelOrPercentByID('heightunitSelect', '%')" />
</xul:menu> <xul:box align="vertical" flex="100%" style="border: 1px outset white;">
<xul:titledbutton
class = "select"
value = "&pixelsPopup.value;"
align = "center"
style = "height:20px; vertical-align: middle;"
onclick = "opener.SetPixelOrPercentByID('heightunitSelect', '');
opener.popupSelectedImage('&pixelsPopup.value;', 'heightunitSelect', 'value');
window.close();"/>
<xul:titledbutton
class = "select"
value = "&percentPopup.value;"
align = "center"
style = "height:20px; vertical-align: middle;"
onclick = "opener.SetPixelOrPercentByID('heightunitSelect', '%');
opener.popupSelectedImage('&percentPopup.value;', 'heightunitSelect', 'value');
window.close();"/>
</xul:box>
</xul:window>
</xul:popup> </xul:popup>
<!-- ///////////////////// Image Align PopUp Window //////////////////////// --> <!-- ///////////////////// Image Align PopUp Window //////////////////////// -->
<xul:popup id="ImageTextAlignment"> <xul:popup id="ImageTextAlignment">
<window <xul:window
class = "popup" class = "popup"
xmlns = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
name = "imageAlignPopup" name = "imageAlignPopup"
align = "vertical" align = "vertical"
flex = "100%" flex = "100%"
style="
background-color: #CCCCDD; style="
width: auto; background-color: #CCCCDD;
height: auto; width: auto;
display: block; height: auto;
overflow: hidden; display: block;
font: 3mm tahoma,arial,helvetica,sans-serif; overflow: hidden;
padding: 0px;" font: 3mm tahoma,arial,helvetica,sans-serif;
> padding: 0px;"
>
<titledbutton <xul:box align="vertical" flex="100%" style="border: 1px outset white;">
class = "popup"
value = "&topPopup.value;" <xul:titledbutton
style = "min-width: 40px" class = "dropdown"
src = "&topIcon.url;" src = "&topIcon.url;"
align = "left" align = "left"
onclick = "opener.SetImageAlignment('top'); window.close();" /> value = "&topPopup.value;"
onclick = "opener.SetImageAlignment('top');
opener.popupSelectedImage('&topIcon.url;', 'image.alignType', 'src');
window.close();" />
<titledbutton <titledbutton
class = "popup" class = "dropdown"
value ="&centerPopup.value;" align = "left"
style = "min-width: 40px" src = "&centerIcon.url;"
src = "&centerIcon.url;" value ="&centerPopup.value;"
align = "left" onclick = "opener.SetImageAlignment('middle');
onclick = "opener.SetImageAlignment('middle'); window.close();" /> opener.popupSelectedImage('&centerIcon.url;', 'image.alignType', 'src');
window.close();" />
<titledbutton <titledbutton
class = "popup" class = "dropdown"
value = "&bottomPopup.value;" src = "&bottomIcon.url;"
style = "min-width: 40px" align = "left"
src = "&bottomIcon.url;" value = "&bottomPopup.value;"
align = "left" onclick = "opener.SetImageAlignment('bottom', 'image.alignType');
onclick = "opener.SetImageAlignment('bottom'); window.close();" /> opener.popupSelectedImage('&bottomIcon.url;', 'image.alignType', 'src');
window.close();" />
<titledbutton <titledbutton
class = "popup" class = "dropdown"
value = "&wrapRightPopup.value;" src = "&wrapRightIcon.url;"
style = "min-width: 40px" align = "left"
src = "&wrapRightIcon.url;" value = "&wrapRightPopup.value;"
align = "left" onclick = "opener.SetImageAlignment('left', 'image.alignType');
onclick = "opener.SetImageAlignment('left'); window.close();" /> opener.popupSelectedImage('&wrapRightIcon.url;', 'image.alignType', 'src');
window.close();" />
<titledbutton <titledbutton
class = "popup" class = "dropdown"
value = "&wrapLeftPopup.value;" src = "&wrapLeftIcon.url;"
style = "min-width: 40px" align = "left"
src = "&wrapLeftIcon.url;" value = "&wrapLeftPopup.value;"
align = "left" onclick = "opener.SetImageAlignment('right');
onclick = "opener.SetImageAlignment('right'); window.close();" /> opener.popupSelectedImage('&wrapLeftIcon.url;', 'image.alignType', 'src');
window.close();" />
</window> </xul:box>
</xul:window>
</xul:popup> </xul:popup>
</xul:window> </xul:window>
<!-- The old stuff: <!-- The old stuff:
<xul:popup id="ImageTextAlignment"> <xul:popup id="ImageTextAlignment">
<xul:menu> <xul:menu>
<xul:menuitem name="&topPopup.value;" onclick="SetImageAlignment('^')"/> <xul:menuitem name="&topPopup.value;" onclick="SetImageAlignment('^')"/>