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
Richard Kimberly Heck
9504ec84c5
Simplify and polish
2021-01-13 14:42:26 -05:00
Richard Kimberly Heck
d41ec3368d
Fix bug #10635
2021-01-13 14:38:48 -05:00
Jean-Marc Lasgouttes
b64b1aa85e
Fix use of BookmarkSection::size()
...
The value was 9 instead of 10, which forced its users to use unusual code.
2021-01-06 19:33:20 +01:00
Richard Kimberly Heck
d4757eace0
Fix bug #11568 .
...
We can't rely on allow_async to tell us whether to put_in_tmpdir.
2021-01-03 22:56:05 -05:00
Juergen Spitzmueller
f661469734
Implement sane UI for switching tristate toolbars ( #6364 )
...
Also fix toolbar toggling with AllowAuto which was broken since
a long time.
2020-12-17 10:15:18 +01:00
Jean-Marc Lasgouttes
1dcb08104c
Make spellchecker work in read-only document
...
Mistakes are visible but word replacement is disabled. Disable relevant
widgets depending on the situation.
Move updateView code to SpellcheckerWidget::Private.
2020-12-07 18:33:45 +01:00
Yuriy Skalko
78f457796c
Implement proper Dialog factory instead of implicit link-time dependencies
2020-12-06 17:37:39 +02:00
Yuriy Skalko
0a8d3c9887
Fix loop variable, amend d8e8a93a58
2020-11-25 23:16:51 +02:00
Pavel Sanda
4eb791ff18
Erase white frame in fullscreen mode.
...
Since Qt 5.9.4 one can't set negative margins unless explicitely
allowed by a new flag. This brought back the white frame in
fullscreen mode.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg214002.html
2020-11-21 16:02:54 +01:00
Kornel Benko
5474c3fb4b
Missing '{'
2020-11-20 16:32:51 +01:00
Jean-Marc Lasgouttes
d8e8a93a58
Use range-based loops in GuiView
2020-11-20 15:14:21 +01:00
Jean-Marc Lasgouttes
222a317dd2
Store correctly the window position with Wayland
...
To do this, hard-coded test for xcb had to be replaced with a call to
platformName(). Since this method does not exist in Qt4, we emulate
it.
Note that Qt5 uses xcb bindings for X11 system, while Qt4 relies on
older X11 bindings. We return platorm == "qt4x11" in this case.
Fixes bug #11746 .
2020-11-14 17:55:59 +01:00
Jean-Marc Lasgouttes
21422dd652
Replace QFontMetrics::width() by horizontalAdvance() in Qt>=5.11
...
The method horizontalAdvance() replaces width() starting with Qt 5.11.
To handle this, all direct calls to QFontMetrics::width() are replaced
by calls to GuiFontMetrics::width(), and the code for
GuiFontMetrics::width(QChar) uses horizontalAdvance on newer Qt
versions.
2020-10-24 19:52:18 +02:00
Yuriy Skalko
af29f02dd8
Reduce includes in header files (2)
2020-10-19 18:01:17 +03:00
Yuriy Skalko
d25c10ed81
Remove duplicate and unused header includes in .cpp files
2020-10-19 18:01:11 +03:00
Thibaut Cuvelier
92b9c82dea
Fix compilation on Visual C++.
...
Without this patch, there would be errors like these (warnings turned into errors):
D:\LyX\lyx-unstable\src\frontends\qt\GuiView.cpp(2413): error C4101: 'e': unreferenced local variable
D:\LyX\lyx-unstable\src\frontends\qt\GuiView.cpp(4879): error C4101: 'ex': unreferenced local variable
2020-10-12 19:21:58 +02:00
Yuriy Skalko
238fd9ac50
Right exception rethrowing
2020-10-12 15:14:55 +02:00
Yuriy Skalko
fe85162a29
Refactoring
2020-10-05 14:55:00 +02:00
Yuriy Skalko
efc0877f8f
Add override
specifiers to improve code maintainability
2020-10-03 12:43:48 +02:00
Jean-Marc Lasgouttes
b96b876403
Revert "Show toolbar context menu only when clicking on the toolbar"
...
Something is wrong.
This reverts commit f25253f89ac121b1981fe26f0b90af9e2bbbe849.
2020-09-16 16:54:33 +02:00
Daniel Ramoeller
f25253f89a
Show toolbar context menu only when clicking on the toolbar
...
Previsouly it was on the whole application window, except on disabled toolbar
buttons.
Fix for bug #11949
2020-09-16 11:18:57 +02:00