Commit graph

600 commits

Author SHA1 Message Date
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 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
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
Albert Astals Cid bbfb530155 Fix presentation placement on xinerama
BUG: 97347

svn path=/trunk/kdegraphics/kpdf/; revision=381994
2005-01-24 17:23:35 +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
Andrew Coles c277d16b9b CVS_SILENT
Corrected typos.

svn path=/trunk/kdegraphics/kpdf/; revision=379421
2005-01-17 14:57:18 +00:00
Lukáš Tinkl 2c3351c59a hmm, no idea why I created the extra string
svn path=/trunk/kdegraphics/kpdf/; revision=378995
2005-01-16 10:40:00 +00:00
Lukáš Tinkl 0ce6f886ae plural
svn path=/trunk/kdegraphics/kpdf/; revision=378993
2005-01-16 10:32:52 +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
Albert Astals Cid dd81c7d7e8 Fix "OSD" rendering, i can now see lower parts or g, j, etc which i could not see previously
svn path=/trunk/kdegraphics/kpdf/; revision=378597
2005-01-14 23:58:41 +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
Dirk Mueller 7a5adb9907 fix compilation
svn path=/trunk/kdegraphics/kpdf/; revision=377446
2005-01-11 12:42:06 +00:00
Enrico Ros d4fd6d62c3 Typo fix on Direct Viewport links. DOM is cool and attribute names must match.
svn path=/trunk/kdegraphics/kpdf/; revision=377246
2005-01-10 18:28:32 +00:00
Scott Wheeler 31d1b50511 roundf is C99
svn path=/trunk/kdegraphics/kpdf/; revision=377202
2005-01-10 16:17:00 +00:00
Enrico Ros 10af2d6caa Added option to unlink thumbnailslist from pageview (oneliner). Fixuifiles.
Use palette->active->hilight color for wheel in presentation mode, since
black over black was hard to recognize. Fixes.

svn path=/trunk/kdegraphics/kpdf/; revision=377198
2005-01-10 15:58:01 +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
Tobias Koenig 3e317aab2f Add some variants of the basic transitions to the default transition menu.
svn path=/trunk/kdegraphics/kpdf/; revision=377061
2005-01-09 23:23:37 +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 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
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
Albert Astals Cid 47db6126c7 When on non continous mode and using Up-key to go a page up, put the previous page at the bottom and not at the top
svn path=/trunk/kdegraphics/kpdf/; revision=375288
2005-01-03 19:48:53 +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
Enrico Ros 451134e54b Fixing the same bug ThumbnailList had about visiblity list.
svn path=/trunk/kdegraphics/kpdf/; revision=375104
2005-01-03 01:10:27 +00:00
Enrico Ros a6a2b7a0b5 Shame on me!! Why the hell I added visibility list without checking the
code first ??? (grr.. Thanks Albert)

svn path=/trunk/kdegraphics/kpdf/; revision=375099
2005-01-03 01:01:11 +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 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
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
Tobias Koenig 3d439fbf78 Test whether we show a real page or the intro, otherwise kpdf crashes
svn path=/trunk/kdegraphics/kpdf/; revision=375045
2005-01-02 21:05:51 +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
Albert Astals Cid d7ac1ce38f Put back the RMB menu
svn path=/trunk/kdegraphics/kpdf/; revision=374986
2005-01-02 17:24:50 +00:00
Jonathan Riddell 58d334a702 change clear search icon back to standard one used elsewhere in KDE
svn path=/trunk/kdegraphics/kpdf/; revision=374985
2005-01-02 17:16:53 +00:00
Stephan Binner 52e763dbf0 CVS_SILENT i18n style guide fix
svn path=/trunk/kdegraphics/kpdf/; revision=374983
2005-01-02 17:12:35 +00:00
Stephan Binner 5193d9ab3c Compile with srcdir!=builddir
svn path=/trunk/kdegraphics/kpdf/; revision=374977
2005-01-02 16:53:59 +00:00
Stephan Binner 449ea39657 CVS_SILENT i18n style guide fixes
svn path=/trunk/kdegraphics/kpdf/; revision=374963
2005-01-02 16:19:08 +00:00
Enrico Ros 6e75cd1ff0 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=374941
2005-01-02 15:18:50 +00:00
Albert Astals Cid d4644ab942 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
Wrong include

svn path=/trunk/kdegraphics/kpdf/; revision=374930
2005-01-02 14:58:15 +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 c25efeb7c4 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
Includes change.

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