Commit graph

477 commits

Author SHA1 Message Date
Pino Toscano
915a48eb4d move the Generator configuration stuff into a new ConfigInterface
svn path=/trunk/playground/graphics/okular/; revision=619061
2007-01-02 17:14:37 +00:00
Tobias Koenig
14ea3ab2ef Further documentation and API cleanups
svn path=/trunk/playground/graphics/okular/; revision=619054
2007-01-02 17:05:49 +00:00
Pino Toscano
d9a844d67c move the GUI stuff out of Generator in an own GuiInterface, and adapt the ghostscript generator to its usage; renamed also some methods to more Qt4-ish names.
svn path=/trunk/playground/graphics/okular/; revision=619044
2007-01-02 16:40:22 +00:00
Pino Toscano
1633d45c4a SVN_SILENT d'oh, typo
svn path=/trunk/playground/graphics/okular/; revision=619034
2007-01-02 16:14:22 +00:00
Pino Toscano
475d000763 Improve the way a Generator can configure a printer: add an interface with the advanced printing stuff.
The print() method remains in Generator, as it's too basic to be moved in an interface.

svn path=/trunk/playground/graphics/okular/; revision=619033
2007-01-02 16:11:40 +00:00
Pino Toscano
d5f99995dd add handy debug operators for NormalizedPoint and NormalizedRect
svn path=/trunk/playground/graphics/okular/; revision=618237
2006-12-31 17:52:24 +00:00
Pino Toscano
c51c412057 ok, let's sdo it seriously now: use the right precision for the page duration that a PDF can give us
svn path=/trunk/playground/graphics/okular/; revision=618194
2006-12-31 14:41:34 +00:00
Pino Toscano
5083655c11 Implement the page duration in presentation mode, and read the info from PDF documents.
svn path=/trunk/playground/graphics/okular/; revision=618136
2006-12-31 10:48:49 +00:00
Tobias Koenig
4fe8bdce53 Fixed free text selection for rotated pages
svn path=/trunk/playground/graphics/okular/; revision=617621
2006-12-29 18:18:07 +00:00
Pino Toscano
b6fdedc810 spell checking
svn path=/trunk/playground/graphics/okular/; revision=617287
2006-12-28 16:58:56 +00:00
Pino Toscano
feeeb50a73 QString -> const QString&
svn path=/trunk/playground/graphics/okular/; revision=617286
2006-12-28 16:58:38 +00:00
Pino Toscano
94c9ffa3d7 do not explicitely include document.h in generator.h
svn path=/trunk/playground/graphics/okular/; revision=617283
2006-12-28 16:45:50 +00:00
Pino Toscano
017c98a5a9 improve EmbeddedFile apidox
svn path=/trunk/playground/graphics/okular/; revision=617282
2006-12-28 16:28:28 +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
bbb55280d5 Simplify the auxiliary functions used within RegularArea<>, patch by André Wöbbeking.
Make the return value of RegularArea::geometry a simple list instead of a pointer, as suggested by André.

CCMAIL: Woebbeking@kde.org

svn path=/trunk/playground/graphics/okular/; revision=616994
2006-12-27 17:10:06 +00:00
Pino Toscano
c248956942 better use HTML ref instead of ref, otherwise we'll have "encoding" problems
svn path=/trunk/playground/graphics/okular/; revision=616993
2006-12-27 17:02:45 +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
André Wöbbeking
6e7d98b829 adapt to Aaron's kdelibs changes
svn path=/trunk/playground/graphics/okular/; revision=616901
2006-12-27 10:03:34 +00:00
Pino Toscano
2279ddfaab fix #include's
svn path=/trunk/playground/graphics/okular/; revision=616832
2006-12-27 00:17:52 +00:00
Pino Toscano
b7328d7234 add an handy DocumentViewport::isValid() and use it where possible instead of doing checks manually
svn path=/trunk/playground/graphics/okular/; revision=616667
2006-12-26 12:26:49 +00:00
André Wöbbeking
77f96ebfe2 added missing OKULAR_EXPORT
svn path=/trunk/playground/graphics/okular/; revision=616457
2006-12-25 15:10:39 +00:00
Pino Toscano
dff36b98f8 simplify RegularAreaRect by avoiding the usage of pointers, as they don't give benefits anyway.
Fixing also the text extraction when using the rectangular selection across two or more pages.

svn path=/trunk/playground/graphics/okular/; revision=616264
2006-12-24 18:19:18 +00:00
Pino Toscano
6db5e75a00 this should be better
svn path=/trunk/playground/graphics/okular/; revision=616243
2006-12-24 14:40:49 +00:00
Pino Toscano
52266d71b6 apidox fixes
svn path=/trunk/playground/graphics/okular/; revision=616096
2006-12-23 16:31:56 +00:00
Pino Toscano
7d275a6390 Improved the text selection by using and ad-hoc function that takes care of adding or merging a new shape to the area, so the simply() at the end is no more needed.
This gives another speedup when using the text selection.
(And, rename okularDeleter to okularPtrUtils.)

svn path=/trunk/playground/graphics/okular/; revision=616089
2006-12-23 16:18:54 +00:00
Pino Toscano
0fa0609e1f properly delete the regular areas of a RegularArea<> when it stores pointers to areas. no more memory leaks for RegularArea<>, yay!
svn path=/trunk/playground/graphics/okular/; revision=616069
2006-12-23 15:39:26 +00:00
Pino Toscano
8d8ae89b1d valgrind is right, don't use invalid iterators
svn path=/trunk/playground/graphics/okular/; revision=616050
2006-12-23 14:57:22 +00:00
Pino Toscano
9320c82cd7 it seems it needs to be exported...
svn path=/trunk/playground/graphics/okular/; revision=615726
2006-12-22 12:57:02 +00:00
David Faure
2fcc54be2b pedantic
svn path=/trunk/playground/graphics/okular/; revision=614615
2006-12-18 13:32:45 +00:00
Tobias Koenig
f83cb1c60a Finished API cleanup of Annotation by moving all private members
behind d-pointers

