]> git.lyx.org Git - lyx.git/log
lyx.git
4 years agoFix Qt deprecation warns for setAutoCompletion()
Scott Kostyshak [Thu, 19 Mar 2020 01:00:09 +0000 (21:00 -0400)]
Fix Qt deprecation warns for setAutoCompletion()

This commit fixes a few warnings from Qt 5.14 like the following
one:

  error: ‘void QComboBox::setAutoCompletion(bool)’ is deprecated: Use setCompleter() instead. [-Werror=deprecated-declarations]

We only generated setAutoCompletion() from setting the property in
the .ui files. There does not seem to be a .ui file property that
generates setCompleter(). However, the default in both Qt5 [1] and
Qt4 [2] is to enable case-insensitive autocompletion, which seems to
be the same type of autocompletion as when we were relying on
setAutoCompletion(true). Thus, we can remove the properties that set
autocomplete to true. There is only one file, SearchUi.ui, where we
were turning off the autocompletion; we now do so using
setCompleter(0) in GuiSearch::GuiSearch().

[1] https://doc.qt.io/qt-5/qcombobox.html#setCompleter
[2] https://doc.qt.io/archives/qt-4.8/qcombobox.html#setCompleter

4 years agoTrack whether we have warned about mixing layouts across e.g. branches.
Richard Kimberly Heck [Tue, 17 Mar 2020 05:54:47 +0000 (01:54 -0400)]
Track whether we have warned about mixing layouts across e.g. branches.

4 years agoTrack whether title has been issued via OutputParams.
Richard Kimberly Heck [Tue, 17 Mar 2020 05:50:28 +0000 (01:50 -0400)]
Track whether title has been issued via OutputParams.

When branches are used in the title, we may need to track whether
we've issued the title across branch insets. So we put the relevant
variables into OutputParams.

4 years agoFix bug #11787.
Richard Kimberly Heck [Tue, 17 Mar 2020 05:33:44 +0000 (01:33 -0400)]
Fix bug #11787.

Make sure we are actually at the end of the document before issuing
\maketitle because we are at the end of the document.

4 years agoRemove unused function
Richard Kimberly Heck [Mon, 16 Mar 2020 06:18:19 +0000 (02:18 -0400)]
Remove unused function

4 years agoFix some warnings
Richard Kimberly Heck [Mon, 16 Mar 2020 06:12:16 +0000 (02:12 -0400)]
Fix some warnings

4 years agoNullptr warnings
Richard Kimberly Heck [Mon, 16 Mar 2020 06:09:39 +0000 (02:09 -0400)]
Nullptr warnings

4 years agoFix warning about 'requires' being a keyword.
Richard Kimberly Heck [Mon, 16 Mar 2020 05:31:09 +0000 (01:31 -0400)]
Fix warning about 'requires' being a keyword.

4 years agoUse ranges and fix nullptr warnings.
Richard Kimberly Heck [Mon, 16 Mar 2020 05:08:03 +0000 (01:08 -0400)]
Use ranges and fix nullptr warnings.

4 years agoFix Qt deprecation warns for QTime
Scott Kostyshak [Mon, 16 Mar 2020 00:32:16 +0000 (20:32 -0400)]
Fix Qt deprecation warns for QTime

This commit fixes a couple of warnings from Qt 5.14 like the
following one:

  error: ‘int QTime::restart()’ is deprecated: Use QElapsedTimer instead [-Werror=deprecated-declarations]

This commit changes two uses of QTime to QElapsedTimer, one used
only when the "files" debug flag is set, and the other for timing
whether a script (e.g., knitr) takes longer than a certain amount of
time to run.

QElapsedTimer is superior for these two use cases in that it uses a
monotonic clock if possible, and is thus more robust to certain
changes (e.g., daylight savings changes) [1]. Similarly, the commit
in Qt Base that makes this deprecation [2] mentions the following in
the commit message:

  QElapsedTimer does the job better and without the DST kludges.

Note that QElapsedTimer class was introduced in Qt 4.7, so no
conditioning on Qt version is necessary.

Not all methods of QTime are deprecated and we still use some of
the non-deprecated methods in our code (e.g., to get the current
wall clock time in GuiProgress::currentTime()).

