Commit graph

6750 commits

Author SHA1 Message Date
Albert Astals Cid d95efa7698 Move synctex up to the core from poppler generator
This way dvi and any other potential user gets it for free

The diff is huge, but the synctex files are just moves.

And the code in core/ is also mostly just a move from the generator_pdf.cpp code

Acked by Luigi

REVIEW: 120311
2014-10-09 00:17:53 +02:00
Sergio Martins 9ff5451f1f Merge branch 'KDE/4.14' into master 2014-10-01 23:57:42 +01:00
Sergio Martins cb4d52fb4c Fix infinit loop if component isn't found.
Shell's CTOR will fail if Okular component isn't found, leading
to i never being incremented.
2014-10-01 23:56:00 +01:00
Albert Astals Cid 188476dee5 Merge remote-tracking branch 'origin/KDE/4.14' 2014-09-30 23:15:55 +02:00
Nidhi Jain f62153231b Move focus to view when closing the find bar with the [x] button
BUGS: 314251
REVIEW: 120307
FIXED-IN: 4.14.2
2014-09-30 23:15:12 +02:00
l10n daemon script 3588634833 SVN_SILENT made messages (.desktop file) 2014-09-30 09:11:55 +00:00
l10n daemon script 8365cf2873 SVN_SILENT made messages (.desktop file) 2014-09-30 04:39:47 +00:00
Albert Astals Cid a1ebea0389 Merge remote-tracking branch 'origin/KDE/4.14' 2014-09-27 01:59:03 +02:00
Albert Astals Cid 9312182085 Fix latex render in annotations
We need
  disconnect(textEdit, SIGNAL(cursorPositionChanged()), this,SLOT(slotsaveWindowText()));
and it's counterpart, otherwise when inserting the image, the cursor pos changes, slotsaveWindowText is called, the content is passed by a toPlainText and set again and kaboom the content is lost

Also a few extra const

BUGS: 335476
FIXED-IN: 4.14.2
2014-09-27 01:58:26 +02:00
Luigi Toscano 5e2d190ebf Guard drawText() when X-bitmap fonts are used
If the fonts are mapped for some reason to X bitmap fonts,
the call to drawText() in the non-GUI thread will produce a crash.
Ensure that the rendering of the text is performed only if
the threaded font rendering is available - a rare event nowadays,
but still possible.

CCBUG: 248852
2014-09-22 22:49:30 +02:00
Albert Astals Cid 0666e18f4c Merge remote-tracking branch 'origin/KDE/4.14' 2014-09-21 23:58:53 +02:00
Albert Astals Cid d888b20483 Fix dvi inverse search
distance being in sqr pixels and s_minDistance being a normalized value was not a good idea to compare them ^_^

BUGS: 326605
REVIEW: 120308
2014-09-21 23:54:20 +02:00
Albert Astals Cid ee8b442559 Merge remote-tracking branch 'origin/KDE/4.14' 2014-09-18 23:54:50 +02:00
Albert Astals Cid b958a5e3ae Complement to last commit
Do not end up with the sidebar hidden when opening some files and you had it open

    For example with http://www.abax.se/content/download/137/862/file/example.pdf
2014-09-18 23:54:15 +02:00
Albert Astals Cid d3fc62787b Merge remote-tracking branch 'origin/KDE/4.14' 2014-09-18 22:25:27 +02:00
Albert Astals Cid d2708aef12 Do not end up with the sidebar hidden when opening some files and you had it open
For example with http://www.abax.se/content/download/137/862/file/example.pdf
2014-09-18 22:24:40 +02:00
Friedrich W. H. Kossebau dbd4696cd8 Adapt docu of generators to generateDocumentInfo() method change
REVIEW: 120113
2014-09-09 14:53:51 +02:00
Albert Astals Cid 4335b6e509 douc++ 2014-09-09 11:44:33 +02:00
Albert Astals Cid 42185da791 Merge remote-tracking branch 'origin/KDE/4.14' 2014-08-24 22:38:59 +02:00
Albert Astals Cid 3dfd172375 Only update zoomFactor for current page
REVIEW: 119894
BUGS: 335819
FIXED-IN: 4.14.1

Reviewed by Fabio and Markus Trippelsdorf
2014-08-24 22:38:33 +02:00
Albert Astals Cid f09df0aa05 Don't let people zoomin/out past the "range of values"
BUGS: 338452
FIXED-IN: 4.14.1
2014-08-21 23:34:54 +02:00
Yuri Chornoivan e39ab9009e Merge branch 'KDE/4.14' 2014-08-16 07:18:58 +03:00
Yuri Chornoivan b98f1e9338 Add FB2 icons (design by Vladimir Prohorenkov, allowed to use under free license by the author).
REVIEW: 118862
2014-08-16 07:18:01 +03:00
Albert Astals Cid 13395f4740 Merge remote-tracking branch 'origin/KDE/4.14' 2014-08-13 23:58:13 +02:00
Albert Astals Cid fba90677fc Fine tune mime type detection used for opening files
If the argument mimetype and filepath mimetype disagree, first try to use the filepath mimetype and if that fails use the argument one. On top of that if text/plain is the first, first try with content mimetype since the text backend never fails to open a file

