Commit graph

4078 commits

Author SHA1 Message Date
Pino Toscano
1350802160 in case the document has no title, put just the filename as title, not the whole path
svn path=/trunk/KDE/kdegraphics/okular/; revision=709512
2007-09-07 17:30:00 +00:00
Pino Toscano
1bd4373ceb move the okular-poppler specific configuration into its own config.h
svn path=/trunk/KDE/kdegraphics/okular/; revision=709493
2007-09-07 16:04:32 +00:00
Pino Toscano
2a29b247f7 save really few bytes
svn path=/trunk/KDE/kdegraphics/okular/; revision=709414
2007-09-07 13:13:50 +00:00
Pino Toscano
a2b2db70eb SVN_SILENT old code
svn path=/trunk/KDE/kdegraphics/okular/; revision=709398
2007-09-07 12:46:16 +00:00
Pino Toscano
0cf7f95f3a Disable the minibar for now, let's see how okular looks like w/o it.
svn path=/trunk/KDE/kdegraphics/okular/; revision=709374
2007-09-07 10:59:28 +00:00
Pino Toscano
0517d30bfc Remove the "Show Search Bar" option, mostly unuseful.
svn path=/trunk/KDE/kdegraphics/okular/; revision=709361
2007-09-07 10:31:33 +00:00
Pino Toscano
962a134d2b Properly enable/disable the whole "Export As" menu, not just the "Export to Text" action.
svn path=/trunk/KDE/kdegraphics/okular/; revision=709336
2007-09-07 09:09:39 +00:00
Pino Toscano
ef3769ea5b DocPath -> X-DocPath for .desktop of type Application
svn path=/trunk/KDE/kdegraphics/okular/; revision=709100
2007-09-06 15:07:23 +00:00
Albert Astals Cid
3f80eceaae Now (Qt 4.3.1) that QPainter::CompositionMode_Multiply works remove agg2 based code
Actually i think it's even a bit faster now

svn path=/trunk/KDE/kdegraphics/okular/; revision=708877
2007-09-05 22:01:04 +00:00
Pino Toscano
805b0f3386 Introduce a selective merging strategy for text areas, so we merge only all the areas of a text "line" together, not also with the areas above (if the lines overlap).
Adapt the text selection to merge correctly depending on the current rotation.
Drawback: darker overlap zones if two lines overlap.

