Commit Graph

46563 Commits

Author SHA1 Message Date
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
Stephan Witt
5cc72815cc Improved copy operation for user directory contents of previous major releases
- avoid copying of configure.log
- avoid copying of chkconfig.ltx
  There is a report of a hang on first start of LyX with new major release.
  The removal of the chkconfig.ltx (leftover from early LyX versions) fixed the issue.

(cherry picked from commit 945a02e2e1)
2024-04-13 21:26:44 +02:00
Juergen Spitzmueller
276a80fccb Document 76dbb9dc4 2024-04-13 07:16:21 +02:00
Juergen Spitzmueller
8c0e81db9a Clarify release note. 2024-04-13 07:12:34 +02:00
Pavel Sanda
f49c52a5b6 * pt_BR.po from Georger 2024-04-13 03:07:17 +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
8810e9418f Update Qt bug documentation (#12641) 2024-04-12 11:13:15 +02:00
Pavel Sanda
1e7f4476db * CREDITS regenerate 2024-04-11 09:45:38 +02:00
Pavel Sanda
437f0822f7 Update credits 2024-04-11 09:44:14 +02:00
Pavel Sanda
da9cab6c18 * zh_CN.po - update credits 2024-04-11 09:38:23 +02:00
Jiaxu Zi
1bd5fb97fa update zh_CN translation 2024-04-11 09:38:14 +02:00
Pavel Sanda
65398c1b77 Update Win installer for new dictionary links. Untested. 2024-04-10 21:14:58 +02:00
Pavel Sanda
644b8c8750 Docs - update URL for dictionaries after recent infra movements 2024-04-10 21:14:32 +02:00
jpc
2c5a92d053 Update fr.po: a couple of typos and shortcut conflicts resolution 2024-04-10 18:57:58 +02:00
jpc
cd4e8d04b3 French Additional manual, translation of chapter 4 up to sec. 4.9 2024-04-10 18:51:28 +02:00
Jean-Marc Lasgouttes
25f1174203 Fix compilation with msvc 2019
'uint' is not defined, 'unsigned int' is better.

(cherry picked from commit c7f53afd31)
2024-04-08 10:43:05 +02:00
Jean-Marc Lasgouttes
89afdb050f Do not include <QDate> in InsetInfo.h
This is used by getDate/getTime, which actually should not be
InsetInfoParams methods, but functions in anonymous namespace.

(cherry picked from commit 51562ff377)
2024-04-08 10:42:46 +02:00
Pavel Sanda
3540350d33 * layouttranslations.review, ack from Yitzhak. 2024-04-07 22:02:33 +02:00
Juergen Spitzmueller
87b3bea823 Fix assertion when pasting paragraph with insets in lyxrc.ct_markup_copied
This has to be done after the inset buffers have been initialized.

(cherry picked from commit 9198ed5965)
2024-04-07 06:31:26 +02:00
jpc
36f8cd0a8e French Additional manual, translation of chapter 4 up to sec. 4.3 2024-04-06 18:43:35 +02:00
Kornel Benko
c971974f33 Cmake build: Make QT5-compilation be default 2024-04-06 12:36:47 +02: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
cc4256e3bc * LFUNs.lyx - regenerate 2024-04-05 20:01:19 +02:00
Pavel Sanda
167534f6cf * quote-insert lfun description 2024-04-05 19:50:05 +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
jpc
4690de2bca Revert "Update sk.po"
This reverts commit 148001f6fe.
2024-04-05 17:51:02 +02:00
Juergen Spitzmueller
d35288f4cd Couple of corrections in RELEASE-NOTES (mainly typos) 2024-04-05 13:44:19 +02:00
Richard Kimberly Heck
37641cb08b Update update-po.sh script
(cherry picked from commit b360b9ebf7)
(cherry picked from commit eb57c93aab)
2024-04-04 17:18:24 -04:00
Jean-Marc Lasgouttes
0cd169d6ba Compilation fix with Qt < 5.7
Qt::ImAnchorRectangle has only been introduced in Qt 5.7. Since it is
used to answer a query from the IM machinery, there is no need for
it with older Qt versions.

(cherry picked from commit 6260689fd5)
2024-04-04 18:20:33 +02:00
Pavel Sanda
0ac87a2beb * ANNOUNCE 2024-04-03 21:49:05 +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
Juergen Spitzmueller
1dad179256 Fix label escaping in InsetMathRef (#12980)
This was completely broken: the IDs have been escaped in the LyX file
(which they absolutely shouldn't) but not in all LaTeX output (which
they should).

(cherry picked from commit 98080ca0d5)
2024-04-02 20:20:13 +02:00
jpc
1b0f8fae8a Update fr.po 2024-04-02 18:52:32 +02:00
jpc
a8338bb712 Translation of French Additional.lyx: chapter 3 completed 2024-04-02 17:45:31 +02:00
Kornel Benko
148001f6fe Update sk.po 2024-04-02 17:41:06 +02:00