> Initially I started with QTextEdit() class as a base to source editing 
> mechanism. This class provides more visual capabilities like font zooming
> in real time which was implemented in HBIDE too. 
> 
> Now I have shifted to QPlainTextEdit() which is optimized class for 
> large file handelling but lacks some visual features, for now, which was 
> font zooming only.
> 
> I need your opinion about what way I should proceed ?
> Pure business with QPlainTextEdit() or some visual enhancements only 
> on the cost of performance ?

It really depends on what are those visual enhancements, 
and what is the difference in performance / memory usage.

Typical source file is rarely too big (rarely over a few 
100KBs), although there may be several of them open at once 
(not too many though).

Anyhow, for source code editing some basic text coloring, 
maybe background coloring on certain lines / block and 
selection of font type / size should fit majority of cases.
If this is covered by QPlainTextEdit(), the extra 
performance can be good, as it's not very good if scrolling, 
paging is slow.

If there is option to antialias fonts in QPlainTextEdit(), 
it's more than perfect.

Brgds,
Viktor

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to