Commit graph

690 commits

Author SHA1 Message Date
Lauri Watts
24f60bc625 Patch from Brad Hards
BUG:99629

svn path=/trunk/kdegraphics/doc/kpdf/; revision=392876
2005-02-24 21:04:16 +00:00
Albert Astals Cid
27c1e8a078 Don't crash on ps renamed to pdf. Change requested by core-devel
svn path=/trunk/kdegraphics/kpdf/; revision=392849
2005-02-24 17:25:58 +00:00
Albert Astals Cid
f6b9f9d17a Typo: continous -> continuous
BUGS: 99859

svn path=/trunk/kdegraphics/kpdf/; revision=391513
2005-02-20 21:24:25 +00:00
Enrico Ros
b2ed18c67b Added google-like searches on thumbnailslist (in fact the controller is the
SearchWidget). Splitted SearchType::GoogleLike in GoogleAll and GoogleAny
  to mark pages if all words are present or at least one is present resp.
--TODOs;

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=391354
2005-02-20 16:04:40 +00:00
Enrico Ros
f5ed925287 Added kwallet support for passwords storage. Works smoothly: kwallet has a
really nice (and well documented) API! Passwords of protected files are
  stored in the 'KPdf' folder of the Network wallet.
Updated todo.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=391251
2005-02-20 12:23:29 +00:00
Albert Astals Cid
67f4c2b3e7 Please #kde-devel people making beign a pdf hacker more easy, if you don't want drm checking just do
./configure --enable-kpdf-drm=no

svn path=/trunk/kdegraphics/kpdf/; revision=390898
2005-02-19 13:41:34 +00:00
Enrico Ros
f04b9739c8 Follow-up to Albert's commit. DRM handling 'the right way'. Forbids
printing and copying text from protected files (avoids legal issues).

svn path=/trunk/kdegraphics/kpdf/; revision=390880
2005-02-19 13:04:41 +00:00
Albert Astals Cid
9352ac5200 Implement isAllowed for the pdf generator, Enrico is implementing the use of it in pageview etc.
IMHO this is not a feaute but a bug-fix as if this is not implemented we let the user copy text and print from PDF that are protected against and wether we may like it or not is what the spec says and we could get in problems if someone copies text from a protected PDF using our tool.

svn path=/trunk/kdegraphics/kpdf/; revision=390866
2005-02-19 12:23:14 +00:00
Waldo Bastian
e4a142347e * Use startServiceByDesktopName instead of startServiceByName, it's more
reliable
* No need to attach, all KDE applications register with DCOP by default already

svn path=/trunk/kdegraphics/kpdf/; revision=390754
2005-02-19 00:12:26 +00:00
Enrico Ros
08aeb0b73a Fixing the bug Albert told me about (generalizes the 'exit fullscreen' bug
that Albert fixed a while ago). Always ensure that pixmaps are requested
if a relayout has been performed, even if the viewport is not moved but
contents changed.
Removed a warning.

svn path=/trunk/kdegraphics/kpdf/; revision=390694
2005-02-18 21:14:01 +00:00
Enrico Ros
fbc7d45083 Adding support for annotations in framework. Only need to add and
implement annotations now (and create the save/load procedure).

Annotations: converging to a stable Annotation definition. Changed a bit
  the paint functions. Added a first 'template' annotation, a simple
  pen-like segments recorder for framework testing purposes only. This
  has events filters in place and the rough paint function implemented.

PageView: removed the MouseEdit mode and using that button for toggling
  the editToolBox instead. Added Annotation support. When the Annotation
  is created, all pageView events flow through that new object. Repaint
  of damaged/old areas is done internally and is based on the geometry
  of the annotation we're creating. When an Annotation is complete, it
  is reparented to the Page that adds it to its internal list.
  From that point on the annotation will be rendered by pagePainter
  using the pixmap-based paint function provided by the annotation
  itself.

