Commit graph

47 commits

Author SHA1 Message Date
Enrico Ros 1e9f0e590a Another milestone has been reached: complete saving/restoring of
annotations in the 'document tie file'. Every attribute of kpdf dss
can be dumped to disk. Only rendering prevents HEAD merging now! :-)

Annotations:
  Storage: full annotations saving/loding on the tied XML is implemented.
    every annotation put on a page (either loaded from a pdf or created
    internally is loaded and saved when opening/closing a document).
    Attributes are dumped to XML and reloaded from it via qdom
  DataStructures: internal changes, better naming, some attributes fused.
    PopupAnnotation has become WindowAnnotation
  PDF16Parser: 100% completeness for the types we support

PDFGenerator:
  adapted to annotation ds changes. better parsing on a couple of attrs.
  correctly handle 'F'.

Misc:
  Document: remove/cleanup debugs, Page: performance testing stuff added,
  PagePainter: setPen( annot->color ), PageV..or: typo,
  TODO: many changes

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=398789
2005-03-18 18:49:45 +00:00
Enrico Ros a041d23ee2 CVS_SILENT sync with last commit
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=397323
2005-03-13 17:23:38 +00:00
Jakub Stachowski 664d441534 Added action for showing/hiding left panel and removed it from settings.
"Watch file" moved to settings dialog.
BUG: 99316

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=396976
2005-03-12 15:39:04 +00:00
Enrico Ros 65738852b8 CVS_SILENT A point that makes sense (thanks to Uga).
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=396947
2005-03-12 12:51:59 +00:00
Enrico Ros b7e621bb60 Expand scope of kdpf :-) (thanks to ktech)
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=396924
2005-03-12 11:18:16 +00:00
Enrico Ros 7feee78554 Sync that too. Updated to show current status.
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=396912
2005-03-12 08:40:44 +00:00
Enrico Ros de460a39c5 missing pieces for annotations support to be complete (90% missing)
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=395075
2005-03-05 16:46:29 +00:00
Enrico Ros 09d75891eb Synced TODO with BKO's kpdf whishes up to 100341.
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=393517
2005-02-27 14:27:25 +00:00
Enrico Ros a12cc5e5a8 Getting ready for HEAD merge of parts of the stuff.
pageviewtoolbox.cpp/.h: Removed.
PageViewToolBar (was PageViewToolbox): Moved def/impl inside the
  pageviewutils.c/.h files. Uses eventfilter to get notified when the
  anchorWidget changes in size. Cleaned up code.
Annotations: added empty code.
PageView: removed some code. fixed rmb popup menu hidden if no document
  was opened.
Updated TODO.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=393302
2005-02-26 18:05:01 +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
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 f3b7d18550 CVS_SILENT pending addition
svn path=/trunk/kdegraphics/kpdf/; revision=386347
2005-02-05 09:53:18 +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
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
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 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 93c1d3845d Implemented history (implementation is inside Document. actions (2) are in
Part). Implemented 'history (xpdf's LinkAction) links'. History depth is
 100 steps by default (this is enough for sure, clicking 100 times on a
 button is not an easy task :-).

Minor issues (removed half TODOs in code, all FIXMEs are already removed):
Invoke mailer on 'mailto:' links inst instead of konqueror.
Actions cleanup: disable actions like 'print', 'preview', 'save to..', etc
 when there isn't an active document. Added history actions to the toolbar
 in place of the 'prev_page' and 'next_page' ones. Fixed open+open_recent
 action tooltip and behavior.
Move definition and implementation of PagePainter class to ui/pagepainter
 from core/page.
Valgrinded and leakchecked (2 memory leaks spotted and fixed (missing
 contents deletion in KPDFGeneratorThread and missing deletion of
 PixmapRequests on cancel in Document::requestPixmaps())).

svn path=/trunk/kdegraphics/kpdf/; revision=382960
2005-01-27 17:31:07 +00:00
Enrico Ros e65c7058c3 Added the MiniBar class, a layouted widget that displays current page
number, the total number of pages and a little grahical 'progress'
 indicator. Moved 'next page' and 'prev page' buttons from the main toolbar
 to the MiniBar. Minibar lets you edit the page number, click or wheel on
 progress, go to next/prev page, show the gotoPage dialog.
Added rmb popup when clicking on thumbnails. When clicking, the
 ThumbnailList only emits the same signal emitted by PageView so the same
 context menu is displayed.
Misc fixes: [MEM] enabled allocated pages raising in queue when displayed
 again, [ThumbnailList] enabled PageUp/PageDown.

