Commit graph

5664 commits

Author SHA1 Message Date
Yuri Chornoivan
5fbd626834 Fix Section 4.5 according to Fabio D'Urso proposals. 2012-06-19 18:13:30 +03:00
Yuri Chornoivan
fb64471435 Add a section about bookmarks to documentation. 2012-06-19 18:02:49 +03:00
Yuri Chornoivan
afd1cd5d66 Add missing menu item to the documentation. 2012-06-19 09:28:31 +03:00
Yuri Chornoivan
4f9095879f Update Okular documentation to version 0.15. 2012-06-18 21:49:11 +03:00
Fabio D'Urso
939891c9dd Renamed Document::SaveCapability members I added ten minutes ago
Forms -> SaveFormsCapability
Annotations -> SaveAnnotationsCapability
2012-06-14 00:31:17 +02:00
Fabio D'Urso
0acab905f3 Added Fabio D'Urso in the about box credits tab 2012-06-14 00:12:16 +02:00
Fabio D'Urso
7c3c28fdf6 Fixed unclear text
Also turns a if-if sequence in a if-elseif to make more evident that
we never show both messages.
2012-06-13 23:45:56 +02:00
Fabio D'Urso
23eb083b00 Show a warning if annotations will not be saved to PDF.
The only affected generator is poppler (because it's the only one with
saving support).
Since version 0.20, Poppler can save annotations to PDF. If the user is
using an older version, this patch warns him that annotations are not
saved.
2012-06-13 22:59:55 +02:00
Script Kiddy
c13e81cccd SVN_SILENT made messages (.desktop file) 2012-06-13 10:08:23 +02:00
Script Kiddy
d41c8bd1c7 SVN_SILENT made messages (.desktop file) 2012-06-12 17:04:54 +02:00
Pino Toscano
7e8aed4376 add the svg of the annotation tool icons
as of Eugene Trounev sent them to me more than three years ago, just gz-compressing them now;
followup of b811186781

(apparently I forgot to commit them at that time)
2012-06-10 22:04:27 +02:00
Fabio D'Urso
42c4e4c5db TextAnnotation stamp: fix icon name mismatch in DOM methods with poppler 0.20.1
Fixes the situation where Poppler thinks "Note" and omits the icon
attribute, Okular sees nothing and defaults to "Comment".
2012-06-10 18:28:47 +02:00
Albert Astals Cid
07495549bb Bump versions 2012-06-07 22:49:10 +02:00
Fabio D'Urso
c5391e4643 Restore default "Note" stamp for linked text annotations
It was "Note" before d2fa4c9, but it was changed to "Comment" for
compatibility reasons. Setting it to "Note", this time in UI code,
doesn't break d2fa4c9 and restores the default icon users are used to.
2012-06-07 18:59:45 +02:00
Fabio D'Urso
5930478352 Keep original filename when creating a .okular archive from a .okular archive
This patch makes sure that the file saved in the .okular file keeps
the original filename (and, in particular, the extension) even if the
user is re-exporting a .okular archive as .okular archive. Before this
patch, the file boundled in the .okular archive would be named like the
.okular file it was exported from (eg foo.okular instead of foo.pdf).
Note: Okular had no problems in reopening it, but advanced users
unpacking the ZIP file obtained a .okular file which is actually a
native file, and not an okular archive.
2012-06-07 18:59:39 +02:00
Fabio D'Urso
dee51ee71b Disable presentation-related actions if presentation mode is not open
- Keep "Toggle drawing mode", "Erase Drawings" and "Switch blackscreen
  mode" actions disabled unless the presentation mode is open.
- Uncheck blackscreen mode on presentation exit
2012-06-07 18:59:38 +02:00
Fabio D'Urso
3a383f64fd Store and render presentation drawings at UI level instead of involving core.
This prevents spurious annotation warnings from being shown in
presentation mode.
BUG: 300938
2012-06-07 18:58:52 +02:00
Fabio D'Urso
c8bc6dabeb Fixes in presentation page switch logic
Do not assume that oldPage == m_document->viewport().pageNumber, because
it's false if we are processing a viewport change notification.
It caused presentation drawings to turn into persistent annotations,
when switching page from the main okular window.

In general, this patch also tidies up PresentationWidget::changePage a bit:
 - Removed redundant checks: they are always true
 - Removed duplicated code that performed the page opening actions:
     Previously the first slide and the other ones followed different code
     paths, both doing the same things. I unified them.

I also changed slotNextPage so that it never sets m_frameIndex = -1, because
it confuses changePage and makes it skip page closing actions.
2012-06-07 18:58:50 +02:00
Albert Astals Cid
f96839c123 Do not crash on file from bug 300477
You also need a new (as of now unreleaed) version of libepub
BUGS: 300477
FIXED-IN: 4.9.0
2012-06-06 00:01:06 +02:00
Fabio D'Urso
9a11294b12 Sort bookmarks from the same page in viewport order 2012-06-05 00:49:16 +02:00
Albert Astals Cid
07c4a16da5 Make it possible to type a page number and press enter in Print Preview
Do not close Print Preview if enter is pressed
2012-06-05 00:49:15 +02:00
Fabio D'Urso
ac695d448d Do not close the document in Shell::queryClose()
Because if we do, Shell::saveProperties will find it closed and won't
save the session correctly.