[1] https://doc.qt.io/qt-5/qelapsedtimer.html
[2] https://code.qt.io/cgit/qt/qtbase.git/commit/?id=ed99a591a83a399458f12341d0a1c0b3152f247a

4 years agoupdate tex2lyx tests
Juergen Spitzmueller [Sun, 15 Mar 2020 16:19:23 +0000 (17:19 +0100)]
update tex2lyx tests

4 years agoOutliner: Add filter combo for non-output items
Juergen Spitzmueller [Sun, 15 Mar 2020 09:46:35 +0000 (10:46 +0100)]
Outliner: Add filter combo for non-output items

Addresses #11442, #10786

4 years agolyx_2_0.pyx_ add convert_includeall method
Juergen Spitzmueller [Sun, 15 Mar 2020 08:32:02 +0000 (09:32 +0100)]
lyx_2_0.pyx_ add convert_includeall method

It's better to have that param explicitly in the document.

4 years agoFix bug #11780.
Richard Kimberly Heck [Sat, 14 Mar 2020 22:31:25 +0000 (18:31 -0400)]
Fix bug #11780.

The preamble snippets are for LaTeX and do not need to be output
with HTML.

4 years agoUse a reference
Richard Kimberly Heck [Sat, 14 Mar 2020 22:05:49 +0000 (18:05 -0400)]
Use a reference

4 years agoUpdate sk.po
Kornel Benko [Sat, 14 Mar 2020 19:29:00 +0000 (20:29 +0100)]
Update sk.po

4 years agoFix Python 3 issues when generating preview snippets
Enrico Forestieri [Sat, 14 Mar 2020 16:03:16 +0000 (17:03 +0100)]
Fix Python 3 issues when generating preview snippets

The log file generated by latex can contain strings encoded in
whatever supported encoding. Instead of guessing the encoding,
it is better to open it in binary mode and then performing the
necessary comparisons as "bytes". In order to do this, the
strings are encoded in utf8, so that, for example, b"pythön" is
encoded as "pyth\xc3\xb6n" (7 bytes). Of course, this means that
we can only successfully perform comparisons with ascii strings.
However, this is what we actually do, as we only search for
ascii strings in the log file.

4 years agode.po
Juergen Spitzmueller [Sat, 14 Mar 2020 16:13:08 +0000 (17:13 +0100)]
de.po

4 years agoOutliner: distinguish non-active refs from broken refs
Juergen Spitzmueller [Sat, 14 Mar 2020 15:29:53 +0000 (16:29 +0100)]
Outliner: distinguish non-active refs from broken refs

See #11782

4 years agoAdd active refs to non-active labels to brokenrefs toc
Juergen Spitzmueller [Sat, 14 Mar 2020 14:35:47 +0000 (15:35 +0100)]
Add active refs to non-active labels to brokenrefs toc

4 years agoAdd outliner section for broken refs and citations
Juergen Spitzmueller [Sat, 14 Mar 2020 14:18:28 +0000 (15:18 +0100)]
Add outliner section for broken refs and citations

4 years agoColor broken citations, xrefs, and includes
Juergen Spitzmueller [Sat, 14 Mar 2020 13:17:30 +0000 (14:17 +0100)]
Color broken citations, xrefs, and includes

Fixes #11503

4 years agoSupport log parsing for multi-line warnings wrt undefined references
Juergen Spitzmueller [Sat, 14 Mar 2020 10:16:12 +0000 (11:16 +0100)]
Support log parsing for multi-line warnings wrt undefined references

4 years agothinko
Juergen Spitzmueller [Sat, 14 Mar 2020 08:51:07 +0000 (09:51 +0100)]
thinko

4 years agoDo not break on undefined references that are part of the family.
Juergen Spitzmueller [Sat, 14 Mar 2020 08:43:57 +0000 (09:43 +0100)]
Do not break on undefined references that are part of the family.

Thus a document can be viewed if it contains references to
its master, children or siblings that are being excluded via includeonly,
or viewed standalone if it contains references to its master or siblings.

4 years agoImprove error message
Juergen Spitzmueller [Sat, 14 Mar 2020 08:43:16 +0000 (09:43 +0100)]
Improve error message

4 years agoUpdate sk.po
Kornel Benko [Fri, 13 Mar 2020 16:33:15 +0000 (17:33 +0100)]
Update sk.po

