Commit graph

722 commits

Author SHA1 Message Date
Enrico Ros
560934974a merged patch_007
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=424840
2005-06-13 10:22:37 +00:00
Enrico Ros
58cab25446 bits (sort isn't implemented yet)
(syncing repo before merging head in kpdf_annotations)

svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=424824
2005-06-13 09:30:50 +00:00
Enrico Ros
fb0acfc4c7 little performance fix
(syncing repo before merging head in kpdf_annotations)

svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=424823
2005-06-13 09:30:02 +00:00
Enrico Ros
29c58361ec KNewStuff client nearly complete - multiple simultaneous downloads
supported - no more windows popping up, all is displayed on the dialog

  All transfers are handled internally, giving user the feedback right
inside the window. There are pair of bugs, but installing (aka plain
downloading) and uninstalling (aka deltion) of files are already
handled.

What to do next:
- remove bugs (reparent AvailableItem(s) to the main class, not the
  view and deference pointers after deletion will fix the crash; it
  can even be fixed by limiting user's freedom and force him/her to
  act only on currently displayed items; btw this way is deprecated)
- handle install/removal notifications on the app
- check the whole flow of the operation. check for unstable states
  (seems not the case) and unreachable ones
- clean it up and ship that client with kpdf, since:
*knewstuff in kde4 will be cleaner and better*


svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=413951
2005-05-15 00:12:10 +00:00
Enrico Ros
f0a0a803d8 CVS_SILENT I shouldn't commit immediately after waking up.
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=407479
2005-04-24 11:03:33 +00:00
Enrico Ros
03bdb7d79e CVS_SILENT sync comments
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=407470
2005-04-24 10:03:25 +00:00
Enrico Ros
7b6b7a359d KPDF HotNewStuff Browser!
It's not yet complete (file dowload and internal notifies are missing) but
the new stuff browser is running. The ui is modeled on an Aaron's mockup.

NewStuff:
  Fetches the providers list (kpdf.kde.org/newstuff/providers.xml), lets
  the user select a provider and displays provider's contents in a KHMTL
  part (for flexibility and eye candy).
  Internally we use KNS' Entry and Provider structures only, doing all the
  transfer operations by hand via KIO::get jobs. Download will be done
  internally too (to give better consistancy in the interface).
  Network timeouts, problems or info messages are notified in a statusbar-
  like widget and we try to keep all information in the dialog, without
  using messageBoxes

Part:
  Added the action and the dialog invocation

Makefiles:
  Link the KNEWSTUFF and KHTML libraries.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=405828
2005-04-16 00:25:26 +00:00
Enrico Ros
c8f8122453 Added directory desctiption.
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=405525
2005-04-14 11:34:26 +00:00
Enrico Ros
d10472663d PageView:
Added the frequently requested option for eBook style alignment. Better
  layouting in continous (center single pages, no more top aligned) and
  single modes. Layouting very consistant when switching modes. Proper keys
  and mouse handling in multiple columns modes. Start in 'Fit Page' zoom.
DlgGeneral KCFG:
  Added the "Center first page in facing mode" and config menu entry.
ToDo:
  Marked 100341 as done.

CCMAIL: 100341@bugs.kde.org

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=405524
2005-04-14 11:33:28 +00:00
Enrico Ros
ed41c2e2d2 Using line width property. Line width follows scaling.
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=405443
2005-04-13 21:23:54 +00:00
Albert Astals Cid
ee4908bf2c build
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=405421
2005-04-13 20:05:09 +00:00
Enrico Ros
0beedebe01 Added icons for Text annotations (ake the 'page sybols'). Changed naming to
existing ones, updated 'tools.xml' with new names and made generator_pdf
parse pdf icon names as lowercase. Added SVG sources too for the icons.

- note that I suck as icon maker, so plz make good looking icons and don't
complain about these - :-))

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=405395
2005-04-13 18:21:18 +00:00
Enrico Ros
96a28d59ac CVS_SILENT removed overlay debug ~art~
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=405339
2005-04-13 14:56:41 +00:00
Enrico Ros
e8f27fc700 Highlight annotations: ok
PagePainter:
  Updated drawShape with RasterOperation (Normal, Multiply) for getting
  Highlight annotation types to work. All Highlight annotations are now
  drew using the Multiply raster operation.

Painter_AGG2:
  Replaced the agg_pixfmt_rgba.h pixformat definition template with an
  internal version that implements different raster operations too. The
  new version has been shrinked to the minimum, containing the only code
  needed by kpdf AGG2 rendering engine to work.

Thanks for Rob Buis for telling me the way to go and providing sample code
with his AGG2 algorithms.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=405338
2005-04-13 14:49:57 +00:00
Enrico Ros
c5b694d02c Painter_AGG2:
Part from the *very C00L* AGG2 library (www.antigrain.com) are imported
  from the agg23 source package. The imported files provides antialiased
  rendering on bgra32 qimage memory buffers.
  See "kpdf/ui/painter_agg2/README.kpdf" for more info.
