Pino Toscano
6256757e2b
make the Page really take ownership of the text selection set to it, thus deleting it as the HighlightAreaRect "clones" the passed rect
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=673084
2007-06-08 23:06:04 +00:00
Laurent Montel
e31f9ada54
Remove not necessary "class classname;"
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=671220
2007-06-04 07:44:15 +00:00
Albert Astals Cid
9f448a49df
small dox fixes
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=668692
2007-05-27 09:59:52 +00:00
Albert Astals Cid
82fe777cc0
param changed name
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=668688
2007-05-27 09:53:45 +00:00
Pino Toscano
3addf5ec7d
const& for removePageAnnotations()
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=668564
2007-05-26 19:25:18 +00:00
Pino Toscano
5cbdaa6dc7
some checks more, and small fixes
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=668054
2007-05-24 22:52:29 +00:00
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
2007-05-24 09:05:34 +00:00
Script Kiddy
9984a73c33
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=667190
2007-05-22 05:16:03 +00:00
Pino Toscano
de45467966
properly free the resources of a document when calling closeDocument(), not in the destructor of the generator or in loadDocument()
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=667128
2007-05-21 22:26:37 +00:00
Pino Toscano
95912893f0
remove compatibility with kpdf pre-kde 3.4
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=667126
2007-05-21 22:07:28 +00:00
Pino Toscano
92204b4bb7
fix giveAbsolutePath() to properly recognize absolute paths
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=667073
2007-05-21 19:51:30 +00:00
Pino Toscano
fba7c1874d
give the #<page> title for a new bookmark instead of #<bookmark count>
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=666142
2007-05-18 22:07:33 +00:00
Pino Toscano
0d320f0b78
SVN_SILENT
...
use the kde debug system in a kde library
svn path=/trunk/KDE/kdegraphics/okular/; revision=665724
2007-05-17 18:27:25 +00:00
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
2007-05-17 16:52:44 +00:00
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
2007-05-13 12:54:46 +00:00
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
2007-05-12 21:40:38 +00:00
Tobias Koenig
bbbbd8eda9
Fixed the 'select one line twice' bug.
...
It's always helpfull to talk to a koffice developer, thanks to Thomas :)
svn path=/trunk/KDE/kdegraphics/okular/; revision=663744
2007-05-12 08:17:02 +00:00
Script Kiddy
1d727e66f6
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=662419
2007-05-08 05:06:32 +00:00
Pino Toscano
48d0f95745
delete the previous action when setting a new one
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=661489
2007-05-05 18:22:26 +00:00
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
2007-05-05 18:07:34 +00:00
Pino Toscano
1eb435cddb
remove the kdebug.h inclusion in area.h
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=661410
2007-05-05 13:50:44 +00:00
Pino Toscano
94355bce65
move the transform() hierarchy within the private class; allow AnnotationObjectRect to use the trasform() stuff
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=661202
2007-05-04 20:45:45 +00:00
Pino Toscano
bfe21b46f8
refactor the Annotation hierarchy to use a common d_ptr like Qt; move the AnnotationPrivate definition in an own header (it will be useful later...)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=661195
2007-05-04 20:24:12 +00:00
Dirk Mueller
43a23a2de6
the usual "daily unbreak compilation"
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=661101
2007-05-04 15:41:04 +00:00
Pino Toscano
06411f9805
Add links and annotations when loading the pages, not during the pixmap generations.
...
Tobias: is the calculation of the annotations bounding rect correct?
CCMAIL: tokoe@kde.org
svn path=/trunk/KDE/kdegraphics/okular/; revision=660831
2007-05-03 21:45:14 +00:00
Pino Toscano
6aaefb7f68
"pdf"/"pdf file" -> "document"
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660526
2007-05-02 23:06:38 +00:00
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
2007-05-02 22:56:51 +00:00
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
2007-05-02 22:50:27 +00:00
Pino Toscano
25b6b590b9
refactor the hierarchy of the provate classes to be much like Qt-ish (common d_ptr, d_func(), etc)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660511
2007-05-02 21:59:44 +00:00
Pino Toscano
892df34b19
any negative page number represents an invalid viewport
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660436
2007-05-02 18:21:15 +00:00
Pino Toscano
e79cd474d9
move the Page rotating and changing page functions to the private class
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660214
2007-05-01 23:36:57 +00:00
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
2007-05-01 23:21:29 +00:00
Pino Toscano
0f4cd40e26
slotRotation -> setRotation
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660207
2007-05-01 23:09:45 +00:00
Pino Toscano
6d99240256
hopefully port to the new Phonon API
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660038
2007-05-01 11:25:32 +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
Stephan Binner
d4940f5a56
fix compilation
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=659939
2007-05-01 05:28:28 +00:00
Script Kiddy
46781db872
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=658969
2007-04-29 05:00:55 +00:00
Pino Toscano
8a216058f3
clean the headers
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656768
2007-04-22 10:39:31 +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
2e024d6d96
generalize a bit more the way for constructing "standard" ExportFormat's
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656426
2007-04-21 11:09:41 +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
fc97f3b23b
on demand creation of the auxiliary threads
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656230
2007-04-20 17:59:12 +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
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
Pino Toscano
656736c1af
Link -> Action renaming.
...
Step #4a: more apidox fixes.
svn path=/trunk/KDE/kdegraphics/okular/; revision=656149
2007-04-20 13:02:45 +00:00
Pino Toscano
444b1a3f84
SVN_SILENT unused forward declaration
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656147
2007-04-20 12:59:23 +00:00
Pino Toscano
8a84833504
Link -> Action renaming.
...
Step #4 : apidox fixes.
svn path=/trunk/KDE/kdegraphics/okular/; revision=656146
2007-04-20 12:58:15 +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
40a99f75ed
make PageSize implicitely shared
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655185
2007-04-17 21:20:35 +00:00
Pino Toscano
e61f5d393a
SVN_SILENT forgot this
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655136
2007-04-17 20:01:42 +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
Albert Astals Cid
b0339a4e40
fix some easy krazy issues
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=654317
2007-04-15 19:11:10 +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
df5b2c3329
make ExportFormat implicitely shared, especially because it's mostly a "read-only" class
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=653196
2007-04-12 20:43:37 +00:00
Script Kiddy
2e5b353482
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=652113
2007-04-10 05:01:48 +00:00
Script Kiddy
e54cfd797f
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=651276
2007-04-07 04:57:03 +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
fda81c6a58
SVN_SILENT unused #include
...
svn path=/trunk/playground/graphics/okular/; revision=648134
2007-03-30 15:43:32 +00:00
Pino Toscano
0861c3286f
small touches to the backend choosing dialog:
...
- improves the text, getting rid of the wordwrap for the label
- delete the widget class when no more needed
svn path=/trunk/playground/graphics/okular/; revision=648131
2007-03-30 15:35:01 +00:00
Pino Toscano
5deae607aa
do time profiling only when needed
...
svn path=/trunk/playground/graphics/okular/; revision=648103
2007-03-30 14:27:22 +00:00
Pino Toscano
95bb597a85
hide the text selection inside the private class of Page
...
svn path=/trunk/playground/graphics/okular/; revision=648095
2007-03-30 14:08:20 +00:00
Pino Toscano
229f3cf1de
add a private function for the nearest Page pixmap, for the PagePainter usage;
...
this way, the pixmap structure can be finally hidden in the private class
svn path=/trunk/playground/graphics/okular/; revision=646502
2007-03-25 22:36:41 +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
a67410f74f
move the private class of Page in an own private header
...
svn path=/trunk/playground/graphics/okular/; revision=645963
2007-03-24 00:18:54 +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
f18845576b
add the permission to fill forms
...
svn path=/trunk/playground/graphics/okular/; revision=643462
2007-03-17 14:14:55 +00:00
Pino Toscano
1117200950
constness for document()
...
svn path=/trunk/playground/graphics/okular/; revision=643431
2007-03-17 12:11:41 +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
6ea5badeab
don't try to start a text extraction thread if the generator does not extract text
...
svn path=/trunk/playground/graphics/okular/; revision=641458
2007-03-11 12:05:48 +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
2ef46f8d90
simplify a bit the export action creation code
...
svn path=/trunk/playground/graphics/okular/; revision=641313
2007-03-10 21:32:09 +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
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
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
Dirk Mueller
e24f08a75f
remove misplaced ';'
...
svn path=/trunk/playground/graphics/okular/; revision=631926
2007-02-09 14:53:26 +00:00
Pino Toscano
47dad5cac7
compile with the latest kdelibs
...
svn path=/trunk/playground/graphics/okular/; revision=630700
2007-02-06 00:53:24 +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
355645922b
Make the playback of repeating sounds working (hopefully).
...
Add a way to stop all the playbacks of the AudioPlayer.
svn path=/trunk/playground/graphics/okular/; revision=630500
2007-02-05 15:26:05 +00:00
Pino Toscano
ca2a0e194d
SVN_SILENT spell check
...
svn path=/trunk/playground/graphics/okular/; revision=630468
2007-02-05 13:50:36 +00:00
Pino Toscano
770079b736
SVN_SILENT forgot this one
...
svn path=/trunk/playground/graphics/okular/; revision=630429
2007-02-05 12:05:20 +00:00
Pino Toscano
1752a95053
SVN_SILENT PlayInfo -> PlayData
...
svn path=/trunk/playground/graphics/okular/; revision=630428
2007-02-05 12:02:53 +00:00
Pino Toscano
ad1d23cc26
Honor the 'mix' flag in sounds, stopping the playing sounds if necessary.
...
svn path=/trunk/playground/graphics/okular/; revision=630424
2007-02-05 11:50:07 +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
Pino Toscano
37b5d0f3cc
handy method
...
svn path=/trunk/playground/graphics/okular/; revision=629174
2007-02-01 18:31:45 +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
ef55f74682
lazy creation of the generation threads within Generator, so generators that don't make use of the builtin thread don't create a pair of unused threads
...
svn path=/trunk/playground/graphics/okular/; revision=628860
2007-01-31 18:50:31 +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
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
dd6ddee116
tokoe does not know that Page::text() and TextPage::text() have different functions ;)
...
fixing a crash when getting the whole text of a page
svn path=/trunk/playground/graphics/okular/; revision=628802
2007-01-31 14:29:28 +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
Albert Astals Cid
4586139282
Adapt to kdelibs changes
...
svn path=/trunk/playground/graphics/okular/; revision=628342
2007-01-29 20:18:39 +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
e59275b54a
don't look twice, iterator is better
...
svn path=/trunk/playground/graphics/okular/; revision=627946
2007-01-28 17:28:28 +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
Pino Toscano
55dfb87f3f
simplify a bit the Feature system: move it to the base Generator class, and add a protected method to switch a feature on and off easily - no more need to copy&paste hasFeature() anymore
...
svn path=/trunk/playground/graphics/okular/; revision=627450
2007-01-26 16:35:30 +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
d94f0e507e
Add support for threaded extraction of text pages, now we just have to
...
adapt the generators and the document class, which is 95% of the work ;)
svn path=/trunk/playground/graphics/okular/; revision=626843
2007-01-24 18:27:54 +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
9cda7888d9
small api fix
...
svn path=/trunk/playground/graphics/okular/; revision=625715
2007-01-20 22:04:10 +00:00
Pino Toscano
75946e42e3
DOX: improvements and fixes
...
SVN_SILENT
svn path=/trunk/playground/graphics/okular/; revision=625599
2007-01-20 14:51:43 +00:00
Pino Toscano
b163e04115
Support for labelling the pages, and for displaying the page label (if any) in the table of contents side pane.
...
svn path=/trunk/playground/graphics/okular/; revision=625312
2007-01-19 23:30:32 +00:00
Tobias Koenig
460f972d19
Arrgh, forgot to commit this last time :/
...
svn path=/trunk/playground/graphics/okular/; revision=625249
2007-01-19 16:33:58 +00:00
Pino Toscano
e71a608054
Use the form "<page> - <name>" for the items in the Bookmarks menu.
...
svn path=/trunk/playground/graphics/okular/; revision=625075
2007-01-18 21:20:08 +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
André Wöbbeking
c06cbc334d
-pedantic
...
svn path=/trunk/playground/graphics/okular/; revision=624728
2007-01-17 21:30:43 +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
468a0da775
bye bye canGenerateTextPage(), unused nowadays
...
svn path=/trunk/playground/graphics/okular/; revision=624579
2007-01-17 11:34:47 +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
c1dc76485a
DOX: slightly improve apidox generation
...
SVN_SILENT
svn path=/trunk/playground/graphics/okular/; revision=623061
2007-01-13 22:55:00 +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
e3992fb642
move the KBookmarkOwner implementation into the d-ptr
...
svn path=/trunk/playground/graphics/okular/; revision=622959
2007-01-13 15:26:05 +00:00
Pino Toscano
5c3b2fc75d
SVN_SILENT useless include
...
svn path=/trunk/playground/graphics/okular/; revision=622950
2007-01-13 14:49:25 +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
1b49db09d5
be sure to delete the old pixmap before setting a new one
...
svn path=/trunk/playground/graphics/okular/; revision=621863
2007-01-09 23:37:26 +00:00
Pino Toscano
2538e1fce0
remove old enum (belongs to the external -removed- notification system)
...
svn path=/trunk/playground/graphics/okular/; revision=620790
2007-01-07 11:46:33 +00:00
Pino Toscano
5636ac551f
don't leak memory when loading page actions from poppler, and sound objects
...
svn path=/trunk/playground/graphics/okular/; revision=620533
2007-01-06 14:25:33 +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
Tobias Koenig
7f9581f455
Add missing Q_DISABLE_COPY
...
svn path=/trunk/playground/graphics/okular/; revision=620303
2007-01-05 16:40:07 +00:00
Tobias Koenig
42614623e8
Rotate the highlights correctly
...
svn path=/trunk/playground/graphics/okular/; revision=620273
2007-01-05 15:16:36 +00:00
Pino Toscano
8fbebeb737
no need to pass a reference to an enum value
...
svn path=/trunk/playground/graphics/okular/; revision=620270
2007-01-05 15:00:12 +00:00
Tobias Koenig
7cff5de9ce
Coding style cleanup
...
svn path=/trunk/playground/graphics/okular/; revision=620258
2007-01-05 14:40:38 +00:00
Pino Toscano
64769a62ce
let the Document forward the BookmarkManager signal
...
svn path=/trunk/playground/graphics/okular/; revision=620158
2007-01-05 12:51:58 +00:00
Pino Toscano
3f8d978f68
allow only the Document to construct a BookmarkManager
...
svn path=/trunk/playground/graphics/okular/; revision=620153
2007-01-05 12:44:35 +00:00
Pino Toscano
81694d6a83
donìt leak in the google-like searches
...
svn path=/trunk/playground/graphics/okular/; revision=619924
2007-01-04 18:59:31 +00:00
Pino Toscano
9f8ea8b546
don't leak when doing AllDocument/FindNext searches
...
svn path=/trunk/playground/graphics/okular/; revision=619897
2007-01-04 18:13:00 +00:00
Tobias Koenig
ac792e5c9c
Fixed krazy issues
...
svn path=/trunk/playground/graphics/okular/; revision=619843
2007-01-04 15:22:28 +00:00
Pino Toscano
4aa85cdb49
One single char remove to create correctly the queue of pixmap requests: new asynchronous requests goes as last one in the group of other with the same priority.
...
Thus, if an observer requests eg pixmap for pages 2 and 3, now they are generated in the correct order the observer specified, and not in the reversed one.
Then, revert part of r619673, as the order is fixed now.
svn path=/trunk/playground/graphics/okular/; revision=619810
2007-01-04 14:28:54 +00:00
Pino Toscano
bd14706edb
leak a bit less memory
...
svn path=/trunk/playground/graphics/okular/; revision=619558
2007-01-03 17:57:03 +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
Pino Toscano
ce3ff8fb78
the url can be any kind, not only browseable http
...
svn path=/trunk/playground/graphics/okular/; revision=619426
2007-01-03 11:58:36 +00:00
Pino Toscano
415b63a8b8
a semicolon more
...
svn path=/trunk/playground/graphics/okular/; revision=619208
2007-01-02 23:57:21 +00:00
Tobias Koenig
86a1fd3b69
Big cleanup of Document API and documentation:
...
* add full API docs
* renamed getMetaData -> metaData
* removed supportsRotation in Document and Generator
* moved Permission and SearchDirection enums into separated header core/global.h
svn path=/trunk/playground/graphics/okular/; revision=619183
2007-01-02 22:37:55 +00:00
Tobias Koenig
77efd7dcb1
Cleaned up the Document API, moved all private members/methods/slots into
...
the d class.
svn path=/trunk/playground/graphics/okular/; revision=619100
2007-01-02 19:05:49 +00:00
Pino Toscano
328958171d
use the right include
...
svn path=/trunk/playground/graphics/okular/; revision=619077
2007-01-02 17:50:24 +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
472f4028c2
Add API documentations
...
svn path=/trunk/playground/graphics/okular/; revision=619073
2007-01-02 17:25:26 +00:00
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