Commit Graph

46332 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
5e1c414a21 In the no-draw phase, do not cache the positions of not visible insets
This can make a big difference for a very large branch that contains
lots of equations.

This is complementary to the previous patch, since instead of reducing
the number of calls to updatePosCache, we make it faster.

In the same test of scrolling with mouse wheel through the
branch-test.lyx document, one finds a 23% improvement for
BufferView::updateMetrics().

Part of bug #12297.

(cherry picked from commit 7f85024f80)
2024-04-18 16:45:58 +02:00
Jean-Marc Lasgouttes
e51f9d9f88 Remove some redundant calls to updatePosCache
The setting of insets positions was done twice in updateMetrics.
When one of the paragraph is a huge branch, this can be very expensive.

This leads to a 17% improvement on updateMetrics time on a scrolling test.

Part of bug #12297

(cherry picked from commit d19ade9a61)
2024-04-18 16:45:58 +02:00
Jean-Marc Lasgouttes
13c7fd78c6 Enable Update::SinglePar in nested insets too
The idea of single par update is to try to re-break only the paragraph
containing the cursor (if this paragraph contains insets etc.,
re-breaking will recursively descend).

The existing single paragraph update mechanism was tailored to work
only at top level. Indeed changing a paragraph nested into an inset may
lead to larger changes.

This commit tries a rather naive approach that seems to work well: we
need a full redraw if either

1/ the height has changed
or
2/ the width has changed and it was equal to the text metrics width;
   the goal is to catch the case of a one-row inset that grows with
   its contents, but optimize the case of typing in a short paragraph
   part of a larger inset.

NOTE: if only the height has changed, then it should be
  possible to update all metrics at minimal cost. However,
  since this is risky, we do not try that right now.

Part of bug #12297.

(cherry picked from commit 9a96726bcd)
2024-04-18 16:45:58 +02:00
Richard Kimberly Heck
365ff71e23 Defer construction of temporary cursor.
We were doing this on every mouse movement. I.e., for every single
pixel the mouse traverses. It can be expensive if there are a lot
of math insets.