4 years agoFixup tooltips
Juergen Spitzmueller [Fri, 13 Mar 2020 15:23:08 +0000 (16:23 +0100)]
Fixup tooltips

4 years agode.po
Juergen Spitzmueller [Fri, 13 Mar 2020 15:21:57 +0000 (16:21 +0100)]
de.po

4 years agoRevert "Do not display caret when we're not ready"
Jean-Marc Lasgouttes [Fri, 13 Mar 2020 15:23:01 +0000 (16:23 +0100)]
Revert "Do not display caret when we're not ready"

I did not mean to push this.

This reverts commit 9bc255dc89b58bfdb2d9692136b2f2715eab256b.

4 years agoremove constructs and comments about old compilers
Jean-Marc Lasgouttes [Fri, 13 Mar 2020 15:15:31 +0000 (16:15 +0100)]
remove constructs and comments about old compilers

4 years agoDo not display caret when we're not ready
Jean-Marc Lasgouttes [Fri, 28 Feb 2020 14:21:40 +0000 (15:21 +0100)]
Do not display caret when we're not ready

Using a dialog may trigger a redraw at times where the metrics caches
have not been updated yet. To fix this, do as in paintEvent() and
abort caret blinking if there is an open undo group.

Move the decision to skip the caret painting to showCaret(), closer to
where real work happens. hideCaret () is now an alias for
showCaret(false), which allows some code refactoring.

See also commit c7496a11b2.

Fixes bug #11763 (although it does not trigger on master).

4 years agoFix FORMAT documentation
Juergen Spitzmueller [Fri, 13 Mar 2020 14:51:41 +0000 (15:51 +0100)]
Fix FORMAT documentation

4 years agoIntroduce maintain unincluded children "mostly"
Juergen Spitzmueller [Fri, 13 Mar 2020 14:46:35 +0000 (15:46 +0100)]
Introduce maintain unincluded children "mostly"

This is a mode for includeonly handling that is effective and still outputs
at least mostly correct counters and references. This is intended for non-
final editing work.

File format change.

4 years agoFix preview check box for include insets
Scott Kostyshak [Wed, 11 Mar 2020 19:02:22 +0000 (15:02 -0400)]
Fix preview check box for include insets

GuiInclude::initialiseParams() calls InsetCommand::string2params()
which calls InsetCommandParams::clear(), however this last function
did not reset the special "preview_" parameter. Now this parameter
is reset to false as part of clear().

The ParamData class documents (see InsetCommandParams.h) the
following:

  // No parameter may be named "preview", because that is a required
  // flag for all commands.

Thus, we must handle preview_ separately from the other parameters.

This commit fixes #11779.

4 years agoCMake build: find enchant 2.x binary and lib
Scott Kostyshak [Fri, 13 Mar 2020 02:36:49 +0000 (22:36 -0400)]
CMake build: find enchant 2.x binary and lib

For example, see the Fedora file lists for the package
enchant2-devel [1] as well as the Debian Sid file lists for the
packages libenchant-2-dev [2] and enchant-2 [3]. The packages for
Ubuntu 20.04 are similar. Our autotools build has had support for
finding enchant 2.x since 71977769.

Searching for enchant-2 first is consistent with what we do for
autotools (see 1ae537c5).

This commit is related to #10986.

[1] https://www.lyx.org/trac/ticket/10986#comment:28
[2] https://packages.debian.org/sid/amd64/libenchant-2-dev/filelist
[3] https://packages.debian.org/sid/amd64/enchant-2/filelist

4 years agoImprove performance of includeonly with "maintain counters and references"
Juergen Spitzmueller [Fri, 13 Mar 2020 10:49:07 +0000 (11:49 +0100)]
Improve performance of includeonly with "maintain counters and references"

First, we do not need to run bibtex/biber on the maintenance run, as
the necessary references will be generated on the includeonly run.

Second, exclude the master from DepTable in maintenance run, as the
master is re-checked in any case in the includeonly run, and as it will
always be detected as changed due to the \includeonly statement, which
will trigger a complete build.

More improvements to follow.

4 years agoFix correction with continuous spellcheck
Scott Kostyshak [Fri, 13 Mar 2020 01:50:54 +0000 (21:50 -0400)]
Fix correction with continuous spellcheck

This commit amends 8d26ae57ba66b4518985cf3430de2dcf37096568.

4 years agoFix UI quirk in IncludeOnly settings
Juergen Spitzmueller [Thu, 12 Mar 2020 09:37:56 +0000 (10:37 +0100)]
Fix UI quirk in IncludeOnly settings

Fixes #11564

4 years agooutline-up/down: preserve cursor's position
Scott Kostyshak [Wed, 11 Mar 2020 18:18:33 +0000 (14:18 -0400)]
outline-up/down: preserve cursor's position

There is no need to change the cursor's position to the beginning of
the line.

This change does not affect the behavior of using the buttons in the
Outliner pane, but is useful for using the keyboard shortcuts.

4 years agoFix Qt deprecation warns for setting tab
Scott Kostyshak [Sun, 8 Mar 2020 15:16:28 +0000 (11:16 -0400)]
Fix Qt deprecation warns for setting tab

Fix warnings coming from deprecations of QTextEdit::tabStopWidth()
and QFontMetrics::width(). Regarding tabStopWidth(), the ChangeLog
states the following [1]:

  Introduced tabStopDistance property in QTextOption, QTextEdit and
  QPlainTextEdit as replacement for the inconsistently named tabStop and
  tabStopWidth properties. QTextOption::tabStop, QTextEdit::tabStopWidth and
  QPlainTextEdit::tabStopWidth are now deprecated.

Note that QFontMetrics::horizontalAdvance() is what we want here, as
opposed to QFontMetrics::boundingRect(), because we want to know
where to draw the next character after the tab.

[1] https://code.qt.io/cgit/qt/qtbase.git/tree/dist/changes-5.10.0/?h=v5.10.0

4 years ago#11747 follow-up of change d94b708a0fec6ade04fc9d09bd86afd73e72fac7 to fix a compiler...
Stephan Witt [Sun, 8 Mar 2020 12:33:02 +0000 (13:33 +0100)]
#11747 follow-up of change d94b708a0fec6ade04fc9d09bd86afd73e72fac7 to fix a compiler warning

4 years ago#11767 improved default binding on Mac for window-close
Stephan Witt [Sun, 8 Mar 2020 12:30:45 +0000 (13:30 +0100)]
#11767 improved default binding on Mac for window-close

4 years agoRevert "Do not display caret when we're not ready"
Scott Kostyshak [Sat, 7 Mar 2020 21:47:35 +0000 (16:47 -0500)]
Revert "Do not display caret when we're not ready"

This reverts commit e99436b529fc83a5a89e3ec053f977117c339082.

Kornel discovered a regression due to this commit. See:

  https://www.mail-archive.com/search?l=mid&q=20200307121525.56be047b%40admin1-desktop

4 years agoRevert b7509419.
Richard Kimberly Heck [Sat, 7 Mar 2020 21:04:01 +0000 (16:04 -0500)]
Revert b7509419.

There are double updates of dialogs in some cases, but this isn't why.

4 years agoCmake build: Amend b399cfc7
Kornel Benko [Sat, 7 Mar 2020 12:51:50 +0000 (13:51 +0100)]
Cmake build: Amend b399cfc7

Re-allow also the previous include, so that it is now
possible to use
#include <hunspell.hxx>
and also
#include <hunspell/hunspell.hxx>

4 years agoCmake build: Remove warnings about deprecated policy CMP0075
Kornel Benko [Sat, 7 Mar 2020 12:49:35 +0000 (13:49 +0100)]
Cmake build: Remove warnings about deprecated policy CMP0075

4 years agoConsider CT underlining pref in captions markup
Juergen Spitzmueller [Sat, 7 Mar 2020 06:28:37 +0000 (07:28 +0100)]
Consider CT underlining pref in captions markup

4 years agoFix Qt deprecation warn for QPixmapCache::find()
Scott Kostyshak [Sat, 7 Mar 2020 03:46:18 +0000 (22:46 -0500)]
Fix Qt deprecation warn for QPixmapCache::find()

Fix the following warning from Qt 5.14.1:

  error: ‘static bool QPixmapCache::find(const QString&, QPixmap&)’ is deprecated: Use bool find(const QString &, QPixmap*) instead [-Werror=deprecated-declarations]

