Inherits:
::tycho::Query
-
Source File -
Contents:
itk_options
- public methods
This class provides a dialog box for checking the spelling in a
text editor. Depending on the text editor, a subset of the text might
be checked. For example, for programming language editors, comments are
typically spell checked.
This dialog box should be child window of the
Edit widget or its top-level window so that it is removed when
the parent is removed. To do this, just give it a name that is the
name of the Edit window (or its top-level parent) with an
additional field appended after a period. For example, if the name of
the top-level object is ".file0", the search object could be
".file0.search". Note that this is a UNIX-specific spell checker.
-edit
- Set the associated Edit widget.
-nochange
0
- Specify whether changes are allowed in the text being checked.
Public constructs
-
clearSpellMatch
- Clear the highlighting in the text window due to the spell check.
-
dictionary
- Open the personal dictionary for editing, and issue some instructions
to the user.
-
learn
- Add to the personal dictionary the word currently in the misspell window.
Then move to the next spelling error. The dictionary file is
sorted while we are at it.
-
next
- Find the next misspelling and query the user for a replacement.
The first time this is called, it calls "recheck," which actually
checks the spelling.
-
recheck
- Check the spelling from the beginning.
-
replace
- Replace the selection with a spelling correction.
Then move to the next spelling error.
Index of classes
Author: Edward A. Lee
Version: @(#)EditSpell.itcl 1.22 12/15/96
Copyright: (c) 1996 The Regents of the University of California.