Pino Toscano
0f4cd40e26
slotRotation -> setRotation
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660207
2007-05-01 23:09:45 +00:00
Pino Toscano
dc4acc7b83
KLibrary::globalLibrary -> KLibrary::library
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660035
2007-05-01 11:22:22 +00:00
Pino Toscano
13d14942e6
first step of a KPDF -> okular conversion: copy the data file for the document to be opened to the new place
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656648
2007-04-21 23:07:44 +00:00
Pino Toscano
7e3b7236fb
fix sillyness happened when renaming ;(
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656251
2007-04-20 19:32:09 +00:00
Pino Toscano
9134ad4669
make the Document access to the private class of Generator, so we can get rid of the public setDocument
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656222
2007-04-20 17:26:04 +00:00
Pino Toscano
0e12746a92
Link -> Action renaming.
...
TextDocumentConverter::addLink -> addAction
Document::processLink -> processAction
svn path=/trunk/KDE/kdegraphics/okular/; revision=656145
2007-04-20 12:49:17 +00:00
Pino Toscano
5f21b15d99
Link -> Action renaming.
...
Step #2 : Link -> Action for the action hierarchy, and for the ObjectRect type.
svn path=/trunk/KDE/kdegraphics/okular/; revision=656140
2007-04-20 12:37:12 +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
Albert Astals Cid
0d47b62715
krazy include order issues
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
2007-04-19 18:30:20 +00:00
Pino Toscano
3f84c8ccad
move modifyAnnotation to the private class
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655132
2007-04-17 19:55:18 +00:00
Pino Toscano
acd19bc8f7
move the Page serialization functions to the private class, and make Document access to them
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=653988
2007-04-14 19:58:17 +00:00
Pino Toscano
efb6a5bcc6
rename Document::Private to DocumentPrivate
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=653987
2007-04-14 19:44:07 +00:00
Pino Toscano
ff25e151c5
new kdelibs API
...
svn path=/trunk/playground/graphics/okular/; revision=649300
2007-04-02 13:50:40 +00:00
Albert Astals Cid
5365f79d6d
fordwardport r648173 kpdf/branches/KDE/3.5/kdegraphics/kpdf/ (4 files in 3 dirs):
...
Give KMessageBoxes a parent widget.
DVI plugin is missing 4 messageboxes, some work has to be done to get them know the document() so they can call widget()
svn path=/trunk/playground/graphics/okular/; revision=648175
2007-03-30 17:46:50 +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
49c2a80585
keep the name of the current generator, and make it possible to load the custom translation of the backend
...
svn path=/trunk/playground/graphics/okular/; revision=641598
2007-03-11 22:35:14 +00:00
Pino Toscano
1bfc805a3e
it does not make much sense to check for a serie of permissions at the same time, so just check one permission at a time
...
svn path=/trunk/playground/graphics/okular/; revision=641341
2007-03-10 23:59:11 +00:00
Pino Toscano
1316811082
Cache the export formats, so we can know better if the text/plain formst is supported by the backend (and act accordingly).
...
svn path=/trunk/playground/graphics/okular/; revision=641302
2007-03-10 20:51:50 +00:00
Pino Toscano
bc8036dc62
they are constant methods, so let them be 'const'
...
svn path=/trunk/playground/graphics/okular/; revision=641248
2007-03-10 17:25:14 +00:00
Pino Toscano
6d16cfd1f6
krazy issues
...
svn path=/trunk/playground/graphics/okular/; revision=641195
2007-03-10 13:51:47 +00:00
Pino Toscano
1ac4578301
init the debug area number
...
svn path=/trunk/playground/graphics/okular/; revision=641179
2007-03-10 11:52:12 +00:00
Brad Hards
7f373a206a
Minor cleanups - stray whitespace, use the debug area
...
for kDebug(), don't use kWarning() for general debugging.
svn path=/trunk/playground/graphics/okular/; revision=641120
2007-03-10 05:38:23 +00:00
Pino Toscano
fd7434c95a
Add support for custom generator about data (and potentially for custom configuration).
...
svn path=/trunk/playground/graphics/okular/; revision=640348
2007-03-07 18:15:00 +00:00
Tobias Koenig
1a0cd8acbd
SVN_SILENT help debugging
...
svn path=/trunk/playground/graphics/okular/; revision=637697
2007-02-27 12:56:16 +00:00
Pino Toscano
7e4b9d2170
a small copy&paste error that broke the Google-any search
...
svn path=/trunk/playground/graphics/okular/; revision=632854
2007-02-12 14:19:31 +00:00
Pino Toscano
1d27a90fd3
a slightly better usage of the Qt containers, saving also some lookups when using the QMap's
...
svn path=/trunk/playground/graphics/okular/; revision=632853
2007-02-12 14:15:51 +00:00
Pino Toscano
e9bcc53bc1
a pair of "cleanups" when deleting a Document
...
svn path=/trunk/playground/graphics/okular/; revision=630505
2007-02-05 15:54:19 +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
Albert Astals Cid
1587b9605a
unnecessary but fun small optimizations, basically avoid unnecessary detach() calls by ensuring the const method is called
...
also remove a double search on a qmap
svn path=/trunk/playground/graphics/okular/; revision=629869
2007-02-03 23:09:40 +00:00
Tobias Koenig
0847edc4b7
Add a second parameter to requestTextPage/generateTextPage where you can
...
specify whether the request should be synchronous or asynchronous
svn path=/trunk/playground/graphics/okular/; revision=628893
2007-01-31 21:10:00 +00:00
Pino Toscano
6068c76df6
Merge the new functions of ThreadedGenerator into the base Generator: this means that there's again only a single base Generator that can provide the multithreading for the generation of contents, just pixmaps for now.
...
svn path=/trunk/playground/graphics/okular/; revision=628853
2007-01-31 18:31:19 +00:00
Pino Toscano
63cc92be1c
isolate the generator unloading code
...
svn path=/trunk/playground/graphics/okular/; revision=628576
2007-01-30 12:43:43 +00:00
Pino Toscano
23d666cf7f
move the DRM skip checks to the Document
...
svn path=/trunk/playground/graphics/okular/; revision=628208
2007-01-29 14:28:58 +00:00
Tobias Koenig
baf1fb2870
Several changes:
...
- renamed signalRequestDone to signalPixmapRequestDone to allow a future signalTextPageRequestDone
- added error/warning/notice signals to TextDocumentConverter and add meaningful error messages
to ooo and fictionbook generator
- code cleanup in chm generator
- print improvements and error notification in kimgio generator
svn path=/trunk/playground/graphics/okular/; revision=628124
2007-01-29 08:17:45 +00:00
Pino Toscano
10a6e3943e
SVN_SILENT small #include cleanup
...
svn path=/trunk/playground/graphics/okular/; revision=627931
2007-01-28 16:47:13 +00:00
Pino Toscano
e0cb30ffbf
Ok, now really load the generators that are supposed to have a setting widget when we want to configure them.
...
svn path=/trunk/playground/graphics/okular/; revision=627921
2007-01-28 16:10:12 +00:00
Pino Toscano
d6e7010942
Refactor a bit the way we load the generator libraries: hide the hash with the Generator completely into the Document, so the Document have the complete control over them.
...
Add fillConfigDialog() and supportedMimeTypes() to the Document, so the Part can get all the info it needs with no need to own the generator structure.
This also loads all the generators when asking for their config widget, but that can be improved easily now; furthermore, all the generators used to load documents are kept.
svn path=/trunk/playground/graphics/okular/; revision=627909
2007-01-28 15:46:10 +00:00
Tobias Koenig
6541b015e4
Make failing to open a document a bit nicer ;)
...
svn path=/trunk/playground/graphics/okular/; revision=627477
2007-01-26 18:35:28 +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
Pino Toscano
7d15f12fe0
- don't reset the pixmap memory descriptors when rotating, as the pixmaps are rotated thus the memory is preserved
...
- no need to notify about clearing annotations when changing page size
svn path=/trunk/playground/graphics/okular/; revision=624743
2007-01-17 23:06:40 +00:00
Pino Toscano
4f6666d509
also the page size is a feature, so thread it as such (and remove supportsPageSizes())
...
svn path=/trunk/playground/graphics/okular/; revision=624686
2007-01-17 18:02:53 +00:00
Tobias Koenig
5069b62a80
Make PixmapRequest::swap() public but mark it for internal usage.
...
svn path=/trunk/playground/graphics/okular/; revision=624665
2007-01-17 16:50:54 +00:00
Pino Toscano
e0e8803092
A bit ugly hack to make it compile better.
...
BUG: 140189
Tobias, any better solution than the previous situation?
CCMAIL: tokoe@kde.org
svn path=/trunk/playground/graphics/okular/; revision=624631
2007-01-17 14:20:00 +00:00
Pino Toscano
135a18b407
get rid of supportsSearching() by using a proper feature
...
svn path=/trunk/playground/graphics/okular/; revision=624587
2007-01-17 11:58:20 +00:00
Pino Toscano
8a7c2ad654
As requested by our usability expert Florian, add a Bookmarks menu with the bookmarks in the current document, if any.
...
svn path=/trunk/playground/graphics/okular/; revision=622995
2007-01-13 17:28:54 +00:00
Pino Toscano
afc18f9d97
Re-add the possibility to toggle a page bookmark quickly (ie with the popup menu).
...
svn path=/trunk/playground/graphics/okular/; revision=622945
2007-01-13 14:45:51 +00:00
Pino Toscano
91b7675c14
configurationWidget() is too generic -> rename to printConfigurationWidget()
...
svn path=/trunk/playground/graphics/okular/; revision=622782
2007-01-12 23:48:29 +00:00
Pino Toscano
24ec1e37c5
Add the ability to read from standard input, eg
...
$ command_that_produce_a_document | okular -
Expand a but the Generator API so a generator can directly read from the raw data read from stdin. Generators that can not read from raw data will open the temporary file with the saved data.
svn path=/trunk/playground/graphics/okular/; revision=622774
2007-01-12 22:49:14 +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
Pino Toscano
4b922367e2
Use a proper enum to deal with orientation/rotation all around okular.
...
svn path=/trunk/playground/graphics/okular/; revision=620312
2007-01-05 17:09:47 +00:00