4 years agoFix Qt deprecation warn for QList::fromSet()
Scott Kostyshak [Sat, 7 Mar 2020 02:04:15 +0000 (21:04 -0500)]
Fix Qt deprecation warn for QList::fromSet()

Fix the following warning from Qt 5.14.1:

  error: ‘static QList<T> QList<T>::fromSet(const QSet<T>&) [with T = QString]’ is deprecated: Use QList<T>(set.begin(), set.end()) instead. [-Werror=deprecated-declarations]

Regarding QList::fromSet(), the documentation now states the
following [1]:

  Since Qt 5.14, range constructors are available for Qt's generic
  container classes and should be used in place of this method.

[1] https://doc.qt.io/qt-5/qlist.html

4 years agoMarkup changed captions in workarea by underline and strikeout, resp.
Juergen Spitzmueller [Fri, 6 Mar 2020 17:58:25 +0000 (18:58 +0100)]
Markup changed captions in workarea by underline and strikeout, resp.

4 years agoFootnote: (re-)add a fallback dummy counter
Juergen Spitzmueller [Fri, 6 Mar 2020 17:21:18 +0000 (18:21 +0100)]
Footnote: (re-)add a fallback dummy counter

4 years agoUse real counter in deleted footnotes
Juergen Spitzmueller [Fri, 6 Mar 2020 17:16:34 +0000 (18:16 +0100)]
Use real counter in deleted footnotes

4 years agoFix Qt deprecation warn for setConfirmOverwrite()
Scott Kostyshak [Fri, 6 Mar 2020 14:18:59 +0000 (09:18 -0500)]
Fix Qt deprecation warn for setConfirmOverwrite()

Fix the following warning:

  error: ‘void QFileDialog::setConfirmOverwrite(bool)’ is deprecated: Use setOption(DontConfirmOverwrite, !enabled) instead [-Werror=deprecated-declarations]

Note in the change that "false" changes to "true" because the option
is *Dont*ConfirmOverwrite.

QFileDialog::setConfirmOverwrite() is obsolete at least since 4.8
and QFileDialog::setOption() is available since 4.5 [1].

[1] https://doc.qt.io/archives/qt-4.8/qfiledialog-obsolete.html
[2] https://doc.qt.io/qt-5/qfiledialog.html#setOption

4 years agoFix Qt deprecation warn for getContentsMargins()
Scott Kostyshak [Fri, 6 Mar 2020 14:07:31 +0000 (09:07 -0500)]
Fix Qt deprecation warn for getContentsMargins()

Fixes the following warning:

  error: ‘void QWidget::getContentsMargins(int*, int*, int*, int*) const’ is deprecated: use contentsMargins() [-Werror=deprecated-declarations]

The new code also has advantages in that 'l' can be set to const and
it is more readable because it is clear that only 'l' is used.

QWidget::getContentsMargins() was deprecated in 5.14.0 [1]. and
QWidget::contentsMargins() is available since 4.6 [2].

[1] https://code.qt.io/cgit/qt/qtbase.git/tree/dist/changes-5.14.0/?h=v5.14.0
[2] https://doc.qt.io/archives/qt-4.8/qlayout.html#contentsMargins

4 years agoHandle deleted BibTeX/Biblatex bibliographies
Juergen Spitzmueller [Fri, 6 Mar 2020 12:49:10 +0000 (13:49 +0100)]
Handle deleted BibTeX/Biblatex bibliographies

Since we cannot strike-out these, we output a placeholder when
show changes in output is active.

Fixes #11762

4 years agoTell updateBuffer whether an inset is deleted.
Juergen Spitzmueller [Fri, 6 Mar 2020 12:23:01 +0000 (13:23 +0100)]
Tell updateBuffer whether an inset is deleted.

Fixes #11747

4 years agoConsider change tracking in setBeginOfBody()
Juergen Spitzmueller [Fri, 6 Mar 2020 10:49:32 +0000 (11:49 +0100)]
Consider change tracking in setBeginOfBody()

Fixes #11749

4 years agoUse range-based loop
Juergen Spitzmueller [Fri, 6 Mar 2020 10:20:46 +0000 (11:20 +0100)]
Use range-based loop

