Jean-Marc Lasgouttes
a7c1a39b5b
Make selections vertically tighter.
...
Introduce a new Row::contents_dim(), which height is restricted to the
row contents and does not contain any extra vertical spacing.
Rely on this for painting selections: if the selection starts on row,
for example, the ascent of the contents dim is considered. If ot was
started above, then the full dim is used.
Fixes bug #3899 .
2021-02-16 12:29:40 +01:00
Jean-Marc Lasgouttes
090e9a6c36
Keep the useful parts of reverted commits
...
Keep from 907f0207
the introduction of BufferView::top/bottomMargin()
and the setting of the top/bottom margin of the document. The
difference is that the extra height is still added to the relevant
rows, and not only to the paragraph metrics.
Keep from f41ca959
the reduction of top/bottom margin for Adv F&R
workareas.
2021-02-16 12:29:40 +01:00
Jean-Marc Lasgouttes
a40ca1430e
Revert "Improve handling of top and bottom margin"
...
This reverts commit 907f020724
.
2021-02-16 12:29:40 +01:00
Jean-Marc Lasgouttes
810b86560a
Revert "Reduce top/bottom margin for Adv F&R workareas"
...
This reverts commit f41ca959fd
.
2021-02-16 12:29:40 +01:00
Jean-Marc Lasgouttes
2c2ae5ecd8
Revert "Fix correction of row in getPitAndRowNearY"
...
This reverts commit 08a3405181
.
2021-02-16 12:29:40 +01:00
Jean-Marc Lasgouttes
f6c87c63c1
Revert "Make sure that top/bottom margins are visible when needed"
...
This reverts commit a78eb4471f
.
2021-02-16 12:29:40 +01:00
Juergen Spitzmueller
213a3bc557
Add/fix some tooltips
2021-02-16 10:02:47 +01:00
Juergen Spitzmueller
119e8c08d4
Fix replace all in selection with change tracking
2021-02-16 09:42:17 +01:00
Pavel Sanda
1ba3307226
GuiSearch did not work with num. keypad enter
2021-02-16 08:52:21 +01:00
Juergen Spitzmueller
5980afaee0
Add support for search/replace within selection ( #2548 )
2021-02-16 08:11:09 +01:00
Juergen Spitzmueller
df4da34836
GuiCitation: Add missing connection
2021-02-16 07:32:01 +01:00
Enrico Forestieri
a0a0119b48
Account for true dpi
...
We have to account for the physical rather than logical dpi.
See #12132 .
2021-02-15 22:43:36 +01:00
Richard Kimberly Heck
01dc665a25
Make continuous spellcheck the default.
...
Convert old preferences to preserve previous setting, as well.
2021-02-15 11:03:43 -05:00
Richard Kimberly Heck
93e7ab1f3e
Do not write \default_view_format if it is empty.
2021-02-15 10:55:37 -05:00
Juergen Spitzmueller
c4fbd0d913
Initialize F&R dialog with selected text ( #8448 )
2021-02-15 16:04:17 +01:00
Richard Kimberly Heck
bdd7e26b3e
Fix warning
2021-02-15 09:48:37 -05:00
Juergen Spitzmueller
e5958e3ca8
GuiSearch: catch Esc
2021-02-15 15:37:58 +01:00
Juergen Spitzmueller
958213ee52
Improve instant search
2021-02-15 14:12:07 +01:00
Juergen Spitzmueller
f4a91f6e9e
Correct tooltip
2021-02-15 11:32:42 +01:00
Juergen Spitzmueller
f59b8cb657
GuiSearch: Add auto-wrap option
2021-02-15 11:30:03 +01:00
Juergen Spitzmueller
22542700a7
Attempt at "search as you type"
2021-02-15 10:53:23 +01:00
Stephan Witt
3841304f80
Use explicit initialization for plain pointer to buffer view.
2021-02-15 10:03:39 +01:00
Juergen Spitzmueller
b2a317c037
Sett forward to true by default in search string parsing
2021-02-15 09:44:27 +01:00
Juergen Spitzmueller
d85c09ae14
GuiSearch: Replace icons on buttons by characters
2021-02-15 08:57:13 +01:00
Juergen Spitzmueller
7869437691
Forgot l7n flag
2021-02-15 08:42:15 +01:00
Pavel Sanda
b497baeea3
Guisearch Qt4 compatibility
2021-02-14 22:44:33 +01:00
Stephan Witt
d65e7a8c87
Additional check for clipboards find buffer support - otherwise Qt complains with unsupported clipboard mode
2021-02-14 22:18:07 +01:00
Jean-Marc Lasgouttes
5a58ca6576
Fix caret height when inserting new inset
...
For now, the simplest thing to do it to compute metrics in all cases
before calling setCurrentFont().
In 2.5, a better approach will be to add a new virtual function
InsetText::setFont that will set correctly TextMetrics::font_ (a cache
of the reference font).
Fixes bug #12126 .
2021-02-14 21:39:15 +01:00
Jean-Marc Lasgouttes
8117172d8a
Fixup 051b6ce6
: fix drawing of EndLabelString
...
Fixes bug #12122 .
2021-02-14 20:09:35 +01:00
Stephan Witt
3d616bfc79
#11925 Remove the gap between button frame and button background (by Daniel Ramoeller)
2021-02-14 19:04:52 +01:00
Juergen Spitzmueller
c4c62f7185
Remove duplicate header
2021-02-14 19:03:31 +01:00
Stephan Witt
a476cc4839
#8055 add support for system-wide find buffer on Mac
...
Command-E is standard for paste to find buffer on Mac. That's why the key binding is changed appropriately.
2021-02-14 18:56:25 +01:00
Stephan Witt
0bd9a8be3d
Proper initialization of private member bv_ of GuiSearchWidget
2021-02-14 18:48:42 +01:00
Juergen Spitzmueller
4db1a08450
Let replace combo enabled if replace buttons are disabled.
2021-02-14 18:23:54 +01:00
Juergen Spitzmueller
1cc615fa95
Remove empty layout
2021-02-14 18:20:27 +01:00
Juergen Spitzmueller
234c6b5c8b
Remove resolved FIXME
2021-02-14 18:15:33 +01:00
Juergen Spitzmueller
28239bf996
Frame takes less space than GroupBox
2021-02-14 18:12:38 +01:00
Richard Kimberly Heck
7c9eaa248d
nullptr
2021-02-14 12:05:45 -05:00
Richard Kimberly Heck
fe38f02cde
Update release notes for bookmark shortcuts
2021-02-14 11:46:27 -05:00
Richard Kimberly Heck
98f3ef0924
Amend 2baa3a46a6
.
2021-02-14 11:41:25 -05:00
Juergen Spitzmueller
2baa3a46a6
Transform simple search dialog to dock widget ( #2625 )
...
Also solves #8054
2021-02-14 17:18:00 +01:00
Kornel Benko
48528d0ff0
FindAdv: Use global declaration for findOne() to be usefull for unit tests
...
cherry-pick from unit-test-adoption/dff4779b06b, author: Yuriy Skalko <yuriy.skalko@gmail.com>
2021-02-14 09:08:23 +01:00
Thibaut Cuvelier
25d3d16360
Amend ac98f21f
2021-02-14 05:36:37 +01:00
Thibaut Cuvelier
ac98f21f8c
DocBook: for books only, create a preface around the first few elements so that the result is valid.
...
Books can only contain parts and chapters, not single sections or text after the abstract.
2021-02-14 05:20:36 +01:00
Enrico Forestieri
11392b7b33
Fix arrows at ends of math decorations
...
For math decorations with arrows at both ends the code was simply
stretching a prototype symbol, thus distorting the arrows.
Another drawing mode is introduced allowing to draw an element by
maintaining its aspect ratio also when it has to be drawn at the
other end of a decoration. An element drawn using this mode is simply
shifted to the other side by adding either the width or the height,
and a finer adjustment can be obtained by specifying an additional
horizontal or vertical shift.
2021-02-14 01:25:07 +01:00
Thibaut Cuvelier
d8c6bc7c1f
Stop using a GCC extension for an unprintable character in regex.
2021-02-13 18:23:20 +01:00
Richard Kimberly Heck
c6dfc70367
Show python info in About LyX
2021-02-13 11:53:14 -05:00
Kornel Benko
fe792d7efe
FindAdv: Tweak language settings
...
Language settings will be ignored if
a.) User selects if with setIgnoreFormat("language", true, true)
or
b.) The pattern does not contain lang-specs other than the default language of document
or
c.) The pattern contains math parts
2021-02-13 16:20:23 +01:00
Juergen Spitzmueller
f8021672ad
Address some deprecation warnings
2021-02-13 15:23:45 +01:00
Juergen Spitzmueller
9089839055
Resolve accelerator conflicts
2021-02-13 07:57:10 +01:00