38385 Commits

Author SHA1 Message Date
Kovid Goyal
2aa745548b
remove leftover debuggin print 2025-02-14 21:56:46 +05:30
Charles Haley
7160de141f Several tag browser rule editor fixes, including:
* Handle non-existent lookup keys and field values.
* Allow choosing a new lookup key if the one in the pref doesn't exist.
* Disable changing the "Only in library" checkbox to avoid throwing away edits.
2025-02-14 16:21:07 +00:00
Charles Haley
9bf7ba7a59 Much better fix for the invalid column problem in the tb icon rules editor. Also fixed a problem with the "Only in current library" box. 2025-02-14 13:55:53 +00:00
Kovid Goyal
c3f9086ced
... 2025-02-14 19:12:08 +05:30
Kovid Goyal
59289e67cd
Fix tabbing over hidden columns 2025-02-14 19:08:07 +05:30
Charles Haley
0fe39c3dea Fix tabbing in the book list and pin view going to wrong columns. 2025-02-14 11:58:15 +00:00
Charles Haley
fb9f56ffc0 Fix problem in L&F / Tag browser icon rules editor triggered by changing a column from a text-type to a composite, presumably by deleting and recreating the column. 2025-02-14 09:43:44 +00:00
Kovid Goyal
6553380eb1
Fix various docs ref bugs 2025-02-14 11:41:26 +05:30
Kovid Goyal
417c05ea41
version 7.26.0 2025-02-14 08:46:31 +05:30
Kovid Goyal
78e0db6f8a
Fix accidental removal of completion from series and publisher delegates 2025-02-13 16:53:17 +05:30
Kovid Goyal
662d5ba809
string changes 2025-02-13 07:47:23 +05:30
Charles Haley
f92971b513 Bug #2098133: Setting custom icon for category doesn't work 2025-02-12 21:47:57 +00:00
Charles Haley
2787b65310 Add a note to the L&F / Book Details custom author url tooltip that the author is already URL-encoded. 2025-02-12 20:40:40 +00:00
Charles Haley
1b70314705 Improvements to the documentation, and allow the "authority" in make_url_extended() to be empty. 2025-02-12 13:55:54 +00:00
Charles Haley
749b421066 Add to the item context menu in book details the ability to copy custom URL links 2025-02-12 13:54:50 +00:00
un-pogaz
56ae7183a3 move "Grid rule editor" to its own widget 2025-02-12 08:45:36 +01:00
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
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
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
c02b3182ee
Simplify db retrieval when creating editor 2025-02-10 09:41:19 +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
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
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