4 years agoAccount for changes in insets when checking changes in selection
Juergen Spitzmueller [Fri, 6 Mar 2020 09:53:54 +0000 (10:53 +0100)]
Account for changes in insets when checking changes in selection

This is not ideal, see FIXME.

Fixes #11774

4 years agoFix Qt deprecation warning for isItemSelected()
Scott Kostyshak [Fri, 6 Mar 2020 01:36:09 +0000 (20:36 -0500)]
Fix Qt deprecation warning for isItemSelected()

These methods are related to the deprecated setItemSelected() and
setItemHidden() methods that were converted at 24926b2e.

4 years agoFix Qt deprecation warning for setItemHidden()
Scott Kostyshak [Fri, 6 Mar 2020 01:29:26 +0000 (20:29 -0500)]
Fix Qt deprecation warning for setItemHidden()

Consistent with commit 24926b2e.

4 years agoRename a var "sort" to not mask std::sort()
Scott Kostyshak [Thu, 5 Mar 2020 17:16:26 +0000 (12:16 -0500)]
Rename a var "sort" to not mask std::sort()

This allows us to use sort() without the "std" prefix.

4 years agoFix deprecation warnings from use of qSort()
Scott Kostyshak [Thu, 5 Mar 2020 16:35:49 +0000 (11:35 -0500)]
Fix deprecation warnings from use of qSort()

This commit replaces qSort with std::sort to fix warnings from compiling with
Qt 5.14.1. Below is one of the warnings:

  error: ‘void qSort(RandomAccessIterator, RandomAccessIterator, LessThan) [with RandomAccessIterator = QList<lyx::ColorCode>::iterator; LessT$
  an = bool (*)(lyx::ColorCode, lyx::ColorCode)]’ is deprecated: Use std::sort [-Werror=deprecated-declarations]

qSort() has been deprecated since Qt 5.2. Quoting from the ChangeLog [1]:

  With STL no longer being optional for building and using Qt, a number of
  parts of QtAlgorithms no longer make sense, and have therefore been
  deprecated. Replacements are available in the STL, and generally have
  much better performance

There are some cases that require more than just a trivial substitution, but
our code does not appear to use any of those cases.

For some discussion on the differences in speed of std::sort() and
qSort(), see the following:

  https://phabricator.kde.org/D10857

These are just warnings now, but will likely be errors with Qt 6:

  https://bugreports.qt.io/browse/QTBUG-73048

I tested that LyX can still be built against Qt 4.8.7 with this commit.

This commit follows 24926b2e, which also fixes some deprecation warnings.

[1]
https://code.qt.io/cgit/qt/qtbase.git/tree/dist/changes-5.2.0/?h=v5.2.0

4 years agoFix a few deprecation warnings in Qt 5.14.1
Scott Kostyshak [Thu, 5 Mar 2020 16:11:09 +0000 (11:11 -0500)]
Fix a few deprecation warnings in Qt 5.14.1

These changes fix a few instances of the following type of warning:

  error: ‘void QListWidget::setItemSelected(const QListWidgetItem*, bool)’ is deprecated: Use QListWidgetItem::setSelected() instead [-Werror=deprecated-declarations]

as well as similar warnings for setItemHidden() and
setItemExpanded(). These are just warnings now, but it is planned to
remove the methods for Qt 6:

  https://bugreports.qt.io/browse/QTBUG-73048

I tested that LyX can still be built against Qt 4.8.7 with this
commit. Indeed, these methods have been deprecated for a while (it
is just that QT_DEPRECATED_WARNINGS was only turned on by default
starting with 5.13.0). See, e.g.,

  https://doc.qt.io/archives/qt-4.7/qlistwidget-obsolete.html

4 years agoctest autotest for #11773 language nesting with lyx2lyx.
Günter Milde [Wed, 4 Mar 2020 23:19:11 +0000 (00:19 +0100)]
ctest autotest for #11773 language nesting with lyx2lyx.

* invert failing lyx2lyx tests for ko/Welcome
* add dedicated test sample
* set language for English text part in ko/Welcome.

Also

* fix a lyx2lyx language test sample
* fix clause in unreliableTests

