Working on the IMT search system
Posted by mholmes on 21 Feb 2008 in Activity log
Progress today:
- Added the
SearchContainerfunctionality to theTimtSearchListobject. - Gave
TIMTDocumentaTimtSearchListobject so it can search itself, and added aFindAllfunction that populates the search list. - Did GUI testing and debugging to confirm that the
FindAllfunctionality works. A list of hits, with detailed info about them, is stored correctly. - Began retro-fitting both these functions with the ability to optionally replace the hits as well. This is slightly complicated because of the effect of replacement on the offsets of hits in the same neighbourhood, combined with the option to search both downwards and upwards. I haven't finished this yet. Also outstanding is the mechanism for ensuring items changed by replacement, which may be currently visible in the GUI edit boxes, get updated.
Once this is done, we'll have handled FindAll and ReplaceAll. The next question is what to do about FindNext. We'll probably have to adapt code from Markin to iterate through the containers in the document, searching each one in turn.