Commit graph

6059 commits

Author SHA1 Message Date
Albert Astals Cid a0339dec66 Fix crash when a drag contains the url format but doesn't contain any url data for that format
KUrl::List::canDecode( ev->mimeData() ) doesn't mean KUrl::List::fromMimeData( ev->mimeData() ) will not be empty

BUGS: 304789
FIXED-IN: 4.9.1
2012-08-08 21:08:46 +02:00
Albert Astals Cid 06ec381288 Fix crash when a drag contains the url format but doesn't contain any url data for that format
KUrl::List::canDecode( ev->mimeData() ) doesn't mean KUrl::List::fromMimeData( ev->mimeData() ) will not be empty

BUGS: 304789
FIXED-IN: 4.9.1
2012-08-08 21:07:24 +02:00
Yury G. Kudryashov e04ba6827d Explicitly decode filename using QString::fromLocal8Bit()
This fixes inverse search for TeX files having non-ASCII chars in their path.
2012-08-08 02:07:16 +04:00
Yury G. Kudryashov e37c43b189 Explicitly decode filename using QString::fromLocal8Bit()
This fixes inverse search for TeX files having non-ASCII chars in their path.
2012-08-08 02:03:32 +04:00
Script Kiddy e653d83816 SVN_SILENT made messages (.desktop file) 2012-08-07 18:30:47 +02:00
Mailson Menezes 82510818c4 Split and merge tiles according to zoom level
To allow more zooming, split tiles when it reaches an arbitrary size.
2012-08-05 15:50:02 -03:00
Marco Martin 0fb9fa57b2 count property for tableOfContents
disable tab when there is no toc
2012-08-02 13:26:37 +02:00
Marco Martin f4a775ff69 use the checked property of TabButton 2012-08-02 13:14:55 +02:00
Marco Martin edf2019b84 small adjustment to toolbar showing 2012-08-01 19:56:39 +02:00
Marco Martin bdf3d50dce bit more reliable current page highlight 2012-08-01 19:35:44 +02:00
Marco Martin 89c9a00462 common superclass for Thumbnails and Bookmarks 2012-08-01 19:28:16 +02:00
Marco Martin 8196b9db28 sort bookmark list
connect to the right signal
2012-08-01 19:09:48 +02:00
Marco Martin e96c3dd0f7 fix appearing/disappearing of bottom toolbar 2012-08-01 19:03:21 +02:00
Marco Martin a340d0b925 graphics for the bookmark 2012-08-01 18:40:06 +02:00
Marco Martin 90b7f0503d rough ui to add/remove bookmarks 2012-08-01 18:20:46 +02:00
Marco Martin adabbf5fb5 api for setting/unsetting bookmarks 2012-08-01 18:14:12 +02:00
Marco Martin e5a77cc8c7 read only access to bookmarks 2012-08-01 18:00:56 +02:00
Marco Martin 1d5b80334e use page is pageLabel is not present 2012-08-01 17:15:38 +02:00
Marco Martin 6a70e77ab1 very short animation on match 2012-08-01 14:45:51 +02:00
Marco Martin 0ab12d63b1 correct off by one 2012-08-01 13:27:57 +02:00
Marco Martin a9e92eaada remove hardcoded values 2012-08-01 12:41:44 +02:00
Marco Martin 9742e4970b a separate bottom toolbar for the tabbar 2012-08-01 12:36:49 +02:00
Marco Martin 407921c33e updates decoration
still buggy
2012-07-31 21:33:22 +02:00
Marco Martin 2c87caaed3 book look for the table of contents 2012-07-31 21:07:20 +02:00
Marco Martin 540ed9c95b table of contents clickable 2012-07-31 19:35:46 +02:00
Marco Martin ad0c9e2552 port to MobileComponents.OverlayDrawer 2012-07-31 19:23:14 +02:00
Marco Martin a5a9acf2d6 add a tabbar to use the tableofcontents 2012-07-31 19:06:59 +02:00
Marco Martin 9c000ce8b1 add a model for the table of contents
todo: license issues
2012-07-31 16:28:54 +02:00
Marco Martin d11d5d8106 Merge branch 'master' into mart/okularActive 2012-07-31 13:32:05 +02:00
Fabio D'Urso 739bbe9ace Moved m_findBar->resetSearch() from closeUrl() to notifySetup()
As a side effect, this change fixes bug 303998, that caused a crash if
the part's widget was destroyed before the part itself, because
m_findBar had already been destroyed.

BUG: 303998
FIXED-IN: 4.9.0
2012-07-25 19:27:00 +02:00
Fabio D'Urso 0a6f211c41 Moved m_findBar->resetSearch() from closeUrl() to notifySetup()
As a side effect, this change fixes bug 303998, that caused a crash if
the part's widget was destroyed before the part itself, because
m_findBar had already been destroyed.