PagePainter: draws annotations stored in pages when rendering (using the
  'rought paint function' till the good pixmap based one will be in
  place.

Page: added preliminary support for adding Annotation(s) to the page
  and deleting them all.

Document: added the pass-through call to add an Annotation to the Page
  and notify observers.

PageViewToolbox: can be draged and attached to any side. Position is
  remembered between runs (choose your side and that the toolbox will
  always be there). Available on Right and Bottom sides too. Emits -1
  when the current tool is deselected.

Misc: added Annotations to both the 'observers changed flags' and the
  'pagepainter' ones and updated ui classes accordingly.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=390638
2005-02-18 18:24:45 +00:00
Albert Astals Cid
fa67d6676c Delay the calculation of m_width and m_height (and all its associated things) until first time the widget is shown (paintEvent), doing KGlobalSettings::desktopGeometry(this); in PresentationWidget::PresentationWidget always returns the geometry of the first screen, so it must be done in paintEvent (for example), where the widget has already been shown and KGlobalSettings::desktopGeometry(this); returns the geometry of the correct screen.
Thanks to Olaf Bonorden for the patch testing
BUGS: 97347

svn path=/trunk/kdegraphics/kpdf/; revision=389970
2005-02-16 17:19:36 +00:00
Albert Astals Cid
64bab00507 Drop LIBT1 in libxpdf_la_LIBADD as we don't use libt1 anymore
svn path=/trunk/kdegraphics/kpdf/; revision=389902
2005-02-16 11:48:00 +00:00
Albert Astals Cid
949fbe3372 Thanks for providing the URL to check against.
Don't look for the factory actions when there is no factory :-D
BUGS: 99229

svn path=/trunk/kdegraphics/kpdf/; revision=389779
2005-02-15 23:18:36 +00:00
Albert Astals Cid
bbbde65779 Don't use t1lib to render Type 1 fonts (it is crashing), use freetype
Clarify configure option --enable-multithreaded-kpdf
If you have warnings about HAVE_T1LIB_H beign defined twice re-run ./configure
BUGS: 99344

svn path=/trunk/kdegraphics/kpdf/; revision=389391
2005-02-14 17:12:04 +00:00
Albert Astals Cid
a950ddc798 Enrico, now i see you wanted RMB -> Fit Width to change to one column mode, but i do not see why the "Fit Width" on the combo and the "fit width" on the RMB should have differnt behaviour (as #99238 said) so i'm removing the check for 1 column here.
CCMAIL: rosenric@dei.unipd.it

svn path=/trunk/kdegraphics/kpdf/; revision=389222
2005-02-13 23:48:53 +00:00
Albert Astals Cid
da9f2c7ec2 Don't create that action. We don't use it anywhere not plug it anywhere (mainly because it is not implemented), but creating it makes "Draw" appear at the configure Shortcuts dialog and is quite strange to configure a shortcut to something that does not "exist"
svn path=/trunk/kdegraphics/kpdf/; revision=389219
2005-02-13 23:38:46 +00:00
Albert Astals Cid
1807afa681 Implement RMB Fit Width "the right way (TM)"
Fixes bug 99238
BUGS: 99238

svn path=/trunk/kdegraphics/kpdf/; revision=389202
2005-02-13 22:44:34 +00:00
Enrico Ros
451a3091cc Opening kdpf_annotations branch. Code changes:
User Interface: added a toolbox for selecting an annotation tool without
   polluting the toolbar (pageviewtoolbox animated widget). Icons of that
   toolbar are gimped version of ones in nuvola icontheme.
 Core: added annotation class. this will support all features (except for
   silly ones (really there are some!)) from pdf 1.6 specs but abstracted
   in the kdpf way. (api changes in progress...)

About annotations: only some incomplete interfaces are in plasefor now.
Every type of pdf annotations has tens of parameters. I think we'll render
correctly everything but provide only simple and useful tools for making
annotations over the pages, otherwise a 'Qt designer like' property view
will be required to do fine adjustment over the crappy thousands of
settings. (and we're aiming at a quick and simple viewer with lots of
coolness, not chaos).

Note: the code has been wrongly committed to HEAD before,but soon reverted.
Have fun!

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=388768
2005-02-12 17:42:54 +00:00
Enrico Ros
bea47b52e5 Added missing 'viewportchanged' notify for runtime added observers.
Fixes bad sync between viewports. (thanks to Tobias K. for the suggestion)

svn path=/trunk/kdegraphics/kpdf/; revision=388758
2005-02-12 17:15:20 +00:00
Enrico Ros
5341583f17 SHAME ON ME! messed up with cervisia. Undoing my last commit: I supposed to
be committing on the branch..

svn path=/trunk/kdegraphics/kpdf/; revision=388705
2005-02-12 15:15:15 +00:00
Enrico Ros
a9a312dad7 Opening kdpf_annotations branch. Code changes:
User Interface: added a toolbox for selecting an annotation tool without
   polluting the toolbar (pageviewtoolbox animated widget). Icons of that
   toolbar are gimped version of ones in nuvola icontheme.
 Core: added annotation class. this will support all features (except for
   silly ones (really there are some!)) from pdf 1.6 specs but abstracted
   in the kdpf way. (api changes in progress...)

About annotations: only some incomplete interfaces are in plasefor now.
Every type of pdf annotations has tens of parameters. I think we'll render
correctly everything but provide only simple and useful tools for making
annotations over the pages, otherwise a 'Qt designer like' property view
will be required to do fine adjustment over the crappy thousands of
settings. (and we're aiming at a quick and simple viewer with lots of
coolness, not chaos).
Have fun!

svn path=/trunk/kdegraphics/kpdf/; revision=388699
2005-02-12 15:07:17 +00:00
Enrico Ros
7883b06897 CVS_SILENT Updated about 'kpdf_annotations' branch creation.
svn path=/trunk/kdegraphics/kpdf/; revision=388687
2005-02-12 14:44:29 +00:00
Enrico Ros
c4ecddd149 Fixing the "can't hide left panel" bug.
svn path=/trunk/kdegraphics/kpdf/; revision=388679
2005-02-12 14:34:12 +00:00
Dirk Mueller
f8c1e832f0 fix compile
svn path=/trunk/kdegraphics/kpdf/; revision=388502
2005-02-11 22:29:22 +00:00
Enrico Ros
d576e28a32 More naming changes. KPDFPage is perfectly in shape now.
I'm working on Annotations stuff now, expect good news after the freeze!

svn path=/trunk/kdegraphics/kpdf/; revision=387781
2005-02-09 17:51:58 +00:00
Enrico Ros
5b0c32e43f Misc fixes and cleanups and tidy up the code (KPDFPageRect -> ObjectRect).
svn path=/trunk/kdegraphics/kpdf/; revision=387779
2005-02-09 17:45:16 +00:00
Enrico Ros
2a3f35acb9 Fixed broken link following (if not in external document).
Normalized [0..1] every object attached to page.
Fixed find-ahead (didn't loop after last page).

svn path=/trunk/kdegraphics/kpdf/; revision=387447
2005-02-08 15:24:23 +00:00
Albert Astals Cid
bcf32aaf7b Build on KDE 3.3
svn path=/trunk/kdegraphics/kpdf/; revision=386560
2005-02-05 22:27:16 +00:00
Enrico Ros
f3b7d18550 CVS_SILENT pending addition
svn path=/trunk/kdegraphics/kpdf/; revision=386347
2005-02-05 09:53:18 +00:00
Albert Astals Cid
bc1806e218 - Do not reattach the dcop client
- Keep the original url on the document so we can open relative file names
 - Add Enrico and my copyright

svn path=/trunk/kdegraphics/kpdf/; revision=386244
2005-02-04 22:35:44 +00:00
Enrico Ros
519892521f Fix the last CRASH (on search) and fix a memleak before BETA2 tagging.
Removed old code, reworked bad code.
I have no more reported crashes now.
No plans for additions or code changes till 3.4 release.
Thank you all kpdf users, Have Fun!

svn path=/trunk/kdegraphics/kpdf/; revision=385897
2005-02-03 17:09:33 +00:00
Albert Astals Cid
d9dcb3e1ac Be consistent with Konqi and Kate
svn path=/trunk/kdegraphics/kpdf/; revision=385593
2005-02-02 22:40:38 +00:00
Enrico Ros
9e73b4235e Fixed type-ahead searches. Reworked search code. Found alternative way to
setRasterOp. Cleaned up RenningSearch class. Performance fix on actions.

svn path=/trunk/kdegraphics/kpdf/; revision=385447
2005-02-02 18:18:26 +00:00
İsmail Dönmez
6fb7840575 CVS_SILENT Unused variable
svn path=/trunk/kdegraphics/kpdf/; revision=385111
2005-02-01 21:41:47 +00:00
Enrico Ros
f4b94c016d SEARCH CHANGES: absolutely want to get in those fixes before freeze.
fixed multiple selections on page bugs.
next commits will come tomorrow.

svn path=/trunk/kdegraphics/kpdf/; revision=385045
2005-02-01 18:26:56 +00:00
Enrico Ros
3e1834c261 smoothscroll
svn path=/trunk/kdegraphics/kpdf/; revision=385041
2005-02-01 18:24:16 +00:00
Enrico Ros
d1e074058b cleanups and scroll api
svn path=/trunk/kdegraphics/kpdf/; revision=385040
2005-02-01 18:23:55 +00:00
Albert Astals Cid
aa5cdd7c8a Better use of kttsd, thanks Gary for the patch
BUG: 98316

svn path=/trunk/kdegraphics/kpdf/; revision=385022
2005-02-01 17:20:33 +00:00
Jakub Stachowski
46c06b887d Optimization by André Wöbbeking
svn path=/trunk/kdegraphics/kpdf/; revision=384867
2005-02-01 08:31:02 +00:00
Albert Astals Cid
8fbf5a5fcd Honour KDE User Interface Guidelines - Menu section http://developer.kde.org/documentation/standards/kde/style/menus/index.html, Application specific menus go after Go and before Settings, thanks Pino for noticing
svn path=/trunk/kdegraphics/kpdf/; revision=384680
2005-01-31 19:57:46 +00:00
Albert Astals Cid
48868bc89d Neither Enrico nor me know why that is here and it causes a bug where last page is not searched so it's probably a copy&paste bug. Remove
svn path=/trunk/kdegraphics/kpdf/; revision=384614
2005-01-31 17:23:27 +00:00
Jakub Stachowski
680f1e1d84 Fixed non-latin1 chars in TOC and document properties.
svn path=/trunk/kdegraphics/kpdf/; revision=384288
2005-01-30 19:39:08 +00:00
Enrico Ros
6f6664c24f ThumbnailList: show graphical 'clip' on thumbnails.
PageView: avoid update() on bookmark change (since rendering is bookmark
 independant).

svn path=/trunk/kdegraphics/kpdf/; revision=383987
2005-01-30 00:58:16 +00:00
Enrico Ros
c4c09c7c04 Added KTTSD support (only for selections). This is done via pure dcop and
without including any 3.4 header (like kspeech.h) to keep compatibility
 with 3.3 and older releases (reported to work on these).
Cleanups in PageView's mouse handling. Supports selections of different
 colors now.

svn path=/trunk/kdegraphics/kpdf/; revision=383651
2005-01-29 12:32:59 +00:00
Enrico Ros
fd0606adb2 FIX: Delete allocation descriptors when dynamic observers are removed.
BUG:98091

svn path=/trunk/kdegraphics/kpdf/; revision=383357
2005-01-28 18:18:48 +00:00
Albert Astals Cid
1efaf05d25 Fix mem leaks
svn path=/trunk/kdegraphics/kpdf/; revision=383333
2005-01-28 17:31:34 +00:00
Enrico Ros
5f48094e08 History saving/restoring in addition to the current viewport.
svn path=/trunk/kdegraphics/kpdf/; revision=383327
2005-01-28 17:21:51 +00:00
Enrico Ros
f644f4e8c4 Switch to seleciton mode when pressing RMB while in normal (drag) mode.
svn path=/trunk/kdegraphics/kpdf/; revision=383326
2005-01-28 17:21:28 +00:00
Tobias Koenig
0124e8a4ac Let the PresentationWidget make use of the viewport. Now the presentation is
shown at the same page like before when a watched PDF file has changed.

svn path=/trunk/kdegraphics/kpdf/; revision=383193
2005-01-28 11:28:18 +00:00