svn path=/trunk/playground/graphics/okular/; revision=614549
2006-12-18 07:28:02 +00:00
Pino Toscano
7895f693ae missing Encoding
svn path=/trunk/playground/graphics/okular/; revision=613878
2006-12-15 14:39:40 +00:00
Tobias Koenig
6f9d0df5cd Further annotation API cleanup
svn path=/trunk/playground/graphics/okular/; revision=612395
2006-12-11 07:59:02 +00:00
Pino Toscano
babbeea1e0 SVN_SILENT
apidox fix

svn path=/trunk/playground/graphics/okular/; revision=610862
2006-12-05 21:07:51 +00:00
Tobias Koenig
a9f58440df First large commit for the Annotation API cleanup
* Moved all public member variables of Annotation to private
    and add accessors
  * Renamed RevScope and RevType to RevisionScope and RevisionType
  * Add API documentation (@pino, please review)

svn path=/trunk/playground/graphics/okular/; revision=610749
2006-12-05 11:05:50 +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
Tobias Koenig
9e0ccabb58 API cleanup
svn path=/trunk/playground/graphics/okular/; revision=610420
2006-12-04 09:31:53 +00:00
Albert Astals Cid
579644c631 forwardport r609253 and while at it fix broke pixmaprequest call
**** r609253 ****
Preload next and previous page if threading is enabled and not on low memory setting

svn path=/trunk/playground/graphics/okular/; revision=609258
2006-11-29 22:00:13 +00:00
Pino Toscano
5e50a35683 less includes in the headers
svn path=/trunk/playground/graphics/okular/; revision=608502
2006-11-27 18:31:20 +00:00
Tobias Koenig
57139e3192 API cleanup (utils.h), renamed getDpiX -> dpiX() and getDpiY -> dpiY()
svn path=/trunk/playground/graphics/okular/; revision=608236
2006-11-27 08:13:47 +00:00
Tobias Koenig
9969547b0c * observer API cleanup
* removed NotifyRequest, that looked more like a hack than a solution
  (see comment in ghostscript generator)

svn path=/trunk/playground/graphics/okular/; revision=608235
2006-11-27 08:12:39 +00:00
Tobias Koenig
d2f9f04494 API cleanup
svn path=/trunk/playground/graphics/okular/; revision=608232
2006-11-27 08:08:39 +00:00
Tobias Koenig
fc13c09b3e Added documentation and some code cleanup
svn path=/trunk/playground/graphics/okular/; revision=608231
2006-11-27 08:05:56 +00:00
Tobias Koenig
25f836351f API cleanup
svn path=/trunk/playground/graphics/okular/; revision=608230
2006-11-27 08:04:41 +00:00
Tobias Koenig
1cea7cb777 Fix the bug that ink annotations are not visible on startup.
svn path=/trunk/playground/graphics/okular/; revision=608228
2006-11-27 08:01:27 +00:00
Pino Toscano
4c17c58fc2 better remove the search points (with the iterators) first
svn path=/trunk/playground/graphics/okular/; revision=608074
2006-11-26 16:46:20 +00:00
Pino Toscano
97f9f895ed There is nothing to find text into if the text page has no text.
BUG: 137860

svn path=/trunk/playground/graphics/okular/; revision=607827
2006-11-25 21:39:52 +00:00
Albert Astals Cid
4a46c9a140 contains is evil as makes you search twice
svn path=/trunk/playground/graphics/okular/; revision=607507
2006-11-24 21:42:56 +00:00
Pino Toscano
5ce4b0674e Make okular able to copy the text selection to the clipboard (finally!).
svn path=/trunk/playground/graphics/okular/; revision=607496
2006-11-24 21:02:38 +00:00
Tobias Koenig
0302929b04 Add support of transformation (rotation) of TextPages
svn path=/trunk/playground/graphics/okular/; revision=607271
2006-11-23 22:14:04 +00:00
Tobias Koenig
486ca7bd03 SVN_SILENT make it utf-8 clean
svn path=/trunk/playground/graphics/okular/; revision=607257
2006-11-23 21:27:43 +00:00
Tobias Koenig
81fb3a383b Further cleanup of Page API:
* getAnnotations() -> annotations()
  * setBookmark()/hasBookmark() -> setBookmarked()/isBookmarked()
  * moved as much private API of Page as possible to private class

svn path=/trunk/playground/graphics/okular/; revision=607233
2006-11-23 19:25:52 +00:00
Tobias Koenig
471c71d256 Cleaned up the API of TextEntity and TextPage, ready for release ;)
svn path=/trunk/playground/graphics/okular/; revision=607211
2006-11-23 17:56:03 +00:00
Tobias Koenig
4848631daf Renamed all the Page::getXyz() methods to Page::xyz() to be konsistent
with the rest of KDE and ... we are no Java developers ;)

svn path=/trunk/playground/graphics/okular/; revision=607204
2006-11-23 17:11:04 +00:00
Tobias Koenig
14d6515b16 Changed the enum SearchDir to SearchDirection and use less strange
abbreviations for its items.

Replaced the 'bool strictCase' parameter of Page::findText
with 'Qt::CaseSensitivity caseSensitivity' for better readable code.


svn path=/trunk/playground/graphics/okular/; revision=607203
2006-11-23 16:54:28 +00:00
Tobias Koenig
a844f01f0e SVN_SILENT warning--
svn path=/trunk/playground/graphics/okular/; revision=607196
2006-11-23 16:12:07 +00:00
Tobias Koenig
a7b04cb92b Replaced
Page::setSearchPage( TextPage* );
  Page::hasSearchPage();

with

  Page::setTextPage( TextPage* );
  Page::hasTextPage();

to make the API clearer. The TextPage is not only used for
searching but also for extracting selected text, so the term
'search' is confusing...


svn path=/trunk/playground/graphics/okular/; revision=607195
2006-11-23 16:09:26 +00:00
Pino Toscano
2f1aa08ac6 move the annotation boundary calculation to AnnotationUtils
svn path=/trunk/playground/graphics/okular/; revision=606811
2006-11-21 21:35:45 +00:00
Pino Toscano
f950e3e172 const iterators can be used here, too
svn path=/trunk/playground/graphics/okular/; revision=606596
2006-11-21 00:31:44 +00:00
Albert Astals Cid
b10d00e4ae virtual filesystems always return true for at end, so the memory was not beign correctly calculated
svn path=/trunk/playground/graphics/okular/; revision=606586
2006-11-20 22:52:28 +00:00
Albert Astals Cid
7dacbf93fd use the constant accessors so that we don't get dettach on the containers we don't want to get
svn path=/trunk/playground/graphics/okular/; revision=606560
2006-11-20 20:28:02 +00:00
Albert Astals Cid
ac1c0b75bc const_iterator is your friend :-)
svn path=/trunk/playground/graphics/okular/; revision=606558
2006-11-20 20:10:42 +00:00
Tobias Koenig
a490cc0cd7 Add the following functionality:
* Bring QPixmap* back to make Albert happy ;)
 * Store only one QPixmap per page/size and rotate it directly
 * Rotate ObjectRects (boundary)
 * Rotate Annotations (point coordinates)
 * Don't reload pixmaps, ObjectRects and annotations on rotation

svn path=/trunk/playground/graphics/okular/; revision=606371
2006-11-20 07:53:32 +00:00
Albert Astals Cid
9099fbecf7 Some krazy fixes
svn path=/trunk/playground/graphics/okular/; revision=605992
2006-11-18 21:36:56 +00:00
Pino Toscano
abb20bfe6c black can be a valid color, so don't discard it when saving
svn path=/trunk/playground/graphics/okular/; revision=605980
2006-11-18 20:30:40 +00:00
Pino Toscano
bd1880e42d less use of pointers; more const's
svn path=/trunk/playground/graphics/okular/; revision=605960
2006-11-18 18:33:47 +00:00
Pino Toscano
c57405db8c slightly improve the performances of RegularArea::simplify()
svn path=/trunk/playground/graphics/okular/; revision=605935
2006-11-18 17:07:15 +00:00
Pino Toscano
2cbf32906d check that the target file exists
svn path=/trunk/playground/graphics/okular/; revision=605906
2006-11-18 15:16:16 +00:00
Pino Toscano
7c2aac01d5 #include not needed
svn path=/trunk/playground/graphics/okular/; revision=605786
2006-11-18 11:25:16 +00:00
Pino Toscano
274469dae8 Almost complete support for inverse search within okular.
THe system generally works; what is missing is a good activating strategy (added in TODO - our usability expert is working on that), and a GUI to configure the editor.
The DVI backend was adapted to use this new feature.
(The PDF backend will use it soon.)

svn path=/trunk/playground/graphics/okular/; revision=605708
2006-11-17 22:15:15 +00:00
Tobias Koenig
1479a6d28c Small speed up patch, caches the value of getFreeMemory for 2 seconds,
that reduces the access of /proc/meminfo.

svn path=/trunk/playground/graphics/okular/; revision=605189
2006-11-15 19:39:39 +00:00
Tobias Koenig
a6fc833662 SVN_SILENT Code cleanup
svn path=/trunk/playground/graphics/okular/; revision=605153
2006-11-15 15:48:49 +00:00
Tobias Koenig
a70a0dea7f Removed debugging code...
Tip of the Day:

You can use the following code to do time measurement the Qt way...

QTime time;
time.start();
  // do the time consuming action
qDebug( "%d ms elapsed", time.elapsed() );


svn path=/trunk/playground/graphics/okular/; revision=605151
2006-11-15 15:44:21 +00:00
Pino Toscano
2d99ab2588 no need to create it on the heap
svn path=/trunk/playground/graphics/okular/; revision=603974
2006-11-11 00:08:35 +00:00
Pino Toscano
56e1266ae5 move initializers to the d-ptr ctor
svn path=/trunk/playground/graphics/okular/; revision=603972
2006-11-10 23:52:02 +00:00
Pino Toscano
30de0a7dcb generator -> backend in the gui
svn path=/trunk/playground/graphics/okular/; revision=603933
2006-11-10 20:48:28 +00:00
Tobias Koenig
bea71df6e0 * Made image rotation asynchronous
* Changed Page API and PagePainter to work only with QImage

