Commit Graph

29554 Commits

Author SHA1 Message Date
Pavel Sanda
26d27eda58 Requiring C+11 & purging boost includes makes bind.h useless. 2024-10-23 20:07:16 +02:00
Jean-Marc Lasgouttes
88e092ae02 Fixup c39d5b76: the wrong branch of #if was retained. 2024-10-23 15:34:27 +02:00
Jean-Marc Lasgouttes
438fed6b62 Mac OS X is macOS these days 2024-10-23 14:14:04 +02:00
Jean-Marc Lasgouttes
19ef7a2dea Remove references to older Qt versions 2024-10-23 13:43:36 +02:00
Jean-Marc Lasgouttes
0a4f7db022 If the comment is correct, this code is not needed anymore
This was introduced at 3da25187.
2024-10-23 13:41:14 +02:00
Jean-Marc Lasgouttes
8837f8ca8c Remove workaround that is not needed anymore with Qt 5.12
See discussion at
https://stackoverflow.com/questions/10755058/qflags-enum-type-conversion-fails-all-of-a-sudden
2024-10-23 13:37:29 +02:00
Jean-Marc Lasgouttes
29c4e4706e Use QT_CHECK_VERSION to condition on qt version 2024-10-23 13:23:05 +02:00
Jean-Marc Lasgouttes
c39d5b760c Require at least Qt 5.12. Part2: Qt frontend
Most of it is fairly mechanical, but some parts require care.
2024-10-23 12:00:20 +02:00
Jean-Marc Lasgouttes
6ba2b5c5b9 Require at least Qt 5.12
Update the #if confitional accordingly everywhere excpt in frontends/qt.

Update INSTALL and README.

Cmake will need to be updated too.
2024-10-23 10:50:23 +02:00
Pavel Sanda
aa7ca6a6bd Requiring C+11 & purging boost includes makes functional.h useless. 2024-10-22 20:45:20 +02:00
Jean-Marc Lasgouttes
ae1ecba10c Remove unused #include 2024-10-22 18:08:32 +02:00
Jean-Marc Lasgouttes
84b5fbe326 Get rid of boost/any, use <any> instead
We can do that now that we rely on c++17.

Take this occasion to upgrade boost to version 1.83.

The 3rdparty/boost directory weights now 1MB instead of 2.3MB.
2024-10-22 17:47:15 +02:00
Jean-Marc Lasgouttes
c916bd1502 Require C++17
Add a test that requires <any> header.

Update documentation.

Remove test for C++14.

Typical gcc version we have in mind is gcc 8.
2024-10-22 17:05:56 +02:00
Jean-Marc Lasgouttes
05f50a0544 Fixup 4d51a05c: QTimeZone is available since Qt 6.5 2024-10-21 17:37:43 +02:00
Jean-Marc Lasgouttes
7cda9a1d9f Improve spacing of _v_() helper macro 2024-10-21 15:46:56 +02:00
Jean-Marc Lasgouttes
9bc7d64140 Clean-up uses of statsEnabled() 2024-10-21 15:46:56 +02:00
Jean-Marc Lasgouttes
ac018b0304 Revert "Do not update statistics when not requested."
Actually, this test was already present.

This reverts commit c50debaffc.
2024-10-21 15:46:56 +02:00
Juergen Spitzmueller
4560cfd012 Fix dark/light mode setting and run-time switch with Qt 6.8
The old method doesn't work any longer. This one is also announced to
work cross OSes -- verification on Mac and Win is needed!
2024-10-21 12:34:57 +02:00
Juergen Spitzmueller
5ec247a957 Check for NULL pointer earlier
Reported by Coverity
2024-10-20 08:05:06 +02:00
Jean-Marc Lasgouttes
c50debaffc Do not update statistics when not requested.
If the user decides not to display statistics in the status bar, why
do the computation at all?
2024-10-19 19:02:26 +02:00
Juergen Spitzmueller
4d51a05ce4 Address Qt 6.7 deprecation warning
See https://doc.qt.io/qt-6.7/qdatetime-obsolete.html#setTimeSpec
2024-10-19 09:59:37 +02:00
Jean-Marc Lasgouttes
f4a3f4f29b Give a layout name to math HulInset
This makes it accessible to inset-forall.
2024-10-16 15:19:07 +02:00
Juergen Spitzmueller
1865738417 Escape standalone ampersands in xhtml InsetCitation 2024-10-16 12:55:11 +02:00
Pavel Sanda
abd26f1122 Not needed anymore 2024-10-15 20:09:52 +02:00
Jean-Marc Lasgouttes
507e21f84e Rename word-togglecase to word-invertcase.
As suggested by Jürgen.
2024-10-15 17:36:19 +02:00
Pavel Sanda
b7402aecfb * word-togglecase - add description from commit. 2024-10-14 21:00:41 +02:00
Jean-Marc Lasgouttes
afc524da3f Add LFUN_WORD_TOGGLECASE (word-togglecase)
The new function word-togglecase is a companion of word-upcase and
word-lowcase: it toggles each character between lowcase and upcase,
which is useful when one FORGOT THE cAPS lOCK KEY.

