51061 Commits

Author SHA1 Message Date
un-pogaz
56ae7183a3 move "Grid rule editor" to its own widget 2025-02-12 08:45:36 +01:00
Kovid Goyal
746bb829e8
Merge branch 'master' of https://github.com/unkn0w7n/calibre 2025-02-12 09:57:30 +05:30
unkn0w7n
81544b2b20 Update barrons.recipe
add bolds
2025-02-12 09:54:48 +05:30
Kovid Goyal
de0b3b99b5
Fix #2097947 [series mapping rules dont save](https://bugs.launchpad.net/calibre/+bug/2097947) 2025-02-12 09:38:35 +05:30
Kovid Goyal
cfad6bcf39
pep8 2025-02-12 08:02:31 +05:30
Kovid Goyal
6ddac37855
Merge branch 'master' of https://github.com/cbhaley/calibre 2025-02-12 08:02:16 +05:30
Charles Haley
33af676b11 The template functions for the new custom column search template feature. There are 4 new functions:
* make_url(path, [query_name, query_value]+). This is the easiest to use.
* make_url_extended(...). This gives the user more control over constructing the URL, including user-built query strings.
* query_string([query_name, query_value, how_to_encode]+). Constructs a query string, giving more control over how the values are encoded.
* encode_for_url(value, use_plus). URL-encodes a single value.

As you said earlier, most people will use make_url(). However, I have seen cases where query values must be inserted into the path, and make_url_extended() helps with that. I have also seen cases where query args must not be encoded. And so on. These 4 functions plus other text functions like re() let the user do whatever is necessary.

Note that 'item_value' is no longer encoded. There are two more values available: 'item_value_quoted' and 'item_value_no_plus'. I'm not convinced these are particularly useful but it doesn't hurt anything to have them.
2025-02-11 19:21:19 +00:00
Kovid Goyal
3be9172c51
Add shortcuts for edit metadata and show book details to the standalone cover browser window 2025-02-11 17:33:30 +05:30
Kovid Goyal
d407cdb045
Fix main interface tab not expanding to use available width 2025-02-11 16:03:19 +05:30
Kovid Goyal
f68bc23853
Fix infinite loop when tabbing past last cell 2025-02-10 10:20:25 +05:30
Kovid Goyal
0ff4424a64
Merge branch 'master' of https://github.com/unkn0w7n/calibre 2025-02-10 10:10:14 +05:30
unkn0w7n
d9c02b3238 Update barrons.recipe
fix for multiple hyperlinks
2025-02-10 10:08:51 +05:30
Kovid Goyal
249052d6e7
Move delegate dependent code to base class 2025-02-10 10:00:56 +05:30
Kovid Goyal
8f44ab81df
... 2025-02-10 09:47:41 +05:30
Kovid Goyal
a7a00de9c7
Merge branch 'master' of https://github.com/unkn0w7n/calibre 2025-02-10 09:42:58 +05:30
Kovid Goyal
c02b3182ee
Simplify db retrieval when creating editor 2025-02-10 09:41:19 +05:30
unkn0w7n
ff8e342269 Update barrons.recipe 2025-02-10 09:37:39 +05:30
Kovid Goyal
5da6c49d8f
Multiple inheritance makes me nervous 2025-02-10 09:34:57 +05:30
Kovid Goyal
773a5206b3
Fix the root cause of all the book list edit cell problems
The root cause was that Qt doesnt support sharing a delegate between
multiple views. So give the main view and pin view their own delegate
instances. Hopefully I didnt break anything else.
2025-02-10 09:27:26 +05:30
Kovid Goyal
3a64034055
Tabbing should move to next/previous row automatically when editing 2025-02-10 08:10:22 +05:30
Kovid Goyal
f6167d7f0e
Better fix for the Qt book list phantom edits issue
The phantom edits are happening because of the mirroring with the pin
view. Apparently in some update Qt has started triggering edits on
currentChanged events. Sigh.

