Commit Graph

38582 Commits

Author SHA1 Message Date
Uwe Stöhr
ff2e969fb9 README.localization: document how to update layouttranslations under Win 2018-02-20 20:41:59 +01:00
Uwe Stöhr
2b5a98ccb4 layouttranslations.review: update revision state 2018-02-20 20:33:58 +01:00
Uwe Stöhr
f30fa1a48d ar.po: correct some terms from layouttranslations
Hatim sent me today both, the ar.po and the layouttranslations. I noticed now that he did not update/translate the terms from layouttranslations in ar.po
2018-02-20 20:30:28 +01:00
Uwe Stöhr
7547dd546c layouttranslations: update file
and hopefully fix the encoding issue
2018-02-20 20:27:26 +01:00
Uwe Stöhr
1c159d5885 move README.Documentation to attic
It is outdated since many years now and we have the relevant info in the Development.lyx file
2018-02-20 20:12:22 +01:00
Uwe Stöhr
19b840ae23 ar.po and layouttranslations: updates from hatim 2018-02-20 18:01:52 +01:00
Jean-Marc Lasgouttes
a2e1021aba Use parMetrics to access the par_metrics_ map
In cursorY, it is dangerous to access par_petrics_[0], since one does
not know whether metrics have been computed for this paragraph (which
may be off-screen).

It is safer to use parMetrics(0), that will compute the paragraph
metrics as needed.

Fixes bug #8120.

(cherry picked from commit a25b48f86c)
2018-02-20 15:02:35 +01:00
Uwe Stöhr
a4c5059195 splash.lyx and ru.po: updates from Yuriy 2018-02-19 23:31:19 +01:00
Uwe Stöhr
296bdba3fb el.po: translations from Odysseas 2018-02-19 23:23:52 +01:00
Uwe Stöhr
9ca8dae41d layouttranslations and uk.po: corrections from Yuri 2018-02-19 23:07:01 +01:00
Uwe Stöhr
2f3695eafd French UserGuide.lyx: fix a typo 2018-02-18 23:40:56 +01:00
jpc
6302dded11 Typo in fr.po 2018-02-18 22:47:15 +01:00
jpc
a448f88326 Partial update of fr/UserGuide.lyx 2018-02-18 22:44:25 +01:00
Uwe Stöhr
48aae9bcb5 Win installer: convert all files to Unicode
- at the moment some files were in Unicode, some in CP1252 which can make unnecessary troubles
- remove an obsolete file
- update InstallerStructure.odg
2018-02-18 15:52:57 +01:00
Pavel Sanda
946ca59b21 * README.localization 2018-02-18 12:29:39 +01:00
Pavel Sanda
ca7aae8da2 * ANNOUNCE - some links can break with "." at the end. 2018-02-18 10:25:03 +01:00
Pavel Sanda
5259822eaa * ANNOUNCE - be explicit about slowness. 2018-02-18 10:24:19 +01:00
Juergen Spitzmueller
6ce83844dc Skip insets when checking for uncodable chars to paste.
Fixes paste of quote insets to ERT/chunk.

(cherry picked from commit 8f9b733e67)
2018-02-18 08:49:15 +01:00
Uwe Stöhr
ae76c030d3 Win installer: backport recent changes for LyX 2.3.0 2018-02-18 06:16:22 +01:00
Pavel Sanda
4c3991b9ca * layouttranslations reviewed by Inaki 2018-02-17 19:12:20 +01:00
Pavel Sanda
b57b053a3f * eu.po - update from Inaki. 2018-02-17 19:12:03 +01:00
Pavel Sanda
2136af92b5 * layouttranslations reviewed by Inaki 2018-02-17 19:07:02 +01:00
Pavel Sanda
f135013b30 * eu.po - update from Inaki. 2018-02-17 19:01:53 +01:00
jpc
15b099d5bf Untranslated menu name in fr/EmbeddedObjects.lyx 2018-02-17 18:42:05 +01:00
jpc
487c9c9df3 A couple of forgotten items in fr/Additional.lyx 2018-02-17 18:30:52 +01:00
jpc
16a7638329 Remove spurious occurrence of AGU and EGS chapters in fr/Additional.lyx 2018-02-17 18:05:51 +01:00
Juergen Spitzmueller
e1f7cc964b update status 2018-02-16 18:19:05 +01:00
Juergen Spitzmueller
a26173f171 Revove unused variable 2018-02-16 17:47:14 +01:00
Juergen Spitzmueller
d20de88953 Open intitle command explicitly also for passthru.
(cherry picked from commit 87960e3dd8)
2018-02-16 17:25:32 +01:00
Juergen Spitzmueller
da3dc1b61f Use TeXOnePar for the inpreamble layouts
This considers paragraph language and spacing (and simplifies the code)

