Kornel Benko
a9b0f5faae
Cmake build with qt6 on MAC
...
Patch from P. De Visschere
Citing:
I also must exclude the QMacPasteboardMimeGraphics class in
GuiApplication.cpp since QMacPasteboard is not available anymore with qt6.
and add an #include <QStandardPaths> in support/Package.cpp (I suppose
this will pose no problem for qt5 but have not checked it, it's only
needed with USE_MACOSX_PACKAGING)
2021-03-26 13:11:44 +01:00
Thibaut Cuvelier
6102327d3b
Improve tool tip for the new DocBook MathML-prefix option.
2021-03-23 22:32:16 +01:00
Thibaut Cuvelier
6a5288e31e
DocBook: add the MathML-namespace prefix in the GUI.
2021-03-23 00:32:45 +01:00
Juergen Spitzmueller
2c553df178
Replace obsoleted signal
...
This has been obsoleted in Qt5 and dropped in Qt6
2021-03-21 12:51:38 +01:00
Juergen Spitzmueller
15c6d4c6b3
Fix Qt6 deprecation warning (QMouseEvent::x() ::y())
2021-03-21 12:38:05 +01:00
Juergen Spitzmueller
cbc55548a3
Fix Qt6 deprecation warning (QEvent::globalPos())
2021-03-21 12:37:17 +01:00
Juergen Spitzmueller
b7f983bc47
Address Qt6 deprecation warning (QLibraryInfo::location())
2021-03-21 12:30:34 +01:00
Juergen Spitzmueller
9ccbc11bf3
Fix unused variable warning with Qt6
2021-03-21 12:30:01 +01:00
Enrico Forestieri
34ffa80c4c
Fix latex syntax highlighting with Qt6
2021-03-17 10:17:10 +01:00
Enrico Forestieri
968be3f209
Fix copy&paste error
2021-03-17 08:59:04 +01:00
Pavel Sanda
4e2f8dbbeb
Qt4 compil fix
2021-03-16 09:39:05 +01:00
Enrico Forestieri
7cb2a10eb8
Amend 635a7d77
...
With a multiscreen setup and Qt6, make sure to get the geometry
of the screen containing the widget.
2021-03-15 18:35:58 +01:00
Enrico Forestieri
635a7d77dd
Allow compiling with Qt6
...
This commit allows compiling LyX with Qt6 when using autotools.
For a successful compilation the following 2 conditions must be met.
1) The Qt6 qmake has to come first in PATH, so that the command
"qmake -v | grep -o 'Qt version .'" returns "Qt version 6".
2) The --enable-qt6 switch has to be passed to the configure command.
If --enable-qt6 is used but Qt6 is not found, Qt5 is tried as a fallback.
If also Qt5 is not found, configuring for Qt4 is attempted.
If --enable-qt6 is not used, then things go as usual. This means that Qt5
is tried first and then Qt4, unless --disable-qt5 is used, in which case
Qt4 is directly attempted. This means that existing scripts should
continue working unmodified.
LyX should compile with Qt6 on windows and linux, and possibly also on
mac, but I could not test that. However, it is not guaranteed that it
works as it should. In particular I am not sure that I got right the
conversion from QRegExp to QRegularExpression. For sure, the syntax
highlighting seems to not work right. Someone in the know should take
a look at that. I am able to load documents and compile them but some
thourough testing is needed. However, when compiling for Qt5 or Qt4,
I tried to make sure that the functionality is preserved.
2021-03-15 17:09:09 +01:00
Juergen Spitzmueller
d5263f857e
Amend [1bf53d47a5b8/lyxgit]
2021-03-14 16:48:04 +01:00
Juergen Spitzmueller
1bf53d47a5
Use customizable zoom context menu
...
Based on a proposal by Daniel (#12187 )
2021-03-14 16:41:44 +01:00
Juergen Spitzmueller
d29d2f48fd
Toom value: back to QLabel, this time with custom context menu
2021-03-14 12:04:12 +01:00
Juergen Spitzmueller
663f198001
Properly set minimum width with QToolButton
2021-03-14 09:42:28 +01:00
Juergen Spitzmueller
ac1b3f0ba2
Fix indentation
2021-03-13 12:17:31 +01:00
Juergen Spitzmueller
71268e859d
Set zoom value after menu
...
Fixes initial size with styles that show a menu indicator
2021-03-12 16:30:50 +01:00
Juergen Spitzmueller
934c6480c0
Add forgotten parent
2021-03-12 10:54:46 +01:00
Juergen Spitzmueller
10f4f2113a
Fix deprecation warning (from|toTime_t)
2021-03-12 10:32:03 +01:00
Juergen Spitzmueller
26459a2cf5
Address another deprecation warning.
...
One left to go.
2021-03-12 10:10:33 +01:00
Juergen Spitzmueller
1a35afbe8f
Fix deprecation warning
2021-03-11 19:06:03 +01:00
Juergen Spitzmueller
8a605ca8ad
Add option to toggle zoom slider to zoom statusbar menu
2021-03-11 18:41:52 +01:00
Daniel Ramoeller
2710ec0840
Option to hide the zoom slider
...
Fix for bug #12187 .
2021-03-11 18:41:52 +01:00
Juergen Spitzmueller
f525bded59
Add menu to statusbar zoom value
2021-03-11 18:14:46 +01:00
Juergen Spitzmueller
7a000652c0
Do not scale statusbar icons
...
This leads to stretched icons.
2021-03-11 17:24:19 +01:00
Juergen Spitzmueller
a49abd7383
Remove zoom slider ticks
...
This doesn't align well
2021-03-11 17:24:19 +01:00
Jean-Marc Lasgouttes
5d8f3a9307
Fix debug output of FunCode
...
Outputing the FuncCode enum to a stream using the << operator does not
work well. Actually I am not sure whether the << operator in LyXAction
is supposed to work (don't we need an enum class for that?).
2021-03-09 16:26:44 +01:00
Juergen Spitzmueller
dee329a21f
Revert "Attempt to align slider and buttons in a widget"
...
This reverts commit ad44f4f448
.
2021-03-09 14:50:23 +01:00
Juergen Spitzmueller
ad44f4f448
Attempt to align slider and buttons in a widget
2021-03-09 14:23:13 +01:00
Juergen Spitzmueller
f07a588b25
Fix cut and paste error
2021-03-09 13:03:33 +01:00
Juergen Spitzmueller
f2e33b8c3e
Use real minus char
2021-03-09 10:10:48 +01:00
Juergen Spitzmueller
ebb7ee7d5f
Add +/- buttons to zoom slider
2021-03-09 08:42:27 +01:00
Daniel Ramoeller
3c43a01ba2
Smaller zoom slider on macOS
...
Fix for #12189 .
2021-03-09 07:34:33 +01:00
Juergen Spitzmueller
b9fb2a236e
Keep zoom label width constant ( #12186 )
2021-03-08 07:33:37 +01:00
Juergen Spitzmueller
cf75003119
Disable zoom slider when there is no buffer open ( #12185 )
2021-03-07 19:15:57 +01:00
Juergen Spitzmueller
0a3f856bc1
Update zoom display after zoom has been set
2021-03-07 18:35:40 +01:00
Juergen Spitzmueller
c8feef2e23
Add way to remove items from document dictionary
2021-03-07 18:23:07 +01:00
Juergen Spitzmueller
be6dc7dd5d
Show zoom value in statusbar
2021-03-07 17:21:52 +01:00
Juergen Spitzmueller
bc300585f7
Properly set initial zoom value
...
This depends on settings
2021-03-07 17:09:03 +01:00
Juergen Spitzmueller
128346d03d
Fix zoom slider with mouse wheel
2021-03-07 15:18:28 +01:00
Juergen Spitzmueller
9aad98836d
Fix for Qt < 5.11
2021-03-07 14:33:13 +01:00
Juergen Spitzmueller
b07084df2d
Add ticks to zoom slider
2021-03-07 14:29:55 +01:00
Juergen Spitzmueller
bdb006543b
Zoom slider
2021-03-07 13:29:23 +01:00
Juergen Spitzmueller
31dc0acbb8
Layout fix
2021-03-06 17:45:06 +01:00
Juergen Spitzmueller
07396ab244
Meet per-document spelling dictionaries ( fixes #86 [sic!])
...
Now who can beat that? ;-)
2021-03-06 16:53:33 +01:00
Juergen Spitzmueller
f1f475e1d3
Add LFUN_FONT_NO_SPELLCHECK
2021-03-05 18:23:38 +01:00
Juergen Spitzmueller
64095a0af2
Fix wrap with Spellchecker after ignore ( #10383 )
2021-03-04 18:02:04 +01:00
Juergen Spitzmueller
a57cdd0d30
Remove confusing and unusual "Find Next" button from spellchecker dialog ( #8931 )
2021-03-04 16:54:01 +01:00
Juergen Spitzmueller
8718d01770
Style
2021-03-04 14:52:39 +01:00
Juergen Spitzmueller
5920591b52
refillToolbars() does not need to be public
2021-03-04 14:51:58 +01:00
Juergen Spitzmueller
812b6f7d69
Allow for runtime (dark/light) mode switch
2021-03-04 12:35:38 +01:00
Daniel Ramoeller
fde432493d
Fix Disable Editing "Lock" icon protrudes into tab title on macOS
...
On macOS the Disable Editing "Lock" icon protrudes into tab title
Also, since the close button is on the left, the lock is better positioned on the right.
The detour via QIcon is to avoid a pixelated pixmap (because in LyX pixmaps don't adjust by default to the device's pixel ratio correctly).
Also
Fix for bug #12160 .
2021-03-02 18:38:14 +01:00
Juergen Spitzmueller
d49c4abb43
Merge branch 'master' of git.lyx.org:lyx
2021-03-02 08:36:42 +01:00
Jean-Marc Lasgouttes
f92f2f95ff
Cleanup High DPI support
...
Disable for Qt >= 6 (this is the default now).
Disable for macOS (does it in its own way).
2021-03-02 08:22:02 +01:00
Juergen Spitzmueller
f28affd421
Merge branch 'master' of git.lyx.org:lyx
2021-03-02 07:04:03 +01:00
Jean-Marc Lasgouttes
234886f6eb
Add Qt platform name in About dialog
2021-03-01 19:15:49 +01:00
Juergen Spitzmueller
0e54e01756
grammar
2021-02-28 17:38:01 +01:00
Juergen Spitzmueller
939dc4076f
Prevent infinite loop with instant search on Mac ( #12161 )
...
The search dialog was repeatedly feeded with the same string, and a
new search was triggered.
2021-02-28 17:36:06 +01:00
Juergen Spitzmueller
1205018286
Use a proper filter bar in the outliner
2021-02-28 13:57:24 +01:00
Daniel Ramoeller
2a8cac75f4
Adjust adv. find & replace pane spacing
...
Partial fix of bug #12152 .
2021-02-28 13:13:30 +01:00
Daniel Ramoeller
11548c523a
Adjust code preview spacing
...
Partial fix of bug #12152 .
2021-02-28 13:10:03 +01:00
Daniel Ramoeller
55f2445278
Adjust outliner spacing
...
Partial fix for #12152 .
2021-02-28 13:06:14 +01:00
Juergen Spitzmueller
5573825202
HiDPI support for search indicators ( #12162 )
...
Requires Qt5
2021-02-28 12:35:29 +01:00
Richard Kimberly Heck
0895b76f1e
Fix bug #12169
...
Patch from Daniel.
2021-02-27 13:27:05 -05:00
Daniel Ramoeller
d74367a96e
Use document mode on work area and docks on macOS
...
- More fittingly (plain) looking tabs for documents and docks.
- Also macOS fix for bug #9391 .
2021-02-26 20:01:43 +01:00
Jean-Marc Lasgouttes
42b23f3fb2
Display bookmarks in the workarea (take 2).
...
The bookmarks are shown with circled numbers in the right margin (or
the left margin in RTL mode). A new color "bookmarks" has been added.
Currently bookmark 0 (the return position) is not displayed because it
is very disturbing in practice.
To make this work, a new method BookmarksSection::bookmarksInPar
retuns the list of bookmarks in a paragraph along with their position.
Force redraw when using bookmark-save and bookmark-clear.
Caveats:
- this solution does not show the precise position of the bookmark
(this is supposedly not a problem).
- if several bookmarks are on the same row, they will currently be
garbled. It would be easy to make sure that only one is shown ; what
would be more difficult would be to move the second bookmark lower.
- it is possible to make sure that the markers are correctly centered
in the margin, and that the margin size is large enough to hold the
marker (I did not try all fonts).
Fixes bug #2496 .
2021-02-26 19:09:25 +01:00
Jean-Marc Lasgouttes
e4ab91d802
Revert "Display bookmarks in the workarea."
...
This will be replaced by a different version.
This reverts commit 99e636ae7b
.
2021-02-26 18:07:39 +01:00
Richard Kimberly Heck
946d112ee6
Allow to call cap::switchBetweenClasses without an ErrorList.
...
It turns out that we usually don't care about the errors and so
were creating dummy ErrorList objects in several places.
2021-02-25 21:49:50 -05:00
Jean-Marc Lasgouttes
d7a4f47e7d
Improve HiDpi handling
...
Add code stolen from QBitTorrent that enables properly HiDpi handling.
HighDpi support is set by default starting with Qt 5.6.
Support for fractional scaling is added for Qt >= 5.14.
Hopefully fixes bug #12060 .
2021-02-25 19:24:22 +01:00
Juergen Spitzmueller
55da675efa
FancyLineEdit: use QLineEdit's own clear button with Qt >= 5.2
2021-02-23 16:53:15 +01:00
Daniel Ramoeller
e050435314
Adjust label size to directory names in About
...
Fix for bug #11946 .
2021-02-22 07:19:28 +01:00
Enrico Forestieri
4e0d7f753b
Draw real dots
...
A new method for drawing ellipses has been added to the painter
and used for drawing real dots for math decorations and the various
\cdots, \ddots, \vdots, etc., latex commands.
2021-02-21 00:39:12 +01:00
Juergen Spitzmueller
269c583967
ProgressView: fix initial tab.
2021-02-20 08:10:01 +01:00
Richard Kimberly Heck
9c5f743575
Fix bug #12152 .
...
Patch from Daniel.
2021-02-19 17:31:36 -05:00
Yuriy Skalko
110862b09f
Fix setting of math matrix size with mouse
2021-02-19 18:06:04 +02:00
Juergen Spitzmueller
ed2f3dae5c
Select search string after inserting from find buffer
2021-02-18 15:56:32 +01:00
Juergen Spitzmueller
9ee73dbb30
GuiSearch: properly display indicators in dark mode
2021-02-18 15:44:27 +01:00
Daniel Ramoeller
672ff09634
Fix Undo with search-string-set
...
Makes it possible to use the find combobox's internal undo feature to undo a set search string.
2021-02-18 13:09:30 +01:00
Juergen Spitzmueller
a7e6dcc31d
GuiSearch: make search options visible/accessible in minimal mode
2021-02-18 07:33:26 +01:00
Juergen Spitzmueller
80cb0650e4
Clean up previous selections with empty searchstr on instant
2021-02-17 16:55:55 +01:00
Juergen Spitzmueller
ca160da07d
GuiSearch: separate findClicked() slot from more general function
...
the latter one is also accessed by different paths than clicking
2021-02-17 14:48:31 +01:00
Juergen Spitzmueller
180fca2fcd
Fix Find button with search as you type
2021-02-17 14:32:26 +01:00
Juergen Spitzmueller
05004e138f
FancyLineEdit: reformat using our indentation style
...
No change in function
2021-02-17 12:46:37 +01:00
Juergen Spitzmueller
50783d94a8
Advanced F&R: Improve code on Return key
2021-02-17 09:51:09 +01:00
Juergen Spitzmueller
a2a5656d07
Adv F&R: indicate search direction
2021-02-17 09:50:57 +01:00
Juergen Spitzmueller
5ed0dddcf2
Adv F&R: Fix accelerator conflicts
2021-02-17 09:49:25 +01:00
Juergen Spitzmueller
7ad70c908b
Add accelerator
2021-02-17 09:08:26 +01:00
Juergen Spitzmueller
fe44b3c0fa
GuiSpellchecker: resolve accelerator conflicts
2021-02-16 19:13:13 +01:00
Juergen Spitzmueller
76db3c3f85
GuiThesaurus: complement lyxfind options
2021-02-16 16:33:30 +01:00
Juergen Spitzmueller
109e98d945
GuiSearch: Properly delegate focus
2021-02-16 13:30:31 +01:00
Juergen Spitzmueller
213a3bc557
Add/fix some tooltips
2021-02-16 10:02:47 +01:00
Pavel Sanda
1ba3307226
GuiSearch did not work with num. keypad enter
2021-02-16 08:52:21 +01:00
Juergen Spitzmueller
5980afaee0
Add support for search/replace within selection ( #2548 )
2021-02-16 08:11:09 +01:00
Juergen Spitzmueller
df4da34836
GuiCitation: Add missing connection
2021-02-16 07:32:01 +01:00
Enrico Forestieri
a0a0119b48
Account for true dpi
...
We have to account for the physical rather than logical dpi.
See #12132 .
2021-02-15 22:43:36 +01:00
Juergen Spitzmueller
c4fbd0d913
Initialize F&R dialog with selected text ( #8448 )
2021-02-15 16:04:17 +01:00
Richard Kimberly Heck
bdd7e26b3e
Fix warning
2021-02-15 09:48:37 -05:00
Juergen Spitzmueller
e5958e3ca8
GuiSearch: catch Esc
2021-02-15 15:37:58 +01:00