svn path=/trunk/playground/graphics/okular/; revision=601581
2006-11-03 17:57:32 +00:00
Pino Toscano
1285f20c21 be able to remove more than one annotation at once (and notify the observers only one)
svn path=/trunk/playground/graphics/okular/; revision=600979
2006-11-01 15:17:22 +00:00
Pino Toscano
e9ec5399ff stop crashing when removing an annotation under particular circumstances
svn path=/trunk/playground/graphics/okular/; revision=600958
2006-11-01 13:57:33 +00:00
Pino Toscano
2bd05e79d5 a generator can not block the gui events of the main page view, otherwise bad things will happen - it's also not really logic to allow such a thing, better think about something else if a generator wants to interact with the gui somehow
svn path=/trunk/playground/graphics/okular/; revision=600225
2006-10-29 22:33:24 +00:00
Pino Toscano
cdf6d44742 forward declaration & apidox fixing
svn path=/trunk/playground/graphics/okular/; revision=600104
2006-10-29 15:21:03 +00:00
Holger Freyther
569e93b929 oKular: Add method(s) to get the DPI of the primary screen
some generators use QX11Info to get the DPI of the display.
    Obviously this is not portable, add a getDpi? method to utils
    which can be used by generators.
    Currently only the DVI converter is converted.
    The CMakeLists.txt change assumes that non existing variables
    gets expanded to empty strings.

svn path=/trunk/playground/graphics/okular/; revision=600099
2006-10-29 15:08:18 +00:00
Pino Toscano
8def2109ec change the metaData() function of the Generator to use QVariant as type for the returned value and for the 'option' parameter, this gives more flexibility
svn path=/trunk/playground/graphics/okular/; revision=599847
2006-10-28 19:18:36 +00:00
Pino Toscano
d6fd44e1ed forward declaration
svn path=/trunk/playground/graphics/okular/; revision=599828
2006-10-28 18:03:33 +00:00
Tobias Koenig
a375953402 Adapt ghostview, kimgio, pdf, dvi, chm, xps and ooo generators to setImage()
svn path=/trunk/playground/graphics/okular/; revision=599090
2006-10-25 17:43:15 +00:00
Albert Astals Cid
54ad65e92f }; -> }
svn path=/trunk/playground/graphics/okular/; revision=599084
2006-10-25 17:29:24 +00:00
Tobias Koenig
d22b2f1892 A rather big change:
* Hide as much private API as possible in Generator, PixmapRequest and ExportEntry/Format
 * Renamed ExportEntry to ExportFormat and made it value based
 * Removed canExportToText() and exportToText() from Generator API and implemented this
   functionality in exportFormats()/exportTo() in the generators
 * Removed the orientation parameter from PixmapRequest and let the Document handle the rotation
   of the page (pixmap) instead

CCMAIL:okular-devel@kde.org

svn path=/trunk/playground/graphics/okular/; revision=599058
2006-10-25 15:35:53 +00:00
Pino Toscano
46a1ddc08e #include not needed
svn path=/trunk/playground/graphics/okular/; revision=598561
2006-10-23 23:03:02 +00:00
Pino Toscano
a62cd3aa2f The internal search is a pretty bad concept, as the Document provides it for free
svn path=/trunk/playground/graphics/okular/; revision=598553
2006-10-23 22:26:31 +00:00
Pino Toscano
4c0808fabf a bit less of #include's
svn path=/trunk/playground/graphics/okular/; revision=598229
2006-10-22 23:00:39 +00:00
Pino Toscano
6983c298a7 a working debug stream operator for the PixmapRequest
svn path=/trunk/playground/graphics/okular/; revision=598087
2006-10-22 13:34:47 +00:00
Pino Toscano
18028a8a2c API change in the Generator: use an empty construct, and set the document for the generator right after its construction.
Add a protected method to get the document, and hide the real document pointer as private, so the generators can't redefine it.

svn path=/trunk/playground/graphics/okular/; revision=598025
2006-10-22 11:25:08 +00:00
Pino Toscano
0381a0410e simplify
svn path=/trunk/playground/graphics/okular/; revision=597994
2006-10-22 10:09:38 +00:00
Pino Toscano
dd40052d86 old code
svn path=/trunk/playground/graphics/okular/; revision=597993
2006-10-22 09:48:31 +00:00
Pino Toscano
2fdca9ed0e old stuff
svn path=/trunk/playground/graphics/okular/; revision=597610
2006-10-20 23:25:07 +00:00
Tobias Koenig
fccd412d69 * Added documentation to Generator API
* Moved all implementations to generator.cpp
 * Added 'const' where it make sense
 * Adapted all generators (except gs)

svn path=/trunk/playground/graphics/okular/; revision=597525
2006-10-20 16:51:46 +00:00
Albert Astals Cid
5143cd2512 Report page size
It's only reported in case it makes sense for the format
Only implemented for pdf atm
If all pages have the same size it's reported on document properties
else there's a label shown in the new bottom bar with the size of the current page

svn path=/trunk/playground/graphics/okular/; revision=595822
2006-10-15 19:37:14 +00:00
Pino Toscano
f27f44fd79 Detach the progress widget from the minibar, and move the minibar as a small toolbar on the bottom of the page view.
Implements KPDF wish #102788.