svn path=/trunk/kdegraphics/kpdf/; revision=382597
2005-01-26 10:42:07 +00:00
Enrico Ros 12eb3d4880 CVS_SILENT more work
svn path=/trunk/kdegraphics/kpdf/; revision=381007
2005-01-21 23:31:31 +00:00
Albert Astals Cid 5a41fd805e Presentation mode is now Ctrl+Shift+p instead of F9 because it was colliding with Konqueror's toggle sidebar
svn path=/trunk/kdegraphics/kpdf/; revision=380993
2005-01-21 23:09:00 +00:00
Albert Astals Cid 0adf0815bd Comment
svn path=/trunk/kdegraphics/kpdf/; revision=380982
2005-01-21 22:51:02 +00:00
Enrico Ros 156dfb22f9 PageView: Fixed crash in preloading within single page mode. Lowered number
of wasted PixmapRequests (regressions introduced by DocumentViewport).
  Optimizations.
Document: Fixed oscillations in memory deallocator. Merged 'cleanupMemory'
  and 'freeMemory' -> 'cleanupPixmapMemory'.
  Delayed initialization of QTimers.
GeneratorPDF: Added a comment on threading and asyncronous pixmap loading.
TODO: updated adding items by Mikolaj Machowski and Grzegorz Ja?kiewicz

svn path=/trunk/kdegraphics/kpdf/; revision=380913
2005-01-21 20:05:36 +00:00
Enrico Ros 3ba7c53676 Fix preloading. It does real good now.
Fix cache deallocator. Hard avoids swapping memory or filling it up to the
limit (allocated pages are referenced in an internal add/remove FIFO).
Merged open and open_recent buttons as many users requested.
Using viewmag icon for find-as-you-type popup.
Disabled debug output. Updated todo with the roadmap to release.
- Need to audit the memory code and choose good default policies now.

svn path=/trunk/kdegraphics/kpdf/; revision=380494
2005-01-20 17:33:05 +00:00
Enrico Ros 962f891b80 For Users:
Display contents faster, waste less memory. Added preloading to forward-
generate pages (if threading enabled and memory profile >= normal). Main
pages are always generated first, then thumbnails come, then preload ones,
etc.. Btw memory and cpu will be happier now.
(1 bug in memory and 1 in preloading still remains.. will be spotted soon)

