Commit graph

1469 commits

Author SHA1 Message Date
Albert Astals Cid e9e3d4a435 Make documentInfo be Hash based instead of XML based 2014-08-10 22:38:13 +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
Albert Astals Cid ad8fda2965 Merge remote-tracking branch 'origin/KDE/4.13' into KDE/4.14 2014-07-16 10:35:52 +02:00
Yuri Chornoivan 3669e776dc Fix two icons in the Tools menu
BUGS: 336530
2014-07-10 23:36:03 +02:00
Albert Astals Cid c7838fde26 Merge remote-tracking branch 'origin/KDE/4.13' into KDE/4.14 2014-07-10 23:15:05 +02:00
Albert Astals Cid e79719b93a reorder conditions to make the valgrind warning go away 2014-07-10 23:14:01 +02:00
Albert Astals Cid dc088779ef Merge remote-tracking branch 'origin/KDE/4.13' 2014-05-20 23:25:37 +02:00
Jon Mease 34dc4eb22e Fix crash when clicking in a text form that is not editable
BUGS: 334611
REVIEW: 118171
FIXED-IN: 4.13.2
2014-05-20 23:24:18 +02:00
Luigi Toscano c1ed635770 Merge remote-tracking branch 'origin/KDE/4.13' 2014-05-11 16:35:43 +02:00
Luigi Toscano 4c4825a2a8 Print preview: explicitly look for the Okular/Ghostview part
No other parts which renders PostScript are available at the moment,
and parts which handles them are return "unexpected" resultS (e.g.
katepart: PostScript source code).

Reviewed by: Albert Astal Cid

BUG: 284428
FIXED-IN: 4.13.2
2014-05-11 16:31:07 +02:00
Albert Astals Cid 7b7fef0bea Move the messagebox about continuing search from core to ui 2014-05-10 11:33:21 +02:00
Luigi Toscano 69459e742a Redirect error and warning signals to a KMessageWidget
Those two categories are usually longer messages and more
important, so more fit for a (new) KMessageWidget; simple
notice signals still go to PageViewMessage into PageView.

A more general review of all the messages should be probably
performed in order to assign proper categories to them.

Reviewed by: Albert Astal Cid
2014-05-10 10:27:21 +02:00
Luigi Toscano 56c101833f Remove PageViewTopMessage, use KMessageWidget instead
Acked by Albert Astal Cid
2014-05-09 17:19:50 +02:00
Tingnan Zhang fad9c4e6fd Improvements to zoom behaviour
No need for double digit precision in the UI
ZoomIn/ZoomOut moves you through the well known steps + fit page, fit width; if you need any other you can always write it manually or use MMB zoom
BUGS: 323434
BUGS: 323435
FIXED-IN: 4.14.0
REVIEW: 112370
2014-05-06 00:48:38 +02:00
Albert Astals Cid e0e98658e5 Modify how page size label is shown on the bottom bar
Opened a file with all pages with same size and behaves exactly like Okular does
Opened a file with pages with different sizes and behaves like Okular does until it stops fiting. In that moment the page bar is not centered anymore to let the text still fit and once the text doesn't fit anymore it starts getting ellided.

Reviewed by Luigi

BUGS: 333349
FIXED-IN: 4.13.1
2014-04-15 21:20:32 +02:00
Albert Astals Cid cd02dd6d3c Minor changes
Make the receivers be the ones that check for empty, not the senders
2014-04-09 23:34:18 +02:00
Jonathan Doman 89fd56c23b Launch documents from external sources in new tabs
FIXED-IN: 4.13.0
BUGS: 331872
BUGS: 332238
REVIEW: 116700
2014-04-09 23:29:58 +02:00
Montel Laurent 10d6ed2d27 Initialize pointer => fix crash 2014-03-05 07:24:47 +01:00
Albert Astals Cid 6daa7991e8 Fix spacing 2014-03-03 00:43:14 +01:00
Montel Laurent 7b79ca1b36 Pedentic-- 2014-03-02 13:59:49 +01:00
Montel Laurent 04335b886f Fix crash when we click on print preview 2014-03-02 13:59:33 +01:00
Albert Astals Cid 11deb53aa5 Improvements to magnifier feature
In an ideal world I would have commented this in reviewboard and Michal would
have fixed it, but Feature Freeze is almost here so I decided just to fix it myself
2014-02-25 00:04:57 +01:00
Michal Humpula f22d9d2897 Add Magnifier
REVIEW: 113973
GUI
2014-02-24 23:42:10 +01:00
Albert Astals Cid 9cbe17dbb9 Improvements to the play/pause button
In an ideal world I would have commented this in reviewboard and Saheb would
have fixed it, but Feature Freeze is almost here so I decided just to fix it myself
2014-02-24 23:30:21 +01:00
Saheb Preet Singh 921815b58b Implement a play pause button in presentation mode
REVIEW: 115072
BUGS: 328125
GUI
2014-02-24 23:30:21 +01:00
Michal Humpula c07ee043a3 Multiple Tiles Managers per Page
It's straighforward implementation. Every single place, where there were call for (or with) TilesManager, now has a DocumentObserver as companion. The m_tiledManager reference in PagePrivate was changed to QMap<DocumentObserver, TilesManager>.

REVIEW: 113986
2014-02-19 23:41:22 +01:00
Albert Astals Cid 52ad9eae5b Merge remote-tracking branch 'origin/KDE/4.12'
Conflicts:
	VERSION
	core/version.h
	generators/mobipocket/okularApplication_mobi.desktop