svn path=/trunk/playground/graphics/okular/; revision=595764
2006-10-15 15:59:22 +00:00
Pino Toscano
08877db01b const&
svn path=/trunk/playground/graphics/okular/; revision=594961
2006-10-12 22:04:26 +00:00
Pino Toscano
c42348edaa improve the HighlightAreaRect ctor
svn path=/trunk/playground/graphics/okular/; revision=594957
2006-10-12 21:55:32 +00:00
Pino Toscano
12827bf0eb re-write to avoid using a temporary object
svn path=/trunk/playground/graphics/okular/; revision=594953
2006-10-12 21:43:55 +00:00
Pino Toscano
2854e8aea3 slightly improve (not much, but well...)
svn path=/trunk/playground/graphics/okular/; revision=594951
2006-10-12 21:32:38 +00:00
Pino Toscano
5d139f7480 some const'ness more
svn path=/trunk/playground/graphics/okular/; revision=594950
2006-10-12 21:31:08 +00:00
Pino Toscano
c566e65326 less verbose, please
svn path=/trunk/playground/graphics/okular/; revision=594659
2006-10-11 22:20:11 +00:00
Pino Toscano
b566530fad very small optimization: instead of doing toLower for each char, do it only once (if necessary, of course)
svn path=/trunk/playground/graphics/okular/; revision=594655
2006-10-11 22:15:58 +00:00
Stephan Kulow
80d9cbb9fc DANGER: pascal compilers ahead
svn path=/trunk/playground/graphics/okular/; revision=594114
2006-10-10 07:17:02 +00:00
Pino Toscano
cf33727105 Add the support for Sounds, links to sounds and opning/closing page actions (only in Page, not really working yet)
svn path=/trunk/playground/graphics/okular/; revision=593975
2006-10-09 18:02:59 +00:00
Pino Toscano
bee45c6eef SVN_SILENT tab -> spaces
svn path=/trunk/playground/graphics/okular/; revision=593650
2006-10-08 15:57:11 +00:00
Pino Toscano
c52a0e622b Change the way we rotate the pages.
Instead of telling the generators to do the work themselves (that was usually destraoying the ld pages and creating the new ones), now we just rotate the page objects deleting only their "mutable" contents.
This way, generators can just return true in their supportRotation() to make okular rotate the pages for them for free. Of course they still have to generate the page pixmaps according to the given page rotation.
Now, there's a new rotationChanged() function in the Generator API so generator that needs it can be norified about the document rotation changing.

CCMAIL: developers@okular.org

svn path=/trunk/playground/graphics/okular/; revision=593632
2006-10-08 15:07:23 +00:00
Pino Toscano
c2686ba1d1 show the annotation type in the review side tab, and a simple tooltip with its author
svn path=/trunk/playground/graphics/okular/; revision=593266
2006-10-07 11:00:39 +00:00
Pino Toscano
53bc686b56 show the right page number in the link tip
svn path=/trunk/playground/graphics/okular/; revision=590342
2006-09-29 21:21:03 +00:00
Pino Toscano
853d6c70a7 Give a tooltip in the page view for every kind of lnk we support.
Also improve a bit the one in the presentation mode, and give a message when the link is a "go to the page x" link.
Implements KPDF wish #131361.

svn path=/trunk/playground/graphics/okular/; revision=588899
2006-09-27 10:28:03 +00:00
Pino Toscano
42310e184c Restructuring a bit how the text-editor-like selection works:
* putting it in an own view mode
* associating the selection to every page
* using a better algorithm to calculate the selection, even in a page range
* moving its drawing from the page view to the page painter, so it's possibile to draw it just like it's done with eg annotations

Other changes (more or less related):
* moved the annotation popup to a better place, so it won't interfere with annotation drawing
* commented some debug code in TextPage

svn path=/trunk/playground/graphics/okular/; revision=588795
2006-09-26 22:22:01 +00:00
Pino Toscano
aafd2b684e more KPDF -> okular renaming in comments, include guards and READMEs
svn path=/trunk/playground/graphics/okular/; revision=587000
2006-09-21 09:33:56 +00:00
Tobias Koenig
df7d144c10 Moved all classes in core/ into the 'Okular' namespace and removed
nearly all references to kpdf (knewstuff still missing).

svn path=/trunk/playground/graphics/okular/; revision=586993
2006-09-21 08:45:36 +00:00
Tobias Koenig
4cb4c1c86b Add convenience ctor
svn path=/trunk/playground/graphics/okular/; revision=586703
2006-09-20 11:44:58 +00:00
Pino Toscano
45615e5289 Reworked a bit the ObjectRect API, by allowing subclassing for easiness wrt Annotation's. The brand new AnnotationObjectRect is responsible for providing the annotation bounding rect (that may vary for the various annotation types).
Adapted also to receive the X and Y scale, so the bounding rect for every kind of ObjectRect can depend on a specific page size.
As a consequence, we can add also the annotations among the rects of a Page, and use the standard getObjectRect to find them.

svn path=/trunk/playground/graphics/okular/; revision=586457
2006-09-19 17:17:29 +00:00
Albert Astals Cid
4e04b301f1 Almost foget to fordwardport r582561
Fix bug 133507 that prevented the correct restoring of the document viewport on session restore for remote documents

svn path=/trunk/playground/graphics/okular/; revision=584932
2006-09-15 21:08:48 +00:00
Dirk Mueller
9f6f989e1c pedantic--
svn path=/trunk/playground/graphics/okular/; revision=584828
2006-09-15 16:11:07 +00:00
Pino Toscano
8357b47a8c Annotations:
support the Hidden and DenyDelete flags

svn path=/trunk/playground/graphics/okular/; revision=584409
2006-09-14 18:42:28 +00:00
Pino Toscano
726200f64a SVN_SILENT use the right default value for StampAnnotation
svn path=/trunk/playground/graphics/okular/; revision=583166
2006-09-11 15:44:13 +00:00
Pino Toscano
7a5511f10f SVN_SILENT kpdf -> okular
svn path=/trunk/playground/graphics/okular/; revision=582405
2006-09-09 10:06:14 +00:00
Pino Toscano
b66b54a9c9 very small fixes about annotations
svn path=/trunk/playground/graphics/okular/; revision=582276
2006-09-08 21:08:51 +00:00
Tobias Koenig
90140c1479 warnings--
svn path=/trunk/playground/graphics/okular/; revision=578892
2006-08-30 14:17:22 +00:00
Tobias Koenig
5bfa5435a8 URL -> url renaming to reimplement the correct KPart::openUrl()...
svn path=/trunk/playground/graphics/okular/; revision=578859
2006-08-30 13:02:48 +00:00
Chu Xiaodong
a6516a74ef Fix annotation size difference when added in diff scales
svn path=/trunk/playground/graphics/okular/; revision=571739
2006-08-10 15:12:37 +00:00
Chu Xiaodong
e207d0d6f4 Note&TextBox annotation remove operation enabled
svn path=/trunk/playground/graphics/okular/; revision=571630
2006-08-10 06:32:03 +00:00
Chu Xiaodong
3f81e3788f Free TextAnnotation,pop-up window and annotation properties dialog added.
svn path=/trunk/playground/graphics/okular/; revision=571124
2006-08-08 15:31:13 +00:00
Pino Toscano
ab0d3dca78 A pair of bugfixes done while working on the other branch, ie:
- really check if the user selected an action from the document popup
- make the HighlightAreaRect constructor an effective copy-ctor