BUG: 300985
2012-06-05 00:49:03 +02:00
Fabio D'Urso
4d06efb64d Do not crash if the user attempts to draw on the presentation summary frame 2012-06-05 00:49:02 +02:00
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
2012-06-05 00:49:01 +02:00
Fabio D'Urso
a6922a4430 Don't produce unusable file if user presses "Save As" on a .okular archive
Make "Save As" behave like "Export as Document Archive" if we are
saving a .okular file.
BUG: 258475
2012-06-05 00:48:58 +02:00
Fabio D'Urso
7087f20f23 poppler gen: Removed block of old debug and TODO comments 2012-06-05 00:48:56 +02:00
Fabio D'Urso
8ce3978caa poppler gen: Show inplace text annotations' contents with poppler 0.18 2012-06-05 00:48:55 +02:00
Fabio D'Urso
d0a05bc301 poppler gen: The "Hide annotations" print option has no effect on windows. Don't show it 2012-06-05 00:48:53 +02:00
Fabio D'Urso
e130068726 Show latex button when the annotation popup window is opened
Check for latex contents after creating the MovableTitle, bacause it's in
MovableTitle ctor where the containsLatex signal is connected.
2012-06-05 00:48:52 +02:00
Fabio D'Urso
d2fa4c9bf3 TextAnnotation stamp fix
- Make "Comment" the default stamp instead of "Note" (because we used to omit
   the "icon" in the exported DOM if it was "Comment")
 - Don't omit the icon name anymore
2012-06-05 00:48:50 +02:00
Fabio D'Urso
e3f1c388de Ask "Save annotation changes?" if there are unsaved annotations that cannot be saved locally
This patch turns Okular into a ReadWritePart. Annotation editing is always
disabled if we're loaded as ReadOnlyPart, no matter the document type.

REVIEW: 105020
2012-05-23 23:43:44 +02:00
Albert Astals Cid
7d3a064e15 New ABI compatible changes in okularcore 2012-05-23 20:26:01 +02:00
Albert Astals Cid
0fc1883eb1 New pdf generator version 2012-05-23 20:21:16 +02:00
Fabio D'Urso
e3e3657788 When renaming a bookmark folder, don't assume that we are renaming the current document 2012-05-23 18:48:06 +02:00
Fabio D'Urso
04935266d2 Fix wrong text 2012-05-23 00:52:20 +02:00
Thomas Etter
ef818392cd Use the left/right arrow keys to change the page
REVIEW: 104596
2012-05-23 00:23:36 +02:00
Fabio D'Urso
6f629e3237 CMakeLists: Install saveinterface.h 2012-05-21 23:54:48 +02:00
Fabio D'Urso
b3782d82a1 Fallback behavior for documents whose generator provides native annotation editing support without saveAs support
The only affected generator is poppler. Note that:
Document has /Encrypt <=iff=> SaveInterface supportsOption(SaveChanges) is false

This patch enforces the following behavior (and warns the user the first time
he edits an annotation).

- If the document has /Encrypt, warn that "Save as" is not available, but it's
possible to export as okular archive. New annotations will be automatically
saved to XML as usual.
Note that the previous patch already made all existing annotations uneditable,
because there's no way to save them.

- If the document has no /Encrypt and there are existing external annotations,
warn that changes won't be saved automatically. The user needs to "Save as" or
changes will be lost.

- If the document has no /Encrypt and there aren't existing external
annotations, don't show any warning. New annotations will be automatically saved
to XML as usual and to file if "Save as" is pressed.
2012-05-17 23:51:00 +02:00
Fabio D'Urso
b33d71ef81 Enable edit/removal of external annotations if the generator supports it 2012-05-17 23:50:55 +02:00
Fabio D'Urso
d916c1e6cd poppler gen: Added mutex protection to PopplerAnnotationProxy 2012-05-17 23:50:52 +02:00
Fabio D'Urso
cb1968383f poppler gen: don't lie ;) We can't save changes if the document has /Encrypt 2012-05-17 23:50:47 +02:00
Fabio D'Urso
1fdc4cbc72 Only draw the bounding box of (ExternallyDrawn & BeingMoved) annotations 2012-05-17 23:50:44 +02:00
Fabio D'Urso
29db8bafbc Render ExternallyDrawn annotations in PagePainter if they are BeingMoved 2012-05-17 23:50:41 +02:00
Fabio D'Urso
157638f2f9 Added Annotation::BeingMoved flag to avoid refreshing pixmaps while moving annotations 2012-05-17 23:50:39 +02:00
Fabio D'Urso
80c26f5bb9 poppler gen: Put new annotation features between #ifdef HAVE_POPPLER_0_20 2012-05-17 23:50:35 +02:00
Fabio D'Urso
65d59f2a3e poppler gen: AnnotationProxy implementation 2012-05-17 23:50:31 +02:00
Fabio D'Urso
d06c17d451 poppler gen: Moved PDFDebug constant into PDFGenerator class 2012-05-17 23:50:28 +02:00
Fabio D'Urso
a76e328dd6 poppler gen: Added checkbox to print/hide annotations in PDFOptionsPage 2012-05-17 23:50:24 +02:00
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.
2012-05-17 23:50:20 +02:00
Fabio D'Urso
68127e00ea Do not store flag Annotation::ExternallyDrawn when exporting to DOM
It's an implementation detail
2012-05-17 23:50:17 +02:00