Commit graph

5060 commits

Author SHA1 Message Date
Albert Astals Cid
edd82d80c6 Make sure resolution is not inf
Fixes part of bug 205084
CCBUG: 205084

svn path=/trunk/KDE/kdegraphics/okular/; revision=1072172
2010-01-09 15:08:53 +00:00
Pino Toscano
ea7480e2a5 SVN_SILENT unused parameters
svn path=/trunk/KDE/kdegraphics/okular/; revision=1072155
2010-01-09 13:57:09 +00:00
Pino Toscano
32ccf8593b add a context menu for the top-level items (representing the files), to allow to:
- open that documen (if it is not the current document already)
- remove all of its bookmarks

svn path=/trunk/KDE/kdegraphics/okular/; revision=1072135
2010-01-09 13:15:33 +00:00
Pino Toscano
c3f75f13c2 add a function to remove a list of bookmark belonging to the specified url
svn path=/trunk/KDE/kdegraphics/okular/; revision=1072132
2010-01-09 13:13:43 +00:00
Pino Toscano
4ee7112fe7 create a FileItem type of QTreeWidgetItem to handle better items representing the files
this should:
- reduce a bit the code duplication
- make the tooltip updated automatically on the number of items

svn path=/trunk/KDE/kdegraphics/okular/; revision=1072090
2010-01-09 12:06:44 +00:00
Pino Toscano
d607996bce isolate the context menu for BookmarkItem in an own method
svn path=/trunk/KDE/kdegraphics/okular/; revision=1072058
2010-01-09 11:10:08 +00:00
Christian Ehrlicher
9e2f6edcf5 KUrl::path() -> KUrl::toLocalFile()
svn path=/trunk/KDE/kdegraphics/okular/; revision=1071713
2010-01-08 15:29:38 +00:00
Albert Astals Cid
f12bd0a942 remove const_cast eeeeeeeeeek
that wasn't even necessary eeeeeeeeeeeeek2

svn path=/trunk/KDE/kdegraphics/okular/; revision=1071422
2010-01-08 00:01:28 +00:00
Albert Astals Cid
d0d70242d0 increase text alpha bits to 4 as it's known to improve quality quite a bit
BUGS: 221402

svn path=/trunk/KDE/kdegraphics/okular/; revision=1070544
2010-01-05 23:17:28 +00:00
Pino Toscano
1f809924aa improve a bit the library search of this module:
- use pkg_check_modules() instead of the deprecated pkgconfig()
- search for library and includes also if we use pkg-config, generalizing the search a bit
should make its code a bit cleaner, and still make it working on windows (in case, just tell me)

svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=1069564
2010-01-03 19:11:24 +00:00
Pino Toscano
f31db87a63 add a ExternallyDrawn flag to mark annotations which are drawn elsewhere (eg by the generator)
mostly useful with External annotations, it is not applied yet

svn path=/trunk/KDE/kdegraphics/okular/; revision=1068014
2009-12-31 09:56:31 +00:00
Albert Astals Cid
846a3e3c83 Do the same treatment to paths passed from the command line
when we are starting a new shell and when we are passing the argument
through dbus
BUGS: 205076

svn path=/trunk/KDE/kdegraphics/okular/; revision=1067205
2009-12-29 08:38:49 +00:00
Albert Astals Cid
6e881ebe8d First batch of fixes for fordward search, actually read it from the destination
Patch by Jochen Trumpf

svn path=/trunk/KDE/kdegraphics/okular/; revision=1067050
2009-12-28 19:57:25 +00:00
Pino Toscano
873689b1d4 small optimization in the internal TinyTextEntity storage:
instead of always creating (with new[]) the memory buffer for the chars, try to pack them into the space of the QChar*, if they are very few (2 on 32bit, 4 on 64bit)
this way the number of new[]+delete[] needed for storing text is slightly reduced, especially for documents with fine-grained text extraction (pdf, dvi, fb2, odt)

svn path=/trunk/KDE/kdegraphics/okular/; revision=1066934
2009-12-28 11:48:25 +00:00
Script Kiddy
ed49bc455a SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1066903
2009-12-28 10:28:21 +00:00
Pino Toscano
192c0a0880 refactor a bit the string matching in text search, using a intermediate comparer function
this way, we can choose the comparing strategy before starting the search
also, make the comparer function use stringref, so we avoid copying data from the original strings (meaning less memory used, and slightly faster)
provide two comparing strategies, case sensitive and case insensitive, to continue doing the same job done so far