For Developers:
Generator: dropped moc, api changes, better functions naming.
PDFGenerator and Document: moved requests queue to the Document.
   The generator performs only a single request a time. A flag can be
   queried to know if the generator is ready for starting another pixmap
   generation or not (in case it's generating a pixmap in background).
PixmapRequest: added priority and backgound (async) attributes.
Document: queuing requests by priority in requestPixmaps.
Observer: added defines for priorities used in doc->requestpixmaps.
PageView: delayed find-ahead timer creation (not created if not needed).
   Added preload PixmapRequests to the pixmap requests list.
ThumbnailsList: adapted to pixmapRequest changes and changed naming for
   delayed thumbanils request.

svn path=/trunk/kdegraphics/kpdf/; revision=379820
2005-01-18 16:43:36 +00:00
Albert Astals Cid 8a07428146 xpdf code is not prepared for paths with only 1 point, skip paths that have only one point, have to check in pdf spec if paths can have 1 point (in that case should fix the fix :-) or that pdf are buggy and the fix is correct in all senses. Pages that crash are 18, 20 and 26 on Introduction_to_Jitter.pdf and page 1 on FT-857.pdf
BUG: 97131

svn path=/trunk/kdegraphics/kpdf/; revision=379020
2005-01-16 11:47:06 +00:00
Enrico Ros 5e9dff3722 Things I'm working on (tedious stuff) and more fixes wanted..
svn path=/trunk/kdegraphics/kpdf/; revision=378606
2005-01-15 00:51:01 +00:00
Jakub Stachowski cc5f8bb689 Findahead - as in khtml.
svn path=/trunk/kdegraphics/kpdf/; revision=378583
2005-01-14 23:19:04 +00:00
Albert Astals Cid 0ff32c4da9 Add a slotRequestVisiblePixmaps() that fixes the problem of pixmap not updating when going/returning from full screen mode with fit to page and non continuos mode. Enrico please check is not a VERY BAD THING to do it there
Add some accelerators
Plug the actions that change the mouse behaviour into a menu as everything should be menu accesible
Put the F9 in the KACtion creator

svn path=/trunk/kdegraphics/kpdf/; revision=377533
2005-01-11 17:35:07 +00:00
Enrico Ros 3bf154b57d Viewport: fixes, setViewport( vp, id ) excludes id from the notified
bodies. Optimized fit width and a saved a couple of pixmap requests. Busy
cursor on load and searches.

svn path=/trunk/kdegraphics/kpdf/; revision=377152
2005-01-10 13:43:44 +00:00
Enrico Ros 6dd95c9e06 Viewport MOD 1. Implemented the DocumentViewport class, owned by Document.
A const reference may be asked. When set all DocumentObservers will be
notified so they can update their gfx if needed. Converted TOC, Links
to the new usage. DocumentViewport can be saved/restored to/from QString
so it can be asked as metadata and saved on document's XML. When loading
a document the viewport is restored exactly where it was when the document
was closed. More fixes with Viewport class. Swapped groupboxes in Perform
dialog. Changed members naming in DocumentObservers and inherited classes.
PageView and ThumbnailsList now linked.

Still regressions / TODOs about the Viewport thing.

svn path=/trunk/kdegraphics/kpdf/; revision=377066
2005-01-09 23:37:07 +00:00
Enrico Ros 6e13b8852f CVS_SILENT update TODO list to put in evidence current status, bugs that
need to be fixed and features to implement for a good+stable release.

svn path=/trunk/kdegraphics/kpdf/; revision=376182
2005-01-07 17:57:16 +00:00
Enrico Ros 4b86155caf FixCrash 1/3: comments/notes.
svn path=/trunk/kdegraphics/kpdf/; revision=376081
2005-01-07 13:03:10 +00:00
Tobias Koenig 15fc647b59 CVS_SILENT: updated
svn path=/trunk/kdegraphics/kpdf/; revision=375461
2005-01-04 14:30:39 +00:00
Tobias Koenig 98000ff903 Add some nice features for presentation mode:
- cursor modes: visible, hidden, hidden with delay
  - automatic advance
  - loop on last page
  - default transition

I know it's quite late in the release cycle, but the code is stable and kpdf rocks!

svn path=/trunk/kdegraphics/kpdf/; revision=375353
2005-01-03 23:31:40 +00:00
Enrico Ros 7e549f496e Sync with mates.
svn path=/trunk/kdegraphics/kpdf/; revision=375329
2005-01-03 21:56:41 +00:00
Enrico Ros 208b6a5cf3 Added a bottom toolbar to the thumbnailsList to enable/disable thumbnails
filtering and similar options (toolbar is not created now). Changed
Document::openDocument(..) functions order. Restore last active page when
opening an already viewed pdf. Fix margins around pages in all modes.
Presentation: page change by clicking on the round 'wheel' indicator too.
Updated TODO.

svn path=/trunk/kdegraphics/kpdf/; revision=375229
2005-01-03 15:51:05 +00:00
Albert Astals Cid fb6e540547 Save and read the bookmarks to/from a file when opening/closing a document
svn path=/trunk/kdegraphics/kpdf/; revision=375083
2005-01-03 00:28:46 +00:00
Enrico Ros ca3f3b8ec3 Removed the 'Bugs fixed list' since they're now marked as fixed on BKO.
svn path=/trunk/kdegraphics/kpdf/; revision=375079
2005-01-03 00:04:39 +00:00
Enrico Ros d1cdcd5f1d SearchWidget back to work
svn path=/trunk/kdegraphics/kpdf/; revision=375078
2005-01-02 23:57:41 +00:00
Tobias Koenig 1e0f8af1b5 Tagged the documentinfo -> domtree item
svn path=/trunk/kdegraphics/kpdf/; revision=375068
2005-01-02 22:54:44 +00:00
Enrico Ros 92ad74aa2a notes
svn path=/trunk/kdegraphics/kpdf/; revision=375056
2005-01-02 22:14:26 +00:00
Enrico Ros 1550cedccd Updated TODO (added items in progress) and README.
svn path=/trunk/kdegraphics/kpdf/; revision=375053
2005-01-02 21:49:27 +00:00
Enrico Ros 1c6feefdc7 Added tobias work. Added more TODOs.
svn path=/trunk/kdegraphics/kpdf/; revision=375044
2005-01-02 20:59:48 +00:00
Enrico Ros 3a8b826bf9 Copying kpdf_experiments into branch and reordering directories. Look there
for the file naming map and file  versioning. Please wait until the commit
storm ends to report any bug. Albert and Enrico
Compile fixes.

svn path=/trunk/kdegraphics/kpdf/; revision=374944
2005-01-02 15:33:18 +00:00
Enrico Ros ffe8ddaf9d Copying kpdf_experiments into branch and reordering directories. Look there
for the file naming map and file  versioning. Please wait until the commit
storm ends to report any bug. Albert and Enrico

svn path=/trunk/kdegraphics/kpdf/; revision=374920
2005-01-02 14:19:33 +00:00