2014-02-16 18:10:35 +01:00
Alexander Potashev f68c26bbea Disable action "View -> Auto Fit" when no document is opened
REVIEW: 115776
2014-02-16 18:09:46 +01:00
Luigi Toscano 480df58d68 Few fixes to PageViewMessage
- support for multiline/long messages (properly wrapped)
- react (resize) on parent resize
- code refactoring (common code in private methods)

REVIEW: 115596
2014-02-15 23:40:36 +01:00
Albert Astals Cid c5f1b35df1 Merge remote-tracking branch 'origin/KDE/4.12' 2014-01-12 22:21:03 +01:00
Albert Astals Cid 3a91b599a9 React to toolbar icon change when minibar is in the toolbar
BUGS: 329880
FIXED-IN: 4.12.2
2014-01-12 22:20:29 +01:00
Saheb Preet Singh c80c59b061 Add keyboard shortcut for 'search previous' action: Shift+Enter
REVIEW: 114754
FIXED-IN: 4.13.0
2014-01-12 18:28:19 +01:00
Albert Astals Cid db53b2f359 Do not show the sidebar if it was hidden when defaulting to show the toc
BUGS: 327641
FIXED-IN: 4.11.95
2013-11-21 00:03:02 +01:00
Yuri Chornoivan 3097f70878 Fix typo found by Freek de Kruijf 2013-10-27 14:05:45 +02:00
Ciro Santilli afc74e76ef Add an action to toggle Change Colors
This has the exact same behaviour of clicking the toolbox Settigs > Configure Okular > Accessibility > Change colors and then clicking Ok, therefore changing the saved configs.

BUGS: 173264
FIXED-IN: 4.12.0
2013-10-26 11:40:41 +02:00
Jaydeep Solanki e95b1db23c epub audio support 2013-10-24 00:20:11 +02:00
Jaan Vajakas dff8bf1b36 Improve searching code
Also simplified code a bit by removing unnecessary calls to toLower in TextPagePrivate::findTextInternalForward and TextPagePrivate::findTextInternalBackward I also fixed a small bug: the letter capital I with dot above (U+0130) did not match itself in case-insensitive mode on Qt 4.8.4 (U+0130 still does not match lowercase i (U+0069), which can be considered another bug, that I didn't fix (although this behavior conforms to the Unicode case folding rules)).

(I did not implement the Knuth-Morris-Pratt algorithm that I promised in a comment of Bug 323263 because on second thought I find that the win, if any, would probably be negligible except for some very special documents and special query strings.)

BUGS: 323262
BUGS: 323263
REVIEW: 112135
2013-10-18 16:30:07 +02:00
Fabio D'Urso ad589985e1 Remove some unused #includes 2013-10-14 20:42:34 +02:00
Fabio D'Urso 57ea580057 Merge remote-tracking branch 'origin/KDE/4.11' 2013-10-01 19:26:06 +02:00
Fabio D'Urso 68439221ea Unparent the old TOCModel so that it doesn't get deleted twice
BUG: 322919
FIXED-IN: 4.11.3
2013-10-01 19:21:13 +02:00
Fabio D'Urso 177235d5d7 PageView: compile if PAGEVIEW_DEBUG is set 2013-10-01 19:21:13 +02:00
Thomas Fischer e4aa8317b5 Auto-fit zoom
BUGS: 249364
REVIEW: 110003
2013-08-18 17:19:20 +02:00
Albert Astals Cid 45dc1990eb Don't keep track of middle mouse press in a variable
This fixes the rendering problem in 321212. Why? Because what was happening is that for some reason the middle mouse press to gets to the PageView but not the release, this meant that the PageView got stuck into mouseMidZooming mode and all sort of bad things happened. Now since we don't cache if the mid mouse button is pressed (we just query it when needed) everything is better.

Ideally i'd like to know why we get the press and not the release, but not sure that's feasible to "fix".

BUGS: 321212
REVIEW: 111901
FIXED-IN: 4.11.0
2013-08-06 22:01:17 +02:00
Fabio D'Urso 741abdc4a1 Improved squiggly annotation tool icon 2013-07-31 21:30:57 +02:00
Fabio D'Urso c64a6499e2 Show IBeam cursor instead of Cross while creating text markup annotations 2013-07-31 00:02:12 +02:00
Fabio D'Urso 39d44edbd7 Restore the open hand cursor after creating an annotation in non-continuous mode 2013-07-31 00:02:12 +02:00
Fabio D'Urso ef7aaaf4d5 updateCursor: small change to reflect that only Browse mode lets you interact with links/annotations
This patch only changes the code, the resulting behavior hasn't changed
2013-07-31 00:02:12 +02:00
Fabio D'Urso 8bf046371a Centralize cursor selection logic during creation of annotations into updateCursor 2013-07-31 00:02:07 +02:00
Fabio D'Urso 31a163bc3d Use same fill rule as Poppler in polygon annotations rendered by PagePainter
This is not going to break existing annotations because background
color in polygon annotations is a new 4.11 feature.
2013-07-02 00:27:59 +02:00
Fabio D'Urso 119cd27c08 Set FixedRotation flag on new inline text annotations
BUG: 313177
FIXED-IN: 4.11.0
2013-06-26 21:53:50 +02:00