svn path=/trunk/playground/graphics/okular/; revision=567628
2006-07-29 16:12:57 +00:00
Pino Toscano
92e4c31899 these files were created by Piotr Szymanski
svn path=/trunk/playground/graphics/okular/; revision=564684
2006-07-20 20:47:05 +00:00
Pino Toscano
25eb77c1de some fixes according to EBN:
- fix single char addition to QString's
- some spell checking

svn path=/trunk/playground/graphics/okular/; revision=563891
2006-07-18 19:06:01 +00:00
Pino Toscano
b6d7a36eda Small addition to the Ganarator API: bool closeDocument().
Now every generator has to implement this one and put (if necessary) all the code for cleaning up all the stuff related to the currently open document.
For now the return value it is not read, but generators as strongly suggested to return tru o false, whether all the operations in there went fine.

svn path=/trunk/playground/graphics/okular/; revision=562210
2006-07-14 10:54:29 +00:00
Pino Toscano
1ba01ac6f1 Refactor a bit how ObjectRect works: now it's an independent class, that keeps the shape of the "kept" object using a QPainterPath [the qreal version to QRegion].
Modified the constructors to specify if a rect represents a rectangular region or an elliptic one; added a new one to create a region defined using a polygon.
Adapted to the new API the generators that support links (all but the DjVu one - will be adapted and improved soon).

svn path=/trunk/playground/graphics/okular/; revision=561890
2006-07-13 15:03:18 +00:00
Pino Toscano
bfc6133c9c update a thumbnail only if its visible area rect is changed
svn path=/trunk/playground/graphics/okular/; revision=561676
2006-07-12 22:00:46 +00:00
Pino Toscano
fe1b6e750a query for a property using the right way
svn path=/trunk/playground/graphics/okular/; revision=561606
2006-07-12 17:19:26 +00:00
Pino Toscano
e3825a2870 Forward port SVN commit 561026 by aacid:
finally commit patch by Mary Ellen Foster to implement wish 109078
Incidentally also implements wish 127382
Sorry for having taken so long.

svn path=/trunk/playground/graphics/okular/; revision=561300
2006-07-11 19:57:17 +00:00
Albert Astals Cid
49d26ab042 fordwardport kpdf bug #122845
svn path=/trunk/playground/graphics/okular/; revision=560203
2006-07-09 14:38:35 +00:00
Chu Xiaodong
88b724dbf1 Text annotation and Straight line annotation added
svn path=/trunk/playground/graphics/okular/; revision=559954
2006-07-08 17:52:42 +00:00
Pino Toscano
2d41c4459b clean up the CMakeLists.txt files from the auto* stuff
svn path=/trunk/playground/graphics/okular/; revision=559521
2006-07-07 15:08:46 +00:00
Pino Toscano
e40af42c63 SVN_SILENT improve a bit
svn path=/trunk/playground/graphics/okular/; revision=559498
2006-07-07 14:32:09 +00:00
Pino Toscano
c0d67ae2e3 sort the plugins we have for the current file by priority (more priority ... less priority)
improve a bit the message of the generator selection dialog

svn path=/trunk/playground/graphics/okular/; revision=559497
2006-07-07 14:28:21 +00:00
Pino Toscano
12edea34f8 adapt to the new snapshot
svn path=/trunk/playground/graphics/okular/; revision=558247
2006-07-04 23:09:39 +00:00
Pino Toscano
f516679bf6 raise to 30msecs the document rendering queue polling interval
svn path=/trunk/playground/graphics/okular/; revision=558102
2006-07-04 17:54:05 +00:00
Pino Toscano
1285825aa5 use install instead of install_files
svn path=/trunk/playground/graphics/okular/; revision=558033
2006-07-04 15:24:52 +00:00
Pino Toscano
b3a4b27956 New skeleton for giving the generators the possibility to export the document they open in some format they support.
The text exporting option is detached from that other options and always visible (disabled if not supported), so it could be easier for the user to find it out.

svn path=/trunk/playground/graphics/okular/; revision=556922
2006-07-01 22:17:53 +00:00
Pino Toscano
0a9a730f9d const
svn path=/trunk/playground/graphics/okular/; revision=556728
2006-07-01 12:47:48 +00:00
Pino Toscano
bca4b9eb77 Create a okularUtils namespace with utility functions for generators (and maybe not only for them).
svn path=/trunk/playground/graphics/okular/; revision=556608
2006-06-30 21:42:41 +00:00
Pino Toscano
90bc2dadcb clear the visible rects when closing a document
svn path=/trunk/playground/graphics/okular/; revision=554546
2006-06-24 10:03:12 +00:00
Pino Toscano
cd81b54d63 Show the current viewport in the thumbnail view, with a read contour.
svn path=/trunk/playground/graphics/okular/; revision=554363
2006-06-23 21:11:52 +00:00
Pino Toscano
066beaa1dd small changes in the Generator API:
- no need for a private empty constructor
- move the signalRequestDone 'signal' to a protected visibility, as it's not meant to be called from outside a generator
- KPDF_EXPORT_PLUGIN -> OKULAR_EXPORT_PLUGIN