4 years agoRemove no longer needed module import.
Günter Milde [Wed, 4 Mar 2020 12:40:11 +0000 (13:40 +0100)]
Remove no longer needed module import.

4 years agoRefactor lyx2lyx code.
Günter Milde [Tue, 3 Mar 2020 22:44:08 +0000 (23:44 +0100)]
Refactor lyx2lyx code.

Use helper functions for shorter, self-documenting code.

Drop optional arguments that equal the default value.

Remove hard TABs and trailing whitespace.

4 years agoFixup cf9827df: do not forget keyboard bindings and docs
Jean-Marc Lasgouttes [Wed, 4 Mar 2020 11:21:11 +0000 (12:21 +0100)]
Fixup cf9827df: do not forget keyboard bindings and docs

Keyboard bindings are easy. For lfun icons in documentation, both the UserGuide and Tutorial have to be updated. Since this will have to be done again once the documentation is imported from branch, I list them here for reference:

For the lib/doc/ directory:
find . -name 'Tutorial.lyx' | xargs sed -i 's/"layout List"/"layout Labeling"/g'
find . -name 'UserGuide.lyx' | xargs sed -i 's/"layout List"/"layout Labeling"/g'
and then
find . -name 'Tutorial.lyx' | xargs sed -i 's/"layout \(Itemize\|Description\|Labeling\|Enumerate\|List\)"/"layout-toggle \1"/g'
find . -name 'UserGuide.lyx' | xargs sed -i 's/"layout \(Itemize\|Description\|Labeling\|Enumerate\|List\)"/"layout-toggle \1"/g'

Related to bug #11770.

4 years agoList is obsoleted by Labeling: update icons
Jean-Marc Lasgouttes [Wed, 4 Mar 2020 10:01:31 +0000 (11:01 +0100)]
List is obsoleted by Labeling: update icons

This does not change much in master but it is cleaner since the List
layout has been obsolete since 2010 (7f8b868f).

See bug #11770.

4 years agoFix bug #10316.
Richard Kimberly Heck [Tue, 3 Mar 2020 04:57:08 +0000 (23:57 -0500)]
Fix bug #10316.

By sending the request through the usual dispatch machinery, we
make sure the cursor is valid when we're done.

4 years agoAndr'e points out this is wrong. Of course it is, since that is not a pointer.
Richard Kimberly Heck [Tue, 3 Mar 2020 19:27:03 +0000 (14:27 -0500)]
Andr'e points out this is wrong. Of course it is, since that is not a pointer.

4 years agoDo not display caret when we're not ready
Jean-Marc Lasgouttes [Fri, 28 Feb 2020 14:21:40 +0000 (15:21 +0100)]
Do not display caret when we're not ready

Using a dialog may trigger a redraw at times where the metrics caches
have not been updated yet. To fix this, do as in paintEvent() and
abort caret blinking if there is an open undo group.

Move the decision to skip the caret painting to showCaret(), closer to
where real work happens. hideCaret () is now an alias for
showCaret(false), which allows some code refactoring.

See also commit c7496a11b2.

Fixes bug #11763 (although it does not trigger on master).

4 years agoFix nullptr warning
Richard Kimberly Heck [Tue, 3 Mar 2020 05:08:46 +0000 (00:08 -0500)]
Fix nullptr warning

4 years agoSend a DispatchResult object with dispatch requests to the TOC.
Richard Kimberly Heck [Tue, 3 Mar 2020 05:02:45 +0000 (00:02 -0500)]
Send a DispatchResult object with dispatch requests to the TOC.

This allows us to request a buffer update.

4 years agoAmend(1) 7f0efc51: Add evince_sync files to the dist target of automake
Kornel Benko [Mon, 2 Mar 2020 11:49:09 +0000 (12:49 +0100)]
Amend(1) 7f0efc51: Add evince_sync files to the dist target of automake

4 years agoFix nullptr warnings
Richard Kimberly Heck [Sun, 1 Mar 2020 20:31:52 +0000 (15:31 -0500)]
Fix nullptr warnings

4 years agoCmake build: Add evince_sync-files to be installed under the scripts dir
Kornel Benko [Sun, 1 Mar 2020 15:48:14 +0000 (16:48 +0100)]
Cmake build: Add evince_sync-files to be installed under the scripts dir

