]> git.lyx.org Git - features.git/commit
Optimize drawing.
authorAbdelrazak Younes <younes@lyx.org>
Fri, 17 Nov 2006 17:42:52 +0000 (17:42 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 17 Nov 2006 17:42:52 +0000 (17:42 +0000)
commitc66d2f1ee555358a0a378bcdc9783a1306bd8990
treeaa395860eab4f915acfc2a600f166ace0c3c855a
parent3bc4d28449143f6c90cf8209f29693c975801b28
Optimize drawing.

* BufferView:
  - update(): returns a pair of bools in order to inform for singlePar cases.
  - workAreaDispatch(): ditto and simplify the logic by using cursor update flags.

* text.C
  - breakParagraph(): change the cursor update flag as needed.
  - insertChar(): ditto.
  - erase(): ditto
  - redoParagraph(): now returns true if there is a height change.

* text3.C: dispatch():
  - initialize the cursor flag at the beginning
  - LFUN_MOUSE_PRESS: no need to update.
  - LFUN_MOUSE_RELEASE: ditto.
  - add some FIXMEs and comments.

* LyXFunc::dispatch(): simplify the BufferView update.

* insets/insetcollapsable.C: clarify and simplify the logic in doDispatch().

* WorkArea::dispatch(): redraw only if needed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15958 a592a061-630c-0410-9148-cb99ea01b6c8
src/BufferView.C
src/BufferView.h
src/frontends/WorkArea.C
src/insets/insetcollapsable.C
src/lyxfunc.C
src/lyxtext.h
src/text.C
src/text3.C