svn path=/trunk/playground/graphics/okular/; revision=553077
2006-06-19 22:15:07 +00:00
Pino Toscano
90684050a4 shut up gcc
svn path=/trunk/playground/graphics/okular/; revision=552101
2006-06-16 16:01:26 +00:00
Pino Toscano
b1973c5078 some kpdf -> okular (mostly in comments)
svn path=/trunk/playground/graphics/okular/; revision=551881
2006-06-15 21:24:00 +00:00
Pino Toscano
84c4ed8ef5 improve a bit
svn path=/trunk/playground/graphics/okular/; revision=551508
2006-06-14 19:51:35 +00:00
Pino Toscano
36a175670d don't ask me why, but this avoid the crash of the dialog...
svn path=/trunk/playground/graphics/okular/; revision=551488
2006-06-14 18:22:13 +00:00
Pino Toscano
2599329b64 Port to the new KDialog / KPageDialog API
svn path=/branches/work/kde4/playground/graphics/okular/; revision=550945
2006-06-13 08:45:56 +00:00
Albert Astals Cid
c0a9d7af76 last move
svn path=/branches/work/kde4/playground/graphics/okular/; revision=550783
2006-06-12 18:30:40 +00:00
Albert Astals Cid
eabbaeaead oKular is now okular
svn path=/branches/work/kde4/playground/graphics/okular/; revision=550782
2006-06-12 18:25:18 +00:00
Pino Toscano
2a68297ce5 SVN_SILENT a bit less of mess
svn path=/branches/work/kde4/playground/graphics/okular/; revision=549949
2006-06-10 13:35:01 +00:00
Pino Toscano
60eab90248 small API changes to Generator:
- more const'ness in signals
- no need to redeclare the signals in the generators, as they are already in Generator

svn path=/branches/work/kde4/playground/graphics/okular/; revision=549941
2006-06-10 12:59:09 +00:00
Pino Toscano
09bf08b3e6 small API change for Generator: getText() just return a QString instead of a QString*, as QString is already implicitely shared
svn path=/branches/work/kde4/playground/graphics/okular/; revision=549935
2006-06-10 12:14:23 +00:00
Pino Toscano
dceb1211ca less qt3_support
svn path=/branches/work/kde4/playground/graphics/okular/; revision=547800
2006-06-03 13:01:15 +00:00
Pino Toscano
d088e2f631 remove all the Makefile.am, as they are no more needed
svn path=/branches/work/kde4/playground/graphics/okular/; revision=547662
2006-06-02 22:13:10 +00:00
Albert Astals Cid
cb7ca95e94 pages have orientation
document has a rotation to apply over the page's own orientation
text search really works now when rotating (at least all my tests here worked)

svn path=/branches/work/kde4/playground/graphics/okular/; revision=547644
2006-06-02 20:42:57 +00:00
Albert Astals Cid
13dde4096f use the nice code brad wrote for poppler that allows you to extract embedded files from a pdf document.
svn path=/branches/work/kde4/playground/graphics/okular/; revision=545966
2006-05-28 16:54:54 +00:00
Pino Toscano
91dc3ef06c move the searchIDs in document.h, like it's done for the observerIDs
svn path=/branches/work/kde4/playground/graphics/okular/; revision=545944
2006-05-28 15:54:48 +00:00
Pino Toscano
aa8df17b5f init correctly in all the c'tors
svn path=/branches/work/kde4/playground/graphics/okular/; revision=545757
2006-05-28 10:41:12 +00:00
Pino Toscano
c9555efe16 put a debug output line in a #ifdef DEBUG_TEXTPAGE, so at least the searches won't be slow unless while debugging
svn path=/branches/work/kde4/playground/graphics/okular/; revision=545634
2006-05-27 22:13:27 +00:00
Pino Toscano
6301d6b397 In the hope I didn not break anything, this is the new way of searching through the text pages. The new way stores the search point for every searchID, avoid to search from the beginning every time.
Also, the structure for backward search is there, (just...) need to add a findTextInternalBackward and do the job there.

svn path=/branches/work/kde4/playground/graphics/okular/; revision=545298
2006-05-27 10:06:31 +00:00
Pino Toscano
59b267386c avoid using QString*, just use QString
svn path=/branches/work/kde4/playground/graphics/okular/; revision=544974
2006-05-26 14:32:35 +00:00
Dirk Mueller
54c15f09ba fix possible crash (CID 2236)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=544258
2006-05-24 09:05:32 +00:00
Dirk Mueller
2fffdf07d0 excellent way to crash (CID 2217)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=544250
2006-05-24 08:47:17 +00:00
Stephan Kulow
500e379879 first use, _then_ delete (CID 2240)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=544232
2006-05-24 08:16:38 +00:00
Pino Toscano
7049feb8de port to the new kdelibs api; mainly ktrader usage and URL -> Url
svn path=/branches/work/kde4/playground/graphics/okular/; revision=543576
2006-05-22 14:02:24 +00:00
Pino Toscano
ec385777e6 IO_ReadOnly -> QIODevice::ReadOnly
svn path=/branches/work/kde4/playground/graphics/okular/; revision=541290
2006-05-15 21:31:53 +00:00
Albert Astals Cid
7ab451aae1 some leaks less
svn path=/branches/work/kde4/playground/graphics/okular/; revision=540485
2006-05-13 16:06:54 +00:00
Albert Astals Cid
68830e0508 fix search (a bit) and rect passing top != right dude!!
svn path=/branches/work/kde4/playground/graphics/okular/; revision=540475
2006-05-13 15:04:22 +00:00
Albert Astals Cid
33848a3ee8 The big poppler commit, we now don't use poppler but poppler-qt4 frontend, and that is GOOD
You need poppler from cvs as of today, i'll change the check to a bigger version number once a new poppler gets released
There are still some problems i think but i'm commiting to see if someone wants to help ;-)
Includes some EBN fixes by Christian Mueller