4 years agoMoving 3rdparty/evince_sync to 3rdparty/scripts/evince_sync
Kornel Benko [Sun, 1 Mar 2020 15:46:35 +0000 (16:46 +0100)]
Moving 3rdparty/evince_sync to 3rdparty/scripts/evince_sync

4 years agoCmake build: Remove deprecated policy warning
Kornel Benko [Sun, 1 Mar 2020 14:36:41 +0000 (15:36 +0100)]
Cmake build: Remove deprecated policy warning

4 years agoCmake tests: Amend f6f51587
Kornel Benko [Sat, 29 Feb 2020 19:37:04 +0000 (20:37 +0100)]
Cmake tests: Amend f6f51587

4 years agoUn-provide amsmath in beamer article layouts
Juergen Spitzmueller [Sat, 29 Feb 2020 18:20:18 +0000 (19:20 +0100)]
Un-provide amsmath in beamer article layouts

Fixes #11768

4 years agoAvoid a copy.
Richard Kimberly Heck [Sat, 29 Feb 2020 10:55:20 +0000 (05:55 -0500)]
Avoid a copy.

4 years agoru.po: update by Yuriy
Juergen Spitzmueller [Sat, 29 Feb 2020 08:38:15 +0000 (09:38 +0100)]
ru.po: update by Yuriy

4 years agoFix warnings and use ranges.
Richard Kimberly Heck [Sat, 29 Feb 2020 05:21:02 +0000 (00:21 -0500)]
Fix warnings and use ranges.

4 years agoFix warnings
Richard Kimberly Heck [Sat, 29 Feb 2020 05:21:00 +0000 (00:21 -0500)]
Fix warnings

4 years agoFix a bunch of warnings
Richard Kimberly Heck [Sat, 29 Feb 2020 05:06:30 +0000 (00:06 -0500)]
Fix a bunch of warnings

4 years agoFix warnings in support/.
Richard Kimberly Heck [Sat, 29 Feb 2020 05:00:47 +0000 (00:00 -0500)]
Fix warnings in support/.

4 years agoFix header.
Richard Kimberly Heck [Sat, 29 Feb 2020 04:52:06 +0000 (23:52 -0500)]
Fix header.

4 years agoNull pointers.
Richard Kimberly Heck [Sat, 29 Feb 2020 04:51:53 +0000 (23:51 -0500)]
Null pointers.

4 years agoCmake build: Use correct include if using internal hunspell
Kornel Benko [Fri, 28 Feb 2020 20:48:54 +0000 (21:48 +0100)]
Cmake build: Use correct include if using internal hunspell

This way also "HAVE_HUNSPELL_CXXABI" is correctly set to 1

4 years agoUse ranges, fix warning
Richard Kimberly Heck [Fri, 28 Feb 2020 06:55:05 +0000 (01:55 -0500)]
Use ranges, fix warning

4 years agoUse ranges, fix warning
Richard Kimberly Heck [Fri, 28 Feb 2020 06:48:10 +0000 (01:48 -0500)]
Use ranges, fix warning

4 years agoUse range
Richard Kimberly Heck [Fri, 28 Feb 2020 06:44:48 +0000 (01:44 -0500)]
Use range

4 years agoFix nullptr warnings
Richard Kimberly Heck [Fri, 28 Feb 2020 06:42:32 +0000 (01:42 -0500)]
Fix nullptr warnings

4 years agoUse ranges, fix warnings
Richard Kimberly Heck [Fri, 28 Feb 2020 06:39:06 +0000 (01:39 -0500)]
Use ranges, fix warnings

4 years agoFix nullptr warnings
Richard Kimberly Heck [Fri, 28 Feb 2020 06:28:08 +0000 (01:28 -0500)]
Fix nullptr warnings

4 years agoUse ranges, fix warnings
Richard Kimberly Heck [Fri, 28 Feb 2020 06:25:30 +0000 (01:25 -0500)]
Use ranges, fix warnings

4 years agoFix warnings
Richard Kimberly Heck [Fri, 28 Feb 2020 06:21:02 +0000 (01:21 -0500)]
Fix warnings

4 years agoFix warnings
Richard Kimberly Heck [Fri, 28 Feb 2020 06:16:21 +0000 (01:16 -0500)]
Fix warnings