I can now open https://bugs.freedesktop.org/attachment.cgi?id=99508 (which is served as text/plain) and PS files with .txt extension (bug 325044)

REVIEW: 119737
BUGS: 325044
FIXED-IN: 4.14.0
2014-08-13 23:51:48 +02:00
Albert Astals Cid f76184cb55 Revert e96dabc467
Diggory i think there was a misunderstanding in our discussion

The patch is unfinished (not goot to commit with a TODO)
and needs to be improved (need to find a way to not break ABI, QSize param should be const &) please
open a reviewrequest and we can discuss/finalize it there.

CCMAIL: diggory.hardy@unibas.ch
2014-08-13 21:07:32 +02:00
Diggory Hardy e96dabc467 Fix font size on high-DPI displays in ePub documents (but makes images small) 2014-08-13 18:54:30 +02:00
Albert Astals Cid e9e3d4a435 Make documentInfo be Hash based instead of XML based 2014-08-10 22:38:13 +02:00
Albert Astals Cid c5c3be9a1a Do not allow more than one path if using -page, -presentation or -print
Only in mater since it adds new strings
2014-08-08 23:34:24 +02:00
Albert Astals Cid 0c4d6af3b7 Merge remote-tracking branch 'origin/KDE/4.14' 2014-08-08 23:33:31 +02:00
Albert Astals Cid 8aa921d2da Test that closing and reopening a file remembers the page you last had it in 2014-08-08 23:24:01 +02:00
Albert Astals Cid 8d8f1a6428 Merge remote-tracking branch 'origin/KDE/4.14'
Conflicts:
	VERSION
	core/version.h
2014-08-08 22:50:34 +02:00
Albert Astals Cid b326c4f11e Prepare for 4.14.0 release 2014-08-08 22:49:23 +02:00
Albert Astals Cid 6e1a33554c Increase okularcore version since we've broken ABI 2014-08-08 22:45:09 +02:00
Albert Astals Cid a170e35ca8 Merge remote-tracking branch 'origin/KDE/4.14' 2014-08-08 22:42:12 +02:00
Albert Astals Cid 125ee3178c Don't you hate it when you forget files? 2014-08-08 22:39:53 +02:00
Albert Astals Cid 61c830cb7a Pass the command line options properly when using tabs or unique instances
Use a QString to serialize the command line options other than urls to open so it can be easily passed around to every place that opens a new shell or tab or overrides the content in a unique instance.

BUGS: 334100
FIXED-IN: 4.14.0
REVIEW: 119595
2014-08-08 22:35:53 +02:00
Albert Astals Cid 9186a4e8b9 Merge remote-tracking branch 'origin/KDE/4.14' 2014-08-03 02:07:05 +02:00
Albert Astals Cid 50f2019f8b Pass absolute urls
Patch pased on patch by Jonathan Doman based in a suggstion of willemsonke@planet.nl

BUGS: 334510
REVIEW: 119550
FIXED-IN: 4.14.0
2014-08-03 02:04:56 +02:00
Albert Astals Cid 35a3f23709 Merge remote-tracking branch 'origin/KDE/4.14' 2014-08-01 01:29:01 +02:00
Albert Astals Cid b7af929e5e Fix sporadic crash when running parttest
We use
  m_pageController
as guard for closing down instead of
  d->m_generator || d->m_closingLoop
since m_pageController is the first thing we set to 0 on closeDocument
2014-08-01 01:27:27 +02:00
Albert Astals Cid faf63bfa2d Merge remote-tracking branch 'origin/KDE/4.14' 2014-07-31 00:16:09 +02:00
Jonathan Doman 375c72dc66 Make tabs rearrangeable
BUGS: 334018
FIXED-IN: 4.14.0
REVIEW: 118685
2014-07-31 00:15:21 +02:00
Albert Astals Cid 91985ea1e4 Merge remote-tracking branch 'origin/KDE/4.14'
Conflicts:
	VERSION
	core/version.h
2014-07-30 19:33:44 +02:00
Albert Astals Cid d30861fb1a Prepare for 4.14 RC 2014-07-30 19:32:33 +02:00
l10n daemon script 896de56ef0 SVN_SILENT made messages (.desktop file) 2014-07-25 05:38:42 +00:00
Albert Astals Cid 4d5ed1728b Merge remote-tracking branch 'origin/KDE/4.14' 2014-07-25 00:14:05 +02:00
Albert Astals Cid 99f15dce01 renewcomment -> renewcommand
As reported by Jiri Slaby

BUGS: 337767
FIXED-IN: 4.14.0
2014-07-25 00:12:37 +02:00
l10n daemon script 1b5cbbea59 SVN_SILENT made messages (.desktop file) 2014-07-24 04:51:37 +00:00
Albert Astals Cid 11ec9723e8 Merge remote-tracking branch 'origin/KDE/4.14'
Conflicts:
	VERSION
	core/version.h
2014-07-21 23:49:33 +02:00