Fabio D'Urso
86c92ffec2
Fixes against causes of annotation data loss + Improved GUI message logic
...
1) If the user had previously annotated the document with an old okular
version and the document contains existing annotations and no /Encrypt
(ie the case where annotation changes are no longer saved locally), make
Document::saveDocumentInfo write the original unmodified local
annotations back to XML, so that it seems that the original file was not
changed. If the user makes annotation changes, code from previous
patches already asks him to save them to a different document on close.
2) Ask "Save changes?" if the user has modified annotations in a .okular
archive.
BUG: 300197
3) Turned a "sorry" message in a "information" (with dontshowthisagain),
because now we also have the "Save changes?" prompt to inform the user.
4) Suppressed all annotation-related message boxes on document opening
14 years ago
Fabio D'Urso
6c296b916b
Use UUIDs intead of a (broken) counter to generate annotations' unique names
...
The previous counter-based approach didn't take into account existing names used
by external annotations and names used in other pages.
Instead of creating a document-global table of used names, I used random UUIDs
as a source of unique names.
14 years ago
Fabio D'Urso
249bea5985
Re-add restored annotations via Document so that AnnotationProxy gets notified
...
Previously, restored annotations followed a shorter path that bypassed AnnotationProxy
14 years ago
Fabio D'Urso
ec9f068d77
Added AnnotationProxy to SaveInterface
...
Based on Pino Toscano's earlier work
14 years ago
Fabio D'Urso
07c57bb2ab
Dead code removed (PagePrivate::modifyAnnotation)
...
The first if ("modified already") is always taken
14 years ago
Albert Astals Cid
9d805df013
Double click selects words
...
BUGS: 187347
FIXED-IN: 4.9,0
14 years ago
Jiri Baum
412e3e739e
table selection tool - semi-automatic dividers
...
BUGS: 283440
REVIEW: 102788
15 years ago
Albert Astals Cid
d41f230123
Move correctTextOrder to TextPagePrivate
15 years ago
Mohammad Mahfuzur Rahman Mamun
dca4ee559c
Another Code Refactoring done
15 years ago
Mohammad Mahfuzur Rahman Mamun
1b8e1fc436
all files other than textpage.cpp has been changed necessarily
15 years ago
Mohammad Mahfuzur Rahman Mamun
3214307ed9
unnecessary changes removed from area.h and cpp textpage.h textpage_p.h
15 years ago
Mohammad Mahfuzur Rahman Mamun
929e4b6a0e
Removed some double selection Problem
15 years ago
Mohammad Mahfuzur Rahman Mamun
a2be8384c5
A little change for crash if there is no textPage but, yet correctTextOrder() is called
15 years ago
Mohammad Mahfuzur Rahman Mamun
4c4f6c1c7c
text selection code moved to Page::setTextPage from Document::requestTextPage
15 years ago
Pino Toscano
40d20ca58d
in each page, add a pointer to the owner document
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1217914
15 years ago
Albert Astals Cid
8f045d06a7
add a text() function that returns characters not containing any pixel inside the given area but the center pixel of the char rectangle
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1048193
17 years ago
Pino Toscano
6d0241e5d2
add functions to get the nearest object rect to a point in a page, and return its distance, and the accessor functions for object rects
...
based on an patch by Luigi Toscano, thanks!
CCMAIL: luigi.toscano@tiscali.it
svn path=/trunk/KDE/kdegraphics/okular/; revision=943099
17 years ago
Pino Toscano
a5252a9115
add flags to selectively choose the page parts to serialize
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=884438
18 years ago
Laurent Montel
c2fc9836e8
Fix iterator
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=882957
18 years ago
Pino Toscano
18f486c2c1
add the possibility to store an useful bounding box of a page, and for generators to notify the document (and its observers) on its change
...
original patch by kde2eran@tromer.org, thanks!
CCMAIL: kde2eran@tromer.org
svn path=/trunk/KDE/kdegraphics/okular/; revision=809467
18 years ago
Pino Toscano
1f43811f61
redirect all the debug output of core to the debug area
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=763941
18 years ago
Pino Toscano
5e0c1a1671
hm, we always need to 'transform' all the annotations, so the internal data are (re)set correctly
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=722543
19 years ago
Pino Toscano
b321f9ea21
when adding a rotated annotation to a rotated page, rotate its base coordinates to 0-degrees, then rotate again all its stuff correctly
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=722456
19 years ago
Pino Toscano
99a99a1590
instead of just keeping the transformation matrix, add the pointer to the owning page in a text page, so a text page can know more information, and with no need to manually be updated by the page
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708443
19 years ago
Pino Toscano
bf9af4433d
move deleteTextSelections() to the private class
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708155
19 years ago
Pino Toscano
d81d4aedd9
small api fixup ('const QContainer' it's pointless as return value)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708147
19 years ago
Pino Toscano
351f66a9b4
remove TextPage::transform() from the public API, and make the Page change the TextPage transformation easily
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708085
19 years ago
Pino Toscano
d66f6b8f4a
better check before starting searching on a NULL text page...
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708081
19 years ago
Pino Toscano
9a1b575ac0
properly rotate/transform the text page and the highlight areas
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708054
19 years ago
Pino Toscano
b480fc0670
do nothing if we have no form fields for a page, but form saved data for it are there anyway
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=705035
19 years ago
Pino Toscano
35a51a9d06
stupid me, don't increment the end() iterator ;(
...
also, check that the index in the local save file refers to an existent form field
svn path=/trunk/KDE/kdegraphics/okular/; revision=705003
19 years ago
Albert Astals Cid
41c25cb208
Back from holiday, let's do some comitting :-)
...
* Update some copyright years and mail addresses
* Search does not block the GUI anymore YUHUUUUU
Well, it it does but it's almost unperceptible, that means the searching methods of Document no longer return a bool but a void and the Document::searchFinished signal is used to know if something was found, nothing was found or the user pressed the cancel button !YES! one can cancel search now :-)
* TextPage no longer holds the area and the current transformed area, it took TOO MUCH memory, now we transform the area each time, it's much more CPU intensive but i could not measure a time loss while searching big documents and i could measure HUNDREDS of MB of usage less.
* MICRO optimization: Change some code to not detach some containers
* I still don't have ADSL so this is something like a "blind" commit, Pino will check it compiles against current KDE, not against what's on my computers
svn path=/trunk/KDE/kdegraphics/okular/; revision=699701
19 years ago
Pino Toscano
5150419e81
adapt the debug stuff to the new kdebug way:
...
- make the output looking more or less like before (using nospace() or removing the spaces)
- remove endl and '\n' at the end of debug outputs
- fixing the QDebug operator<<'s around
- isolate the debug area number of the core into a separate header, and apply it instead of the numbers found in textpage.cpp
svn path=/trunk/KDE/kdegraphics/okular/; revision=694667
19 years ago
Pino Toscano
ba765a3b69
give the right parent page to the annotations also when restoring them from xml
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=689162
19 years ago
Pino Toscano
b41dcfeddc
- store a pointer of the owning page in each annotation
...
- preliminary API for translating an annotation
svn path=/trunk/KDE/kdegraphics/okular/; revision=689133
19 years ago
Albert Astals Cid
2437917e47
Do not start numberOfPagesWithPixmaps threads because that brings the system down, just start what threadweaver thinks its best
...
Probably still have to tell the weaver how to optimize for memory consumption but it's an improvement anyways
svn path=/trunk/KDE/kdegraphics/okular/; revision=683383
19 years ago
Albert Astals Cid
723c3a482a
move rotationjob.h to rotationjob_p.h
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=683286
19 years ago
Pino Toscano
3ce672f586
Albert fixed poppler, now I can activate the form saving
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=683267
19 years ago
Pino Toscano
fa6b376626
Add the possibility to remember the contents of form fields when closing a document, and to restore them when reopening the document.
...
For now it's disabled, as I want to investigate a bit more with poppler wrt text fields, and to verify if that is an acceptable behaviour.
svn path=/trunk/KDE/kdegraphics/okular/; revision=683212
19 years ago
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
19 years ago
Pino Toscano
48d0f95745
delete the previous action when setting a new one
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=661489
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
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
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
5deae607aa
do time profiling only when needed
...
svn path=/trunk/playground/graphics/okular/; revision=648103
19 years ago
Pino Toscano
95bb597a85
hide the text selection inside the private class of Page
...
svn path=/trunk/playground/graphics/okular/; revision=648095
19 years ago