Commit graph

30 commits

Author SHA1 Message Date
Albert Astals Cid 3cccb03ce6 unsermake bitched about nonportability
svn path=/branches/work/kde4/playground/graphics/okular/; revision=522275
2006-03-24 23:16:41 +00:00
Albert Astals Cid 7ae1f13b3f when i said all linked i lied because i still had to commit that ;-)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=522271
2006-03-24 22:57:41 +00:00
Albert Astals Cid 3a09624824 some more kpdf -> oKular
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=471466
2005-10-17 19:16:31 +00:00
Piotr Szymanski d5c57158b5 - rename to oKular
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=471444
2005-10-17 18:34:58 +00:00
Adriaan de Groot 8ce31e10d2 Enable apidox in oKular (and for this module). Automatic generation is enabled at http://www.englishbreakfastnetwork.org/
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=450319
2005-08-17 21:57:54 +00:00
Piotr Szymanski 34b8e28322 - Page/Link: tooltips for links backported
- Page: rotation does not switch height and width
- Document/Part/Generator:
  1. Add API for attaching stuff to the interface: ActionCollection and the Navigation Panel
     also add possibility to merge an XML .rc file with menu layout. Relevant functions are:

     QString Generator::getXMLFile(), returns a QString with your .rc file name.
     void  Generator::setupGUI (KActionCollection* , QToolbox* ), add your components to the user interface

  2. Supporting backend settings:
     If during startup, backends which provide a configuration ([X-KDE-oKularHasInternalSettings]
     set to true) are found, a menu item: configure backends is created, clicking on it results in
     loading all the generators that have settings, but not those that dont. the Generator::addPages(KConfigDialog *dlg)
     function should be overloaded by a generator and dlg->addPage should be used to add pages.

     If a user opens a file that needs an already loaded generator, the already loaded one is used instead of loading another.

  3. Error/Warning/Notice sending support, to send a notice/error/warning, add a relevant notice/error/warning(QString& txt ,int duration)
     to the generator class, and sending a message to the user is as simple as emitting a signal!

  4. Intercepting of events generated by the PageView is done by Generator::handleEvent(QEvent*), subclass it, do a switch on QEvent::type(), handle your
     event and return true if pageview is to proceed with its handling or false if not.

  5. Support configuring the KPrinter on the generator side, use Generator::canConfigurePrinter(), return true there, and you get a nonconfigured KPrinter in your
     Generator::print()

  6. PixmapRequest handling update:
     a.) Generator::canGeneratePixmap is now Generator::canGeneratePixmap(bool async)
     b.) Document::sendGeneratorRequests is a slot now
     c.) Old way of sending pixmaps (Document::requestPixmaps(QValueList<PixmapRequest*> checking if we can generate pixmap if not, waiting for receiving)
         is replaced with: requestPixmaps only queues the pixmap all checking if w can generate is done in sendGeneratorReqest, the sendGeneratorRequest is
         run in three places:
         1.  in requestPixmaps when we receive a request
         2.  in requestDone if pixmapStack is not empty
         3.  sendGeneratorRequest, apart from removing invalid requests, takes the current request and if generator canGeratePixmap(request->async)
        it removes the pixmap from stack and sends to generator if not, QTimer::singleshots to itself after 20ms, it ends when stack has no valid pixmap request

  7. Added a commented out zoom field to PixmapGenerator, mightcome in handy sometime

- TextPage: add instructions that handle simplyfing the RegularAreaRect, no more double painted borders in selection rectangles, this rocks.


svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445196
2005-08-10 16:14:39 +00:00
Piotr Szymanski 9d66ee1670 - typo in makefile.am!
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=437231
2005-07-21 10:52:37 +00:00
Piotr Szymanski 1c7662dec2 - makefile changes for reorganisation
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=437102
2005-07-20 22:47:35 +00:00
Piotr Szymanski 36ab5c8965 - make generators plugins by:
* moving all xpdf stuff from core and part to inside generator_pdf
   * adding abstract KPDFText class and KPDFTextEntity to hold either
     glyph, or word or textline
- support for importing PS files as pdf like on annots branch
- synced with annots branch
- abstract text layer with search for words in different lines
- added RegularArea<NormalizedShape,Shape> template class
  which inherits QValueList<NormalizedShape*> and is used
  to hold regular areas of given shape (finite collections of the shape)
- loading of relevant generators via ktrader for given mimetype
- the deliverables 1 and 2 of my SoC proposition are delivered
  next: 1. fix one spotted regression and 2. code ghostview backend


svn path=/trunk/playground/graphics/oKular/kpdf/; revision=434883
2005-07-15 18:20:57 +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 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
Nicolas Goutte 39c7d814f9 As kpdf has a .rc file, rc.cpp needs to be used for the "messages" target
(Also do not delete rc.cpp, as it is part of the target dependencies.)

svn path=/trunk/kdegraphics/kpdf/; revision=376119
2005-01-07 15:29:39 +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
Albert Astals Cid abdc236de9 Updated following coolo's suggestion, hope the pot file now includes all the messages
svn path=/trunk/kdegraphics/kpdf/; revision=375340
2005-01-03 22:13:56 +00:00
Albert Astals Cid 50a8450174 More reorganization, needed so that the binary name does not clashes with an "old" directory
svn path=/trunk/kdegraphics/kpdf/; revision=375331
2005-01-03 21:59:57 +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
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
Albert Astals Cid af788a0b6c 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=374914
2005-01-02 14:08:07 +00:00
Albert Astals Cid 264b6249ab QOutputDev is no longer a OutputDev subclass but a SplashOutputDev sublclass. That makes xpdf do all the work related to rendering (sorting lots of problems with fonts, etc). That should improve the render quality of kpdf drastically.
svn path=/trunk/kdegraphics/kpdf/; revision=340973
2004-08-25 16:27:34 +00:00
Albert Astals Cid 3abd57ea99 - Put xpdf 3.00 in the xpdf, goo and fofi drawers to bring the PDF 1.5 support that version has to kpdf
- Remove not used files of xpdf (images, etc) that we don't need to distribute

Please test if your kpdf behaves equally that older versions (it should only have somewhat better support to PDF 1.5)

svn path=/trunk/kdegraphics/kpdf/; revision=339928
2004-08-23 00:05:01 +00:00
Stephan Kulow 93ea054963 Waldo says it works without, so better be consistent
svn path=/trunk/kdegraphics/kpdf/; revision=253057
2003-09-22 11:07:10 +00:00
Stephan Kulow d774be82d9 oops
svn path=/trunk/kdegraphics/kpdf/; revision=253031
2003-09-22 09:00:10 +00:00
Stephan Kulow fe444ed3fb make those poor automake users happy
svn path=/trunk/kdegraphics/kpdf/; revision=253029
2003-09-22 08:52:47 +00:00
Stephan Kulow 7cf549b0f6 some need to learn about dependencies ;(
svn path=/trunk/kdegraphics/kpdf/; revision=252803
2003-09-21 11:04:16 +00:00
Wilco Greven a4c32c5757 Some work on the configuration.
svn path=/trunk/kdegraphics/kpdf/; revision=175066
2002-09-01 13:51:30 +00:00
Wilco Greven 24d00b34f9 Better solution to include config.h in the xpdf sources without modifying
them.

svn path=/trunk/kdegraphics/kpdf/; revision=174660
2002-08-30 15:24:16 +00:00
Wilco Greven a9652638c6 Chances are that it will build now.
svn path=/trunk/kdegraphics/kpdf/; revision=174601
2002-08-30 09:54:31 +00:00
Wilco Greven 52a01650b7 We're in a subdir now.
svn path=/trunk/kdegraphics/kpdf/; revision=174595
2002-08-30 09:24:05 +00:00
Wilco Greven 42c3c82014 KPDF, a KDE PDF viewer based on XPDF.
svn path=/trunk/kdegraphics/kpdf/; revision=174591
2002-08-30 09:14:01 +00:00