(cherry picked from commit 4e8aa89eb9)
2024-04-16 12:20:51 -04:00
Juergen Spitzmueller
d29baf59a4 Disable language package choice if the class preloads a package
(cherry picked from commit 5477451e36)
2024-04-14 08:13:55 +02:00
Juergen Spitzmueller
d21042299f Set cursor font after pasting to PassThru inset (#12592)
(cherry picked from commit 09c72d7c8d)
2024-04-14 08:09:56 +02:00
Juergen Spitzmueller
276a80fccb Document 76dbb9dc4 2024-04-13 07:16:21 +02:00
Koji Yokota
76dbb9dc40 Fix wrong position of conversion windows of the input method #11723, #13054 2024-04-12 21:17:04 +09:00
Juergen Spitzmueller
0ecfb01a79 Document 0d3d91c055
(cherry picked from commit 012c739668)
2024-04-06 10:00:24 +02:00
Pavel Sanda
6dc68a632e * status.24x 2024-04-05 23:15:53 +02:00
Pavel Sanda
7e2c1dca36 Improve stats update times for buffer switches and toolbar toggles. 2024-04-05 23:14:25 +02:00
Pavel Sanda
a11a4db8b2 * status.24x 2024-04-05 19:45:09 +02:00
Pavel Sanda
ae07763abf Allow relative statistics values in statusbar.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg221311.html
2024-04-05 19:44:25 +02:00
Kornel Benko
a2dbac8e07 Update sk.po 2024-04-03 13:08:36 +02:00
Juergen Spitzmueller
3034a150f2 Add status file 2024-04-03 09:35:12 +02:00
Juergen Spitzmueller
b506306e08 de.po 2024-04-03 09:19:14 +02:00
Juergen Spitzmueller
3b4d9f8606 Dissolve some shortcut conflicts in the wake of f3a4602c4c
(cherry picked from commit 728175f9ac)
2024-04-03 09:15:46 +02:00
Juergen Spitzmueller
c92d14e8c9 Smarter menu length calculation
It is possible I have missed some shortcut conflicts, so please report
if you find any.

(cherry picked from commit f3a4602c4c)
2024-04-03 09:15:27 +02:00
Juergen Spitzmueller
ad95503c0b Update German User Guide 2024-04-03 07:40:56 +02:00
Juergen Spitzmueller
1424c518ab de/UserGuide: update 2024-04-03 07:39:33 +02:00
Richard Kimberly Heck
368f10571a Ignore all build* directories 2024-04-02 22:03:53 -04:00
Richard Kimberly Heck
c8534081c9 Docs for menu change 2024-04-02 22:02:55 -04:00
Kornel Benko
85c8cf6dcd Cmake build: Adapt for branch 2.4
(cherry picked from commit b8b9e8ec14)
2024-04-02 11:54:42 +02:00
P. De Visschere
00d59c17cd cmake build with qt6 (macos) did not include "plugins"
(cherry picked from commit 4d02fb7ad7)
2024-04-02 11:53:51 +02:00
Kornel Benko
0485574f76 Cmake build: Handle deprecated cmake versions
The warning says:
CMake Deprecation Warning at .../CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

Spotted by Scott Kostyshak

(cherry picked from commit 8d79860ea7)
2024-04-02 11:53:17 +02:00
Daniel Ramoeller
f957964e9b FindAdv: no paragraph indentation for more space in the search string
See #11555

(cherry picked from commit 638c04dd6a)
2024-04-02 11:52:43 +02:00
Kornel Benko
32a680e4fe FindAdv: Handle neg-spaces like normal space if searching without format
(cherry picked from commit 07cacef398)
2024-04-02 11:52:05 +02:00
Kornel Benko
1edbf565e4 Rename hasToString() to findUsesToString()
There are special cases where the toString() exist,
but still plaintext() is not to be used by find.

(cherry picked from commit 8de81e8dc1)
2024-04-02 11:51:15 +02:00
Kornel Benko
4cb805a9c8 Update sk.po 2024-04-02 11:40:55 +02:00
Juergen Spitzmueller
b4a93a493c de.po 2024-04-02 09:15:03 +02:00
Richard Kimberly Heck
deaaec065d Fix duplicate accelerator 2024-04-01 21:54:44 -04:00
Richard Kimberly Heck
d3101e6d6f Add shortcut for plain single quote. 2024-04-01 17:26:29 -04:00
Richard Kimberly Heck
29be057a07 Clarify quote-insert LFUN.
And add remark about multiple optional arguments.
2024-04-01 17:26:01 -04:00
Richard Kimberly Heck
9e5a98e8f9 Fix bug #13025.
Add plain single quote to menu.
2024-04-01 17:25:40 -04:00
Richard Kimberly Heck
32c5f1854d Mark 2.4.1 development branch 2024-04-01 16:20:55 -04:00
Juergen Spitzmueller
31ec96e01f Fix context menu of InsetMathRef 2024-04-01 17:59:56 +02:00
Juergen Spitzmueller
a020bbc4a8 Fix backslash LaTeXifying in InsetCommand
\ was transformed very early to \textbackslash{}, but then the following
routines escaped braces in the string, so we wrongly ended up in
\textbackslash\{\} and "\{} in the output
2024-04-01 10:57:27 +02:00
Juergen Spitzmueller
812e306dad Factor out shared method
Amends babb5b007b
2024-03-31 12:40:27 +02:00
jpc
55330a7844 Restore Chapter 11 2024-03-30 17:39:00 +01:00
Juergen Spitzmueller
babb5b007b Fix crash with quick search starting with mathed selection
setCursorSelection does not work with math. Copy the method from
spellchecker.
2024-03-30 10:14:34 +01:00
jpc
571babff5e Further translations of the French Additional manual 2024-03-29 18:58:25 +01:00
jpc
a9a328c85d Further translations of French Additional manual + typo and ref. to Hebrew Letter in sec 3.5 of Additional.lyx 2024-03-28 19:11:55 +01:00
Juergen Spitzmueller
698f922d19 Do not enter page break in heading (#13040)
Rather than that, put it before or after, or disallow,
depending on the position.
2024-03-28 18:03:54 +01:00
jpc
20c79dd472 Further translations of French Additional manual 2024-03-28 10:13:22 +01:00
jpc
cdb4cf5fa4 Further translation of French Additional manual + typo in English version 2024-03-27 18:39:25 +01:00
Jean-Marc Lasgouttes
43b1234a98 Typo in doc
Thanks to Peter J. Puchyr for noticing it.
2024-03-25 22:32:17 +01:00
Juergen Spitzmueller
60cffcd9b7 Fix alignment of screen font preview in prefs (remaining part of #13046) 2024-03-24 09:00:41 +01:00
Patrick de Visschere
58aca89003 Cmake build wit qt(5|6)(macos) did not include "plugins"
This makes things much simpler.

But at least with the latest macos tools (Sonoma and XCode15) a bundle
refuses to run if it 's not signed properly.

Both issues are solved with the patch included and have now been tested
with Qt5.15 and Qt6.7.

For completeness: I've checked the font-emph shortcut issue and, as
reported in the ticket mentioned, ^CmdE works with Qt5.15 but not with
Qt6.7. However the sequence ^C E does work. I don't know whether this is
intended as a workaround for this issue or was already implemented.
2024-03-23 11:28:31 +01:00
Jean-Marc Lasgouttes
4dfebbe9da Fix display of a math hull inset in a tight inset
This is a kind of hack. This allows InsetMathHull to state that it
needs some elbow room beyond its width, in order to fit the numbering
and/or the left margin (with left alignment), which are outside of the
inset itself.

To this end, InsetMathHull::metrics() sets a value in
MetricsInfo::extrawidth and this value is added later to the width of
the row that contains the inset (when this row is tight or shorter
than the max allowed width).

Fixes bug #12320.
2024-03-22 15:40:40 +01:00
Jean-Marc Lasgouttes
6d62d8009f Revert "Fix display of a math hull inset in a tight inset"
This commit will be replaed by a better solution.

Part of ticket #12320.

This reverts commit 4bbd4a45e7.
2024-03-22 15:08:26 +01:00