svn path=/branches/work/kde4/playground/graphics/okular/; revision=540404
2006-05-13 11:17:24 +00:00
Pino Toscano
f8de9e780e adapt to the recent cmake changes
svn path=/branches/work/kde4/playground/graphics/okular/; revision=540372
2006-05-13 09:10:26 +00:00
Albert Astals Cid
85f007b390 qdeleteall
svn path=/branches/work/kde4/playground/graphics/okular/; revision=539125
2006-05-09 19:17:54 +00:00
Pino Toscano
aca01f331f Support for visibility in oKular; oKular compiles and links, but it seems no plugins are found.
At the moment, the exported classes are only the one needed to make oKular and its actual plugins link, nothing more. Probably some other classes could be made visibile, but I'm not an expert about that.

svn path=/branches/work/kde4/playground/graphics/okular/; revision=538771
2006-05-08 20:12:04 +00:00
Pino Toscano
e3994658b6 make it compile with the new snapshot
port to the new i18n api

svn path=/branches/work/kde4/playground/graphics/okular/; revision=528345
2006-04-10 19:50:00 +00:00
Pino Toscano
46c44fee25 SVN_SILENT a bit of cleanup
svn path=/branches/work/kde4/playground/graphics/okular/; revision=527308
2006-04-07 16:52:30 +00:00
Pino Toscano
a9c6f32494 some kpdf -> okular for icons and a pair of gui messages
svn path=/branches/work/kde4/playground/graphics/okular/; revision=526898
2006-04-05 21:31:21 +00:00
Pino Toscano
b265f47efb SVN_SILENT some headers less
svn path=/branches/work/kde4/playground/graphics/okular/; revision=525157
2006-03-31 23:29:45 +00:00
Pino Toscano
55bc51a6d0 less qt3_support
svn path=/branches/work/kde4/playground/graphics/okular/; revision=525131
2006-03-31 21:51:45 +00:00
Pino Toscano
cbeaf3298b Port the ChooseEngineDialog to KDialog and Qt4.
Fix a compilation error introduced by my previous commit.

svn path=/branches/work/kde4/playground/graphics/okular/; revision=524596
2006-03-30 18:06:18 +00:00
Pino Toscano
11d5e77ff4 less qt3/kde3 support
svn path=/branches/work/kde4/playground/graphics/okular/; revision=524525
2006-03-30 15:27:27 +00:00
Albert Astals Cid
61788d974c qt3support--
svn path=/branches/work/kde4/playground/graphics/okular/; revision=524126
2006-03-29 19:48:53 +00:00
Pino Toscano
4bd3b60d6c less qt3_support
svn path=/branches/work/kde4/playground/graphics/okular/; revision=524083
2006-03-29 17:16:46 +00:00
Pino Toscano
25e194b435 less qt3_support
svn path=/branches/work/kde4/playground/graphics/okular/; revision=524069
2006-03-29 16:46:09 +00:00
Pino Toscano
80f7e6b596 a bit of qt3/kde3 support less
svn path=/branches/work/kde4/playground/graphics/okular/; revision=523922
2006-03-29 13:52:17 +00:00
Pino Toscano
63c18ab06e Make the oKular part and its shell compile and link.
Created a oKularcore lib, so the generators ca link to it, and made the oKularpart link to it too, of course.
Adapted the sources of the Okularpart to the new location for the generated settings.h.

svn path=/branches/work/kde4/playground/graphics/okular/; revision=523729
2006-03-28 22:22:10 +00:00
Laurent Montel
3d0eefb6d4 Add support for cmake (not tested for the moment)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=522661
2006-03-26 12:19:40 +00:00
Albert Astals Cid
c8a4e8e0b8 need to export that
svn path=/branches/work/kde4/playground/graphics/okular/; revision=522373
2006-03-25 11:05:39 +00:00
Albert Astals Cid
cbb8e80154 some more compile changes, now let's see basketball
svn path=/branches/work/kde4/playground/graphics/okular/; revision=521882
2006-03-23 19:02:55 +00:00
Albert Astals Cid
178bab06cb core builds
svn path=/branches/work/kde4/playground/graphics/okular/; revision=521179
2006-03-21 20:00:24 +00:00
Albert Astals Cid
c0a2772c9a more porting, area.h is begining to loose but i need sleep
svn path=/branches/work/kde4/playground/graphics/okular/; revision=520838
2006-03-20 23:14:05 +00:00
Albert Astals Cid
b412aba1f1 more proting, area.h still resists me
svn path=/branches/work/kde4/playground/graphics/okular/; revision=520833
2006-03-20 22:51:56 +00:00
Albert Astals Cid
6987b83b6a a bit of porting area.h is giving me lots of problems
svn path=/branches/work/kde4/playground/graphics/okular/; revision=520829
2006-03-20 22:40:11 +00:00
Albert Astals Cid
30c2f8067d oKular goes poppler
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=520367
2006-03-19 18:03:43 +00:00
Piotr Szymanski
c7da917e38 - add minor checks for validity of requests
- fix ghostscript backend (works now)

svn path=/trunk/playground/graphics/oKular/kpdf/; revision=509917
2006-02-15 21:02:13 +00:00