Commit graph

93 commits

Author SHA1 Message Date
John Layt 070285e039 Port from KPrinter to QPrinter, remove dependency on KDE4_KDEPRINT_LIBS.
*** Note this is not a complete port, most of the generators use the 
printFiles method which Qt 4.3 does not support, these have simply
been commented out until we find a solution.  At least it removes
the dependency so we can remove from kdelibs.

svn path=/trunk/KDE/kdegraphics/okular/; revision=725660
2007-10-15 23:01:27 +00:00
Pino Toscano 175cc2bce6 use the same about data for both the part and the shell, so:
- the part uses the same app share for its specific stuff
- no manual need to load another catalog ("okular") in the part

svn path=/trunk/KDE/kdegraphics/okular/; revision=720296
2007-10-02 22:42:59 +00:00
Pino Toscano 7eb8659d4f Add a tool button in the toolbar with the "select" actions.
Preparing a bit for separating rectangular text selection and rectangular image selection.

svn path=/trunk/KDE/kdegraphics/okular/; revision=712381
2007-09-14 10:02:33 +00:00
Tobias Koenig 9642e7ae5e Add proxy models for the AnnotationModel and port SideReviews
to it

svn path=/trunk/KDE/kdegraphics/okular/; revision=710330
2007-09-09 16:51:55 +00:00
Pino Toscano a917f080e6 Create a model for the TOC, and use that for displaying the TOC of the document.
svn path=/trunk/KDE/kdegraphics/okular/; revision=710317
2007-09-09 16:15:33 +00:00
Pino Toscano f770c6b542 Add a port of the kdelibs classes KTreeWidgetSearchLine* that use QTreeView/QModelIndex instead of TreeWidget/QTreeWidgetItem.
This way, we can really filter a tree view and avoid the limitations of QSortFilterProxyModel.

svn path=/trunk/KDE/kdegraphics/okular/; revision=710310
2007-09-09 15:50:00 +00:00
Pino Toscano 239434362e Basic version of a tree model for the document annotations.
It provides the items this way:

root
+ page 1
| + annotations for page 1
+ page 2
| + annotations for page 2
.. and so on
It does not return subtrees for pages without annotations.

svn path=/trunk/KDE/kdegraphics/okular/; revision=709946
2007-09-08 17:10:35 +00:00
Pino Toscano 05dc08d028 include the blitz include dir as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=709618
2007-09-07 22:57:17 +00:00
Albert Astals Cid 8d0b9b2832 KImageEffect::flatten -> Blitz::flatten
svn path=/trunk/KDE/kdegraphics/okular/; revision=709615
2007-09-07 22:52:11 +00:00
Albert Astals Cid 3f80eceaae Now (Qt 4.3.1) that QPainter::CompositionMode_Multiply works remove agg2 based code
Actually i think it's even a bit faster now

svn path=/trunk/KDE/kdegraphics/okular/; revision=708877
2007-09-05 22:01:04 +00:00
Pino Toscano 17ad0df66c New sidebar for okular.
The old sidebar had many problems and limitations, usability issues as well.
This new sidebar tries to simplify and solve many of these issues (like the navigability with the keyboard), with a better looking.
Of course, some glitches are still there, but easily solvable.

svn path=/trunk/KDE/kdegraphics/okular/; revision=697060
2007-08-06 17:24:10 +00:00
Pino Toscano ca481df309 SVN_SILENT old stuff
svn path=/trunk/KDE/kdegraphics/okular/; revision=690056
2007-07-19 23:34:47 +00:00
Pino Toscano 301ab93196 Riactivate the very very very, and I underline very, experimental newstuff support we had before the KNS1 -> KNS2 switch:
- install a newstuff rc config, pointing to the NS1 stuff on okular.kde.org
- show the download dialog for newstuff, properly (hopefully) initialized
- proper linking for the okularpart

svn path=/trunk/KDE/kdegraphics/okular/; revision=690047
2007-07-19 22:27:45 +00:00
Laurent Montel 889031ab1d Remove not necessary cmake variable
svn path=/trunk/KDE/kdegraphics/okular/; revision=686601
2007-07-11 19:14:25 +00:00
Laurent Montel f2ce8de556 Remove not necessary cmake variable (already defined
into lib dependancy)

svn path=/trunk/KDE/kdegraphics/okular/; revision=686187
2007-07-10 20:01:16 +00:00
Allen Winter 5110d1d3f2 remove kde4_automoc()
svn path=/trunk/KDE/kdegraphics/okular/; revision=686063
2007-07-10 14:11:49 +00:00
Pino Toscano 3a6e25e46a fontinfo.h needs to be installed as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=685327
2007-07-08 16:21:53 +00:00
Pino Toscano e5037f45b1 Refator a bit the way Document and the generators use to read the font information from a document.
Instead of having a synchronous function that extracts all the information at once, use a function to read the fonts of a single page.
This way, we can get all the result step by step (aka page by page), and possibly in an asynchronous way.
The resuls of the font "scanning" are sent via signals, as well the end of the work.
So, instead of block waiting for the results of all the document at once, the Fonts tab in the properties dialog can have a progress bar with the progress, and the results (the fonts) that are added incrementally to the list.

