Commit Graph

46692 Commits

Author SHA1 Message Date
jpc
723af05069 Remove non supported Article classes in UserGuide 2024-04-22 09:19:35 +02:00
Pavel Sanda
2f6fba2749 * metainfo.xml - homepage missing 2024-04-21 22:29:26 +02:00
Jean-Marc Lasgouttes
9b4b05e64e Document biginset branch 2024-04-21 22:26:41 +02:00
Richard Kimberly Heck
e83f91252c Status 2024-04-21 15:56:00 -04:00
jpc
b3e5f363a6 Update fr.po 2024-04-21 17:19:08 +02:00
Kornel Benko
462cb3c3c6 Update sk.po 2024-04-21 12:12:39 +02:00
Pavel Sanda
a5e7ff70f7 * cs.po 2024-04-21 11:57:29 +02:00
Juergen Spitzmueller
075fdbd4f9 de.po 2024-04-21 11:25:12 +02:00
Juergen Spitzmueller
4d8316402d remerge strings 2024-04-21 11:24:02 +02:00
Juergen Spitzmueller
237b0404ff Handle the case of outdated chkconfig.ltx in user directory
(cherry picked from commit b8ff824a4f)
2024-04-21 09:36:21 +02:00
Juergen Spitzmueller
64393c7c6e Status update 2024-04-21 09:34:35 +02:00
Juergen Spitzmueller
9871c17ec2 gbrief-2 loads babel internally. So don't load it ourselves.
This makes the class fully functional with non-TeX fonts (it uses
\babelfont for the purpose). Before, docs were compiling but the
output was wrong.

(cherry picked from commit c3c96a446b)
2024-04-21 09:32:15 +02:00
Juergen Spitzmueller
7b7322b831 g-brief loads babel internally. So don't load it ourselves.
This makes the class fully functional with non-TeX fonts (it uses
\babelfont for the purpose). Before, docs were compiling but the
output was wrong.
2024-04-21 09:30:27 +02:00
José Matos
cc75da1c3e Convert $${python} placeholder for graphic conversions
(cherry picked from commit cdcaf0e7b6)
2024-04-20 20:20:21 +01:00
Kornel Benko
d85e281973 Cmake install: Forgotten to install tabletemplates.
(cherry picked from commit d05e295ddc)
2024-04-20 19:38:17 +02:00
Kornel Benko
10ca66a7fa Cmake install: Forgotten to install tabletemplates.
(cherry picked from commit d05e295ddc)
2024-04-20 19:36:52 +02:00
jpc
e38b429418 French UserGuide: check spelling and remove no more exiting article classes 2024-04-19 18:54:55 +02:00
Stephan Witt
5554fe9aeb #13049 add window activation for preferences to avoid it be hidden by main window on mac after alert prompts
(cherry picked from commit 4c1db7cad8)
2024-04-19 14:01:41 +02:00
jpc
217315be0f Typos in Additional.lyx, seen while translating in French 2024-04-19 11:41:53 +02:00
jpc
2867cc397d Typo in fr.po 2024-04-19 11:22:45 +02:00
jpc
556e75d3ad Typos iun Franch Additional manual 2024-04-19 11:21:08 +02:00
jpc
70089a8f40 Update translation of the French Additional manual, section 4.12 missing 2024-04-19 10:57:29 +02:00
Pavel Sanda
ebbbfca213 * another update fo zh_CN.po 2024-04-19 00:15:38 +02:00
Jean-Marc Lasgouttes
c9f5f34fd7 Always repaint the gray area below main inset
Now that SingleParUpdate does not always lead to a full screen update
when the height of the paragraph changes (see new behavior of
updateMatrics(bool)), it is necessary to make sure that the grey area
below the main page is always repainted.

(cherry picked from commit 1a11abe439)
2024-04-18 16:46:38 +02:00
Jean-Marc Lasgouttes
15eef6a2c7 Do not compute metrics at each preview when loading file
With the branch-test.lyx file from #12297, loading takes forever when
previews are activated. This is because each preview element causes a
full screen metrics recomputation.

This commit just skips these calls and only does one when all previews
have been obtained. As a result, computing the previews takes 1 second
instead of 25 seconds on branch-test.lyx.

Part of bug #12297.

(cherry picked from commit 2449693301)
2024-04-18 16:45:58 +02:00
Jean-Marc Lasgouttes
e5aaa64b63 Improve the code that limits scrolling at top/bottom
The most visible part of this commit is the move of part of
BufferView::updateMetrics to a new TextMetrics::updateMetrics. This
new method makes sure that metrics are known for all visible paragraphs
(starting from anchor), and that the positions of the paragraphs have
been recorded.

This method is called up to 3 times in BufferView::updateMetrics:
* unconditionally, to update all visible metrics,
* then, if the bottom of the document is visible and too high, after
  updating the anchor ypos,
* and similarly if the top of the document is visible and too low.

This fixes for example the case where one jumps to Section 5.3 at the
end of Tutorial and 'scroll_below_document' is false.

Some now redundant code is removed from BufferView::scrollToCursor.

The anchor-setting code in BufferView::draw is not clearly useful, but
left here just in case. It generates a debug warning, though.

Part of bug #12297.

(cherry picked from commit f15d2ebf38)
2024-04-18 16:45:58 +02:00
Jean-Marc Lasgouttes
2434a3a288 Implement quick scroll
Replace flag parameter for updateMetrics() by a `force' boolean. When
it is false, the method keeps the metrics of paragraphs that are still
visible in WorkArea instead of computing everything afresh. All it has
to do is update their positions.

Add code to updateMetrics() to update the value of the anchor pit/ypos
(similar to the one in draw()).

Update processUpdateFlags() to use this when update flag is ForceDraw.

Modify scrollDocView() to just change the anchor paragraph position
when the scrolling operation would re-use some of the existing
paragraphs.

The time needed to update the metrics when scrolling with mouse in the
branch-test.lyx document is now divided by 20!

Part of bug #12297.

(cherry picked from commit 08010c6a5e)
2024-04-18 16:45:58 +02:00
Jean-Marc Lasgouttes
b1a0983570 Introduce new helpers ParagraphMetrics::top/bottom
This avoids code with position/ascent/descent that is difficult to follow.

No change in function intended.

(cherry picked from commit 0b6105b924)
2024-04-18 16:45:58 +02:00
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
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