Charles Haley
5ba71155ac
Use the new convert_PIL_image_to_pixmap function.
...
I can't use ReadOnlyFileBuffer because PIL requires that the buffer have the lstrip() function. I did eliminate a copy operation when writing the image to the thumbnail cache.
2024-01-26 18:00:56 +00:00
Kovid Goyal
99c0ce77f7
...
2024-01-26 21:41:24 +05:30
Charles Haley
7ab5fedd1a
Merge branch 'kovidgoyal:master' into master
2024-01-26 16:09:27 +00:00
Kovid Goyal
f7d9b0383e
...
2024-01-26 21:35:58 +05:30
Kovid Goyal
ea7d80c79b
Add a function to efficiently convert PIL images to QPixmaps
2024-01-26 21:33:19 +05:30
Charles Haley
f312435b59
Change to using PIL for image rendering. This lets us do all thumbnail generation on the cover thread.
...
I couldn't make the PIL ImageQt stuff work. It seems to use a common butter somewhere. Generating and adding a second image to the CoverCache corrupted previously added images. This implementation avoids this problem by passing a byte string of the PIL thumbnail to re_render(), which creates the QPixmap on the GUI thread. As a side effect, all the CoverCache operations are now on the GUI thread.
This implementation is visibly faster than the last one.
2024-01-26 13:24:50 +00:00
Kovid Goyal
07f988b109
No need to make two filesystem calls when checking version of thumbnail cache
2024-01-25 21:29:17 +05:30
Kovid Goyal
3dcdc766ee
Ensure self.dbref always exists
2024-01-25 21:23:33 +05:30
Kovid Goyal
3a56d5ca48
Do not call self.model() in the fetch covers thread
...
That is Qt code and Qt is not safe ot use outside the GUI thread
2024-01-25 21:21:51 +05:30
Kovid Goyal
957a46961b
Merge branch 'master' of https://github.com/cbhaley/calibre
2024-01-25 21:18:16 +05:30
Kovid Goyal
64b1b62e40
Merge branch 'master' of https://github.com/unkn0w7n/calibre
2024-01-25 20:06:22 +05:30
unkn0w7n
ab1e82f641
...
2024-01-25 19:56:49 +05:30
unkn0w7n
c8be73296e
Update le_monde.recipe
2024-01-25 19:54:01 +05:30
Charles Haley
4972af52ab
Fix for the cover render hang discussed in https://www.mobileread.com/forums/showthread.php?t=358705 .
...
- All Qt operations are now done on the GUI thread. File operations are done on a separate thread.
- QPixmap is used instead of QImage.
- The ThumbnailCache is now versioned.
The rendering operations are done using a FunctionDispatcher instead of a Qt signal to avoid a long queue of render operations causing the UI to be sluggish.
Emblems etc aren't rendered if the cover cache hasn't been set for the book. This reduces some subtle flashing as the cover is repainted. However, covers are seen as empty regions until the cover is actually rendered.
I also fixed a bug where the wrong cache would be used after a switch library. The UUID used for the cache was set at thread creation time instead of set_database time.
2024-01-25 13:54:12 +00:00
Kovid Goyal
fdcb39c929
Merge branch 'master' of https://github.com/cbhaley/calibre
...
Fixes #2049992 [`unknown function` when referencing stored template "function" in `epub:save_to_disk` plugboard template](https://bugs.launchpad.net/calibre/+bug/2049992 )
2024-01-21 20:15:05 +05:30
Charles Haley
1ce6a63a62
Bug #2049992 : unknown function
when referencing stored template "function" in epub:save_to_disk
plugboard template
...
The comments in Saver.__init__ are there in case there is some reason to not remove the load_user_template_functions() call. They can be removed.
2024-01-21 14:38:34 +00:00
Kovid Goyal
779183f71a
Document the css class used for popup footnotes
2024-01-21 12:59:24 +05:30
Kovid Goyal
c7e1d937a0
Merge branch 'master' of https://github.com/unkn0w7n/calibre
2024-01-21 12:31:51 +05:30
unkn0w7n
8125a01eea
...
2024-01-21 12:30:04 +05:30
unkn0w7n
fae136f103
Update barrons.recipe
2024-01-21 12:26:02 +05:30
Kovid Goyal
dff94f6f62
Better fix for delegate max width calculation
...
Use the width of the viewport widget as that automatically excludes
scrollbars.
2024-01-20 08:26:28 +05:30
Kovid Goyal
c52246b54f
Merge branch 'master' of https://github.com/cbhaley/calibre
...
Fixes #2049929 [Private bug](https://bugs.launchpad.net/calibre/+bug/2049929 )
2024-01-20 08:14:14 +05:30
Charles Haley
c3acf05664
Fix for edit widget placement problem
...
described in https://www.mobileread.com/forums/showthread.php?p=4390503#post4390503
2024-01-19 21:52:41 +00:00
Kovid Goyal
32baf23f21
Fix #2049928 [go to location shortcut doesn't change cursor focus properly]( https://bugs.launchpad.net/calibre/+bug/2049928 )
2024-01-19 22:27:45 +05:30
Kovid Goyal
59cff497da
Merge branch 'master' of https://github.com/unkn0w7n/calibre
2024-01-19 19:32:52 +05:30
unkn0w7n
8c1852d21b
Update scientific_american.recipe
2024-01-19 19:26:38 +05:30
Kovid Goyal
edd2e15292
Add viewer default keyboard shortcuts to the manual
2024-01-19 12:02:50 +05:30
Kovid Goyal
42d9538e2c
version 7.4.0
v7.4.0
2024-01-19 07:41:29 +05:30
Kovid Goyal
17c9801c62
Merge branch 'master' of https://github.com/cbhaley/calibre
2024-01-18 21:12:46 +05:30
Charles Haley
7871cd5bea
Fix tweak for the enter key and 'show_book_details'. Add 'show_locked_book_details' as an option.
...
See https://www.mobileread.com/forums/showthread.php?t=358579
2024-01-18 15:20:29 +00:00
Kovid Goyal
6c18b02642
Only highlight cursor line after syntax highlighter is finished
...
This is because cursor line highlight relies on data from syntax
highlighting (to apply background colors)
2024-01-18 20:06:45 +05:30
Kovid Goyal
2df665d4e7
Propagate fix to wsj_free.recipe as well
2024-01-18 07:17:41 +05:30
Kovid Goyal
9b5cd1e134
Merge branch 'master' of https://github.com/SheinH/calibre
2024-01-18 07:17:21 +05:30
SheinH
3976982d08
WSJ Redirect Fix
2024-01-17 17:07:39 -05:00
Kovid Goyal
6ff92e685f
Add support for the Supernote A6X2
2024-01-17 15:33:55 +05:30
Kovid Goyal
b714fc5023
Category notes browser: Add a button to search for books in the currently selected category. Fixes #2046825 [[Enhancement] Browse category notes]( https://bugs.launchpad.net/calibre/+bug/2046825 )
2024-01-16 21:34:15 +05:30
Kovid Goyal
5875303a48
Separate category value from notes in results list
...
Only works if there is no search or the match is close enough for the
result text to include the category value.
2024-01-16 21:16:54 +05:30
Kovid Goyal
d4d45eb5b9
Merge branch 'master' of https://github.com/cbhaley/calibre
...
Fixes #2049428 [Lookup name #readstatus doesn't have a link map](https://bugs.launchpad.net/calibre/+bug/2049428 )
2024-01-16 07:08:49 +05:30
Kovid Goyal
401c3b615f
Fix #2049410 [A minor bug in source code src/calibre/web/feeds /news.py]( https://bugs.launchpad.net/calibre/+bug/2049410 )
2024-01-16 07:06:56 +05:30
Charles Haley
18482c9ff8
Bug #2049428 : Lookup name ... doesn't have a link map
2024-01-15 20:03:19 +00:00
Kovid Goyal
0fc78f89e0
Merge branch 'master' of https://github.com/unkn0w7n/calibre
2024-01-13 13:18:28 +05:30
unkn0w7n
9baa328540
Update livemint.recipe
2024-01-13 12:38:41 +05:30
Kovid Goyal
63030d807e
Merge branch 'master' of https://github.com/cbhaley/calibre
2024-01-11 17:02:30 +05:30
Charles Haley
d7481f5b0c
Correct the position supplied by Qt in QTextBrowser when using the context menu key so the anchor is recognized.
2024-01-11 11:19:49 +00:00
Kovid Goyal
e96687515a
Merge branch 'master' of https://github.com/unkn0w7n/calibre
2024-01-10 12:17:26 +05:30
unkn0w7n
cb146f2242
...
2024-01-10 12:09:50 +05:30
Kovid Goyal
aca9529852
pep8
2024-01-10 11:01:09 +05:30
Kovid Goyal
4c7797c7f6
Merge branch 'master' of https://github.com/unkn0w7n/calibre
2024-01-10 11:01:05 +05:30
unkn0w7n
ce36ff0395
Update livemint.recipe
2024-01-10 10:54:43 +05:30
unkn0w7n
4f74d66a61
Update foreign_policy.recipe
2024-01-10 10:52:08 +05:30