46067 Commits

Author SHA1 Message Date
Charles Haley
6374517dd4 Template debugger: Add breakpoints for python templates. On a breakpoint open a dialog displaying variables in the current frame.
Also indicate when the debugger is waiting for the 'Go' button. This fixes problems when people don't notice they have checked the Enable breakpoints box.
2022-10-24 13:48:57 +01:00
Kovid Goyal
77dc74137f
... 2022-10-23 09:13:07 +05:30
Kovid Goyal
8537ba6de2
... 2022-10-23 09:11:47 +05:30
Kovid Goyal
92b0f3e78d
... 2022-10-22 20:09:16 +05:30
Kovid Goyal
78c399c174
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1993756 [Calibre 6.7.1* (source): Check library fails](https://bugs.launchpad.net/calibre/+bug/1993756)
2022-10-21 13:40:53 +05:30
Charles Haley
ff90485134 Bug 1993756: Check library fails 2022-10-21 09:02:16 +01:00
Kovid Goyal
cafc1b44cd
Also special case @kindle.cn as apparently that is used in China
See https://bugs.launchpad.net/calibre/+bug/1993728
2022-10-21 13:02:40 +05:30
Kovid Goyal
7fda097623
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-20 21:17:52 +05:30
Charles Haley
0f822adf73 I messed up widgetForAction(). list.index() raises an exception, not returning -1. 2022-10-20 16:41:39 +01:00
Kovid Goyal
140e9cd164
yes we need right click, its much easier to use than clicking the drop-down arrow 2022-10-20 21:07:29 +05:30
Kovid Goyal
47df5f10f2
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-20 21:06:14 +05:30
Charles Haley
f2a5c18a4f Bug 1993622: Toolbar button oddities on search bar
The major change is using a new class SearchToolBar to mimic a ToolBar. This lets the BarsManager treat the SearchToolBar as a "normal" toolbar. This fixed the two problems reported in this bug report.

In addition I fixed:
- "Mark Books" to install its event listener on SearchToolBar buttons.
- SavedSearchs to find SearchToolBar buttons when using keyboard shortcuts.
- Prevent the location manager and the donate action from being added to the SearchToolBar.
2022-10-20 16:13:06 +01:00
Kovid Goyal
fd8270d72c
Update eenadu_ap 2022-10-20 15:12:00 +05:30
Kovid Goyal
35cb784452
See if using python instead of curl bypasses the windows CI failure 2022-10-20 11:15:51 +05:30
Kovid Goyal
d924db2fcd
Fix #1993591 [Get eBooks: No option to clear search history](https://bugs.launchpad.net/calibre/+bug/1993591) 2022-10-20 08:13:01 +05:30
Kovid Goyal
851df00a06
unique_name should not be translated
Fixes #1993574 [Calibre 6.7.1* (source): Virtual library madness](https://bugs.launchpad.net/calibre/+bug/1993574)
2022-10-20 07:46:02 +05:30
Kovid Goyal
f810bb7974
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-20 07:41:54 +05:30
Charles Haley
83c00e877f Re:
The buttons on the search bar dont behave like they do in the toolbars.
    Clicking on a button with a menu pops up the menu but does not perform
    the action. And right clicking on them has no effect. This will be
    confusing and a source of bug report noise. So maybe if the action has a
    menu, have it open on right click only, depending on popup_type in the
    action definition.

This problem arose because my code for keyboard shortcuts in Saved searches and Manage categories didn't work if the buttons on the search toolbar had menus. The popup menu appeared in some seemingly random spot. Of course it wasn't random, but ... I fixed it by changing the button to pop up the menu. That caused the behavior change.

I fixed this by removing the shortcuts from the main actions of Saved searches and Manage categories. Instead I used the API you provided in InterfaceAction to create menu items with shortcuts. With the change the 'main' qaction acts like it should, triggering the action for the button pressed. Right-click shows the menu as does clicking the down arrow.

Using a shortcut triggers the hidden menu action, which causes the code to search for any convenient place to put the menu. FWIW: this is a much better implementation. The 'hunt around' code only executes when the user presses a shortcut.

As a consequence existing shortcuts for Manage categories are lost because the shortcut name changed. Oh well. I doubt there are many, probably not any, calibre users who have defined a keyboard shortcut. They haven't had long -- only a release or two.
2022-10-19 21:32:46 +01:00
Charles Haley
288212f016 Update the search bar when closing the search preferences window. 2022-10-19 21:12:59 +01:00
Charles Haley
b2e43c4101 Bug #1993574: virtual libraries don't work 2022-10-19 20:46:23 +01:00
Kovid Goyal
005fae39c2
pep8 2022-10-19 20:48:54 +05:30
Kovid Goyal
49a2150b08
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-19 20:48:24 +05:30
Charles Haley
0a6d1b4b4a Sorry, I forgot the separator. 2022-10-19 15:00:59 +01:00
Kovid Goyal
db2bf66f97
Uf there is only one screen of matching size, use it 2022-10-19 17:00:17 +05:30
Kovid Goyal
de88d2fd39
Use the new restore geometry code 2022-10-19 16:55:42 +05:30
Kovid Goyal
0d8c25f89e
allow getting legacy geometry more flexibly 2022-10-19 16:31:53 +05:30
Charles Haley
f20e426efb Make tools on the search bar customizable.
Given that the saved searches action and the saved search button on the search bar now do the same thing, it seems reasonable to allow the user to choose whether the saved search button shows. I went from there to "Why not allow adding other buttons to the bar?" There is a lot of available real estate on that bar. This commit does that using a new toolbar in preferences / toolbars.

I didn't use a QToolBar, instead constructing a 'classic' toolbar in an QHBoxLayout. That gave me more control over the look and placement. And also, I had no end of trouble trying to work through how to use a QToolBar that isn't attached to a QMainWIndow.

In the process I removed the legacy Saved Search combo box, its associated buttons, and the tweak. I am sure there are some people still using the years-old interface and that they will complain. I can accept that, given that the button is better in almost every way.
2022-10-19 11:54:41 +01:00
Kovid Goyal
3335ebafa3
... 2022-10-19 08:13:48 +05:30
Kovid Goyal
a63071b4fd
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-18 20:22:46 +05:30
Charles Haley
ac7c20bf99 Fix manage categories and saved searches to allow assigning a shortcut without provoking a conflict. 2022-10-18 14:55:36 +01:00
Kovid Goyal
718cdffadd
... 2022-10-18 17:33:00 +05:30
Kovid Goyal
15d41840f5
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-18 17:31:37 +05:30
Charles Haley
70d5c98782 Several things:
- Add some "manage" actions to the saved searches menu
- Make the saved search button on the search toolbar and the saved searches action use the same menu
- Change some of the icons to use the existing dedicated saved search icons.
- Display the menu under a toolbar action or a menu action if either exists. NB: I don't know if this works on a Mac or Linux
- Make manage categories and saved searches use the same code to place the menu on the screen.
2022-10-18 12:22:45 +01:00
Kovid Goyal
6d2ea74a2c
Use old Qt saved geometry data if new data is not available 2022-10-18 15:13:18 +05:30
Kovid Goyal
0f05cf7655
More work on geometry restoration 2022-10-18 14:13:34 +05:30
Kovid Goyal
e53948ca39
No shortcut is indicated by None not '' 2022-10-18 11:13:27 +05:30
Kovid Goyal
0fbbc255b3
Debug information about screens on first restore 2022-10-18 09:16:40 +05:30
Kovid Goyal
cd8308765a
... 2022-10-18 08:09:20 +05:30
Kovid Goyal
57a24aa767
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-17 21:48:22 +05:30
Charles Haley
096579e13b Formatter: Quick pass over messages and documentation. 2022-10-17 16:51:51 +01:00
Kovid Goyal
a7eb71c343
... 2022-10-17 21:05:54 +05:30
Kovid Goyal
37a8a403e9
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-17 20:44:35 +05:30
Charles Haley
7ec6619a0e Add an action to show saved searches in a menu.
The action can be triggered by a toolbar button, a shortcut, or on the booklist context menu.
2022-10-17 16:04:37 +01:00
Kovid Goyal
dd8d3bfeef
Cleanup previous PR 2022-10-17 20:11:16 +05:30
Kovid Goyal
8b270da20f
Merge branch 'python_template_introspection' of https://github.com/un-pogaz/calibre 2022-10-17 19:58:34 +05:30
un-pogaz
02b2811892 chaley recommandation 2022-10-17 14:22:19 +02:00
Kovid Goyal
15b12738f8
Merge branch 'typos' of https://github.com/luzpaz/calibre 2022-10-17 09:52:29 +05:30
luz paz
424690e206 Fix various typos
Found via `codespell -q 3 -S./Changelog.*,./resources/dictionaries  -L alo,ans,pard,ro`
2022-10-16 23:33:44 -04:00
Kovid Goyal
1de95a2897
... 2022-10-16 21:05:55 +05:30
Kovid Goyal
502cdadcd0
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-16 20:06:58 +05:30