(cherry picked from commit a2f886d526)
2018-02-16 17:25:06 +01:00
Juergen Spitzmueller
961b79975c Fix inpreamble styles.
(cherry picked from commit e55e9c842f)
2018-02-16 17:24:41 +01:00
Juergen Spitzmueller
bd879efaa8 Fix switch of language and line spacing in InTitle commands.
Fixes: #9332, #10849
(cherry picked from commit 49e3f8e830)
2018-02-16 17:24:00 +01:00
Juergen Spitzmueller
c0ef31d9b9 Recreate citation label after paste
Fixes: #10829
(cherry picked from commit 7e34e65943)
2018-02-16 17:14:28 +01:00
Pavel Sanda
a4a50ac358 * UserGuide - add sentence about graphic groups unification. 2018-02-15 22:41:43 +01:00
Pavel Sanda
c17f706a1c * status file 2018-02-15 21:48:47 +01:00
Pavel Sanda
25741ca5bd Oops, asInsetGrpahics is new to master. 2018-02-15 21:48:23 +01:00
Scott Kostyshak
37b5aa1ee6 ANNOUNCE: give the URL to the list of mirrors
The upstream FTP might be slow for some users. Further, the upstream
FTP was down for a brief period of time [1]. For more discussion on
adding the URL to the list of mirrors, see [2].

Thanks to Joel Kulesza for the idea.

[1]
https://www.mail-archive.com/search?l=mid&q=AM3PR04MB1297EE16DF1C3AA9FA54445CDEF60%40AM3PR04MB1297.eurprd04.prod.outlook.com
[2]
https://www.mail-archive.com/search?l=mid&q=CAAGOGw_PbNG4gGcmOg%2BgPG2%2Bm_Kot9bHCTf7GPYCNTOf_TrbOQ%40mail.gmail.com
2018-02-15 14:47:14 -05:00
Pavel Sanda
1713b53516 Cosmetics per JMarc's suggestions. 2018-02-15 20:42:54 +01:00
Pavel Sanda
e836cc0aac Unify graphics-groups inside marked block functionality.
Fixes #11026.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203683.html
2018-02-15 20:42:36 +01:00
Jean-Marc Lasgouttes
c8230ab0d0 Merge remote-tracking branch 'features/properpaint' into 2.3.2-staging
This makes sure that painting actually happens at paint events, making
display more fluid.
2018-02-15 14:57:53 +01:00
Jean-Marc Lasgouttes
61c5769e39 Fix ghost caret
This fixes a regression in e64ea357, where a test has been (badly)
tightened to avoid that two consecutive rows may be redrawn to get rid
of caret ghosts. The test prohibited empty rows from being redrawn.

Moreover, improve the test of cursor boundary to avoid the case where
cursor position is already 0.

Fixes bug #10952.

(cherry picked from commit 66c677b946)
2018-02-15 12:29:25 +01:00
Jean-Marc Lasgouttes
be35ba31bf Fix compilation in monolithic mode
(cherry picked from commit 3aa10c8dba)
2018-02-15 12:29:25 +01:00
Jean-Marc Lasgouttes
c677156938 Use a backing store on macOS
Qt on macOS does not respect the Qt::WA_OpaquePaintEvent attribute and
clears the widget backing store at each update. Therefore, we use our
own backing store in this case.