Only two minor things are left:
- the process is always asynchronous at the moment, as the only generator that can provide this kind of information is the Poppler one (safe)
- there is no check for duplicate fonts
But they should be easy to solve.

svn path=/trunk/KDE/kdegraphics/okular/; revision=685002
2007-07-07 20:35:01 +00:00
Albert Astals Cid 2437917e47 Do not start numberOfPagesWithPixmaps threads because that brings the system down, just start what threadweaver thinks its best
Probably still have to tell the weaver how to optimize for memory consumption but it's an improvement anyways

svn path=/trunk/KDE/kdegraphics/okular/; revision=683383
2007-07-04 16:55:33 +00:00
Pino Toscano 0e9b82be96 get rid of the Xrender-related stuff
svn path=/trunk/KDE/kdegraphics/okular/; revision=666266
2007-05-19 10:51:16 +00:00
Stephan Binner d4940f5a56 fix compilation
svn path=/trunk/KDE/kdegraphics/okular/; revision=659939
2007-05-01 05:28:28 +00:00
Pino Toscano 9bca223282 global.h must be installed as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=656760
2007-04-22 10:23:59 +00:00
Pino Toscano 166ba5b87a move the Generator::Private to a GeneratorPrivate, and move the implementations of the provate threads to a cpp
svn path=/trunk/KDE/kdegraphics/okular/; revision=656221
2007-04-20 17:17:44 +00:00
Laurent Montel 60054621c8 Add version (not install all develop package when
we install it on distro)

svn path=/trunk/KDE/kdegraphics/okular/; revision=656213
2007-04-20 16:12:05 +00:00
Pino Toscano f3e484082d Link -> Action renaming.
Step #1: link.(cpp|h) -> action.(cpp|h)

svn path=/trunk/KDE/kdegraphics/okular/; revision=656123
2007-04-20 11:26:05 +00:00
Pino Toscano 8f443fc5fd disable the old newstuff system, waiting for the porting to the new one
svn path=/trunk/playground/graphics/okular/; revision=649662
2007-04-02 23:36:00 +00:00
Pino Toscano 08ac5c5a06 simplify
svn path=/trunk/playground/graphics/okular/; revision=648027
2007-03-30 09:30:50 +00:00
David Faure 06d18ea3cc Make it possible to compile all of playground in one go (but also still to compile it like before, of course).
-> CMAKE_SOURCE_DIR replaced with CMAKE_CURRENT_SOURCE_DIR.
Remove module-wide config.h files, unused yet, but better remove the temptation.