svn path=/trunk/KDE/kdegraphics/okular/; revision=1066591
2009-12-27 14:22:13 +00:00
Pino Toscano
b025b4113a activate the overwriting confirmation in all the other file save dialogs
svn path=/trunk/KDE/kdegraphics/okular/; revision=1066352
2009-12-26 20:47:58 +00:00
Pino Toscano
184deb5112 Use the KDE 4.4 way to ask for the "exists, overwite?" confirmation dialog.
This allows to:
a) get rid of our prompts done in two places
b) really make sure it is being asked in any saving context (eg for .okular files)
BUG: 191928

svn path=/trunk/KDE/kdegraphics/okular/; revision=1066333
2009-12-26 18:48:42 +00:00
Pino Toscano
c7b7ce7b08 fix selectiveUrlUpdate()
- create new branches for documents different than the current one
- give the Url data role, so they can be identified again later
this makes it possible use it for any situation, even for updating non-existing branches for non-current documents

svn path=/trunk/KDE/kdegraphics/okular/; revision=1066321
2009-12-26 18:19:07 +00:00
Pino Toscano
aa84e31316 Change the saving strategy for bookmarks: instead of saving them manually or at closing, save them after each action.
This should avoid any bookmark loss due to premature crash or similar abnormal closing.
BUG: 157246
BUG: 213206
Also, the above change triggers the D-Bus synchronisation of the internal bookmark manager of the various Okular instances;
react to those changes properly by updating the own info (because of the changes in the bookmark manager of another instance).
BUG: 216239

On the technical note, keep the cache of known file just with the bookmark address instead of the group itself
(which gets changed behind our back).

svn path=/trunk/KDE/kdegraphics/okular/; revision=1066286
2009-12-26 16:57:09 +00:00
Pino Toscano
52ce4cc095 disable the (already unused) knewstuff2 stuff from compilation and installation
svn path=/trunk/KDE/kdegraphics/okular/; revision=1066279
2009-12-26 16:23:36 +00:00
Pino Toscano
27f6d2dd65 add the tests to the build
svn path=/trunk/KDE/kdegraphics/okular/; revision=1066277
2009-12-26 16:17:51 +00:00
John Layt
ed9bbddace Print correct number of copies using new Qt api
Add eror code if print to file fails

BUG: 155695

svn path=/trunk/KDE/kdegraphics/okular/; revision=1065863
2009-12-24 14:39:49 +00:00
Script Kiddy
c2390f3197 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1065022
2009-12-22 10:04:12 +00:00
Allen Winter
5e8008f650 tiny improvement to the macro_log_feature message for zlib
svn path=/trunk/KDE/kdegraphics/okular/; revision=1061613
2009-12-12 13:57:32 +00:00
Script Kiddy
9f6f5a3947 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1060240
2009-12-08 10:51:24 +00:00
Pino Toscano
9acc688895 don't forget, just before the string freeze kicks in
svn path=/trunk/KDE/kdegraphics/okular/; revision=1054242
2009-11-25 19:10:55 +00:00
Script Kiddy
d819d858bd SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1053122
2009-11-23 10:50:42 +00:00
Luigi Toscano
1f548c29b6 Activate support for DVI font information in the document properties dialog.
This is one of the few KDVI features that was still missing from DVI 
generator.
The most important informations from the now-removed fontPool::status() 
method are shown.

svn path=/trunk/KDE/kdegraphics/okular/; revision=1052192
2009-11-21 00:57:56 +00:00
Luigi Toscano
4fbb5676c1 Add support for DVI fonts (TeX font type) to FontInfo, as they can not mapped
to the existing ones.

Remove human-readable descriptions of fonts from TeXFontDefinition, this is 
something that belongs to the PropertiesDialog.

svn path=/trunk/KDE/kdegraphics/okular/; revision=1052191
2009-11-21 00:50:13 +00:00
Luigi Toscano
8fdc41b58b Remove Q3 bits from fontpool.*, remove useless status() method.
status() was used to build the information of the font dialog in kdvi, 
next commits will activate this functionality in Okular.

svn path=/trunk/KDE/kdegraphics/okular/; revision=1052190
2009-11-21 00:40:52 +00:00
Albert Astals Cid
e05f0fb861 Get the viewport before resizing the canvas otherwise the canvas resizal makes the viewport change and later we end up with an incorrect viewport
BUGS: 215463