BUG: 303998
FIXED-IN: 4.9.0
2012-07-25 19:13:20 +02:00
Albert Astals Cid b441873b6b 4.9.0 version bump 2012-07-25 19:07:55 +02:00
Mailson Menezes 923a966aa2 Fix panning issue
If the panning action results in a request for new tiles, paint it as
well. The previous code wasn't taking the amount of scroll into
consideration to fetch the tile to be painted.
2012-07-22 12:48:51 -03:00
Script Kiddy 6f2e1fa918 SVN_SILENT made messages (.desktop file) 2012-07-19 10:10:40 +02:00
Mailson Menezes 825528e313 Request more than one tile at once 2012-07-19 00:30:03 -03:00
Fabio D'Urso edbb4ef9f5 Call Generator::signalPixmapRequestDone _after_ saving the calculated bounding box
Fixes a bug that causes the extraction of a wrong bounding box:

If the request queue is not empty, signalPixmapRequestDone causes a new
pixmap request to be started, thus overwriting mPixmapGenerationThread's
mCalcBoundingBox before it is read by the if in the next line.

Now signalPixmapRequestDone is called after the bounding box is saved,
so that new requests are started only after all data from
mPixmapGenerationThread have been saved.

BUG: 257370
REVIEW: 105600
2012-07-17 21:06:19 +02:00
Fabio D'Urso 5b12bf685d Call Generator::signalPixmapRequestDone _after_ saving the calculated bounding box
Fixes a bug that causes the extraction of a wrong bounding box:

If the request queue is not empty, signalPixmapRequestDone causes a new
pixmap request to be started, thus overwriting mPixmapGenerationThread's
mCalcBoundingBox before it is read by the if in the next line.

Now signalPixmapRequestDone is called after the bounding box is saved,
so that new requests are started only after all data from
mPixmapGenerationThread have been saved.

BUG: 257370
REVIEW: 105600
2012-07-17 20:35:54 +02:00
Mailson Menezes 032f03a0e8 Track memory usage of tiles 2012-07-16 18:19:02 -03:00
Mailson Menezes 9c09eb938e Use tiles only when it's necessary
In other words: don't use tiles when the page is not big enough
2012-07-16 18:19:01 -03:00
Luigi Toscano bd733dab90 Avoid crash when the font is broken.
The call to FT_New_Face takes the address of the 'face' variable, whose type is a
typedef *something TF_Face;
The value of TF_Face (so a pointer to the properly filled font structure) s then
replaced inside the call of TF_New_Face; but when the latter function fails,
the value of 'face' is not reset and this leads to a crash in the distructor of
TeXFont_PFB.
So properly initialize TF_Face to 0, its address is valid, and the code works.

BUG: 303472
FIXED-IN: 4.8.5
(cherry picked from commit 99c4da2f9e)
2012-07-15 22:10:50 +02:00
Luigi Toscano 99c4da2f9e Avoid crash when the font is broken.
The call to FT_New_Face takes the address of the 'face' variable, whose type is a
typedef *something TF_Face;
The value of TF_Face (so a pointer to the properly filled font structure) s then
replaced inside the call of TF_New_Face; but when the latter function fails,
the value of 'face' is not reset and this leads to a crash in the distructor of
TeXFont_PFB.
So properly initialize TF_Face to 0, its address is valid, and the code works.

BUG: 303472
FIXED-IN: 4.8.5
2012-07-15 22:03:44 +02:00
Fabio D'Urso 9e93df074b Reset search input box color when SearchLineEdit::resetSearch() is called
This is especially useful if resetSearch is called because of a
document switch, because a search without results in the previous
document has no relation with the new one, and therefore keeping the red
background doesn't make sense.
2012-07-12 22:57:46 +02:00
Fabio D'Urso a6f57c965b Force next search to be restarted when the document is changed 2012-07-12 22:57:37 +02:00
Fabio D'Urso eb1a235874 Keep m_changed set to true if it was already true when changing search direction
Otherwise, next/previous buttons don't work after ESC is pressed in PageView
2012-07-12 22:57:22 +02:00
Fabio D'Urso 76b7982f57 Keep the find bar working after ESC is pressed in PageView
Instead of directly killing the search in the core, emit a signal
caught by FindBar to tell its SearchLineEdit to reset the search
operation.
In this way, SearchLineEdit can set m_changed, and next time a new
search operation will be started, instead of attempting to use the
old one.
2012-07-12 22:56:24 +02:00
Fabio D'Urso e90cec9625 Reset search input box color when SearchLineEdit::resetSearch() is called
This is especially useful if resetSearch is called because of a
document switch, because a search without results in the previous
document has no relation with the new one, and therefore keeping the red
background doesn't make sense.
2012-07-12 22:53:53 +02:00
Fabio D'Urso e0b74d7c09 Force next search to be restarted when the document is changed 2012-07-12 22:53:53 +02:00
Fabio D'Urso 10865fbcb5 Keep m_changed set to true if it was already true when changing search direction
Otherwise, next/previous buttons don't work after ESC is pressed in PageView
2012-07-12 22:53:53 +02:00
Fabio D'Urso a72fbc6a8c Keep the find bar working after ESC is pressed in PageView
Instead of directly killing the search in the core, emit a signal
caught by FindBar to tell its SearchLineEdit to reset the search
operation.
In this way, SearchLineEdit can set m_changed, and next time a new
search operation will be started, instead of attempting to use the
old one.
2012-07-12 22:53:53 +02:00
Albert Astals Cid beffbf10ff Make return always search forward
This fixes 301248 and also the situation in which you searched back, changed no text, and pressed enter (found by Fabio)
2012-07-12 00:37:22 +02:00