PagePainter:
  Replaced my dear crappy scanline renderer (well, was the fastest btw :-)
  with agg2 based rendering code.
  Implemented HighlightAnnotation (HL, Underline, Strikeout and Squiggly)
  and InkAnnotation (simple one) rendering.
  Need a multiply-blending template algo for getting highlights to look
  as highlighs (not solid or transparent, like now).
Makefile.am(s):
  Updated to build the new library, set include paths and link it.

Here we go.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=405150
2005-04-12 20:44:26 +00:00
Enrico Ros
8bc571160e PageViewAnnotator:
Restarting working on the Engines. Readded annotation creation for
  SmoothPath engine / InkAnnotation annot.
Tools.xml:
  Format changed, makes more sense now. Fileformat described in comment.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=405145
2005-04-12 20:30:17 +00:00
Enrico Ros
25d25604d4 CVS_SILENT Page: disabled debug save timing, Annots: typos
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=405144
2005-04-12 20:27:40 +00:00
Enrico Ros
f75b4247d0 CVS_SILENT some primitives to test
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=404924
2005-04-11 21:43:43 +00:00
Enrico Ros
d460434919 Annotations: my first dirty (and superfast) scanline renderer. More to
implement here.. but that looks so nice. (note: too juicy to see now,
disabled some code before committing :-).

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=404560
2005-04-10 13:47:00 +00:00
Enrico Ros
db4e2246e1 Added a hack because real pdf's HL-QuadPoint structure differs from the
one in specs! (how can it be possible!?)

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=404553
2005-04-10 12:11:49 +00:00
Enrico Ros
7201ed77bf CVS_SILENT update
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=404312
2005-04-09 12:21:01 +00:00
Enrico Ros
2988ca477b CVS_SILENT Note on shared storage.
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=404176
2005-04-08 22:39:12 +00:00
Enrico Ros
5591710542 Annotations: first drawing experiments. Some unbuffered annotations are
drawn in page.

PagePainter:
  Added 2 convenience function to change the alpha component of an image
  and do it while colorizing the image in a single pass.
  QPainter->drawPixmap unbuffered render for AText marks, AStamp pictures
  and AGeom of type InscribedSquare.

Can't wait for Arthur's painter to do the full range of painting effects
with a very simple interface, faster than my dirty implementation and
over all: not crashing! (mine does! :-)

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=404088
2005-04-08 15:45:40 +00:00
Enrico Ros
6195accba0 CVS_SILENT cosmetic change.
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=404086
2005-04-08 15:35:54 +00:00
Enrico Ros
da5e6b8b74 Annotations: removed the opened attribute from TextAnnotation. Fixed
a bug in Annotation::Window.
PDFGenerator: added postprocessing for handle the special pdf cases on
  TextAnnotations (where window geometry is embedded in annotation, not
  in popup and the annotation should be represented as an icon).

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=404023
2005-04-08 11:15:23 +00:00
Enrico Ros
eeff7763d2 Page: don't append parent containers if there are no children.
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=404012
2005-04-08 10:33:20 +00:00
Enrico Ros
850b7b7f53 Added 3 custom attributes to the Highlight annotation. Adapted pdf parser
and xml storage stuff.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403983
2005-04-08 08:58:49 +00:00
Enrico Ros
57f0453b73 Document:
Warning before running out of memory and stop pixmap request.
  CCMAIL: 103435@bugs.kde.org
PagePainter:
  Not related to the bug: avoid scaling up slow pixmaps.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403884
2005-04-07 20:26:49 +00:00
Enrico Ros
bcc2542e24 Big update to annotations. DataStructures passed the recursive saving
and retrieval xml test. This second rewrite seems better than the
previous one. Maybe it's not perfect bug finally it's good enought
to move ahead now.

Annotations:
  Restored and verified XML loading/saving with recursive storing and
  retrieval of referenced objects. 100% verified and tested. Finally
  all is working as expected. The structure is clean and it's simple
  to choose the way to go now: rendering. Updated AnnotationUtils, More
  comments, removed leak.
Page:
  Adapted to changes to AnnotationUtils and Annotation, changed context
  saving.
