Commit Graph

46688 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
d7e2ca377f Get rid of QPA_XCB define
Since the platform is selected at run time (e.g. xcb vs. Wayland), it
is not a good idea to decide at compile time what code is run. Another
example is on macOS, where having xcb libraries available will lead to
lauching the Xquartz whenever LyX is running.

With this patch, things are separated:
- the code is run when run-time platform is "xcb".
- the support code is compiled in when xcb header and libraries are
  available.

The cmake code is courtesy of Kornel Benko.

Fixes ticket #13086.

(cherry picked from commit 18c310a8cf)
(cherry picked from commit f1fddd86ef)
(cherry picked from commit 3bc4554e57)
(cherry picked from commit 8c14748e78)
2024-08-31 15:07:29 +02:00
Jean-Marc Lasgouttes
390f458122 Streamline -geometry command-line option support
Instead of baking our own support for -geometry command line option on
Windows (Qt only does that for Xcb), use the fact that Qt 5 provides
the equivalent -qwindowgeometry flag.

All we need to do is to replace the -geometry option with -qwindowgeometry.

This is part of the effort in ticket #13086 to get rid of the
compile-time QPA_XCB define.

(cherry picked from commit ce9de28f06)
2024-08-31 15:05:34 +02:00
Jean-Marc Lasgouttes
76ef192214 Fixup e2cf6731: fix thinko
The current buffer is part of allRelatives(), contrary to what I
thought. Therefore updateId() increased the buffer id by two.

(cherry picked from commit 2eb4e3d3ca)
2024-08-30 15:10:22 +02:00
Jean-Marc Lasgouttes
e2cf6731c0 Do not run updateMacros if the buffer has not changed
Each buffer now has an id which is increased when it is marked dirty
(or when one of its relatives is marked dirty).

This can be a big win since updateMacros is very expensive.

(cherry picked from commit 999fb37ebb)
(cherry picked from commit fe1a3b57df)
2024-08-30 11:11:10 +02:00
Koji Yokota
63165a95d5 update ja.po file 2024-08-28 23:39:03 +09:00
Richard Kimberly Heck
a8bc9c84eb Portuguese Brazilian update from Georger 2024-08-27 11:45:26 -04:00
Jean-Marc Lasgouttes
f06de64047 Force a metrics update of buffer after reload
It makes reload more robust and is in any case good enough to avoid
crash in #139091.

Fixes bug #13091.

(cherry picked from commit 52ec69a1af)
2024-08-27 14:07:51 +02:00
José Matos
f95e238ccd Python 3.13 removed the pipes module from the standard library
That module was a wrapper over the popen module and it was scheduled to
be removed in Python 3.11.

This code is also compatible with Python 2.

