Commit graph

600 commits

Author SHA1 Message Date
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
Tobias Koenig 0cc0b192cd Don't open multiple presentation widgets when slotShowPresentation() is called
multiple times (e.g. when the watched PDF has changed)

svn path=/trunk/kdegraphics/kpdf/; revision=383178
2005-01-28 11:04:03 +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
Script Kiddy 9c0ad32927 CVS_SILENT made messages (.desktop file)
svn path=/trunk/kdegraphics/kpdf/; revision=381833
2005-01-24 04:28:09 +00:00
Albert Astals Cid 530626ac51 appname is KPDF and not KPdf
svn path=/trunk/kdegraphics/doc/kpdf/; revision=381705
2005-01-23 19:53:05 +00:00
Albert Astals Cid 87afd536eb Change name of the part from KPDFPart to KPDF, both part and shell have the same name under open with.. and preview with... as kghostview does
Make preview with... show the icon

svn path=/trunk/kdegraphics/kpdf/; revision=381701
2005-01-23 19:42:23 +00:00
Albert Astals Cid b579d04532 Show translations when embedded in Konq
svn path=/trunk/kdegraphics/kpdf/; revision=381500
2005-01-23 12:00:16 +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
Albert Astals Cid d1da5ab1b7 Add missing break
svn path=/trunk/kdegraphics/kpdf/; revision=380921
2005-01-21 20:25:23 +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
Waldo Bastian d923b1e8e2 Call me paranoid, but keyLength == 0 sounds like trouble.
svn path=/trunk/kdegraphics/kpdf/; revision=380498
2005-01-20 17:39:02 +00:00
Enrico Ros 02ddb10df0 CVS_SILENT disabled debug output on pixmap generation
svn path=/trunk/kdegraphics/kpdf/; revision=380495
2005-01-20 17:33:48 +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
Stephan Binner e5d68bf181 CVS_SILENT i18n style guide fixes
svn path=/trunk/kdegraphics/kpdf/; revision=380114
2005-01-19 15:33:27 +00:00
Tobias Koenig a8a6011b3f Fixed security issue 'makeFileKey2 Stack Overflow'
svn path=/trunk/kdegraphics/kpdf/; revision=380043
2005-01-19 11:40:33 +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 c0029ac3f2 Fix small mem leaks
svn path=/trunk/kdegraphics/kpdf/; revision=379484
2005-01-17 18:27:31 +00:00
Andrew Coles c277d16b9b CVS_SILENT
Corrected typos.

svn path=/trunk/kdegraphics/kpdf/; revision=379421
2005-01-17 14:57:18 +00:00
Stephan Binner 73bdb5751d CVS_SILENT i18n style guide fixes
svn path=/trunk/kdegraphics/kpdf/; revision=379147
2005-01-16 17:04:31 +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
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 0f6f29c9e5 Typo
svn path=/trunk/kdegraphics/kpdf/; revision=378739
2005-01-15 14:01:30 +00:00
Albert Astals Cid 7689d62dfa Commit kpdf manual, not Enrico nor me are native english speakers nor guru documentation writers so if someone can have a look at it and give some constructive comments we will be pleased.
CCMAIL: kde-quality@kde.org
CCMAIL: kde-i18n-doc@kde.org
CCMAIL: kde-doc-english@kde.org

svn path=/trunk/kdegraphics/doc/kpdf/; revision=378738
2005-01-15 14:00:56 +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 662acc6f49 Fix the fix of the fix
svn path=/trunk/kdegraphics/kpdf/; revision=378735
2005-01-15 13:56:14 +00:00
Albert Astals Cid ef815771cf Fix my fix of #96085 as freetype treats all CID fonts the same way only from 2.1.8 and up
Kurt can you check that fixes the problem with characters not beign correctly displayed on firefox nytimes pdf?
CCMAIL: 96085@bugs.kde.org
CCMAIL: 95985@bugs.kde.org

svn path=/trunk/kdegraphics/kpdf/; revision=378732
2005-01-15 13:39:03 +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
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
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
Stephan Binner 6d12abbcff Set InitialPreference=7
svn path=/trunk/kdegraphics/kpdf/; revision=378493
2005-01-14 18:07:37 +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
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
André Wöbbeking 198fb52ff7 shortcut F9 for "Presentation".
BTW, do you mix indention (2 spaces, 4 spaces and tabs) intentionally ;-)

svn path=/trunk/kdegraphics/kpdf/; revision=377498
2005-01-11 15:15:37 +00:00
Dirk Mueller 7a5adb9907 fix compilation
svn path=/trunk/kdegraphics/kpdf/; revision=377446
2005-01-11 12:42:06 +00:00
Stephan Binner e2d888d5a1 CVS_SILENT i18n style guide fixes from the "tokoe will never learn it" series
svn path=/trunk/kdegraphics/kpdf/; revision=377306
2005-01-10 22:00:00 +00:00