lyx_mirror/src/frontends
Guillaume Munch fd7b13f5ae Improvements to the display of the source.
Fix bugs #6501 and #7359.

* Selection highlighting has been broken since a conflict with
  reverse-search was repaired (at 00a62b7c), is now fixed.

* The selection highlighting was not accurate, for LaTeX formats (in
  full source view), and meaningless, for non LaTeX formats.

* fix regression at cc00b9aa: force_getcontent_ was always true
  therefore the code to detect changes in the generated source was
  dead. The consequence is that the source view would jump to the
  beginning at each updateView() even if no change occurred. Cc00b9aa
  was meant to fix #5600, which I cannot reproduce with the new
  implementation.

* Various improvements:
  *  When the position-to-line conversion is unavailable (LyXHTML, LyX
     source, etc.) we focus on the first difference instead.
  *  Get some space around the cursor
  *  Respect the scrollbars
  *  Highlight with QTextEdit::ExtraSelections instead of cursor
     selection (the latter used to break syntax highlighting of the
     TeX code... which was not so much of an issue before because the
     wrong part was selected)

Known issues:
  * The highlighting is off by one line in very last paragraph of a
    document. This appears to be a bug in TexRow.cpp.
  * The highlighting is off for any kind of inset. This could be
    solved by adapting TexRow so that it accepts CursorSlices as
    and argument for the conversion to line number. (this is bug
    #4725)
2015-09-13 00:45:52 +01:00
..
qt4 Improvements to the display of the source. 2015-09-13 00:45:52 +01:00
tests Fix biblio regex test 2015-01-08 20:46:54 +01:00
.gitignore
alert.h Remove heavy includes 2014-11-30 12:52:01 +01:00
Application.h Auto feature for minibuffer toolbar 2015-07-15 17:41:09 +02:00
Clipboard.h GuiLog: Use GuiClipboard to put the log on the clipboard 2014-04-29 15:38:35 +02:00
CMakeLists.txt
Delegates.h
FontLoader.h
FontMetrics.h Use QFontMetrics information for underlines (and friends) width and position 2015-09-08 10:44:03 +02:00
KeyModifier.h
KeySymbol.h
Makefile.am Add cmake files to autoconf's dist 2014-08-31 15:21:20 +02:00
mouse_state.h
Painter.h Re-implement text justification 2015-07-20 23:43:05 +02:00
Selection.h
WorkArea.h
WorkAreaManager.cpp
WorkAreaManager.h