svn path=/trunk/playground/graphics/okular/; revision=647336
2007-03-28 00:22:51 +00:00
Pino Toscano 36b894c75a Create a (private) PageController that handles the rotation jobs from all the pages.
This removes the needs for Page to be a QObject (it's the PageController that connects to the jobs and emits the right signals), so it again a "cheap" object.

svn path=/trunk/playground/graphics/okular/; revision=646010
2007-03-24 10:47:22 +00:00
Pino Toscano 6293345c95 okular_export.h and form.h must be installed as well
svn path=/trunk/playground/graphics/okular/; revision=643914
2007-03-18 19:25:04 +00:00
Christian Ehrlicher c5c2da7c89 fix win32 compilation
warnings--

svn path=/trunk/playground/graphics/okular/; revision=643874
2007-03-18 17:14:36 +00:00
Pino Toscano f55c401b20 Refactor the document search interfaces, as discussed on the mailing list.
Merge the search in normal mode and the type-ahead in a search bar that appears on the bottom of the page view. This should work nicely.
In presentation mode, add a small floating search toolbar that takes care of searching during the presentation mode, on document request. This is not working yet, but basically most of the work is done.

Please test and report any problems you find.

CCMAIL: okular-devel@kde.org

svn path=/trunk/playground/graphics/okular/; revision=643607
2007-03-17 22:58:41 +00:00
Pino Toscano 0ac881f1f3 isolate the search search bar in an own class (child of KLineEdit), so it can be used with no copy-paste job
svn path=/trunk/playground/graphics/okular/; revision=643508
2007-03-17 16:58:01 +00:00
Pino Toscano 24c56ef3d9 move most of the okular cmake configure stuff within the okular source tree
svn path=/trunk/playground/graphics/okular/; revision=641188
2007-03-10 13:15:49 +00:00
Pino Toscano db8a10dc2c Preliminary supports for text and choice form fields.
This includes:
- the interfaces for the generators
- the basic widgets for editing their value
- a top bar for show/hide the forms of a document
- the implementation of the forms for the PDF backend
still nothing that can be done with them, nor the value of the forms can be saved...
... but it's a start! :-)

svn path=/trunk/playground/graphics/okular/; revision=637001
2007-02-25 00:07:59 +00:00
Pino Toscano 1e7cb0b2eb First version of an audio player for okular, able to play the sounds in the documents.
At the moment is quite simple and works only for external sounds.
Activate the sound playing when processing links and when switching pages in presentation mode only.

svn path=/trunk/playground/graphics/okular/; revision=630315
2007-02-05 00:49:40 +00:00
Pino Toscano 92ea1bba69 Last step of the ThreadedGenerator -> Generator merge: remove the old files and rename the used file.
svn path=/trunk/playground/graphics/okular/; revision=628856
2007-01-31 18:41:21 +00:00
Pino Toscano d3619da584 get rid of two CMakeLists.txt's used to only install one files each - install the stuff from the top-level CMakeLists.txt
svn path=/trunk/playground/graphics/okular/; revision=627106
2007-01-25 18:06:53 +00:00
Tobias Koenig d227a94e79 First part of the porting to a threaded api for generators
- made comicbook, tiff and kimgio a threaded generator

svn path=/trunk/playground/graphics/okular/; revision=626761
2007-01-24 15:06:45 +00:00
Tobias Koenig e1ab8660ef Add new TextDocumentGenerator class, which is a base class for
generators which work on a QTextDocument. So all the nasty calculation
for text extraction and link/annotation positions is done by the
generator.

Ported FictionBook generator to it.


svn path=/trunk/playground/graphics/okular/; revision=623071
2007-01-13 23:15:28 +00:00
Pino Toscano af8487c920 no need to link okularcore with kparts, kio is needed though
svn path=/trunk/playground/graphics/okular/; revision=622862
2007-01-13 13:06:10 +00:00
Pino Toscano 18fab3d130 Improve the way we deal with generators that give the possibility to change the size of the pages: instead of let them destroy and recreate the pages (bad), ask them the sizes they support, then do the work ourselves and notify the generator when the work is done.
While I was at it, I changed from "paper size" to "page size", it should be better.

svn path=/trunk/playground/graphics/okular/; revision=620411
2007-01-05 23:12:06 +00:00
Tobias Koenig ea51ee18f5 Do a lot of include cleanups... we install all important
header files now

svn path=/trunk/playground/graphics/okular/; revision=619492
2007-01-03 14:30:48 +00:00
Tobias Koenig 2aa8a4c31b Moved SourceReference into its own file
svn path=/trunk/playground/graphics/okular/; revision=619076
2007-01-02 17:45:32 +00:00
Tobias Koenig 777877f2d2 Refactor the RMB menu for annotations, so we can use the menu for
the PageView and the SideReview.

BUGS: 137722

svn path=/trunk/playground/graphics/okular/; revision=617807
2006-12-30 12:40:54 +00:00
Pino Toscano 48a772be4b move the ui-related utils functions for annotations in an own utils class
svn path=/trunk/playground/graphics/okular/; revision=617097
2006-12-27 23:56:38 +00:00
Pino Toscano 539921bdf6 Improving the bookmark capabilities of okular.
Adding a BookmarkManager class that takes care of handling them in a proper way.
Adding a new tab in the sidebar to manage them:
- shows all the bookmarks in all the documents, or just in the current document
- cliking on a bookmark will bring to that bookmark, loading the document if necessary
- editing a bookmark title is possible either using F2 or right click -> Rename
- right click -> Remove to remove a bookmark
The only way to add new bookmark for the moment is the "old" way, ie right click -> Add bookmark, and it's not possible add more than one bookmark per page (but the system does not limit that).
The whole system should not be too difficult to understand, I will check with our usability master Florian next days.

svn path=/trunk/playground/graphics/okular/; revision=616979
2006-12-27 16:04:49 +00:00
Pino Toscano 349dfb7eb1 move the delegate used to draw the side page numbers in an own file
svn path=/trunk/playground/graphics/okular/; revision=616662
2006-12-26 12:01:30 +00:00
Pino Toscano b663cb313c isolate the debug options in an own tab, so it's easier to show/hide them
svn path=/trunk/playground/graphics/okular/; revision=615758
2006-12-22 15:04:01 +00:00
Tobias Koenig 60ef83b026 Moved dummy implementation of DocumentObserver in observer.cpp,
so we are free to change behaviour later.

API & documentation cleanup

@pinto Can you check the comments please, whether they are correct?

svn path=/trunk/playground/graphics/okular/; revision=610731
2006-12-05 08:53:26 +00:00