(cherry picked from commit d06a034578)
2024-08-27 08:50:11 +01:00
Enrico Forestieri
fd9f09e517 Update it.po 2024-08-25 23:38:11 +02:00
Juergen Spitzmueller
53ae96fb0b Assure OK/Apply button is initially disabled in InsetParamsDialogs (#8927)
(cherry picked from commit a2629b8eab)
2024-08-25 12:42:33 -04:00
Kornel Benko
16f8084536 Update sk.po 2024-08-25 11:31:14 +02:00
Pavel Sanda
940a58fa80 Update zh_CN.po from Jiaxu Zi 2024-08-24 19:48:29 +02:00
Pavel Sanda
83795d303b Fix branch name for the web 2024-08-23 21:37:38 +02:00
Pavel Sanda
f39711ee93 * postats.py description 2024-08-23 21:37:17 +02:00
Richard Kimberly Heck
b7e494bca8 Remerge strings. 2024-08-22 21:08:44 -04:00
jpc
df6fc4a6f8 Update fr.po before 2.4.2 2024-08-21 17:54:59 +02:00
Richard Kimberly Heck
a02c2f2f80 Begin preps for 2.4.2 2024-08-21 11:28:20 -04:00
Richard Kimberly Heck
4453ae8e97 Begin preps for 2.4.2 2024-08-21 11:26:30 -04:00
Richard Kimberly Heck
46f2fd1a74 Replace lyx2lyx code with native solution 2024-08-21 11:14:59 -04:00
Koji Yokota
0562b13743 Fix wrong preedit cursor position in Qt5 2024-08-20 21:11:15 +09:00
Kornel Benko
20548fbd0c Update sk.po, sk.gmo 2024-08-20 12:47:44 +02:00
Pavel Sanda
3a68177562 Fix regression introduced via #12819.
Cherry-pick e322ef153.
2024-08-20 09:32:03 +02:00
Koji Yokota
c1bfa93f1f Update ja.po 2024-08-19 11:05:10 +09:00
Enrico Forestieri
e4ed568921 Update status.24x 2024-08-18 23:00:02 +02:00
Enrico Forestieri
0237398a59 Update it.po 2024-08-18 22:56:29 +02:00
Juergen Spitzmueller
51d9776df3 de.po 2024-08-18 18:43:16 +02:00
Juergen Spitzmueller
7955854269 Document recent commits 2024-08-18 18:34:29 +02:00
Juergen Spitzmueller
a46fb46633 Improve output pane, as discussed in #12372
* The image scale param is shared by XHTML and DocBook
* It does not only apply to math
* Get rid of redundant group headers (#12902)

(cherry picked from commit 1429552063)
2024-08-18 18:32:03 +02:00
Juergen Spitzmueller
b21f104b37 Add "needcopiesfrom" converter flag
This is needed to provide ePub and other DocBook-based exports with
the right (renamed) images (fixes #12372)

(cherry picked from commit 03c5842006)
2024-08-18 18:29:22 +02:00
Kornel Benko
f8b18714c4 Update sk.po, sk.gmo 2024-08-18 13:09:26 +02:00
Pavel Sanda
3f31c8994c * cs.po 2024-08-18 12:07:24 +02:00
Juergen Spitzmueller
f179759b67 de.po 2024-08-18 09:20:56 +02:00
Richard Kimberly Heck
a9bc7a5752 Remerge strings. 2024-08-17 19:38:54 -04:00
Richard Kimberly Heck
3f7569edcd Add temporary directory to About LyX dialog
(cherry picked from commit e7af6afb01)
2024-08-17 19:37:37 -04:00
Enrico Forestieri
b079bfe4c8 Improve detection of our math fonts
It turns out that Qt font selection via style name is broken on
Windows (QTBUG-101436). As we use our own style name for discriminating
our math fonts and applying proper kerning, we need a fallback method.
With this commit we check for the family name when the style name does
not match. In computing the kerning we also consider the right bearing
reported by the font instead of the width of the enclosing bounding box,
as this produces better results (see bug 13087).

Fixes #13087.

(cherry picked from commit d632753dea)
2024-08-15 11:36:49 -04:00
Juergen Spitzmueller
9c13752d34 forgotten subindex
(cherry picked from commit 9835022c59)
2024-08-15 08:52:33 +02:00
Juergen Spitzmueller
092911880a Disable valign widget in tabularx tables
See https://marc.info/?l=lyx-users&m=172363857509065&w=2

(cherry picked from commit c993485782)
2024-08-15 07:32:04 +02:00
Juergen Spitzmueller
7d309d08fd Unbreak GuiTabular::fucEnabled()
I wonder how long this has been broken (if it ever worked)

(cherry picked from commit 6b0c243cda)
2024-08-15 07:26:59 +02:00
Juergen Spitzmueller
b6cd31e99a Properly escape special characters (!, @, |) in nomenclature output 2024-08-12 18:22:57 +02:00
jpc
b0fd84ea96 Update fr.po 2024-08-10 18:08:34 +02:00
Kornel Benko
097eba2ed1 Update sk.po 2024-08-08 10:36:52 +02:00
Juergen Spitzmueller
e5e4cd6086 lyx_pot.py: Fix regex for \Format
Each token could be delimited by quotation marks or not. The previous
regexes only considered this for two tokens and hence produced wrong
matches for cases such as

\Format gnuplot     "gp, gnuplot, plt"    "Gnuplot"     "" "" ""  "vector"	"text/plain"

where the extension list wasn't parsed as a single token.

(cherry picked from commit 1efdc11296)
2024-08-07 11:37:17 -04:00
Kornel Benko
38e36c552d Update sk.po 2024-08-07 10:53:41 +02:00
Juergen Spitzmueller
2802d8f6ec de.po 2024-08-07 09:14:44 +02:00
Richard Kimberly Heck
c13b5922c0 Restore obvious shortcut
(cherry picked from commit 337a94a425)
2024-08-06 14:51:12 -04:00
Juergen Spitzmueller
7ec52ec846 Add plt as gnuplot extension (#11148)
This seems to be the common one on Windows

(cherry picked from commit f2e6a9b4ae)
2024-08-06 11:38:11 -04:00
Richard Kimberly Heck
1ddd148b06 Fix bug with display of reference tooltips.
Previously, the tooltip was assigned during updateBuffer. But then
we could not determine the value for forward references.

(cherry picked from commit b494286a9c)
2024-08-06 11:35:20 -04:00
Richard Kimberly Heck
8f6c41a110 temp 2024-08-06 11:18:51 -04:00
Juergen Spitzmueller
f37bd183ab set toc_string_ before the label is being truncated
We do not want truncated items in the outliner.

(cherry picked from commit 8aeee03e3a)
2024-08-06 11:08:03 -04:00
Richard Kimberly Heck
91b085d5ad Use the old-style sorts of label strings in the TOC.
There are several reasons to do it this way, among which is odd
behavior of the TOC filter if we put anything else there. This also
allows for filtering of the references themsevles in a natural way.

The change, I think, was really an unintended consequence of other
changes connected to showing formatted references in the work area.

(cherry picked from commit 1de4645286)
2024-08-05 18:23:25 -04:00