[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Just a bit stuff about editStart/End
From:       Christoph Cullmann <cullmann () babylon2k ! de>
Date:       2002-02-28 23:06:33
[Download RAW message or body]

Hi,
just enhanced a bit the use of editStart/End ;)
To use it, simply call editStart before your editing stuff starts and editEnd 
behind it ;) (please always call editEnd if you call editStart or we will 
have a mess ;) While a editStart/End session, all view updates are hold + all 
undos are grouped (would be nice to get all highlighting stopped too, would 
fix a bad bug on pasting at the end of a file, which causes a rehighlight for 
each line). editStart/End are now public, as they might be of use for the 
view too ;) (while updateView is blocked, the noViewUpdates boolean is true, 
while the session runs the editIsRunning boolean is true, the 
editSessionNumber is just a kind of counter if multiple editStart/End's are 
called nested, the first called editStart session will dominate, the ones 
called inside will do nothing (as long as they are correct, with equal 
editStart/End calls) ;) This behaviour allows it to put editStart/End in all 
places where it will be a advantage without having probs if we called it 
somewhere else too ;) As editStart/End increases the speed very much, its use 
is very wanted everywhere you think it might help ;)

cu
Christoph

-- 
| Christoph Cullmann
| Kate/KDE developer
| cullmann@kde.org
| http://kate.kde.org
_______________________________________________
kwrite-devel mailing list
kwrite-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic