Commit graph

5478 commits

Author SHA1 Message Date
Mohammad Mahfuzur Rahman Mamun 0c02a163ea Some minor changes and cleanup of Backward textfind 2012-01-23 15:08:07 +06:00
Mohammad Mahfuzur Rahman Mamun 9afba5c75d Some textfind change 2012-01-18 14:50:34 +06:00
Mohammad Mahfuzur Rahman Mamun 746414b86b changing the branch name 2012-01-13 12:21:27 +06:00
Mohammad Mahfuzur Rahman Mamun 1dd139736f both forward and backward find implemented and tested a bit 2012-01-12 19:34:11 +06:00
Mohammad Mahfuzur Rahman Mamun f6a3ccf8b5 some printinfo and unnecessary comments has been removed 2012-01-12 13:51:47 +06:00
Mohammad Mahfuzur Rahman Mamun 7062308214 textfind with hyphenation working - simple test with pdf and djvu done 2012-01-12 12:57:48 +06:00
Mohammad Mahfuzur Rahman Mamun aa5128630c Little Experiment for pdf 2011-11-09 19:44:05 +06:00
Michel Ludwig 5b7c6b8170 Add two new methods to the viewer interface.
Namely, 'areSourceLocationsShownGraphically()' and 'isWatchFileModeEnabled()'.
A corresponding implementation is provided.
2011-11-05 09:40:12 +00:00
Michel Ludwig 1be2696cc3 Allow for more control over when source locations are shown graphically.
The method 'showSourceLocation' has been extended with a new parameter which
controls whether the given source location is shown graphically. A new method
'clearLastShownSourceLocation' has been added; and a corresponding implementation
is provided.
2011-11-05 09:18:08 +00:00
Albert Astals Cid 689f6507d3 Avoid searching three times in the hash 2011-11-03 19:18:27 +01:00
Albert Astals Cid 99b3906560 Move the calculation of the key to a single place
Removes the problem of changing it in one placea and not in the other
2011-11-03 19:11:23 +01:00
Albert Astals Cid 5a48a4aab9 Fix crash due to new text algorithm
When there are two entities with the same key, do not only check for
are but also for text to be matching
2011-11-03 19:00:03 +01:00
Pino Toscano a5c80e1c8e fb2: basic conversion for <stanza> 2011-11-03 11:53:08 +01:00
Albert Astals Cid 5ec4c069f0 Add @since markers 2011-11-02 23:05:19 +01:00
Albert Astals Cid 0c4ed4c08a Make PageView::notifyViewportChanged call "itself" with a queued connection
This increases the UI responsiveness on opening PDF that are slow to render
This is because we can only have one thread using the pdf because of
poppler, if we do not queue this call, it will immediately try to generate
the pixmap for this page ending up in the thread for rendering being started.
But then while we are still opening the file we will ask if the file
has embedded files, and this means accessing poppler again and we will be
stuck there because the rendering thread has still not finished. This way by
delaying the execution until we return to the event loop we guarantee
all short queries that are done while opening the file are done already and
we won't block the UI
2011-11-02 22:49:22 +01:00
Michel Ludwig d7e116f2d7 Move the definition of the 'EmbedMode' enum to 'part.h' 2011-11-02 20:29:31 +00:00
Michel Ludwig 00b01aa987 Add method 'setLastSourceLocationViewport( const Okular::DocumentViewport& vp )' to PageView
Undo changes to the class 'DocumentViewport'.
2011-11-01 21:13:20 +00:00
Michel Ludwig 872c537f44 Merge branch 'master' into viewerinterface 2011-11-01 21:12:40 +00:00
Michel Ludwig a823df5c8f Some more changes according to the review. 2011-10-31 21:44:21 +00:00
Jiri Baum 412e3e739e table selection tool - semi-automatic dividers
BUGS: 283440
REVIEW: 102788
2011-10-31 16:33:03 +01:00
Niels Ole Salscheider 40620cb44f fix escaping / unescaping of latex formula in html code
REVIEW: 102984
2011-10-29 15:03:30 +02:00
Albert Astals Cid 3b272175ea Also add the possibility of renaming bookmarks using RMB menu 2011-10-26 00:19:58 +02:00
Albert Astals Cid 405bd75a1a add a property with the page number
deliverately not documented since we don't want others to use it
2011-10-26 00:10:42 +02:00
Albert Astals Cid 880dae2e19 Add a way to rename the current page bookmark from the menu
Comes with some api additions to bookmarkmanager
2011-10-25 22:21:22 +02:00
Michel Ludwig 31828b4850 Move the setting of shortcuts for viewer mode to a special method 'setViewerShortcuts()' 2011-10-24 21:30:05 +01:00
Michel Ludwig 2fd4100cbd Coding style fixes 2011-10-23 14:22:58 +01:00
Michel Ludwig 6494e071d7 Also update the state of the menu 'view_orientation' correctly. 2011-10-23 11:07:38 +01:00
Michel Ludwig 1adb8cc718 Merge branch 'master' into viewerinterface 2011-10-23 10:18:48 +01:00
Michel Ludwig f431e98bb8 Change the action states according to whether a document is shown or not 2011-10-23 10:17:04 +01:00
Michel Ludwig 627d29bca2 Some reorganization 2011-10-22 09:30:49 +01:00
Albert Astals Cid fc58c9824f Do not assume pdfdoc hints won't change
Since sometimes we even change the pdfdoc pointer itself ;-)
This was working previously by pure luck (read bug in poppler :D)
BUGS: 284464
FIXED-IN: 4.7.3
(cherry picked from commit eb705417fa)
2011-10-19 15:48:33 +02:00
Michel Ludwig 1bed158f68 Correctly "clear" the page view when closing a document 2011-10-18 21:36:42 +01:00
Michel Ludwig e8e0237ca0 Add the possibility to show sources location graphically on the rendered pages.
Note that currently the rotation of pages is not taken into account as one still has
to find a unique way of handling this.
2011-10-17 20:56:45 +01:00
Albert Astals Cid d41f230123 Move correctTextOrder to TextPagePrivate 2011-10-17 19:09:26 +02:00
Michel Ludwig d29099b39c Only activate a subset of the available features when the part is launched in viewer mode.
In viewer mode the part will now use a different XML GUI file (part-viewermode.rc).
Also, some actions won't be created, e.g. those used for exporting stuff, for
launching presentation mode, or for selecting parts of the document. The captions
of the configuration dialogs also contain the word 'viewer' then.
2011-10-12 20:36:01 +01:00
Michel Ludwig 1a5f2be05c Merge branch 'master' into viewerinterface 2011-10-12 20:16:46 +01:00
Albert Astals Cid 94d4035acb Add the table selection tool to the selection toolbar icon 2011-10-12 16:35:04 +02:00
Albert Astals Cid 901abc0baf Rever addition of rectExtractText that is used only in one place 2011-10-12 16:31:21 +02:00
Albert Astals Cid 760c86642f Replace two for more with foreach 2011-10-12 16:16:50 +02:00
Albert Astals Cid 5d06d5b31e use foreach to iterate over d->tableSelectionParts 2011-10-12 16:04:23 +02:00
Albert Astals Cid 2795f61341 Make two params for TableSelectionPart const & 2011-10-12 15:59:05 +02:00
Albert Astals Cid a16aa7cff0 struct fields are already public 2011-10-12 15:57:39 +02:00
Albert Astals Cid e88f9c2915 Need to increase version number 2011-10-12 15:55:17 +02:00
Albert Astals Cid 3f34db152f We do not give Author status for small contributions 2011-10-12 15:54:09 +02:00
Jiri Baum f81a49fafa table selection tool
BUGS: 279859
REVIEW: 102358
FIXED-IN: 4.8.0
2011-10-12 15:52:24 +02:00
Albert Astals Cid 9d6926f9b8 Fix creation of the TOC tree for dvi files
The old code assumed the number of children would be
"-NUMBER "
while this file has
"-NUMBER/"
so what we do now is looping after the - until we find a non digit
All this code would better be done using a regexp and not that many section calls
but i did not want to touch it more than needed
BUGS: 283447
FIXED-IN: 4.7.3
(cherry picked from commit 83df127ac0)
2011-10-06 13:13:00 +02:00
Michel Ludwig b4206819e3 Allow to specify which config file the part uses.
This is done through a string "ConfigFileName=<file name>" which can be given to
the constructor in its argument list.

Note that the file ui/fileinterpreterpreview.cpp currently still contains a
reference to "okularrc", which we leave for now (as it just stores the size
of a dialog in that config file).
2011-10-05 21:50:12 +01:00
Pino Toscano 5647ad5647 cmake: reenable the search of the JPEG library
there is no more a top-level CMakeLists.txt searching it;
this makes the plucker backend compilable again
(cherry picked from commit 41c572463c)
2011-10-04 15:28:54 +02:00
Albert Astals Cid 086c0dbce4 Comparing paths with strcmp is not really smart
This is "the same" commit as b932ef7e0f
but with a different patch number 08->09
2011-09-30 20:49:56 +02:00
Albert Astals Cid e0a0091d0c Update the series file 2011-09-29 12:56:02 +02:00