Commit graph

5080 commits

Author SHA1 Message Date
Pino Toscano
2b1c2202a6 bump plugins versions to be in sync with kde 4.3 and, in case, consider more work being done
svn path=/trunk/KDE/kdegraphics/okular/; revision=1082022
2010-01-29 14:56:51 +00:00
Pino Toscano
f5585e12d8 bump okularcore library version to 1.4.0
svn path=/trunk/KDE/kdegraphics/okular/; revision=1082010
2010-01-29 14:38:21 +00:00
Pino Toscano
e29debc508 bump development version to 0.10.80
svn path=/trunk/KDE/kdegraphics/okular/; revision=1082008
2010-01-29 14:37:17 +00:00
Albert Astals Cid
ce5993f614 proxyWidget just died
svn path=/trunk/KDE/kdegraphics/okular/; revision=1079309
2010-01-24 02:17:11 +00:00
Christoph Feck
8112b22ed6 SVN_SILENT compile
svn path=/trunk/KDE/kdegraphics/okular/; revision=1079295
2010-01-24 00:51:37 +00:00
Luigi Toscano
58d3df0cf3 Remove useless checks "foo!=0" before executing "delete foo"
svn path=/trunk/KDE/kdegraphics/okular/; revision=1079226
2010-01-23 21:54:27 +00:00
Albert Astals Cid
dfac3d0236 use the new proxyWidget member if you are on the edge
svn path=/trunk/KDE/kdegraphics/okular/; revision=1079219
2010-01-23 21:32:34 +00:00
Luigi Toscano
a1d64f2944 Fix memory leak: properly release each allocated element of characterBitmaps
svn path=/trunk/KDE/kdegraphics/okular/; revision=1079217
2010-01-23 21:28:08 +00:00
Luigi Toscano
dd912f70a0 DVI generator is finally Q3Support-free \o/
Thanks to all the people that helped with the porting.

svn path=/trunk/KDE/kdegraphics/okular/; revision=1077799
2010-01-20 22:48:45 +00:00
Luigi Toscano
4232a6c5fc QIODevice::Offset -> qint64
svn path=/trunk/KDE/kdegraphics/okular/; revision=1077797
2010-01-20 22:44:37 +00:00
Luigi Toscano
3329a8cd2b Q3IntDict->QHash (various font tables)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1077795
2010-01-20 22:42:01 +00:00
Luigi Toscano
201216da37 Q3IntDict->QHash (ghostscript_interface::pageList)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1077793
2010-01-20 22:34:08 +00:00
Luigi Toscano
5bbafc9888 Q3MemArray -> QVector
svn path=/trunk/KDE/kdegraphics/okular/; revision=1077790
2010-01-20 22:26:25 +00:00
Luigi Toscano
867ad703e6 TPIC_path does not make use of any Q3PointArray specific
methods; it is in fact a simple QPolygon, so Qt3--.

svn path=/trunk/KDE/kdegraphics/okular/; revision=1076100
2010-01-17 14:19:20 +00:00
Luigi Toscano
e285cd125f Q3Dict->QHash
svn path=/trunk/KDE/kdegraphics/okular/; revision=1075707
2010-01-16 15:29:52 +00:00
Harsh Chouraria J
da899f862e FEATURE:204195
Add support for application/x-cbt filetypes using KArchive/KTar support. All kinds of tar (.cbt) files 
should now be supported. Changed appropriate .desktop files to detect as well.


svn path=/trunk/KDE/kdegraphics/okular/; revision=1072400
2010-01-10 05:46:13 +00:00
Harsh Chouraria J
f5bbebd879 Generalize the code for KArchive support instead of using KZip directly. This will be helpful in
adding other supported formats, such as Tar. (Review ticket: 2181)


svn path=/trunk/KDE/kdegraphics/okular/; revision=1072399
2010-01-10 05:34:57 +00:00
Albert Astals Cid
24b1b33906 remove the ViewRows config entry as it was unused
Change the ViewMode to be an Enum instead of an ugly int and fix the ugly code accordingly. This will break your ViewMode config, i'm sorry for that
Move the setting for centered pages to the view mode as people seems to be having a lot of difficulties of finding it in the old location

svn path=/trunk/KDE/kdegraphics/okular/; revision=1072353
2010-01-10 01:19:16 +00:00
Albert Astals Cid
835bdb8af2 commit improvement to the location of synctex thingies by Jochen Trumpf
CCBUG: 205084

svn path=/trunk/KDE/kdegraphics/okular/; revision=1072189
2010-01-09 15:42:45 +00:00
Albert Astals Cid
790efdba28 rename delayResizeTimer to delayRelayoutTimer and always create it, not on first resizeEvent
Use the timer for the delayed slotRelayoutPages call in notifySetup instead of a QueuedConnection
Also set the dirtyFlag in notifySetup, that way if we get a set viewport very soon we still end up in the correct place
Stop the timer if we get to slotRelayoutPages so we never relayout twice without a need to
This should fix bug 205084
BUGS: 205084

svn path=/trunk/KDE/kdegraphics/okular/; revision=1072187
2010-01-09 15:37:38 +00:00
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