Commit graph

637 commits

Author SHA1 Message Date
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
c0029ac3f2 Fix small mem leaks
svn path=/trunk/kdegraphics/kpdf/; revision=379484
2005-01-17 18:27:31 +00:00
Albert Astals Cid
97847d8081 Make options be "Enable foo" instead of "Disable foo"
BUG: 97053

svn path=/trunk/kdegraphics/kpdf/; revision=378736
2005-01-15 13:58:08 +00:00
Albert Astals Cid
2b8427a55b Add bool KPDFDocument::isOpened() const and use it so that the user can not begin a find-ahead search if no document is loaded
svn path=/trunk/kdegraphics/kpdf/; revision=378613
2005-01-15 01:08:35 +00:00
Jakub Stachowski
cc5f8bb689 Findahead - as in khtml.
svn path=/trunk/kdegraphics/kpdf/; revision=378583
2005-01-14 23:19:04 +00:00
Enrico Ros
4b868c2ef1 mini cleanup 1; starting to work seriously on memory management and contour
stuff.

svn path=/trunk/kdegraphics/kpdf/; revision=377973
2005-01-13 11:03:48 +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
162d1a9cf9 CVS_SILENT commented out debug stuff. it works.
svn path=/trunk/kdegraphics/kpdf/; revision=377070
2005-01-09 23:45:43 +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
Albert Astals Cid
59a06e7da7 KPDFLinkBrowse( QString url ) { m_url = url; } -> KPDFLinkBrowse( const QString &url ) { m_url = url; }
Comment a unused variable so we don't get the warning

svn path=/trunk/kdegraphics/kpdf/; revision=376907
2005-01-09 16:56:21 +00:00
Albert Astals Cid
9f39bfb756 Better search of non latin-1 characters (2)
svn path=/trunk/kdegraphics/kpdf/; revision=376534
2005-01-08 17:23:47 +00:00
Albert Astals Cid
b901d81bb5 Better search of non latin-1 characters
svn path=/trunk/kdegraphics/kpdf/; revision=376531
2005-01-08 17:13:36 +00:00
Jakub Stachowski
6589342bf5 Fix copying non-latin1 chars when xpdfrc does not exist.
svn path=/trunk/kdegraphics/kpdf/; revision=376506
2005-01-08 16:21:43 +00:00
Enrico Ros
61eaf43b54 Implemented all missing PDF 1.4 transitions. Added: blinds(2), box(2),
wipe(4), dissolve(1), glitter(4). Between parenthesis the number of
variants. Try it on (Tobias Koenig's testcase):
http://robotics.dei.unipd.it/~koral/KDE/transition_test.pdf
Fixuifiles script on configuration dialogs, icons in Performance Dialog,
fixed spacing on dialogs to look the same way.

svn path=/trunk/kdegraphics/kpdf/; revision=376348
2005-01-08 00:12:08 +00:00
Enrico Ros
1051d4b909 FixCrash 3/3: More decoupling between PDFGenerator and KPDFOutputDevice
classes (moved code between classes). Threading stuff fixed. Add console
debug output if something threading related goes wrong.
BUG: 96274

svn path=/trunk/kdegraphics/kpdf/; revision=376087
2005-01-07 13:13:58 +00:00
Enrico Ros
e06c3f4c18 FixCrash 2/3: getMetaData modified. mutex locks. performance fix for TOC
generation (was 50 times slower after the all-in-one generation patch)

svn path=/trunk/kdegraphics/kpdf/; revision=376083
2005-01-07 13:07:29 +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
Stephan Kulow
4fd3493a03 non-recursive makes need special dependencies
svn path=/trunk/kdegraphics/kpdf/; revision=375674
2005-01-05 14:08:31 +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
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
90b663b7ca Fix typos, correct orderig a bit
svn path=/trunk/kdegraphics/kpdf/; revision=375091
2005-01-03 00:45:47 +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
ad1cc07ccd This is the correct order of deleting things now that a generator thread
may be running.

svn path=/trunk/kdegraphics/kpdf/; revision=375082
2005-01-03 00:24:59 +00:00
Tobias Koenig
b10d10a2bd Convert 'struct DocumentInfo' into a QDomDocument for more flexible information
passing.

svn path=/trunk/kdegraphics/kpdf/; revision=375065
2005-01-02 22:37:52 +00:00
Tobias Koenig
833ae4800f The compiler needs the PageTransition definition here... (gcc 3.4 complains about it)
svn path=/trunk/kdegraphics/kpdf/; revision=375061
2005-01-02 22:33:28 +00:00
Enrico Ros
87050538e5 fix: don't create a PageTransition object if there is no transition
specified or the transition is 'replace'.

svn path=/trunk/kdegraphics/kpdf/; revision=375057
2005-01-02 22:25:49 +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
148efda52f I love transitions.
svn path=/trunk/kdegraphics/kpdf/; revision=375036
2005-01-02 20:39:41 +00:00
Tobias Koenig
f0d84a181f KPDF reads the transition effects from the PDF document now.
svn path=/trunk/kdegraphics/kpdf/; revision=375033
2005-01-02 20:32:58 +00:00
Enrico Ros
a658b7ac28 Fix --enable-final compilation.
svn path=/trunk/kdegraphics/kpdf/; revision=374984
2005-01-02 17:16:29 +00:00
Stephan Binner
5193d9ab3c Compile with srcdir!=builddir
svn path=/trunk/kdegraphics/kpdf/; revision=374977
2005-01-02 16:53:59 +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
d0b406ad99 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
Fix compilation (include observer, not document for IDs)

svn path=/trunk/kdegraphics/kpdf/; revision=374933
2005-01-02 15:05:56 +00:00
Albert Astals Cid
fdaa03e90b 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
Build a bit :-D

svn path=/trunk/kdegraphics/kpdf/; revision=374929
2005-01-02 14:57:40 +00:00
Enrico Ros
d983cfdd76 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
Moved KPDFDocumentObserver in its own include file. Updated dependancies.

svn path=/trunk/kdegraphics/kpdf/; revision=374928
2005-01-02 14:55:14 +00:00
Enrico Ros
eee2673370 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
File namings change.

svn path=/trunk/kdegraphics/kpdf/; revision=374924
2005-01-02 14:37:49 +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