Commit graph

527 commits

Author SHA1 Message Date
Frederik Gladhorn ac15a7075e More QUrl porting 2014-08-10 20:36:41 +02:00
Frederik Gladhorn 0c7a45c7a5 Disable lots of stuff and compile
The text generator is the only one compiled now.
This version links for me but then doesn't find its KPart on startup.

TTS has been completely disabled as well as some other things like the
about dialog.
2014-08-10 14:42:54 +02:00
Frederik Gladhorn fc73cbf886 Port UI: dialog buttons and friends 2014-08-10 14:08:47 +02:00
Frederik Gladhorn 0ba233788c Use moc include style dictated by automoc
While it's generally not a great idea to include moc files at least this
compiles.
2014-08-09 00:21:03 +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
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
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 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
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
Alexander Potashev f68c26bbea Disable action "View -> Auto Fit" when no document is opened
REVIEW: 115776
2014-02-16 18:09:46 +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
Fabio D'Urso 57ea580057 Merge remote-tracking branch 'origin/KDE/4.11' 2013-10-01 19:26:06 +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 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
Yuri Chornoivan 3b73357d2f Fix some typos found by Krazy2 2013-06-24 13:46:16 +03:00
Peter Grasch 09dad5e6d2 Usability: Use crosshair cursor while annotating
REVIEW: 109633

updateCursor changes by Albert
2013-06-23 20:45:04 +02:00
Jon Mease b7ce9114c5 Undo support for PDF forms
Together with the already commited support for undo in annotations fixes 177501
BUGS: 177501
REVIEW: 110589
FIXED-IN: 4.11.0
2013-06-03 22:46:41 +02:00
Fabio D'Urso 5860fc89c5 Added shortcut to annotation config panel as review toolbar's context menu 2013-05-28 23:55:10 +02:00
Fabio D'Urso 9e7cf9ae4b Merge remote-tracking branch 'origin/master' into configurable-review-tools 2013-05-20 20:28:49 +02:00
Albert Astals Cid 446a636abf Merge remote-tracking branch 'origin/KDE/4.10' 2013-05-20 18:22:56 +02:00
Albert Astals Cid 4e05cc2526 Fix wrong check
Parker messed up the logic that force it to be in text selection mode
to be on non text selecion mode when doing an unrelated change.

As the "bug" as showed we can selectAll in non text selection mode as well
so remove the check altogether

BUGS: 159276, 319554
FIXED-IN: 4.10.4
2013-05-20 18:15:55 +02:00
Fabio D'Urso 2e0296e913 Merge remote-tracking branch 'origin/master' into configurable-review-tools
Conflicts:
	ui/pageview.cpp
	ui/pageviewannotator.cpp
2013-04-19 01:17:56 +02:00
Jon Mease 78faf1e68f Add undo/redo support for annotations
REVIEW: 107442
2013-04-06 00:22:48 +02:00
Jaydeep Solanki 1121cff1b8 Implement Open url in browser for plain text
BUGS: 281027
REVIEW: 108614
FIXED-IN: 4.11.0
2013-03-26 22:43:56 +01:00
Albert Astals Cid 04c3b836ff Merge remote-tracking branch 'origin/KDE/4.10'
Conflicts:
	generators/spectre/okularApplication_ghostview.desktop
2013-03-14 23:09:57 +01:00
Albert Astals Cid 3f3f82afa1 Fix my email address 2013-03-14 23:09:07 +01:00
Albert Astals Cid 541650a4f4 Remove the concept of observer/view id
Just use the pointer as id :-)

This is BIC and SIC, increase the soversion now to makes sure we don't forget in the future

Patch based in an earlier patch by Bogdan Cristea <cristeab@gmail.com>
REVIEW: 109115
2013-02-24 23:01:02 +01:00
Albert Astals Cid 56e20047b8 Repaint on config change
Now that the pdf generator does not incorrectly delete the pixmaps
on a config change we need to repaint the viewports in case
there has been a inverted color change or something similar
2012-12-31 12:04:23 +01:00
Fabio D'Urso c9e5d0a0b0 Make PageViewAnnotator reparse tool list on configuration change
This doesn't do anything useful at the moment. In next patch I'll turn
the tool list into a configurable option.
2012-12-27 19:38:43 +01:00
Fabio D'Urso 5b8d51d66e Fixed wrong index
BUG: 311601
2012-12-13 11:40:28 +01:00
Albert Astals Cid 7ba2f70453 Remove duplicated code 2012-12-12 22:23:17 +01:00
Albert Astals Cid f70c31aed6 Some const 2012-12-12 22:23:17 +01:00
Fabio D'Urso 7cdc42a682 Hide widget annotations from the user (some other checks)
This patch also prevents the popup window from being opened on
double-click and the annotation tooltip from being shown.
2012-12-12 20:01:46 +01:00
Tobias Koenig 38861f5f57 Hide widget annotations from the user
Widget annotations are not meant to behave like "regular" annotations.
In particular, they must not be listed in the review panel or when the
user right-clicks on form fields.
2012-12-12 19:33:48 +01:00
Fabio D'Urso 9101f9b410 Two changes in PageView's zoom combobox
- Removed useless document->supportsTiles() check in setupBaseActions()
   setupBaseActions() is called only once, before a document is opened,
   therefore supportsTiles() always returns false
 - Show the 400% entry even when tiled rendering is not available, so
   that the last entry always corresponds to the maximum allowed zoom
   level (i.e. 1600% or 400% according to whether tiled rendering is
   available or not)
2012-12-01 01:34:54 +01:00
Mailson Menezes 7528fb8c88 Change TilesManager::tilesAt use
- The second parameter has changed to an enum
 - Now Page::tilesAt only returns tiles with pixmaps
2012-11-15 20:41:17 -03:00