This restores a simplified version of the code that was removed at 06253dfe.

(cherry picked from commit 2316435f2f)
2018-02-15 12:29:25 +01:00
Jean-Marc Lasgouttes
8af3077753 Make sure that rows are repainted when they get (un)selected
The bug is the following: when selecting several paragraphs quickly
enough, some rows do not get selected.This is a consequence of the
removal of row crc, which lead to not taking into account the
selection status of the row in the decision to repaint.

The solution chosen here is to add a Row::change() helper function to
modify row members. This will set the Row changed status whenever the
value of the member changes.

(cherry picked from commit ae60749f89)
2018-02-15 12:29:25 +01:00
Jean-Marc Lasgouttes
9c8e3df86b Fixup ac4bcb12
Cursor at end of paragraph should be treated as if boundary was on.

(cherry picked from commit d01dd54bf1)
2018-02-15 12:29:25 +01:00
Jean-Marc Lasgouttes
fa4fc6fc4d Avoid some caret ghosts
When the caret is at end of row, if may happen that it is drawn after
the end of the row. In this case caret blinking will not work
properly. This patch extends the row background on the left and right
by Inset::TEXT_TO_INSET_OFFSET. This is only a hack that will not work
if the caret has a ridiculous width like 6.

Additionally, introduce some (disabled) debug code that numbers the
rows on screen by painting order.

Finally, make the code that detects whether the caret was in a given
row more precise (take boundary into account).

Fixes (mostly, see above) bug #10797.

(cherry picked from commit e64ea3576c)
2018-02-15 12:29:25 +01:00
Jean-Marc Lasgouttes
a71610b9d7 Remove row crc computation
This computation did not make sense anymore since we began to put the
contents in the Row object. The fact that it worked was a coincidence.

Instead, we set rows as changed() on creation and reset that once they
have been drawn. This will allow in the future for a finer definition
of what to redraw or not.

Also update the PAINTING_ANALYSIS document

(cherry picked from commit 9e2da4a3ea)
2018-02-15 12:29:25 +01:00
Jean-Marc Lasgouttes
d2e15bd189 Store change bar information in row element
It is wrong to compute this at paint time. In general, painting a row
should not require any access to a paragraph object, but we are far
from there now.

(cherry picked from commit 4858bb3bb6)
2018-02-15 12:29:25 +01:00
Jean-Marc Lasgouttes
4ecbff0019 Allow multiple calls to processUpdateFlags before redraw
The goal of this commit is to ensure that a processUpdateFlags call
that requires no redraw will not override a previous one that did
require a redraw.

To this end, the semantics of the flag argument is now different: its
value is now OR'ed with a private update_flags_ variable. This
variable is only reset after the buffer view has actually been
redrawn.

A new Update::ForceRedraw flag has been added. It requires a full
redraw but no metrics computation. It is not used in the main code
(yet), but avoids to compute metrics repeatedly in consecutive
processUpdateFlags calls.

The process is now as follows:
- if flags is just None, return immediately, there is nothing to do.
- the Force flag is honored (full metrics computation) and replaced
  with ForceDraw.
- the FitCursor flag is honored and removed from the flags.
- the SinglePar update is added if ForceDraw is not in flags and only
  the current par has been modified.

The remaining flags are only then added to the BufferView update
flags, and the update strategy is computed for the next paint event.

Finally the dubious call to updateMacros in updateMetrics has been
removed for performance reasons.

(cherry picked from commit 8d8988de47)
2018-02-15 12:29:25 +01:00
Jean-Marc Lasgouttes
2b1b33189d Create new method GuiWorkArea::Private:::updateCaretGeometry
This replaces a showCaret/hideCaret pair and avoids an update.

Also remove an update() call in resizeBufferView: is is not necessary
since we are already in a pintEvent handler.

(cherry picked from commit add342d088)
2018-02-15 12:29:25 +01:00