Pino Toscano
964424d62f
stop gracefully the font extraction thread when closing a document or the properties dialog; make the thread deleting itself when finished
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=685437
19 years ago
Pino Toscano
8a31e6f3f0
Allow the user to change the visible part(s) of the document by dragging the visible areas in the thumbnails, and to change the zoom of the document by Ctrl+wheel on them.
...
Patch by Diego R. Brogna, thanks a lot!
BUG: 135521
svn path=/trunk/KDE/kdegraphics/okular/; revision=685273
19 years ago
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
19 years ago
Pino Toscano
e9b9d78faa
acutally save the document information *before* closing the document, otherwise we run into troubles if we access to anything the generator provided
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=683143
19 years ago
Chusslove Illich
968760cb6c
Auto-conversion to new KCmdLineArgs/KAboutData/KComponentData API (trunk/KDE). Watch for the few remaining QString to QByteArray assignments that will not compile without extra specification (typically needs .toLocal8Bit() or .toUtf8()).
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=682260
19 years ago
Pino Toscano
3addf5ec7d
const& for removePageAnnotations()
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=668564
19 years ago
Pino Toscano
5cbdaa6dc7
some checks more, and small fixes
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=668054
19 years ago
Laurent Montel
1a6db045cd
Don't crash when we don't load file
...
(generator is null)
(It will better to disable action until we load generator I think)
svn path=/trunk/KDE/kdegraphics/okular/; revision=667872
19 years ago
Pino Toscano
95912893f0
remove compatibility with kpdf pre-kde 3.4
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=667126
19 years ago
Pino Toscano
92204b4bb7
fix giveAbsolutePath() to properly recognize absolute paths
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=667073
19 years ago
Pino Toscano
0d320f0b78
SVN_SILENT
...
use the kde debug system in a kde library
svn path=/trunk/KDE/kdegraphics/okular/; revision=665724
19 years ago
Pino Toscano
c4ea50c99b
Forwardport SVN commit 665684 by pino:
...
When getting the result of a pixmap request for an observer that went away in the meanwhile, don't create a memory entry for the pixmap, as we assume the allocated pixmaps fifo holds only descriptors for valid observers.
(fixed KPDF #143951 )
svn path=/trunk/KDE/kdegraphics/okular/; revision=665685
19 years ago
Tobias Koenig
06e831a3c9
Add a new method DocumentInfo::set( enum, QString ) to get more
...
consistency in the documentation info.
svn path=/trunk/KDE/kdegraphics/okular/; revision=664233
19 years ago
Pino Toscano
8f03f0d0d7
try to lock the pixmap requests queue with a mutex, hoping to solve some of our problems
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=663991
19 years ago
Pino Toscano
325b8711ea
move the setTextSelections, setHighlight and deleteHighlights to the private class of Page, as they are private for now
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=661486
19 years ago
Dirk Mueller
43a23a2de6
the usual "daily unbreak compilation"
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=661101
19 years ago
Pino Toscano
6aaefb7f68
"pdf"/"pdf file" -> "document"
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660526
19 years ago
Pino Toscano
b53ba3cd24
make widget() slightly safier, and pass it as parameter when running an url (closing a TODO item)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660524
19 years ago
Pino Toscano
106e96240c
rename (almost) every ActionFoo class to FooAction
...
exception to this is the ActionDocumentAction, renamed to DocumentAction and whose id is DocAction
svn path=/trunk/KDE/kdegraphics/okular/; revision=660523
19 years ago
Pino Toscano
892df34b19
any negative page number represents an invalid viewport
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660436
19 years ago
Pino Toscano
e79cd474d9
move the Page rotating and changing page functions to the private class
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660214
19 years ago
Pino Toscano
7cfa67ecf4
improve a bit the Document::setPageSize API -- better pass the size, and not an index
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660208
19 years ago
Pino Toscano
0f4cd40e26
slotRotation -> setRotation
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660207
19 years ago
Pino Toscano
dc4acc7b83
KLibrary::globalLibrary -> KLibrary::library
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660035
19 years ago
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
19 years ago
Pino Toscano
7e3b7236fb
fix sillyness happened when renaming ;(
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656251
19 years ago
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
19 years ago
Pino Toscano
0e12746a92
Link -> Action renaming.
...
TextDocumentConverter::addLink -> addAction
Document::processLink -> processAction
svn path=/trunk/KDE/kdegraphics/okular/; revision=656145
19 years ago
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
19 years ago
Pino Toscano
f3e484082d
Link -> Action renaming.
...
Step #1 : link.(cpp|h) -> action.(cpp|h)
svn path=/trunk/KDE/kdegraphics/okular/; revision=656123
19 years ago
Albert Astals Cid
0d47b62715
krazy include order issues
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
19 years ago
Pino Toscano
3f84c8ccad
move modifyAnnotation to the private class
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655132
19 years ago
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
19 years ago
Pino Toscano
efb6a5bcc6
rename Document::Private to DocumentPrivate
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=653987
19 years ago
Pino Toscano
ff25e151c5
new kdelibs API
...
svn path=/trunk/playground/graphics/okular/; revision=649300
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
Pino Toscano
bc8036dc62
they are constant methods, so let them be 'const'
...
svn path=/trunk/playground/graphics/okular/; revision=641248
19 years ago
Pino Toscano
6d16cfd1f6
krazy issues
...
svn path=/trunk/playground/graphics/okular/; revision=641195
19 years ago
Pino Toscano
1ac4578301
init the debug area number
...
svn path=/trunk/playground/graphics/okular/; revision=641179
19 years ago
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
19 years ago
Pino Toscano
fd7434c95a
Add support for custom generator about data (and potentially for custom configuration).
...
svn path=/trunk/playground/graphics/okular/; revision=640348
19 years ago
Tobias Koenig
1a0cd8acbd
SVN_SILENT help debugging
...
svn path=/trunk/playground/graphics/okular/; revision=637697
19 years ago
Pino Toscano
7e4b9d2170
a small copy&paste error that broke the Google-any search
...
svn path=/trunk/playground/graphics/okular/; revision=632854
19 years ago
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
19 years ago
Pino Toscano
e9bcc53bc1
a pair of "cleanups" when deleting a Document
...
svn path=/trunk/playground/graphics/okular/; revision=630505
19 years ago
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
19 years ago