[LyX/master] Use explicit macro to declare that we want to use C++11

2015-05-20 Thread Jean-Marc Lasgouttes
commit 329eae5605d7bc40a53ebafa817470d9739ff632 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue May 19 15:10:38 2015 +0200 Use explicit macro to declare that we want to use C++11 This replaces tests for __cplusplus >= 201103L, which are wrong with gcc 4.6 an

[LyX/master] remove bogus comment

2015-05-20 Thread Jean-Marc Lasgouttes
commit 3176ac365ce5bdb85c00d1afc36d7feac2438847 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed May 20 11:24:15 2015 +0200 remove bogus comment There used to be a showCursor call below the command, sometimes between 2002 and 2007. diff --git a/src/Text3.cpp

[LyX/master] Place the cursor correctly after undoing an inset dissolution

2015-05-20 Thread Jean-Marc Lasgouttes
commit 32148586a85518d9c368e807a32a9be54146136f Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed May 20 12:09:12 2015 +0200 Place the cursor correctly after undoing an inset dissolution The cleanup in 11ca1406 was not correct. It is actually not possible to imp

[LyX/master] Remove bash-only construct from autogen.sh

2015-05-20 Thread Jean-Marc Lasgouttes
commit 4bb8725c69aae575633a1374a847ba9973c11915 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed May 20 12:24:16 2015 +0200 Remove bash-only construct from autogen.sh diff --git a/autogen.sh b/autogen.sh index 64be9af..b58c27b 100755 --- a/autogen.sh +++ b/autogen.sh @@

[LyX/2.1.x] Remove bash-only construct from autogen.sh

2015-05-21 Thread Jean-Marc Lasgouttes
commit d4b3de581cddc6c086f972698f5481f07405a436 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed May 20 12:24:16 2015 +0200 Remove bash-only construct from autogen.sh diff --git a/autogen.sh b/autogen.sh index 750d7a7..4e54eb6 100755 --- a/autogen.sh +++ b/autogen.sh @@

[LyX/master] Use macro LYX_USE_CXX11 in one more location

2015-05-22 Thread Jean-Marc Lasgouttes
commit c444fddc0b40160ba867130dd0280eac16399818 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri May 22 12:41:30 2015 +0200 Use macro LYX_USE_CXX11 in one more location This is a follow-up to commit 329eae56. diff --git a/src/tex2lyx/Parser.h b/src/tex2lyx/Pa

[LyX/master] Create proper undo groups for advanced find and replace

2015-05-22 Thread Jean-Marc Lasgouttes
commit 7760c5ccf2c558e48a54c101b779d0be25d7e7ba Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu May 21 16:49:19 2015 +0200 Create proper undo groups for advanced find and replace Create new helper class UndoGroupHelper, which simplifies a lot the handling o

[LyX/2.1.x] Avoid crash with undo in a closed collapsable inset

2015-05-27 Thread Jean-Marc Lasgouttes
commit ac271336ddc77c25634d8f6f5842b61e71c0e439 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri May 22 18:16:23 2015 +0200 Avoid crash with undo in a closed collapsable inset The recipe for reproducing this crash is to do a search and replace that changes a

[LyX/master] Fix bad font toggling after the layout has been changed.

