38167 Commits

Author SHA1 Message Date
Charles Haley
cf4034c2ff Visual improvements to the icon rules browser. 2025-01-22 14:07:02 +00:00
Kovid Goyal
3e58252176
automated upgrade of python code using ruff and ./setup.py upgrade_source_code 2025-01-22 09:44:19 +05:30
Kovid Goyal
ac76cbff0f
Cleanup previous PR 2025-01-22 09:16:58 +05:30
Charles Haley
6866ce84a2 Fix composites that use database methods not working in the content server. Also fix template searches using the database API not working in the content server. Update the manual. 2025-01-21 21:42:54 +00:00
Kovid Goyal
a56d277b52
... 2025-01-21 19:29:13 +05:30
Kovid Goyal
4a77d39053
Dont store reference to db on tag tree nodes
This has the potential of preventing db garbage collection because of
reference cycles and there is no need since the current db is available
globally in the GUI. And we dont unnecessarily carry around an extra
reference on every node.
2025-01-21 18:53:44 +05:30
Kovid Goyal
2a3fdcc3d5
Cleanup previous PR 2025-01-21 18:49:25 +05:30
Kovid Goyal
abaf03984d
Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-21 18:39:35 +05:30
Charles Haley
df10de2a0b 1)Don't try to convert the database to a LibraryDatabase instance in metadata.py
2) Change formatter functions to use the new_api where possible. Also fix a bug where the wrong exception was raised attempting to get a database object from the weak reference.

These were tested using the command line content server.
2025-01-21 13:03:17 +00:00
Kovid Goyal
296b0d341d
Dump info about device as well 2025-01-21 08:32:36 +05:30
Kovid Goyal
5ed0eda722
... 2025-01-21 07:55:15 +05:30
Kovid Goyal
fe4e0aa6b7
Add mtime to ListEntry 2025-01-21 07:51:06 +05:30
Kovid Goyal
9ab99b34c2
Use FileNotFoundError instead of DeviceError when file/folder is not found 2025-01-21 07:45:49 +05:30
Kovid Goyal
77936feb22
... 2025-01-21 07:38:40 +05:30
Kovid Goyal
0c685e27d0
Add some method API docs 2025-01-21 07:28:31 +05:30
Kovid Goyal
be027ad93a
Create platform independent wrappers for listing and reading by name 2025-01-21 07:25:29 +05:30
Charles Haley
4fa7f55516 Improvements to value icons:
1) Make average rating and count usable in templates
2) Pass the database to safe_format so it can be used in non-GUI contexts.
2025-01-20 18:02:12 +00:00
Kovid Goyal
d1d2e18aaa
Emit changed signal when deleting rule via button 2025-01-20 22:51:28 +05:30
Kovid Goyal
37ad5d3eb9
Fix traceback when clicking in empty part of rules list 2025-01-20 22:50:18 +05:30
Charles Haley
caf76215cd As requested, add buttons and the delete key to the icon rules browser. 2025-01-20 16:17:12 +00:00
Kovid Goyal
e1072478cb
pep8 2025-01-20 20:50:29 +05:30
Kovid Goyal
a26eba374d
Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-20 20:43:51 +05:30
Kovid Goyal
613049d4f1
Implement get_file_by_name for windows MTP driver 2025-01-20 19:11:58 +05:30
Charles Haley
9c662216eb Move DisplayedFields to look_feel_tabs.__init__ 2025-01-20 11:29:19 +00:00
Kovid Goyal
2a36fd3fce
Implement function to get metadata by name 2025-01-20 16:53:41 +05:30
Charles Haley
a750fb4d91 Automatically register the child tab class instances in preferences 2025-01-20 10:09:51 +00:00
Kovid Goyal
b8c92ac9ce
Use bulk fetch for list_folder by name 2025-01-20 14:45:47 +05:30
Kovid Goyal
f19ca06b86
Start work on names based interface for windows mtp driver 2025-01-20 14:16:20 +05:30
Charles Haley
b8a3e09955 Two changes:
1) add a new tab to Pref / L&F / TB to show the rules viewer
2) change the architecture of preferences to support subclasses as tabs.
2025-01-19 18:02:10 +00:00
Kovid Goyal
030a05e7f8
Add libmtp wrapper methods to get files and metadata by name 2025-01-19 09:47:21 +05:30
Kovid Goyal
51d94af28d
Fix name collision in groupbox leading to missing title 2025-01-19 09:23:15 +05:30
Kovid Goyal
9f0505333f
Merge branch 'improve-reset-icon-tag-browser' of https://github.com/un-pogaz/calibre 2025-01-19 07:43:20 +05:30
un-pogaz
cb09c9058f move 'reset all value icons' into the values section 2025-01-18 20:00:54 +01:00
un-pogaz
9ec00f0ca5 add confirm dialog for all deleting icon action 2025-01-18 15:53:03 +01:00
un-pogaz
b4cef06f61 reset only value icons and not template 2025-01-18 14:57:28 +01:00
un-pogaz
a1aba91928 add action to reset all value icons 2025-01-18 14:21:58 +01:00
un-pogaz
6ecf4e8858 ... 2025-01-18 14:14:43 +01:00
Zbigniew Jędrzejewski-Szmek
c04bd03a68 Fix build with -std=gnu23
Gcc 15 defaults to gnu23, which makes bool a native type, so
it cannot be redefined like this.
2025-01-18 13:49:36 +01:00
un-pogaz
e9dd0c5c4f improve reset to default icons 2025-01-17 20:14:33 +01:00
un-pogaz
a503f07bfd DRY 2025-01-17 20:09:33 +01:00
un-pogaz
ee21e84110 ... 2025-01-17 19:12:22 +01:00
un-pogaz
ab4438b6a5 fix also for content-server 2025-01-17 15:05:36 +01:00
un-pogaz
da52211180 fix: icon not loading when using a PTM 2025-01-17 14:54:14 +01:00
Kovid Goyal
c1b3340d37
Bump version for beta release
string changes
2025-01-17 08:19:36 +05:30
Charles Haley
9e1faa1475 Fix regression setting the default category icon 2025-01-16 21:26:41 +00:00
Charles Haley
c7b54fccf2 Escape ampersands in tag browser icon value strings. 2025-01-16 20:42:32 +00:00
Charles Haley
2b5f4eeda0 TB Icons: Fix showing the "Use default" menu line when there is no item value. 2025-01-16 15:44:46 +00:00
Charles Haley
f65b874d1a Stuff for value icons:
- Documentation
- bug fixes in icon template evaluation
- Better enabling/disabling of menu lines in the tag browser context menu
2025-01-16 15:09:17 +00:00
Kovid Goyal
3331d35a49
Cleanup Manage value icons sub-menu
Use the value name when available. It's true that the sub-menu contains
entries to manage overall icons as well, but the common use case is
changing the icon for the particular value, so use the value name in the
menu entry.
2025-01-16 19:20:03 +05:30
Kovid Goyal
39e17d55e3
Get tag browser value icons working in content server 2025-01-16 19:10:11 +05:30