Re: Folding Editor
- From: Hans-Peter Diettrich <DrDiettrich@xxxxxxxxxxx>
- Date: Wed, 25 Jan 2006 11:21:41 +0100
Maarten Wiltink schrieb:
I'm not sure what you mean by displaying files from a uses clause. Opening files could be conveniently done with a TStrings.LoadFromFile equivalent.
The files can reside in directories, which are not known to the viewer. Or files can have been loaded already, in which case the viewer control should not load another copy of the file! This is what I meant with "managed" objects.
I'm still refactoring the viewer, into a self contained component. I keep the TLines class (as class TViewLines), where not much customization code is required for application specific subclasses, and introduced an interface IViewFile for the file objects. But I'm not really happy with this solution :-(
For every file a couple of tables and references have to be created and maintained, for syntax highlighting, folding etc. These informations cannot be separated from the file contents, i.e. they must exist only once. Perhaps the IViewFile interface can be replaced by a record or object, that only contains the references to the related tables and objects, but doesn't have special methods. This approach would violate the basic OO rules, since it makes the information accessible without any access methods...
DoDi .
- Follow-Ups:
- Re: Folding Editor
- From: Maarten Wiltink
- Re: Folding Editor
- References:
- Folding Editor
- From: Hans-Peter Diettrich
- Re: Folding Editor
- From: Hans-Peter Diettrich
- Re: Folding Editor
- From: Maarten Wiltink
- Re: Folding Editor
- From: Hans-Peter Diettrich
- Re: Folding Editor
- From: Maarten Wiltink
- Folding Editor
- Prev by Date: Re: Recommendations for a text to speech component?
- Next by Date: Re: Folding Editor
- Previous by thread: Re: Folding Editor
- Next by thread: Re: Folding Editor
- Index(es):