Stephan Witt
11d42ac3df
Remove temporary code comment.
2022-01-03 10:44:02 +01:00
Stephan Witt
d432403430
#12434 add event handler for pinch-to-zoom gesture
2022-01-03 07:37:03 +01:00
Stephan Witt
47c92834df
Correct white space.
2022-01-01 16:37:07 +01:00
Stephan Witt
f22c5c3c3f
Remove unused local variable
2021-12-29 15:33:44 +01:00
Scott Kostyshak
9ffca92930
Allow toggling of Zoom elements without buffer
...
The elements are shown without a buffer so it's nice to be able to
toggle without one as well.
2021-12-27 13:43:19 -05:00
Daniel Ramoeller
eae56b1194
Hide the zoom in the status bar from the status bar context menu
...
Fix for #12420 .
2021-12-27 13:43:19 -05:00
Juergen Spitzmueller
de637cdbcb
Amend 59b8c209c41d
...
QFontMetrics::width() is no longer valid in Qt6
2021-11-02 16:28:40 +01:00
Daniel Ramoeller
59b8c209c4
Use labels for zoom slider buttons
...
Fix for bug #12301 .
Also: fixes the width and alignment of the zoom value label.
2021-11-02 08:43:59 +01:00
Juergen Spitzmueller
f3d5a95bb2
Redraw all work areas while zooming ( #12334 )
2021-10-31 13:43:27 +01:00
Daniel Ramoeller
96a4dd235e
Fix for bug #11974
...
Support for setUnifiedTitleAndToolBarOnMac (unify toolbar and title bar).
2021-10-31 10:42:14 +01:00
Jean-Marc Lasgouttes
ada713a881
Revert "Update correctly completion after undo"
...
This reverts commit 06acb7f806f99cd418781f9d0645b213f8241062.
2021-10-18 17:35:48 +02:00
Jean-Marc Lasgouttes
06acb7f806
Update correctly completion after undo
...
This is take #2 after reverting e59aee458.
Request the completer to rebuild a completion after undo/redo.
Fixes #12383 .
2021-10-14 16:39:33 +02:00
Stephan Witt
b59eed3846
#12368 correct spelling of toolbars visibility check function name
2021-10-13 18:11:37 +02:00
Yuriy Skalko
d3c335a5d5
Remove useless casts reported by GCC with -Wuseless-cast option
2021-09-30 10:37:24 +03:00
Daniel Ramoeller
0862042b28
SVG replacement of busy.gif
...
Fix for bug #10384 .
2021-09-29 12:49:56 +02:00
Daniel Ramoeller
c6c6576515
Open backup files via file open dialog
...
Fix for bug #12266 .
Also: Option to open any files as is standard in other apps.
2021-05-20 13:24:37 -04:00
Jean-Marc Lasgouttes
e4b80698be
Cache icons of dynamic menu buttons
...
The current code would load the same icons again and again and LyX
memory footprint would grow.
Tentative fixe to bug #12271 .
2021-05-05 14:53:25 +02: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
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
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
Juergen Spitzmueller
dee329a21f
Revert "Attempt to align slider and buttons in a widget"
...
This reverts commit ad44f4f4483e1b7c2a358c8b6f28d7f9efdf40ff.
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
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
812b6f7d69
Allow for runtime (dark/light) mode switch
2021-03-04 12:35:38 +01: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
Juergen Spitzmueller
109e98d945
GuiSearch: Properly delegate focus
2021-02-16 13:30:31 +01:00
Juergen Spitzmueller
c4fbd0d913
Initialize F&R dialog with selected text ( #8448 )
2021-02-15 16:04:17 +01:00
Pavel Sanda
ded8c873f4
Attempt on #12066 .
...
Some lfuns are handled directly in GuiApplication while handling
of menu hiding in fullscreen was done on the level of GuiView.
We'll see if this code movement breaks in different scenarios,
but quick grep suggested that the only other way to guiview
dispatch is through drag&drop when menu isn't involved.
2021-02-03 22:06:14 +01:00
Jean-Marc Lasgouttes
9f899a17fa
Force redraw of all bufferviews after zoom in/out
...
Add a new ForceAll update flag that forces to update metrics and
redraw all buffer views.
The situation in multi windows setting is very fragile and will need
to be adressed properly in the 2.5 cycle.
2021-02-03 15:42:11 +01:00