Misc updates on TODO and PDFGenerator (fixed Ext flag).

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403863
2005-04-07 19:27:54 +00:00
Enrico Ros
659ae73bc8 Fixed crash when exiting with kapp->quit(). Usually the Settings singleton
is deleted after all classes, but when kpdf is run stand-alone and quit()
is used (currently only by clicking on Quit links) the app could crash.
-> Best practice: don't use KConfigXT settings classes for storing values
on destructors (do it when a parameter is updated).
CCMAIL: Mikolaj Machowski <mikmach@wp.pl>

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403765
2005-04-07 12:47:24 +00:00
Enrico Ros
e5ed6251a6 Implemented PDF:FullScreen and Close action to KPDF 'Presentation' and
'EndPresentation' actions. Based on testcase by Mikolaj.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403726
2005-04-07 09:53:15 +00:00
Enrico Ros
9709ffbd6b CVS_SILENT add whishes and in-progress-crash-solving by Mikolaj
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403716
2005-04-07 09:09:29 +00:00
Enrico Ros
3ac84b0f73 CVS_SILENT Sync and ++Whishes.
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403360
2005-04-05 17:46:55 +00:00
Enrico Ros
2b2a634064 PDFGenerator:
Better flow in annotations parser.
Annotation:
  Cleanups in header.
PageView:
  Adjusted a squelch.. I think a neural network it's the least we can do
  to choose that float number between 0.6 and 0.7.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403319
2005-04-05 15:05:54 +00:00
Enrico Ros
852eb6ed0d CVS_SILENT update state
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403223
2005-04-04 23:56:57 +00:00
Enrico Ros
b2b74d91c8 Adapted to annotations.h changes.
annotations.cpp is all commented out, need to work on that now.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403222
2005-04-04 23:55:40 +00:00
Enrico Ros
eabe001f46 The revolution starts here.
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403221
2005-04-04 23:53:45 +00:00
Enrico Ros
372299cc5e Internal changes, broken stuff, heavy headache.
PDFGenerator:
  Changed parser to deal with the new data structures:
  1) Popups are not inserted anymore as annotations, but parsed and
  scheduled for later merging with other annotations. Shared popups are
  permitted (the pdf reference doesn't clarify on this, so we better
  support them).
  2) Annotations can have an internal hieracy. When an IRT annotation is
  found, it's parsed and scheduled for later merging in the parent's
  tree.
  The merges take place at the end of the annotation retrieval. At that
  point all cross-objects are in memory and we can resolve/reparent
  stuff.

README.Annotations:
  Note on internal parser.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403219
2005-04-04 23:52:53 +00:00
Enrico Ros
18feebc838 Moved the PDF annotations status here from annotations.h (that is going
through a deep transformation).

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403113
2005-04-04 12:36:10 +00:00
Enrico Ros
f4231cd98c CVS_SILENT update
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403099
2005-04-04 11:55:06 +00:00
Enrico Ros
37abd55198 CVS_SILENT more naming changes
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=402436
2005-04-01 16:24:11 +00:00
Enrico Ros
52cf329fbe Tools.xml:
Changed engine and annotation definitions.
PageViewAnnotator:
  Renewed parsing loops. Much cleaner code now.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=402412
2005-04-01 14:00:59 +00:00
Enrico Ros
917d5e8b79 CVS_SILENT variable names change. preparing for heavy mods.
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=402410
2005-04-01 13:54:26 +00:00
Enrico Ros
7ad04b788c CVS_SILENT add x-pdf as mimetype
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=402353
2005-04-01 09:56:32 +00:00
Enrico Ros
c7a14857ce CVS_SILENT just remembered to sync todo
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=401786
2005-03-29 22:03:09 +00:00
Enrico Ros
f8c5f3f928 Apply fix for 102117 to this branch too.
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=400436
2005-03-25 08:32:27 +00:00
Enrico Ros
d04324545e Sync with latest status!
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=400313
2005-03-24 20:00:32 +00:00
Enrico Ros
c93d339c57 Adapted to PagePainter changes.
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=400311
2005-03-24 19:59:50 +00:00
Enrico Ros
e5eb63ec71 Redesigned graphic pipeline on PagePainter and hand scaling (10x gain on
typical usage).

PagePainter:
  Added 2 convenience methods for performing fast cropping and scaling
  from qpixmaps to qimages. Split buffered graphic flow from the unbuffered
  one reducing buffers conversions to the minimum. Avoid odd cases in
  rescaling. Detection of annotations boundaries to check for enabling
  buffered painting.
  Sample quick dirty and broken (but not so much..) implementation for
  painting AStamp annotations.
Misc:
  PresentationWidged and ThumbnailWidget: adapted to PagePainter changes.
  (PageView mod has already been committed).

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=400310
2005-03-24 19:59:11 +00:00
Enrico Ros
4d0a1ed6e1 Added a new experimental 'Reviews' widget to the toolbox. This shows
all the reviews on the document (pretty unuseful now, but that will
change ;-). Another step to good kpdf annotations.

Part:
  Added Reviews toolbox pane. Added (commented out while doing it right)
  searchline for toc; just works.
Misc:
  Observer: added id for Reviews pane (as document observer it monitors
  document/annotations changes). Page: added 2 temporary accessors for
  annotations (will change soon). Makefile: added side_reviews.cpp to
  compilation. Searchwidget: slight better spacing to look consistant with
  the review panel.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=400307
2005-03-24 19:50:28 +00:00