For the moment we disable editing of cells in the mirrored view when it
is hidden this worksaround the problem for most people, need a better
fix for when the view is being used.
2025-02-10 07:52:16 +05:30
Kovid Goyal
b56849623f
... 2025-02-09 19:37:52 +05:30
Kovid Goyal
ec259a4b78
Merge branch 'master' of https://github.com/unkn0w7n/calibre 2025-02-09 19:35:21 +05:30
unkn0w7n
6e85714db8 Update barrons.recipe 2025-02-09 19:26:53 +05:30
Kovid Goyal
dfb0308e5a
Book list: Fix a regression that caused editing cells in a split book list not working in the second split. Fixes #2097677 [Calibre v7.25 List View no longer allow direct edit of fields in Split Window](https://bugs.launchpad.net/calibre/+bug/2097677)
Note that tabbing in the split list also isnt working, will look at that
next.
2025-02-09 18:37:03 +05:30
Kovid Goyal
4b6d6560f2
Fix DeprecationWarning 2025-02-09 10:04:49 +05:30
Kovid Goyal
c4cca578e4
Merge branch 'fix-variable-cc_url' of https://github.com/un-pogaz/calibre 2025-02-09 09:29:47 +05:30
un-pogaz
5ff898af7b DRY
also fix regresion of displaying search terms
2025-02-08 10:41:22 +01:00
un-pogaz
b84daddb74 never reached code 2025-02-08 10:35:14 +01:00
un-pogaz
b5094f2f5d fix UnboundLocalError
cannot access local variable 'x' where it is not associated with a value
2025-02-08 10:33:00 +01:00
Kovid Goyal
2575737679
Kobo driver: Fix a regression that broke working with very old Kobo devices. Fixes #2092732 [Tolino device detection bug with my Kobo](https://bugs.launchpad.net/calibre/+bug/2092732) 2025-02-08 13:13:04 +05:30
Kovid Goyal
496a9630f1
Add a no-plus quoted value variant 2025-02-08 13:06:14 +05:30
Kovid Goyal
a632436c60
URL quote item_value in CC web search templates 2025-02-08 12:56:54 +05:30
Kovid Goyal
65f89bda7a
Content server: Get custom column web search templates as well 2025-02-08 12:52:23 +05:30
Kovid Goyal
0efd8c7b6d
Content server: When clicking on author names in the book details page perform the same action as clicking it in the calibre program's book details panel 2025-02-08 12:32:52 +05:30
Kovid Goyal
ae15a85e73
Refactor book details web search link generating code to make it re-useable in server 2025-02-08 10:37:19 +05:30
Kovid Goyal
cc8b7ad47b
pep8 and misc cleanups 2025-02-08 09:33:35 +05:30
Kovid Goyal
78be0f69a4
Merge branch 'master' of https://github.com/cbhaley/calibre 2025-02-08 09:26:21 +05:30
Kovid Goyal
32059852d2
... 2025-02-08 09:16:39 +05:30
Kovid Goyal
88f5310317
When calculating body font size clear cache if window.devicePixelRatio changes 2025-02-08 09:12:36 +05:30
Kovid Goyal
bd10c248a0
E-book viewer: Fix header/footer text size too small when using multiple monitors and the primary monitors DPI is much less than secondary monitor DPI. Fixes #2097563 [Header and Footer text in eBook Viewer Illegible on 4k monitor](https://bugs.launchpad.net/calibre/+bug/2097563) 2025-02-08 09:08:43 +05:30
Kovid Goyal
161000b587
And another bad regex conversion to raw string 2025-02-08 08:17:31 +05:30
Kovid Goyal
d01d6d689c
And another place that conversion to raw string broke a regex 2025-02-08 08:09:09 +05:30
Kovid Goyal
748e4c77e8
Conversion: Fix a regression in the previous release that broke heuristic processing 2025-02-08 08:03:46 +05:30
Charles Haley
b48b5d34c8 The real work: interpreting the template and putting into links in book details. This code could use some refactoring and more testing. 2025-02-07 22:16:31 +00:00
Charles Haley
cc93a1a8a5 Changes for the custom column web url template. These aren't particularly risky.
* Change to permit using arbitrary fields added to mi. (base.py)
* Add new action type "cc_url" (book_details.py)
* Code to add the template when creating a custom column
2025-02-07 22:15:24 +00:00
Charles Haley
d7cc86be2e Add a template button to Pref / L&F / book details. Add necessary code for the tester to evaluate the template. 2025-02-07 22:12:38 +00:00
Kovid Goyal
2242151ea6
... 2025-02-07 16:09:20 +05:30
Kovid Goyal
f9b3416db0
Update paths to images.qrc in all the l&f tab UI files 2025-02-07 13:57:34 +05:30
Kovid Goyal
e223bdcb07
Fix #2097597 [[Enhancement] No space between lines in Toolbar box of Look & feel](https://bugs.launchpad.net/calibre/+bug/2097597) 2025-02-07 13:53:00 +05:30