svn path=/trunk/KDE/kdegraphics/okular/; revision=708745
2007-09-05 14:57:15 +00:00
Pino Toscano
97fa2243ea don't do the merge when turning a regular area rect into an highlight area rect
svn path=/trunk/KDE/kdegraphics/okular/; revision=708740
2007-09-05 14:51:40 +00:00
Pino Toscano
cbcd969e6a filter only the page changes interesting for the thumbnails
svn path=/trunk/KDE/kdegraphics/okular/; revision=708701
2007-09-05 13:10:21 +00:00
Pino Toscano
99a99a1590 instead of just keeping the transformation matrix, add the pointer to the owning page in a text page, so a text page can know more information, and with no need to manually be updated by the page
svn path=/trunk/KDE/kdegraphics/okular/; revision=708443
2007-09-04 22:37:39 +00:00
Pino Toscano
45960f6b71 Allow the use to choose any icon as stamp symbol.
svn path=/trunk/KDE/kdegraphics/okular/; revision=708387
2007-09-04 18:21:33 +00:00
Pino Toscano
fd0d892373 make the spacer expand a bit less, and fix a crash when the current annotation type has no info
svn path=/trunk/KDE/kdegraphics/okular/; revision=708367
2007-09-04 17:02:30 +00:00
Pino Toscano
4c80e8a8e1 properly ignore a mouse press if it's going to be context menu event
svn path=/trunk/KDE/kdegraphics/okular/; revision=708268
2007-09-04 11:12:03 +00:00
Pino Toscano
bf9af4433d move deleteTextSelections() to the private class
svn path=/trunk/KDE/kdegraphics/okular/; revision=708155
2007-09-03 23:47:12 +00:00
Pino Toscano
d81d4aedd9 small api fixup ('const QContainer' it's pointless as return value)
svn path=/trunk/KDE/kdegraphics/okular/; revision=708147
2007-09-03 23:01:57 +00:00
Pino Toscano
a76e3d8e84 few bits more i did at uni today
svn path=/trunk/KDE/kdegraphics/doc/okular/; revision=708128
2007-09-03 21:49:49 +00:00
Pino Toscano
ab23a54823 select all text is done
svn path=/trunk/KDE/kdegraphics/okular/; revision=708125
2007-09-03 21:37:22 +00:00
Pino Toscano
969bc7b908 Ctrl+A to select all the text in the document.
Implements KPDF bug #109346.

svn path=/trunk/KDE/kdegraphics/okular/; revision=708124
2007-09-03 21:35:05 +00:00
Troy Unrau
6b6e0a8dc4 Fixed zoom factor issue. When zooming out at 100%, you would end up at 80%,
but zooming in from 80% would give you 90%.  Zoom levels are now 
symmetrical when using toolbar zoom or CTRL+scrollmouse.

Thanks to pinotree to pointing out the appropriate code for me to fix.

svn path=/trunk/KDE/kdegraphics/okular/; revision=708122
2007-09-03 21:29:09 +00:00
Pino Toscano
323411021a SVN_SILENT i can consider the text selection mostly done
svn path=/trunk/KDE/kdegraphics/okular/; revision=708104
2007-09-03 20:49:02 +00:00
Pino Toscano
351f66a9b4 remove TextPage::transform() from the public API, and make the Page change the TextPage transformation easily
svn path=/trunk/KDE/kdegraphics/okular/; revision=708085
2007-09-03 19:58:30 +00:00
Pino Toscano
1bd879c240 extract the definition of the private class of TextPage to an own file, and rename it to TextPagePrivate
svn path=/trunk/KDE/kdegraphics/okular/; revision=708084
2007-09-03 19:52:46 +00:00
Pino Toscano
d66f6b8f4a better check before starting searching on a NULL text page...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708081
2007-09-03 19:38:46 +00:00
Pino Toscano
490cf6fc67 Add a new text selection algo that should be a bit more reliable than the current one (just commented out), especially if the backend does not provide text areas in the logical order. Drawback: slightly slower.
Adapt both the algo's to work on untransformed text areas, but to return transformed areas.

svn path=/trunk/KDE/kdegraphics/okular/; revision=708078
2007-09-03 19:35:55 +00:00
Pino Toscano
9a1b575ac0 properly rotate/transform the text page and the highlight areas
svn path=/trunk/KDE/kdegraphics/okular/; revision=708054
2007-09-03 18:32:07 +00:00
Pino Toscano
4913076ee9 extract in an own static function te calculation of a rotation matrix from both source and destination rotations
svn path=/trunk/KDE/kdegraphics/okular/; revision=708049
2007-09-03 18:16:27 +00:00
Pino Toscano
0d7db7513b save the url of the document to its xml metadata file
svn path=/trunk/KDE/kdegraphics/okular/; revision=708039
2007-09-03 17:53:45 +00:00
Pino Toscano
37870961b7 disable by default the "review" and "bookmarks" sidebar items, and re-enable them only if we're not in dummy mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=708029
2007-09-03 17:25:52 +00:00
Pino Toscano
1d40b13d2b SVN_SILENT exclude more private stuff from the apidox
svn path=/trunk/KDE/kdegraphics/okular/; revision=707467
2007-09-01 22:48:28 +00:00
Tobias Koenig
f764604bb6 Remove the EventLoop hack which causes crashes when you close the
application during loading

svn path=/trunk/KDE/kdegraphics/okular/; revision=706608
2007-08-30 21:10:09 +00:00
Tobias Koenig
ae2247f207 Fixed possible crash... never code after 18:00
svn path=/trunk/KDE/kdegraphics/okular/; revision=706607
2007-08-30 21:09:00 +00:00
Tobias Koenig
7e16285d28 Add a new helper functions which allow sorting of strings which
contains numbers in natural order

svn path=/trunk/KDE/kdegraphics/okular/; revision=706529
2007-08-30 16:59:49 +00:00
Tobias Koenig
cde58f48ba * Check for Landscape or Portrait mode (patch by Pino)
* Fixed bug by clearing the page map on opening

svn path=/trunk/KDE/kdegraphics/okular/; revision=706496
2007-08-30 15:30:12 +00:00
Pino Toscano
d96bb9e9a4 find the print preview "placeholder" correctly
svn path=/trunk/KDE/kdegraphics/okular/; revision=706138
2007-08-29 14:25:44 +00:00
Pino Toscano
218b630460 port to the new library loading stuff
svn path=/trunk/KDE/kdegraphics/okular/; revision=706132
2007-08-29 14:16:06 +00:00
Pino Toscano
eec1e88373 comment out the MovieAction, unexported and unimplemented
svn path=/trunk/KDE/kdegraphics/okular/; revision=706091
2007-08-29 11:59:54 +00:00
Pino Toscano
cb8d37821c properly disable the "about backend" action at empty window startup
(and remove some unused includes)

svn path=/trunk/KDE/kdegraphics/okular/; revision=706086
2007-08-29 11:24:01 +00:00
Pino Toscano
a61d4b430a bump the version to 0.5.91
svn path=/trunk/KDE/kdegraphics/okular/; revision=705945
2007-08-29 00:32:41 +00:00
Pino Toscano
48b2cad049 fixed wrong example in the apidox, and all the code that was done by copy&paste from it, basically...
svn path=/trunk/KDE/kdegraphics/okular/; revision=705935
2007-08-28 23:27:37 +00:00
Pino Toscano
ea48a1b7f4 Provide an example (disabled, of course) of usage of the "new" GuiInterface in the KImageIO backend.
Add also an about data.

svn path=/trunk/KDE/kdegraphics/okular/; revision=705934
2007-08-28 23:19:42 +00:00
Pino Toscano
a8d747745f Cleanup a bit the GuiInterface, and making it work.
Instead of manually requestion actions and other stuff, we just make the interface as gui client, requesting and integrating it in the part gui.
Also, rename the Generator's componentData() to ownComponentData() to avoid clashing with KXMLGUIClient.

svn path=/trunk/KDE/kdegraphics/okular/; revision=705933
2007-08-28 23:17:00 +00:00
Pino Toscano
17e6bdfcfd make the bookmark tree showing its contents with no document open;
use a kdelibs method to save 7+ lines

svn path=/trunk/KDE/kdegraphics/okular/; revision=705780
2007-08-28 15:02:39 +00:00
Pino Toscano
0416e07a37 make some view actions disabled by default, so they are not enabled when opening a new empty window
(and little fix for my yesterday's commit, so the preview mode should work again...)

svn path=/trunk/KDE/kdegraphics/okular/; revision=705713
2007-08-28 12:04:18 +00:00
Script Kiddy
a550d8c0d4 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=705612
2007-08-28 07:29:37 +00:00
Pino Toscano
24c387a84b first (and i hope last) attempt to exclude the internal area functions from the apidox
svn path=/trunk/KDE/kdegraphics/okular/; revision=705433
2007-08-27 23:02:48 +00:00
Pino Toscano
8b0a80ba4b Start making the annotation system DRM-aware. In case the document does not want changes to its annotations (and okular is set to obey),
- disable the review toolbar
- make the annotation prioerties dialog read-only
- disable the removal

svn path=/trunk/KDE/kdegraphics/okular/; revision=705415
2007-08-27 22:11:18 +00:00
Pino Toscano
b480fc0670 do nothing if we have no form fields for a page, but form saved data for it are there anyway
svn path=/trunk/KDE/kdegraphics/okular/; revision=705035
2007-08-26 23:31:01 +00:00