195108 patch by piersc@cogs.susx.ac.uk r=dean_tessman@hotmail.com sr=dmose moa=brade Add accesskeys to editor Find and Replace dialog (editor)

This commit is contained in:
cbiesinger%web.de 2003-02-28 22:57:33 +00:00
Родитель 5a6f19b38b
Коммит 1eac5db47b
2 изменённых файлов: 27 добавлений и 13 удалений

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

@ -49,30 +49,37 @@ Contributor(s):
<columns><column/><column/></columns>
<rows>
<row align="center">
<label value="&findField.label;"/>
<label value="&findField.label;" accesskey="&findField.accesskey;" control="dialog.findInput"/>
<textbox id="dialog.findInput" oninput="doEnabling();"/>
</row>
<row align="center">
<label value="&replaceField.label;"/>
<label value="&replaceField.label;" accesskey="&replaceField.accesskey;" control="dialog.replaceInput"/>
<textbox id="dialog.replaceInput" oninput="doEnabling();"/>
</row>
<row align="start">
<spacer/>
<vbox align="start">
<spacer class="bigspacer"/>
<checkbox id="dialog.caseSensitive" label="&caseSensitiveCheckbox.label;"/>
<checkbox id="dialog.wrap" label="&wrapCheckbox.label;"/>
<checkbox id="dialog.searchBackwards" label="&backwardsCheckbox.label;"/>
<checkbox id="dialog.caseSensitive" label="&caseSensitiveCheckbox.label;"
accesskey="&caseSensitiveCheckbox.accesskey;"/>
<checkbox id="dialog.wrap" label="&wrapCheckbox.label;"
accesskey="&wrapCheckbox.accesskey;"/>
<checkbox id="dialog.searchBackwards" label="&backwardsCheckbox.label;"
accesskey="&backwardsCheckbox.accesskey;"/>
</vbox>
</row>
</rows>
</grid>
</vbox>
<vbox>
<button id="findNext" label="&findNextButton.label;" oncommand="onFindNext();" default="true"/>
<button id="replace" label="&replaceButton.label;" oncommand="onReplace();"/>
<button id="replaceAndFind" label="&replaceAndFindButton.label;" oncommand="onReplace(); onFindNext();"/>
<button id="replaceAll" label="&replaceAllButton.label;" oncommand="onReplaceAll();"/>
<button id="findNext" label="&findNextButton.label;" accesskey="&findNextButton.accesskey;"
oncommand="onFindNext();" default="true"/>
<button id="replace" label="&replaceButton.label;" accesskey="&replaceButton.accesskey;"
oncommand="onReplace();"/>
<button id="replaceAndFind" label="&replaceAndFindButton.label;"
accesskey="&replaceAndFindButton.accesskey;" oncommand="onReplace(); onFindNext();"/>
<button id="replaceAll" label="&replaceAllButton.label;"
accesskey="&replaceAllButton.accesskey;" oncommand="onReplaceAll();"/>
<button dlgtype="cancel" label="&closeButton.label;"/>
</vbox>
</hbox>

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

@ -21,19 +21,26 @@
- Akkana Peck
-->
<!-- extracted from replacedialog.xul -->
<!-- extracted from EdReplace.xul -->
<!ENTITY replaceDialog.title "Find and Replace">
<!ENTITY findField.label "Find what:">
<!ENTITY findField.label "Find text:">
<!ENTITY findField.accesskey "n">
<!ENTITY replaceField.label "Replace with:">
<!ENTITY replaceField.accesskey "e">
<!ENTITY caseSensitiveCheckbox.label "Match upper/lower case">
<!ENTITY caseSensitiveCheckbox.accesskey "c">
<!ENTITY wrapCheckbox.label "Wrap around">
<!ENTITY wrapCheckbox.accesskey "W">
<!ENTITY backwardsCheckbox.label "Search backwards">
<!ENTITY findField.tooltip "Type one or more words to search for">
<!ENTITY replaceField.tooltip "Type one or more words to replace with">
<!ENTITY backwardsCheckbox.accesskey "b">
<!ENTITY findNextButton.label "Find Next">
<!ENTITY findNextButton.accesskey "F">
<!ENTITY replaceButton.label "Replace">
<!ENTITY replaceButton.accesskey "R">
<!ENTITY replaceAndFindButton.label "Replace and Find">
<!ENTITY replaceAndFindButton.accesskey "d">
<!ENTITY replaceAllButton.label "Replace All">
<!ENTITY replaceAllButton.accesskey "A">
<!ENTITY closeButton.label "Close">
<!ENTITY notFoundWarning.label "The text you entered was not found.">