2015-05-27 Thread Jean-Marc Lasgouttes
commit ab1e13702ecdea72c4660f30bd9e55e72b862e6f Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed May 27 17:04:10 2015 +0200 Fix bad font toggling after the layout has been changed. When changing the paragraph layout, it is a good idea to call {{{

[LyX/2.1.x] Fix bad font toggling after the layout has been changed.

2015-05-29 Thread Jean-Marc Lasgouttes
commit 0e64c8ab7af2b1b238c6864ce3a09b6b0948cad5 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed May 27 17:04:10 2015 +0200 Fix bad font toggling after the layout has been changed. When changing the paragraph layout, it is a good idea to call {{{

[LyX/2.1.x] Typo

2015-05-29 Thread Jean-Marc Lasgouttes
commit 763ecef53d13ce9b8ac4a7fdadf0deb20f884e7b Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri May 29 12:44:45 2015 +0200 Typo Actually, commit log for 0e64c8ab also refers to bug 4394, which is wrong. diff --git a/status.21x b/status.21x index badbe7a..11b62ce

[LyX/2.1.x] Create proper undo groups for advanced find and replace

2015-05-29 Thread Jean-Marc Lasgouttes
commit 6e285a6e52a7b75480be5a53389d6126102864d1 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu May 21 16:49:19 2015 +0200 Create proper undo groups for advanced find and replace Create new helper class UndoGroupHelper, which simplifies a lot the handling o

[LyX/master] When the document language is changed, update cursor language too

2015-06-03 Thread Jean-Marc Lasgouttes
commit 25913aaac6c294f96963f117158220dbb408e2a4 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Jun 3 12:14:30 2015 +0200 When the document language is changed, update cursor language too Actually, the change is done only if the cursor language was the do

[LyX/master] Properly notify insets after BufferView::doDispatch

2015-06-08 Thread Jean-Marc Lasgouttes
commit 469a1f48a62a61d7ec5680a26f77fc7d687af56e Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Jun 5 11:43:05 2015 +0200 Properly notify insets after BufferView::doDispatch Currently, insets are notified that the cursor entered or leaved them in Cursor::di

[LyX/master] configure: also search for sockets in libnetwork

2015-06-08 Thread Jean-Marc Lasgouttes
commit e02f0a0babeb43d21ebbd2496631cac59a1bcba0 Author: Jessica Hamilton Date: Fri Jun 5 14:49:00 2015 +1200 configure: also search for sockets in libnetwork This is required for Haiku support. See bug #7568 for details. diff --git

[LyX/master] Add packaging support for Haiku

2015-06-08 Thread Jean-Marc Lasgouttes
commit dcfb918f15f604393295f69d36687b9c0db7 Author: Jessica Hamilton Date: Fri Jun 5 22:40:35 2015 +1200 Add packaging support for Haiku See bug #7568 for details. diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index ba5344a..0374602

[LyX/master] Do not require libm when searching for system boost

2015-06-11 Thread Jean-Marc Lasgouttes
commit ba13a832d6e12789e025618d7e5420e206a1201b Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 11 17:47:07 2015 +0200 Do not require libm when searching for system boost Doing so breaks building under Haiku, which does not have libm. See ticket

[LyX/master] Qt4: Prevent crash on Haiku when clicking in a document

2015-06-11 Thread Jean-Marc Lasgouttes
commit 7cd2e55d1fb3782c727bad2f38923e8548beaafa Author: Jessica Hamilton Date: Fri Jun 5 14:44:12 2015 +1200 Qt4: Prevent crash on Haiku when clicking in a document Fixes bug #8595. diff --git a/src/frontends/qt4/GuiWorkArea.cpp

[LyX/master] Fix cursor setting in right-aligned text

2015-06-13 Thread Jean-Marc Lasgouttes
commit c783ef962d4f47ebe6308c8ad036da331e345b15 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Jun 13 12:09:53 2015 +0200 Fix cursor setting in right-aligned text Fixes bug #9619. diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index da9e404..ec35d10

[LyX/master] Simplify the code for "auto" toolbars handling

2015-06-18 Thread Jean-Marc Lasgouttes
commit 8b36c090b7f8850aca539dff867a194a942d48c2 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 18 15:30:44 2015 +0200 Simplify the code for "auto" toolbars handling Instaead of passing a number of booleans, it make more sense to pass the rel

[LyX/master] Revert "Auto feature for minibuffer toolbar"

2015-06-30 Thread Jean-Marc Lasgouttes
commit dd61d8cf3ffcac57cd5f5e8716818f4bce87c30e Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jun 30 11:09:48 2015 +0200 Revert "Auto feature for minibuffer toolbar" This reverts commit fdcff02a3124845d1033d3d804cede127850ff0f. This was push

[LyX/master] Constify RowPainter (no intended change)

2015-06-30 Thread Jean-Marc Lasgouttes
commit c8c1ee72bccd53b69a52dd476d9b72d61ebd2d2f Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Jun 29 16:12:11 2015 +0200 Constify RowPainter (no intended change) diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 1b7c33d..641eae2 100644 --- a/src/RowPainter.cpp

[LyX/master] Auto feature for minibuffer toolbar

2015-06-30 Thread Jean-Marc Lasgouttes
commit fdcff02a3124845d1033d3d804cede127850ff0f Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Apr 18 19:10:33 2015 +0200 Auto feature for minibuffer toolbar Now the minibuffer toolbar is "auto" by default. It is opened by command-execute (M-x)

[LyX/master] Small clean-up to debug support

2015-07-08 Thread Jean-Marc Lasgouttes
commit f41e423b303afc5162e7dbac781abaf802cefbea Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Jul 8 10:57:04 2015 +0200 Small clean-up to debug support diff --git a/lib/scripts/bash_completion b/lib/scripts/bash_completion index af50b36..868884c 100644 --- a/lib/s

[LyX/master] Use integer line thickness in painter

2015-07-14 Thread Jean-Marc Lasgouttes
commit 463bd17d755820966e97f474f617cf585079968e Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jul 14 17:42:45 2015 +0200 Use integer line thickness in painter There is no need for real-valued line width in painters. Actually, this even leads to uneven

[LyX/master] Fix comment.

2015-07-14 Thread Jean-Marc Lasgouttes
commit 8f73d1e56bc690c5f528d93b30012f48a7da3dd7 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jul 14 18:03:58 2015 +0200 Fix comment. diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 8d574ad..43af8df 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@

[LyX/master] Always use unicode override characters to enforce direction

2015-07-14 Thread Jean-Marc Lasgouttes
commit a05b8be4bfc17deec0a44b43beb2b05f8846d9b2 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jul 14 23:19:26 2015 +0200 Always use unicode override characters to enforce direction There is a second solution in the code which uses some undocumented Qt

[LyX/master] Convert a few more variables to int

2015-07-15 Thread Jean-Marc Lasgouttes
commit 1136bc4fb276e9182fb461ffdfbddcc58b622762 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Jul 15 10:16:42 2015 +0200 Convert a few more variables to int This avoids warnings with windows compiler. It is a pity that even clang does not give those. M

[LyX/master] Avoid breaking kerning with continuous spell checking

2015-07-15 Thread Jean-Marc Lasgouttes
commit 4796e6b33703a4308c39d34972afeae44dab59e0 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jul 14 23:45:41 2015 +0200 Avoid breaking kerning with continuous spell checking There is a mismatch between the way text is tokenized in Row objects and t

[LyX/master] Auto feature for minibuffer toolbar

2015-07-15 Thread Jean-Marc Lasgouttes
commit 7ac700920f0de8165b834010e211517098afbe14 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Apr 18 19:10:33 2015 +0200 Auto feature for minibuffer toolbar Now the minibuffer toolbar is "auto" by default. It is opened by command-execute (M-x)

[LyX/master] Avoid crash when inserting space in the middle of misspelled character

2015-07-15 Thread Jean-Marc Lasgouttes
commit cb0dbfdadbab745b7d184acf11f8a1a52cb857cd Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Jul 15 20:36:51 2015 +0200 Avoid crash when inserting space in the middle of misspelled character This is a fixup to commit 4796e6b3. diff --git a/src/RowPainter.cpp

[LyX/master] When adding completion to a row, add also the unique part

2015-07-15 Thread Jean-Marc Lasgouttes
commit 75640b66e503f5ca310e6f5b3a636989d0d750fe Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Jul 15 21:38:55 2015 +0200 When adding completion to a row, add also the unique part The unique and non-unique parts of the completion are show in different colors.

[LyX/master] Rename paintTextAndSel to paintStringAndSel

2015-07-15 Thread Jean-Marc Lasgouttes
commit 6c8520f100ec0e4d05fd51b25dcbf94b71039c4f Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Jul 15 22:47:47 2015 +0200 Rename paintTextAndSel to paintStringAndSel diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 14760f8..70c32aa 100644 --- a/src/RowPaint

[LyX/master] Remove extra row painting added by horizontal scroll branch

2015-07-15 Thread Jean-Marc Lasgouttes
commit 0f1fdaaa97e9fe01f0e97ca56f0e2380ba248a7e Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Jul 15 22:48:49 2015 +0200 Remove extra row painting added by horizontal scroll branch The bug workaround added an extra repaint, which can be very bad when editing

[LyX/master] Compilation fix for windows

2015-07-16 Thread Jean-Marc Lasgouttes
commit f51d7fdd2a0e6be47da166bb566337e3ff60c8fc Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jul 16 09:45:45 2015 +0200 Compilation fix for windows Since commit 7ac70092, lyx::dispatch returns a DispatchResult const &, which is ignored in the c

[LyX/master] Move some functions out of Bidi.*

2015-07-16 Thread Jean-Marc Lasgouttes
commit 96692bdbb0189b71803e83dbb18a2e3f006e7bf5 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jul 16 11:55:45 2015 +0200 Move some functions out of Bidi.* The functions reverseDirectionNeeded() and reverseDirectionNeeded() do not rely on the Bidi class. The

[LyX/master] End all Undo::Private members names with an underscore

2015-07-16 Thread Jean-Marc Lasgouttes
commit a7896cb190167fe7f8b63e6e7108fa8477e857ae Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jul 16 14:48:23 2015 +0200 End all Undo::Private members names with an underscore diff --git a/src/Undo.cpp b/src/Undo.cpp index 7a1c6fd..772b9d4 100644 --- a/src/Undo.cpp +++

[LyX features/rowpainter2] Code cleanup in RowPainter

2015-07-16 Thread Jean-Marc Lasgouttes
The branch, rowpainter2, has been updated. - Log - commit 1de0d2a19bf76cdbff30de2b3a9e3abfd1777c41 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jul 16 23:10:44 2015 +0200 Code cleanup in RowP

[LyX features/rowpainter2] Rely on Row elements to draw rows.

2015-07-16 Thread Jean-Marc Lasgouttes
The branch, rowpainter2, has been updated. - Log - commit 83afe2e547554a537e2ea01cf85b3535bbd77e2b Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jul 16 23:18:55 2015 +0200 Rely on Row elements to dra

[LyX features/rowpainter2] Remove old cruft

2015-07-16 Thread Jean-Marc Lasgouttes
The branch, rowpainter2, has been updated. - Log - commit f750d9b5cfbc2050e663044789ed9b44219b47fa Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jul 16 23:34:33 2015 +0200 Remove old

Re: [LyX features/rowpainter2] Rely on Row elements to draw rows.

2015-07-17 Thread Jean-Marc Lasgouttes
Le 17/07/2015 00:10, Jean-Marc Lasgouttes a écrit : commit 83afe2e547554a537e2ea01cf85b3535bbd77e2b Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jul 16 23:18:55 2015 +0200 Rely on Row elements to draw rows. The new version of paintText is quite short. El

[LyX/master] Fix logic error in on-screen font shape

2015-07-17 Thread Jean-Marc Lasgouttes
commit 4cdd9732d3f29f212d6abda019e3cf88623272df Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Jul 17 12:07:52 2015 +0200 Fix logic error in on-screen font shape This made text in smallcaps+emph display as upright instead of plain emph. There is no late

[LyX/2.1.x] Fix logic error in on-screen font shape

2015-07-17 Thread Jean-Marc Lasgouttes
commit a8bfb29eb2c0875bdde07497e0c6136a03a37d9d Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Jul 17 12:07:52 2015 +0200 Fix logic error in on-screen font shape This made text in smallcaps+emph display as upright instead of plain emph. There is no late

[LyX features/rowpainter2] Some fixups to row margins

2015-07-17 Thread Jean-Marc Lasgouttes
The branch, rowpainter2, has been updated. - Log - commit 412a724aaf8a532adba71f8e8491c258f651a4e1 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Jul 18 00:07:30 2015 +0200 Some fixups to row m

[LyX features/rowpainter2] Rewrite RowPainter::paintOnlyInsets to use row elements

2015-07-18 Thread Jean-Marc Lasgouttes
The branch, rowpainter2, has been updated. - Log - commit 038f003be671995e7c60b2be884c7799303ca840 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Jul 18 20:37:53 2015 +0200 Rewrite RowPainter::paintOnly

[LyX features/rowpainter2] Do not break row elements at spaces

2015-07-20 Thread Jean-Marc Lasgouttes
The branch, rowpainter2, has been updated. - Log - commit f65f3adbf73283a288f5d186b51b6b98c9ecb51d Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Jul 19 01:22:10 2015 +0200 Do not break row elements at

[LyX features/rowpainter2] Re-implement text justification

2015-07-20 Thread Jean-Marc Lasgouttes
The branch, rowpainter2, has been updated. - Log - commit b68f391232887a7879d8e736f14dd7692f56c365 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Jul 19 01:22:10 2015 +0200 Re-implement text justifi

[LyX features/rowpainter2] Get rid of SEPARATOR row element type

2015-07-21 Thread Jean-Marc Lasgouttes
The branch, rowpainter2, has been updated. - Log - commit 371bd2b1e53a7275f7a4eebbe3ad064acdecca2f Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jul 21 09:51:06 2015 +0200 Get rid of SEPARATOR row elemen

[LyX/master] Reset cursor font when entring an inset with char-forward/backward

2015-07-21 Thread Jean-Marc Lasgouttes
commit 7675a819496e9964f2264bf8f5f3757431e190e3 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Jul 17 16:13:34 2015 +0200 Reset cursor font when entring an inset with char-forward/backward When entering an inset from the keyboard, setCurrentFont() was not

[LyX/master] Initialize correctly the default keymap

2015-07-21 Thread Jean-Marc Lasgouttes
commit 0d38729281ab6d19a99cd874cce7b7132f3c9fb7 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jul 21 11:36:49 2015 +0200 Initialize correctly the default keymap If keymaps are activated and there is a secondary keymap but no primary one, then the p

[LyX/master] Reset properly the cursor font when leaving an inset to the left

2015-07-21 Thread Jean-Marc Lasgouttes
commit 2b760212e2ea1c271d83962c52de71ca04469325 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jul 21 11:50:36 2015 +0200 Reset properly the cursor font when leaving an inset to the left There was a missing setCursorFont there. Fixes bug #6032. diff

[LyX/master] Remember the cursor before an undo group

2015-07-21 Thread Jean-Marc Lasgouttes
commit 8ec408053721fdbae9107880e6b17fcca35dbce9 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jul 16 14:13:13 2015 +0200 Remember the cursor before an undo group With this patch, the cursor position before undo can be saved when creating an undo grou

[LyX/master] Code cleanup in RowPainter

2015-07-21 Thread Jean-Marc Lasgouttes
commit 1de0d2a19bf76cdbff30de2b3a9e3abfd1777c41 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jul 16 23:10:44 2015 +0200 Code cleanup in RowPainter * move some code that handle selection to paintInset() * change the arguments of paintSeparator() diff

[LyX/master] Some fixups to row margins

2015-07-21 Thread Jean-Marc Lasgouttes
commit 412a724aaf8a532adba71f8e8491c258f651a4e1 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Jul 18 00:07:30 2015 +0200 Some fixups to row margins In breakRow set left and right margin properly for RTL paragraphs. Remove corresponding code from ComputeRowM

[LyX/master] Get rid of SEPARATOR row element type

2015-07-21 Thread Jean-Marc Lasgouttes
commit 371bd2b1e53a7275f7a4eebbe3ad064acdecca2f Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jul 21 09:51:06 2015 +0200 Get rid of SEPARATOR row element type It is not used anymore. Also get rid of a comment made irrelevant by recent changes. diff

[LyX/master] Do not break row elements at spaces

2015-07-21 Thread Jean-Marc Lasgouttes
commit f65f3adbf73283a288f5d186b51b6b98c9ecb51d Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Jul 19 01:22:10 2015 +0200 Do not break row elements at spaces The goal of this commit is to make painting faster by reducing the number of strings to paint. To th

[LyX/master] Re-implement text justification

2015-07-21 Thread Jean-Marc Lasgouttes
commit b68f391232887a7879d8e736f14dd7692f56c365 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Jul 19 01:22:10 2015 +0200 Re-implement text justification * GuiFontMetrics::pos2x, x2pos: add support for inter-word spacing. * GuiPainter::text: idem

[LyX/master] Rewrite RowPainter::paintOnlyInsets to use row elements

2015-07-21 Thread Jean-Marc Lasgouttes
commit 038f003be671995e7c60b2be884c7799303ca840 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Jul 18 20:37:53 2015 +0200 Rewrite RowPainter::paintOnlyInsets to use row elements diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 9469012..1c74107 100644 ---

[LyX/master] Rely on Row elements to draw rows.

2015-07-21 Thread Jean-Marc Lasgouttes
commit 83afe2e547554a537e2ea01cf85b3535bbd77e2b Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jul 16 23:18:55 2015 +0200 Rely on Row elements to draw rows. The new version of paintText is quite short. Elements are treated one by one. They are already in the

[LyX/master] Remove old cruft

2015-07-21 Thread Jean-Marc Lasgouttes
commit f750d9b5cfbc2050e663044789ed9b44219b47fa Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jul 16 23:34:33 2015 +0200 Remove old cruft There are many things that are not necessary anymore: * remove methods paintText2, paintFromPos, left

[LyX/master] Do not break row at inset boundary if possible

2015-07-22 Thread Jean-Marc Lasgouttes
commit 7d19265ba02aa0f7dcd14b34bb3f04add8584ad8 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Jul 22 11:05:02 2015 +0200 Do not break row at inset boundary if possible The first change is to concentrate on the last ro elements that contain separators and try to

[LyX/2.1.x] Reset cursor font when entring an inset with char-forward/backward

2015-07-22 Thread Jean-Marc Lasgouttes
commit 2109412720046ab57d4873c7706c2c15e61d65f2 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Jul 17 16:13:34 2015 +0200 Reset cursor font when entring an inset with char-forward/backward When entering an inset from the keyboard, setCurrentFont() was not

[LyX/2.1.x] Initialize correctly the default keymap

2015-07-22 Thread Jean-Marc Lasgouttes
commit c2046bd19a0a89815fd3055edd46852bb0b3571a Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jul 21 11:36:49 2015 +0200 Initialize correctly the default keymap If keymaps are activated and there is a secondary keymap but no primary one, then the p

[LyX/master] Another go at improving row shortening

2015-07-22 Thread Jean-Marc Lasgouttes
commit d893400f93ab44837e60ec61a362a45c316bf072 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jul 23 00:39:27 2015 +0200 Another go at improving row shortening Instead of remembering the last breakable element in the row, search backward in the row and co

[LyX/2.1.x] When the document language is changed, update cursor language too

2015-08-24 Thread Jean-Marc Lasgouttes
commit b18fff0caa5c44e1d2d7b8c10bf4d5146c95a971 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Jun 3 12:14:30 2015 +0200 When the document language is changed, update cursor language too Actually, the change is done only if the cursor language was the do

[LyX/2.1.x] Properly notify insets after BufferView::doDispatch

2015-08-24 Thread Jean-Marc Lasgouttes
commit 56c4bf6c74255b43189002d4eecdd485caa1f8dc Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Jun 5 11:43:05 2015 +0200 Properly notify insets after BufferView::doDispatch Currently, insets are notified that the cursor entered or leaved them in Cursor::di

[LyX/2.1.x] Reset properly the cursor font when leaving an inset to the left

2015-08-24 Thread Jean-Marc Lasgouttes
commit 1c8033f0c01d20f164b18c7989d46b28ca34d8a2 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jul 21 11:50:36 2015 +0200 Reset properly the cursor font when leaving an inset to the left There was a missing setCursorFont there. Fixes bug #6032. diff

[LyX/master] Fix some row breaking problems with large insets

2015-08-24 Thread Jean-Marc Lasgouttes
commit f921c2e8ecbc8fd86e58fe9e2f78bb3effe21ef6 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jul 23 11:59:51 2015 +0200 Fix some row breaking problems with large insets When a row is too large due to a wide inset, it does not make sense to break text

[LyX/master] Fix continuous spell checking

2015-08-26 Thread Jean-Marc Lasgouttes
commit 4ede231ef1d995a364b2d16d3d038c4aa29a4544 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Aug 26 13:54:35 2015 +0200 Fix continuous spell checking The extra check became useless after 4796e6b3, but its presence only broke continuous spell checking

[LyX/master] Annotate missing breaks in switch for coverity

2015-09-12 Thread Jean-Marc Lasgouttes
commit 26322995b303a400d1c3a34aa10830a3e00d5599 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Sep 12 20:11:26 2015 +0200 Annotate missing breaks in switch for coverity Coverity issues 23344, 23354, 23371 and 102059 diff --git a/src/mathed/InsetMathNest.cpp

[LyX/master] Add missing break in switch

2015-09-12 Thread Jean-Marc Lasgouttes
commit 67907d2f12d71a0e6fb2d3cbe84bcf3199a4568a Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sat Sep 12 22:29:25 2015 +0200 Add missing break in switch Coverity issue 102058 diff --git a/src/Font.cpp b/src/Font.cpp index 34c5c0b..f0814a3 100644 --- a/src/Font.cpp

[LyX/master] Update file from Abdel's comments and some of my own thinking

2015-10-03 Thread Jean-Marc Lasgouttes
commit c4da9b9e37848909a0f6be2053c5d49225c1a641 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Oct 4 00:03:46 2015 +0200 Update file from Abdel's comments and some of my own thinking diff --git a/development/PAINTING_ANALYSIS b/development/PAINTING_ANALYSIS index f

[LyX/master] Small typos in PAINTING_ANALYSIS

2015-10-03 Thread Jean-Marc Lasgouttes
commit 7ef19902ea3d3fe6867fc83add2fb157f239d631 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Oct 2 17:26:28 2015 +0200 Small typos in PAINTING_ANALYSIS diff --git a/development/PAINTING_ANALYSIS b/development/PAINTING_ANALYSIS index 12b9983..f3b8a47 100644 --- a/devel

[LyX/master] More updates to painting analysis

2015-10-04 Thread Jean-Marc Lasgouttes
commit d377e765a236832aab13e0ec66579afdc2979f6b Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Oct 4 22:28:36 2015 +0200 More updates to painting analysis diff --git a/development/PAINTING_ANALYSIS b/development/PAINTING_ANALYSIS index 08afa50..f86ad2d 100644 --- a/devel

[LyX/master] Repeat after me: into account, into account, into account

2015-09-27 Thread Jean-Marc Lasgouttes
commit cc241bdaaf0f63daf5e1afb4d8623a2f075943e5 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Sep 25 18:14:53 2015 +0200 Repeat after me: into account, into account, into account diff --git a/development/attic/changelogs/ChangeLog-1.txt b/development/attic/chan

[LyX/master] New helper method Row::Element::isRTL()

2015-09-21 Thread Jean-Marc Lasgouttes
commit 8b89709fc9e128f85757642db3bfe1ec3145e9c8 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Sep 18 15:42:24 2015 +0100 New helper method Row::Element::isRTL() diff --git a/src/Row.cpp b/src/Row.cpp index 7108c3c..e3e8a34 100644 --- a/src/Row.cpp +++ b/src/Row.cpp @@

[LyX/master] Fix some compilation problems in C++11 mode

2015-09-25 Thread Jean-Marc Lasgouttes
commit e1938aa2404e9e1a4343de7139e52cac4ac71739 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Sep 25 13:58:52 2015 +0200 Fix some compilation problems in C++11 mode Only enable std::regex when the header is present (fix Mac OS X issue). Remove s

[LyX/master] Remove PainterInfo argument to checkCursorScrollOffset

2015-10-05 Thread Jean-Marc Lasgouttes
commit f6c6416f289af0e21486c7a157dac7e5fab98623 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Oct 5 18:04:12 2015 +0200 Remove PainterInfo argument to checkCursorScrollOffset This will allow later to move its invokation to processUpdateFlags. Also,

Re: [LyX/master] Fix a debug comment

2015-12-07 Thread Jean-Marc Lasgouttes
Le 07/12/2015 08:02, Scott Kostyshak a écrit : commit acadb4d6083bc5dcf85d98041fbf6e717fc818ec Author: Scott Kostyshak Date: Mon Dec 7 02:02:04 2015 -0500 Fix a debug comment - //lyxerr << "drawing '" << char_ << "' font: " << pi.base.fontname << endl; +

[LyX/master] Make spellchecker dotted underlines thicker.

2015-12-02 Thread Jean-Marc Lasgouttes
commit 1546b91f27c6661cf5c22e22894ebfaa6f629ae9 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Nov 25 22:09:45 2015 +0100 Make spellchecker dotted underlines thicker. diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index ce5780b..ec083e9 100644 --- a/src/RowPaint

[LyX/master] Remember the last used QTextLayout object

2015-12-09 Thread Jean-Marc Lasgouttes
commit f3cdf74e68bd44074ed985106361552161efde2c Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Dec 7 10:32:34 2015 +0100 Remember the last used QTextLayout object This crude caching mecanism is useful in the particular case of a screen with many misspelling

[LyX/master] When counting hfills, make sure that they are active

2015-12-09 Thread Jean-Marc Lasgouttes
commit 7dbd63e2b917c31f5767618ef5e999c72c52ee5b Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Nov 27 11:50:26 2015 +0100 When counting hfills, make sure that they are active The active/inactive status of hfills was not checked in numberOfHFills. Th

[LyX/master] Fix width of row when there are active hfills

2015-12-01 Thread Jean-Marc Lasgouttes
commit 39e33d513844b0102dac11abfa9cced4bd98bc17 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Nov 30 22:00:48 2015 +0100 Fix width of row when there are active hfills It is important to make sure in computeRowMetrics that the row width is correct at t

[LyX/master] Fix syntax error whe testing old compilers

2015-12-07 Thread Jean-Marc Lasgouttes
commit 26b3674240f7739f1364657f93464151b7ca8f24 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Dec 7 22:51:36 2015 +0100 Fix syntax error whe testing old compilers diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index 30697d7..d7ef249 100644 --- a/config/lyxincl

[LyX/master] Autotools: use -Wno-deprecated-declarations also with --disable-warnings

2015-12-11 Thread Jean-Marc Lasgouttes
commit 314a121c9eda139d62ce2bffda71a93099dc7856 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Dec 11 10:31:46 2015 +0100 Autotools: use -Wno-deprecated-declarations also with --disable-warnings -Wno-deprecated-declarations is needed to avoid warnings about au

[LyX/master] Make text margin size dependent on zoom and dpi

2015-12-11 Thread Jean-Marc Lasgouttes
commit 9c43747cc9d50a4ccb8d3ada651596b71a2862c9 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Dec 3 10:07:52 2015 +0100 Make text margin size dependent on zoom and dpi The default hardcoded value of 10 corresponds to 2.5mm at 100dpi, but does not make much

[LyX/master] Do not use a static variable as QTextLayout cache

2015-12-16 Thread Jean-Marc Lasgouttes
commit 91b385166de84677197f326702f0e95a5d649091 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Dec 11 16:33:34 2015 +0100 Do not use a static variable as QTextLayout cache It is a bad idea to have a QObject variable that oulives the main QApplication objec

[LyX/master] Improve visually text classes paper and foils

2016-01-04 Thread Jean-Marc Lasgouttes
commit 857f011e915d51a80e55b7ac14ebbd0a7e1330e2 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Jan 4 11:51:08 2016 +0100 Improve visually text classes paper and foils This does not change output, only GUI. paper: make sure that the starred sections use

[LyX/2.1.x] Improve visually text classes paper and foils

2016-01-04 Thread Jean-Marc Lasgouttes
commit 0b0167b4cc9ee4f911dc5ccdf7dd5fc36bf51897 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Mon Jan 4 11:51:08 2016 +0100 Improve visually text classes paper and foils This does not change output, only GUI. paper: make sure that the starred sections use

[LyX/master] Fix entering inset in visual cursor mode

2016-01-05 Thread Jean-Marc Lasgouttes
commit d3c00446179927360380c1511294e5a7ef19e269 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jan 5 10:10:26 2016 +0100 Fix entering inset in visual cursor mode Improve the test whether cursor has moved in Cursor::posVisLeft. The code for posVisRight had alread

[LyX/master] When moving cursor, always reset anchor

2016-01-05 Thread Jean-Marc Lasgouttes
commit 01fc62b78eb844d400803f0a489d5b326714708b Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jan 5 11:12:00 2016 +0100 When moving cursor, always reset anchor This applies to BufferView::moveToPosition, which is used for bookmarks and initial cursor po

[LyX/2.1.x] Fix entering inset in visual cursor mode

2016-01-05 Thread Jean-Marc Lasgouttes
commit 3fad30da63f7fa963269af1241438923f6dfa172 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jan 5 10:10:26 2016 +0100 Fix entering inset in visual cursor mode Improve the test whether cursor has moved in Cursor::posVisLeft. The code for posVisRight had alread

[LyX/2.1.x] Avoid swapping a cell with itself

2015-12-31 Thread Jean-Marc Lasgouttes
commit b01f7a6bdd860753e0bd27818ff2c3cc2f2ce783 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Dec 23 11:05:28 2015 +0100 Avoid swapping a cell with itself Gcc STL debugging feature asserts when swapping an object with itself. This happens in some cases wit

[LyX/master] Do not setup building of 3rdparty/libiconv

2016-01-01 Thread Jean-Marc Lasgouttes
commit a69d6496268f13101eaeebda6452f1bfd2dfec48 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Dec 30 21:44:59 2015 +0100 Do not setup building of 3rdparty/libiconv This causes build problems with automake < 1.14 because two files have the same name. This o

[LyX/master] tex2lyx: Add a newline at the end of comment if not at the end of a paragraph.

2015-11-20 Thread Jean-Marc Lasgouttes
commit 2811f76039c20b886ddab4979be924bf1267c977 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Sep 9 11:47:47 2015 +0200 tex2lyx: Add a newline at the end of comment if not at the end of a paragraph. When importing TeX code like %comment TEXT t

[LyX/master] Improve debug message

2015-11-20 Thread Jean-Marc Lasgouttes
commit 46ca4e9aa62208c413a5662017804a2a3cde6697 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Nov 20 22:43:45 2015 +0100 Improve debug message diff --git a/src/CoordCache.cpp b/src/CoordCache.cpp index 53f1d0a..62c970a 100644 --- a/src/CoordCache.cpp +++ b/src/CoordCac

[LyX/master] Fix length of hfills

2015-11-24 Thread Jean-Marc Lasgouttes
commit 1f0305509b99681885958c03f8d8f04c1564c84c Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Nov 13 10:57:26 2015 +0100 Fix length of hfills The computation of the legth of expanded hfills did not take into account their unexpanded size. This is do

[LyX/master] Fix the logic of selection of std::regex

2016-01-11 Thread Jean-Marc Lasgouttes
commit 39717adfda1620c5eb2bee122622dff1a99ba7af Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Jan 6 10:33:54 2016 +0100 Fix the logic of selection of std::regex This amends commit e1938aa2, which introduced some logic errors: regex would be enabled f

[LyX/master] Fix compilation error with clang's libc++

2016-01-11 Thread Jean-Marc Lasgouttes
commit 626f8d4448608764a76f6eb209a8fef9507ab8b4 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Jan 8 09:51:32 2016 +0100 Fix compilation error with clang's libc++ The bug is probably fixed for clang 3.7.1 or 3.8.0 diff --git a/src/TocBackend.h b/src/TocBackend.h

[LyX/2.2.2-staging] Take inset dimension into account in row signature

2016-06-03 Thread Jean-Marc Lasgouttes
commit 07dcd0c4e9e96246258c406e4baf0a8a54429287 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Jun 3 11:21:09 2016 +0200 Take inset dimension into account in row signature In some cases, the insets may change height or width without changing the other a

<    5   6   7   8   9   10   11   12   13   14   >