svn path=/trunk/KDE/kdegraphics/okular/; revision=1052137
2009-11-20 20:52:51 +00:00
Script Kiddy
1f786797a6 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1051910
2009-11-20 10:32:28 +00:00
Elvis Stansvik
820a667190 Save case sensitivity and regular expression search options for the Contents
and Reviews side panels to okularpartrc.

If these options are turned on they are now saved as:

[Contents]
ContentsSearchCaseSensitive=true
ContentsSearchRegularExpression=true

and

[Reviews]
ReviewsSearchCaseSensitive=true
ReviewsSearchRegularExpression=true

respectively.


svn path=/trunk/KDE/kdegraphics/okular/; revision=1051497
2009-11-19 17:26:41 +00:00
Albert Astals Cid
667e07a343 setAttribute with doubles is evil as it uses the current locale and we don't want that, use QString::number
BUGS: 211990

svn path=/trunk/KDE/kdegraphics/okular/; revision=1050633
2009-11-17 19:37:57 +00:00
Albert Astals Cid
2b7265066b add a tooltip to the button
svn path=/trunk/KDE/kdegraphics/okular/; revision=1050253
2009-11-16 22:54:18 +00:00
Albert Astals Cid
b9d749bc0d Commit "Document information" patch by Luigi Toscano, 8 months without a nack from any devel and i like it, so let's commit it
Luigi's mail says
********
The attached patch changes a bit the handling of document informations 
and the informations shown in the info page.
- document path is added to the information and a button allows you to 
toggle between to file name (default) and the complete path;
- the number of the page is added to the information set by 
documentInfo() and not by the properties dialog (so the latter will not 
modify datas);
- the order of the information shown is the fixed now (see 
orderedProperties).
*********

Then there are a few things of my own since some const here and there and adding three values to Key enum

Also it fixes wish 208999
BUGS: 208999

svn path=/trunk/KDE/kdegraphics/okular/; revision=1049872
2009-11-16 00:46:33 +00:00
Albert Astals Cid
f18659612f Use the just created Okular::TextPage::CentralPixelTextAreaInclusionBehaviour flag when copying text selected with the text selection tool
so we include the text the user really selected
BUGS: 208857

svn path=/trunk/KDE/kdegraphics/okular/; revision=1048200
2009-11-12 21:57:00 +00:00
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
2009-11-12 21:48:43 +00:00
Albert Astals Cid
81d255bafb add a function that returns the center of a given normalized rect
svn path=/trunk/KDE/kdegraphics/okular/; revision=1048191
2009-11-12 21:45:35 +00:00
Albert Astals Cid
4041eb7f5b empty the pixmaps queue stack before doing the loop waiting for executing pixmap requests to empty, otherwise a single shot timed call to sendGeneratorRequest can kick us in the back cause bad things to happen, ranging from crashes to the app waiting forever in the loop
Patch provided by pino and tested by me
BUG: 212066

svn path=/trunk/KDE/kdegraphics/okular/; revision=1047671
2009-11-11 19:36:58 +00:00
Jonathan Schmidt-Dominé
3fad1f66b5 Old Presentation-Mode (the small CMakeLists-change was kept)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1047244
2009-11-10 19:07:23 +00:00
Jonathan Schmidt-Dominé
d6ad4b9b31 Better Presentationmode:
-more intuitive computation of the speed
-play/pause
-change the speed from presentation-mode
Contact me on the mailing-list if you do not like it!


svn path=/trunk/KDE/kdegraphics/okular/; revision=1046853
2009-11-09 20:58:33 +00:00
Script Kiddy
443012afc3 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1046621
2009-11-09 10:34:05 +00:00
Script Kiddy
c85b38a6a8 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1045571
2009-11-06 10:09:25 +00:00
Albert Astals Cid
a79fe451fd check the search we are doing is still alive, otherwise doesn't make sense to keep on doing it and even more doing so might make us crash
svn path=/trunk/KDE/kdegraphics/okular/; revision=1045410
2009-11-06 00:19:10 +00:00
Albert Astals Cid
3e4b406aea stop the search when pressing the [x] button in the find bar
svn path=/trunk/KDE/kdegraphics/okular/; revision=1045398
2009-11-05 23:21:56 +00:00
Script Kiddy
a4a4008bb3 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1045143
2009-11-05 11:42:18 +00:00
Script Kiddy
0d90a1db53 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1043347
2009-11-01 10:59:11 +00:00
Albert Astals Cid
0b1124c4a8 do not accept new pixmap requests if we are shutting down
svn path=/trunk/KDE/kdegraphics/okular/; revision=1041420
2009-10-27 23:38:13 +00:00