Richard Kimberly Heck
98f3ef0924
Amend 2baa3a46a6
.
2021-02-14 11:41:25 -05:00
Juergen Spitzmueller
2baa3a46a6
Transform simple search dialog to dock widget ( #2625 )
...
Also solves #8054
2021-02-14 17:18:00 +01:00
Richard Kimberly Heck
c6dfc70367
Show python info in About LyX
2021-02-13 11:53:14 -05:00
Juergen Spitzmueller
f8021672ad
Address some deprecation warnings
2021-02-13 15:23:45 +01:00
Juergen Spitzmueller
9089839055
Resolve accelerator conflicts
2021-02-13 07:57:10 +01:00
Juergen Spitzmueller
fbef5e687a
Use dialog-show in icon names
...
(and search for them also with dialog-toggle counterpart lfuns)
Fixes #12137
2021-02-12 12:18:51 +01:00
Juergen Spitzmueller
d1ea8a40af
GuiSearch: catch global shortcuts to find forwards/backwards ( #11170 )
2021-02-12 10:50:47 +01:00
Juergen Spitzmueller
9721a5cc6b
Set GUI name for local greyedouttext color ( #12130 )
2021-02-11 09:05:42 +01:00
Juergen Spitzmueller
456b2b0e8b
Fix indentation
2021-02-11 08:08:37 +01:00
Juergen Spitzmueller
2175899f17
Re-initiate module filter after dialog re-opening ( #12128 )
2021-02-11 08:07:55 +01:00
Juergen Spitzmueller
ad1e7da1fb
Assure filtered module items are not editable ( #12127 )
2021-02-11 07:57:09 +01:00
Juergen Spitzmueller
65f96abfec
Make delimiter icons a bit smaller
2021-02-10 11:40:56 +01:00
Juergen Spitzmueller
c2822d684b
Add LFUN_LYXFILES_OPEN
...
This opens the new templates/examples dialog and creates a view if
necessary (#12106 ).
2021-02-10 09:36:32 +01:00
Juergen Spitzmueller
7cccfe5515
BulletsModule: disable size widget with custom bullet ( #12011 )
2021-02-09 11:01:45 +01:00
Juergen Spitzmueller
11b7714fc1
Use SVG icons in itemize bullet selector
...
This scales much better than the current png solution, is HiDPI- and
darkmode-ready
2021-02-09 10:32:16 +01:00
Stephan Witt
80e20e86be
#11682 amend change 4d4dc96b06
- check Qt version for all Qt::ApplicationState occurances
2021-02-08 09:04:18 +01:00
Stephan Witt
4d4dc96b06
#11682 open new window on Mac if there is none and LyX is activated via dock
2021-02-07 18:53:40 +01:00
Juergen Spitzmueller
233cfed333
GuiDelimiter: properly calculate widget width
2021-02-07 17:24:59 +01:00
Juergen Spitzmueller
0afae1f97d
GuiDelimiter: fix tabstop access
...
DialogButtonBox not yet included, though.
2021-02-07 17:00:20 +01:00
Juergen Spitzmueller
fa56a5eb98
Adjust selection color of delimiter icons
2021-02-07 12:32:11 +01:00
Juergen Spitzmueller
5c1a6468ac
GuiDelimiter: use highlight text color if icon is selected
2021-02-06 16:25:55 +01:00
Juergen Spitzmueller
7c33e2fc08
GuiDelimiter: store delimiter name in UserRole
2021-02-06 15:33:13 +01:00
Juergen Spitzmueller
1fe75ae72c
GuiDelimiter: cleanup and fix crash
2021-02-06 15:09:54 +01:00
Juergen Spitzmueller
fcc832ebeb
GuiDelimiter: use SVG icons rather than relying on font ( #12085 )
2021-02-06 14:05:46 +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
bd0044f9d5
Fix bug #11351 .
...
Patch from Daniel.
2021-02-02 17:34:25 -05:00
Juergen Spitzmueller
1bc7e73c74
Fix highlighting of cursor context in View Source ( #12099 )
...
This also considers dark mode,
2021-01-31 17:54:54 +01:00
Jean-Marc Lasgouttes
b1efc5a48e
Initialize properly IconInfo struct
...
Spotted by coverity.
2021-01-29 18:57:13 +01:00
Jean-Marc Lasgouttes
dca5646163
LengthValidator: initialize properly positive_
...
Spotted by coverity.
2021-01-29 18:17:16 +01:00
Enrico Forestieri
070270fdc7
Avoid deprecation warnings
...
In Qt 5.15 many deprecation warnings are issued, presumably for
helping the port to Qt 6. They are really a load but can be
shuten up by using -DQT_NO_DEPRECATED_WARNINGS, except for the ones
about MidButton, AdjustToMinimumContentsLength, and DefaultLocaleLongDate.
This change should not affect compilation with Qt 4, as all changes are
backward compatible (only Qt versions prior 4.5 could be affected).
2021-01-29 13:12:29 +01:00
Richard Kimberly Heck
10c7954ffb
Const
2021-01-25 14:35:37 -05:00
Jean-Marc Lasgouttes
6bf8a0ade8
Disable respectOSkbd checkbox
...
This is not ready yet. See discussion in #6450 .
2021-01-25 18:35:41 +01:00
Juergen Spitzmueller
b90c3fdfa1
GuiTabular: only apply changed features ( #10450 )
2021-01-25 11:00:06 +01:00
Juergen Spitzmueller
e2a66df3b8
LFUN_FILE_OPEN: Strip quotes from argument ( #12091 )
2021-01-24 14:48:55 +01:00
Juergen Spitzmueller
06605a587f
Account for spaces in paths to templates ( #12082 )
2021-01-20 17:05:10 +01:00
Juergen Spitzmueller
ee475b62fa
Do not rely on hardcoded color when determining boxbgcolor
2021-01-20 14:15:48 +01:00
Juergen Spitzmueller
024980cf43
Do not rely on hardcoded color when determining notefontcolor
2021-01-20 13:58:24 +01:00
Juergen Spitzmueller
b1afdf1c19
Correct disabled graphics scale string ( #9443 )
2021-01-20 12:06:22 +01:00
Juergen Spitzmueller
3f1799b2c8
Add method to check whether LyX runs in dark mode
2021-01-19 09:21:36 +01:00
Juergen Spitzmueller
29f98ab245
Use isDarkMode() method
2021-01-19 08:37:05 +01:00
Juergen Spitzmueller
9a6f7ece97
Add option to revert graphics colors in dark mode ( #12076 )
...
This amends [5d47a7ee57506/lyxgit]
2021-01-18 10:46:16 +01:00
Juergen Spitzmueller
057753dc75
Allow semantic colors in branches and use semantic background color by default
...
Addresses most crucial part of #12075
File format change
2021-01-18 09:56:53 +01:00
Juergen Spitzmueller
a4e6f0dead
Add some more hints to empty margin widgets ( #11424 )
2021-01-17 17:49:45 +01:00
Juergen Spitzmueller
5d47a7ee57
Try to automatically handle transparent pictures in darkmode ( #12076 )
...
We'll see how this plays in practice.
2021-01-17 11:03:21 +01:00
Juergen Spitzmueller
606a404632
Extend non-default margins tooltip ( #11424 )
2021-01-17 10:18:45 +01:00
Richard Kimberly Heck
fd74bddffc
Keep dialog connected to cross-ref inset after Apply.
...
This does not actually have any effect yet, due to the fact that
disconnectAfterApply returns true (and this is a GuiDialog).
2021-01-15 11:12:25 -05:00
Richard Kimberly Heck
a9bb062fc3
Keep dialog connected to External inset after Apply
2021-01-15 11:12:25 -05:00
Richard Kimberly Heck
bd555eebe2
Keep dialog connected to BibTeX inset after Apply
2021-01-15 11:12:25 -05:00
Richard Kimberly Heck
997bf3ecb7
Revert unintended commit from before
2021-01-15 11:12:25 -05: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
Stephan Witt
2844a4ec06
drop unintented static declaration from local temporary variable (formerly a global static constant)
2021-01-10 22:03:19 +01:00
Richard Kimberly Heck
98bfbe9ddf
Fix bug #6128 .
2021-01-10 02:40:12 -05:00
Richard Kimberly Heck
12bb380941
Fix bug #5972 : Count words in citations (approximately).
2021-01-10 01:43:34 -05:00
Richard Kimberly Heck
ed2d3e199f
Fix bug #4241 : Addition to Intro
2021-01-09 22:17:52 -05:00
Richard Kimberly Heck
9446aa3640
Fix bug #11030 .
...
Factor out the code that connects to a newly created dialog and then
use that also in GuiGraphics.
There must be many other dialogs that need this same treatment....
2021-01-09 20:33:23 -05:00
Juergen Spitzmueller
73df32bec4
Disambiguate homographic inflections
...
These are not homographic in other languages
(e.g. German "Öffnen" vs. "Geöffnet")
2021-01-09 09:44:38 +01:00
Juergen Spitzmueller
e947cdab3e
Properly disable Apply/OK in InsetParamsDialog ( #11440 )
2021-01-07 13:28:10 +01:00
Juergen Spitzmueller
7a992bb699
GuiParagraph: apply pending changes when setting "immediate apply" ( #11592 )
2021-01-07 13:06:15 +01:00
Jean-Marc Lasgouttes
99e636ae7b
Display bookmarks in the workarea.
...
The bookmarks are added as virtual elements in display Rows. Bookmarks
are shown with circled numbers. 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.
Fixes bug #2496 .
2021-01-06 20:20:03 +01: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
40603a7552
Fix bug #3964 .
...
As suggested there, we attach ourselves to the newly created inset,
if we in fact just created an inset. (This will only matter if Apply
was clicked, so the dialog is still open, but I did the calcuation
anyway, as it seems cheap enough.) This allows the user to modify
that inset (e.g., change the format) and also prevents another click
on Apply, or OK, from creating another dialog.
I've also removed the override of disconnectOnApply(). It does not
work, anyway, I think because it only works with GuiDialog, not with
DialogView-based dialogs.
2021-01-06 03:50:47 -05:00
Richard Kimberly Heck
cf07d4825f
Fix bug #11104 . Activate refstyle support for InsetMathRef.
...
At the moment, there is no support for plurals and capitalization.
A long comment explains why. Support could be added for that without
a format change.
2021-01-05 18:17:53 -05:00
Richard Kimberly Heck
14c2f5d954
Fix comment
2021-01-05 17:45:50 -05:00
Richard Kimberly Heck
bbffbf92ac
Remove elipses from "Open" buttons in About LyX dialog. Fixes #12019 .
2021-01-04 14:53:41 -05:00
Yuriy Skalko
a0b65e9bf8
Define keyboard codes for Cyrillic letters, enable shortcuts using them
2021-01-04 12:00:50 +02: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
Richard Kimberly Heck
4cee3478f7
nullptr
2021-01-03 22:36:04 -05:00
Richard Kimberly Heck
e31eadfd37
We don't need to reload a dirty file. Fixes #11788 .
2021-01-03 19:58:19 -05:00
Yuriy Skalko
d3ca28b468
Amend 3971b1b35e
, also fix warnings for older compilers
2020-12-29 16:30:16 +02:00
Yuriy Skalko
3971b1b35e
Fix C++20 warning on implicit capture of this via [=]
2020-12-28 23:26:14 +02:00
Juergen Spitzmueller
2af8e661a3
Re-enable input of non-LyX files (e.g., tex, pgf) ( #12056 )
...
This amends [a385b7dc2b58/lyxgit]
2020-12-28 09:58:30 +01: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
Juergen Spitzmueller
7e11cb2b37
Whitespace
2020-12-17 10:10:56 +01:00
Jean-Marc Lasgouttes
209a3ce618
Dialog.h and DialogFactory.h are not moc-able
2020-12-15 11:53:06 +01:00
Juergen Spitzmueller
9bf3a5a778
Add some documentation
2020-12-15 09:52:52 +01:00
Juergen Spitzmueller
1a0b842e66
Do not close spellchecker after "Replace All" ( #11310 )
...
Wrong use of wrapAround here
2020-12-15 09:46:32 +01:00
Juergen Spitzmueller
34c166f45f
One more nullptr
2020-12-15 08:53:41 +01:00
Juergen Spitzmueller
47de618de8
Fix nullptr warning
2020-12-15 08:36:17 +01:00
Juergen Spitzmueller
2d553ec5b9
Amend 24b71d30d5
( #12048 )
2020-12-14 14:19:08 +01:00
Yuriy Skalko
bda4570400
Use new signal library nod
instead of boost::signals2
...
Thanks Enrico for updating autotools files.
2020-12-13 23:11:19 +02:00
Juergen Spitzmueller
148748b0c2
Make InsetInfo math/IPA icons visible in dark mode
...
This does not show the real colors, but the icons are at least readable.
2020-12-13 09:51:32 +01:00
Juergen Spitzmueller
33fb7ed258
Ditch deprecation warning
2020-12-12 14:16:34 +01:00
Juergen Spitzmueller
882f06121b
Use semantic latex and math colors for dark theme icon overlay
2020-12-12 10:56:51 +01:00
Juergen Spitzmueller
704331fdcd
Add dark theme colors to semantic colors ( #8325 )
2020-12-12 10:56:05 +01:00
Stephan Witt
7b41faabae
amend 99b1488f0e
- on Mac the include is needed
2020-12-11 18:42:04 +01:00
Juergen Spitzmueller
a06cdfa073
Adapt math and IPA panels to dark theme ( #5636 )
2020-12-11 09:08:41 +01:00
Juergen Spitzmueller
b2ab394832
Remove unused function
2020-12-11 09:08:10 +01:00
Juergen Spitzmueller
f9b817676a
Search ipa image dir befor top dir
...
Else the unknown icon is found before the proper icon.
This unbreaks IPA panel top icons
2020-12-10 07:08:04 +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
ccbfd22f56
Move implementation details to constructors. Amend 78f457796c
2020-12-06 20:51:11 +02:00
Yuriy Skalko
e292dd70bf
More enums & includes refactoring
2020-12-06 18:26:41 +02:00
Juergen Spitzmueller
b57b4a3e12
Clarify documentation if "Keep change markup on paste" pref
2020-12-06 17:04:17 +01:00
Yuriy Skalko
78f457796c
Implement proper Dialog factory instead of implicit link-time dependencies
2020-12-06 17:37:39 +02:00
Richard Kimberly Heck
41216228c0
Change name in source files
2020-12-05 17:17:02 -05:00
Jean-Marc Lasgouttes
4f8cfca117
Update handling of read-only for Thesaurus
...
Remove dummy calls to ButtonController::addReadOnly().
Properly disable stuff for read-only documents.
Streamline code.
2020-12-05 20:27:46 +01:00
Jean-Marc Lasgouttes
f02311241a
Make Merge Changes dialog work in read only.
...
Make LFUN_CHANGES_MERGE active in read-only documents.
Remove dummy call to ButtonController::addReadonly and replace with
proper code.
2020-12-05 19:53:30 +01:00
Jean-Marc Lasgouttes
c30b0aac4b
Disable some Adv F&R widgets for read-only documents
2020-12-03 18:04:23 +01:00
Jean-Marc Lasgouttes
24b71d30d5
Fix disabling of widgets for (simple) Search dialog
...
This allows to remove the calls to ButtonController::addReadonly,
which are placebo since 78ade7e6
.
2020-12-03 15:44:55 +01:00