Add bindings (except for emacs) and a menu entry.
2024-10-14 18:19:09 +02:00
Jean-Marc Lasgouttes
3d2ffc5b53 remove spurious comment 2024-10-14 17:30:32 +02:00
Juergen Spitzmueller
83006fc080 Fix (biblatex) file encoding handling in GuiBibtex (#13109) 2024-10-08 14:04:34 +02:00
Jean-Marc Lasgouttes
65a014821e Remove unused #include 2024-10-06 20:56:02 +02:00
Juergen Spitzmueller
a16e4b206a Protect \inputencoding in i18npreamble
as it might end up in a moving argument (\lstlistlistingname in book
classes).

See https://marc.info/?l=lyx-devel&m=172812937932740
2024-10-06 16:23:05 +02:00
Juergen Spitzmueller
f048b2eeed Fix group box width in Document > Settings > Float Settings
Also fix typo in widget name
2024-10-06 15:49:24 +02:00
Jean-Marc Lasgouttes
4d89b2903b Fix up 6c20e5db: let PARAGRAPH_GOTO use SCROLL_TOP again
As said, this was an experiment. It did not seem to stick.
2024-10-05 15:30:22 +02:00
Jean-Marc Lasgouttes
09684899d6 Clean up after removal of strfwd.h
Remove autoconf tests for whether std::string uses COW, since this is
forbidden by C++11 standard.

Forbid the use of gcc 4.9 (which still uses COW).

Remove code in debug.h that added forward declarations for LLVM's
libc++, since we do not do forward declarations anymore.

Remove configure test for libc++.
2024-10-05 15:15:21 +02:00
Juergen Spitzmueller
1f7e8d3ffe Adhere to semantic background color with default branches
This fixes color mismatched when "use system colors" is checked

See https://marc.info/?l=lyx-users&m=172797086718347
2024-10-05 14:15:19 +02:00
Pavel Sanda
2facf6eecc Merged compilation does not exist anymore. 2024-10-04 20:53:26 +02:00
Pavel Sanda
b8f1f113f3 Remove trivstring.
Needed in times when std:string was not thread-safe,
but should be ok nowadays.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21334
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg223068.html
2024-10-04 20:49:55 +02:00
Pavel Sanda
9ccda98e6e Remove strfwd.h.
Will break cygwin due to trivstring header.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg223056.html
2024-10-04 20:49:33 +02:00
Jean-Marc Lasgouttes
69d8435a7f Avoid copying vector needlessly
The getLabel method will not consider more than 10 citation keys.
Instead of removing elements from the keys vector, this commit adapts
the for loop to skip unwanted elements.

This allows to pass the keys vector by const reference.

Spotted by Coverity scan.
2024-10-03 10:18:24 +02:00
Jean-Marc Lasgouttes
bc624cc780 Do not pass a vector by value to getArgInset
Instead of passing the vector by value so that stuff can be added to
it in the function, add required elements of arguments to a second vector.

While we are at it, simplify the code a bit by using a range-for and
auto keyword.

Spotted by Coverity scan
2024-10-01 13:06:37 +02:00
Jean-Marc Lasgouttes
54b6846941 Pass parameters as const reference
Spotted by Coverity scan.
2024-10-01 11:12:14 +02:00
Pavel Sanda
b39cc9ed89 Not needed anymore. 2024-09-30 20:11:23 +02:00
Pavel Sanda
601abfe929 PDF options: reflect in UI mutually exclusive colorlinks and frames.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg222961.html
2024-09-30 20:09:35 +02:00
Jean-Marc Lasgouttes
1d64dbf543 Modify string list in place instead of copying it
Spotted by Coverity scan.
2024-09-30 11:20:48 +02:00
Koji Yokota
a086804eb4 Fix IM window position for a new window (#13094) 2024-09-30 09:00:56 +09:00
Thibaut Cuvelier
75f467fa13 MathML: use Core for XHTML, 3 for DocBook.
In a near future, this should rather be controlled by a user-visible parameter.
2024-09-28 16:50:29 +02:00
Thibaut Cuvelier
790c153737 Use proper minus sign character in MathML Core.
Fixes bug https://www.lyx.org/trac/ticket/13067.

Based on the patch in the ticket above by Jean-Marc Lasgouttes.
2024-09-28 16:50:29 +02:00
Thibaut Cuvelier
ca5d5a0b1a amend 2024-09-28 16:50:29 +02:00
Thibaut Cuvelier
a06528ee2a Fix switch indentation. 2024-09-28 16:50:29 +02:00
Thibaut Cuvelier
cb88a362ea MathML: add a version enum. 2024-09-28 16:50:29 +02:00