1628 Commits

Author SHA1 Message Date
Kovid Goyal
0139ed13fe
E-book viewer: Hide the controls when clicking the back or forward buttons 2021-02-08 15:11:35 +05:30
Kovid Goyal
2e0b2d1573
E-book viewer: When jumping to a highlight using the highlights panel, the back button should return to position before jump. Fixes #1914921 [Highlights are not integrated with the navigation history](https://bugs.launchpad.net/calibre/+bug/1914921) 2021-02-07 20:04:26 +05:30
Kovid Goyal
ccc1cad840
Add an All button 2021-02-05 20:53:20 +05:30
Kovid Goyal
7ecd365899
Content server: When browsing highlights for a book allow selecting multiple highlights to delete or export quickly 2021-02-05 20:49:19 +05:30
Kovid Goyal
abbed6e40c
Also set this as event for title_action to match action 2021-02-05 12:09:01 +05:30
Kovid Goyal
92d9c9055d
Forgot to pass event to container title bar callback 2021-02-05 12:02:32 +05:30
Kovid Goyal
12bee0e3cd
Content server: Re-use top bar styling for simple overlays 2021-02-05 11:49:46 +05:30
Kovid Goyal
ccf69016df
Content server: Fix dragging selection handles not working in Safari. Fixes #1913854 [Cannot drag text selection handle on iOS touch screen devices](https://bugs.launchpad.net/calibre/+bug/1913854)
Apparently on safari to modify a selection its not enough to modify the
range, one has to set the range on the selection
2021-01-30 10:54:34 +05:30
Kovid Goyal
57d5585224
Add the button role 2021-01-28 08:53:07 +05:30
Kovid Goyal
1df2ed477e
Refactor shortcut definitions
Now they are directly keyed on runtime.is_standalone_viewer since that
is the canonical reference as to which mode we are running in.
2021-01-27 13:58:38 +05:30
Jiahao Li
75b426cc8f E-book viewer: Add shortcut option for syncing
Add a shortcut option for syncing last position and annotations. The option is
only added for non-standalone viewer mode since book syncing only applies
there. No default binding is assigned.
2021-01-27 00:25:44 -05:00
Kovid Goyal
ce33ebe682
DRYer 2021-01-26 09:51:52 +05:30
Kovid Goyal
da53430e77
E-book viewer: Redesign the reference mode to also work on touch screens without a mouse. Now in reference mode paragraph numbers are displayed for all paragraphs 2021-01-26 09:46:18 +05:30
Kovid Goyal
4b3ac510bf
E-book viewer: Highlight all currently visible ToC nodes, not just the first. See #1912003 (E-book viewer: at some circumstances incorrect ToC entries get highlighted) 2021-01-21 11:05:10 +05:30
Kovid Goyal
309cecad1c
E-book viewer: Fix scrolling with two fingers on touchpad on macOS not smooth. Fixes #1911218 [Scrolling with built-in trackpad of MacBook Pro on macOS very unsmooth](https://bugs.launchpad.net/calibre/+bug/1911218)
On macOS swiping fast tends to scroll along both axes simultaneously
2021-01-21 08:21:55 +05:30
Kovid Goyal
991e61af32
E-book viewer: Move read aloud popup bar to the bottom of the screen in flow mode. Fixes #1911470 [Read Aloud toolbar covers text](https://bugs.launchpad.net/calibre/+bug/1911470) 2021-01-19 19:33:36 +05:30
Kovid Goyal
eae5ff6d88
E-book viewer: Fix a regression that caused non-HTML descriptions to not be displayed in the metadata page 2021-01-19 09:24:34 +05:30
Kovid Goyal
15e8980cb2
E-book viewer: Allow adding a button to the selection bar that copies the currently selected text along with a calibre:// URL to show the text in the book. See #1912070 ([Enhancement] Additional access to copying Go To URL location link) 2021-01-18 13:14:22 +05:30
Kovid Goyal
9032d92954
E-book viewer: Add keyboard shortcuts to copy the current location to the clipboard. Fixes #1912070 [[Enhancement] Additional access to copying Go To URL location link](https://bugs.launchpad.net/calibre/+bug/1912070) 2021-01-18 11:21:45 +05:30
Kovid Goyal
93aed4db7a
Also add a test for AP based date formatting 2021-01-14 20:15:55 +05:30
Kovid Goyal
6daa33600d
E-book viewer: Fix clock being displayed in 24 hr format on some systems even though system locale is set to use 12 hr format. 2021-01-14 20:13:14 +05:30
Kovid Goyal
b33ea2fcd3
Add a reference to Qt bug for mediaplaypause 2021-01-08 14:40:37 +05:30
Kovid Goyal
2b08beb226
Fix #1909314 [[Enhancement - Content server] Delete book by pressing Delete key on the Book details page](https://bugs.launchpad.net/calibre/+bug/1909314) 2021-01-06 18:57:49 +05:30
Kovid Goyal
54c6c6e3d7
Add a download button to the export highlights dialog 2021-01-06 15:09:49 +05:30
Kovid Goyal
13d829c74a
Add links in markdown export for browser viewer 2021-01-06 14:57:06 +05:30
Kovid Goyal
fa85e012dd
Content server viewer: Allow exporting all highlights
Fixes #1909529 [Browser viewer: Highlight management](https://bugs.launchpad.net/calibre/+bug/1909529)
2021-01-06 14:38:14 +05:30
Kovid Goyal
ed0f7e9684
Add an alias fo rthe play/pause toggle key 2021-01-05 16:22:07 +05:30
Kovid Goyal
23f0086ab7
Cancel any speech in progress when hiding the selection_bar after triggering the speak aloud action on it 2021-01-03 22:29:51 +05:30
Kovid Goyal
2ccfa5140e
Validate saved value 2020-12-24 16:44:59 +05:30
Kovid Goyal
4a3f3dd7d2
Forgot to fix restore defaults in previous commit 2020-12-24 16:25:11 +05:30
Kovid Goyal
619665880a
Fix #1909197 [cannot change layout settings in calibre 5.8, especially from single page to multiple page view.](https://bugs.launchpad.net/calibre/+bug/1909197) 2020-12-24 16:16:45 +05:30
Kovid Goyal
2a66dfead0
Edit book: A new option to show a configurable number lines above the current line when syncing the position of the preview panel to the current position in the code editor (under Preview settings in the Editor preferences). Fixes #1908929 [Enhancement request for seeing code changes in file previewer.](https://bugs.launchpad.net/calibre/+bug/1908929) 2020-12-23 19:16:06 +05:30
Kovid Goyal
70424872de
Apparently using transform change scrollWidth
Account for that as well, which further fixes scrolling on iOS
2020-12-22 10:40:26 +05:30
Kovid Goyal
ecea8435e6
Browser viewer: Fix regression in 5.0 that broke scrolling on iOS
viewport_to_document() cannot reset transforms, as transforms are used
for scrolling on iOS
2020-12-22 09:46:45 +05:30
Kovid Goyal
508936d721
DRYer 2020-12-21 11:33:06 +05:30
Kovid Goyal
47b4530a56
Viewer: Fix error when scrolling to some search results in flow mode. Fixes #1908000 [calibre viewer shows "Unhandled error: Uncaught InvalidStateError: Failed to execute 'surroundContents' on 'Range'" after RegExp searching in epub-file](https://bugs.launchpad.net/calibre/+bug/1908000) 2020-12-21 11:27:16 +05:30
Kovid Goyal
af59788c71
Consolidate the various modal overlays 2020-12-19 08:28:21 +05:30
Kovid Goyal
7c5f4bd48b
String changes 2020-12-18 17:31:46 +05:30
Kovid Goyal
08cafd1de0
String changes 2020-12-17 22:35:04 +05:30
Kovid Goyal
ff87e15bbb
Fix Esc key not working on a couple of panels
See #1849958 ([Enhancement] Go back by clicking Esc on server)
2020-12-16 10:11:08 +05:30
Kovid Goyal
762f1b659a
E-book viewer: Dont enter fullscreen mode automatically when reading on desktop like devices (this can be controlled via a setting in in the viewer preferences under Page layout) 2020-12-16 10:03:50 +05:30
Kovid Goyal
e617f65470
Make page layout prefs a bit more compact 2020-12-16 08:51:12 +05:30
Kovid Goyal
99ddd5457d
Handle more than 36 hints on screen 2020-12-15 22:26:26 +05:30
Kovid Goyal
4470b0aaaf
... 2020-12-15 21:50:32 +05:30
Kovid Goyal
e7cb72029c
Also hint external links 2020-12-15 21:46:19 +05:30
Kovid Goyal
be884acaf4
Show an error when no hints are found 2020-12-15 21:31:37 +05:30
Kovid Goyal
7f202f513d
Animate hint activation 2020-12-15 21:17:02 +05:30
Kovid Goyal
96ba30f754
Hints should not cause reflow 2020-12-15 20:40:01 +05:30
Kovid Goyal
d88e7788c3
Get basic hint activation working 2020-12-15 20:14:40 +05:30
Kovid Goyal
168c75d5d1
More hints work 2020-12-15 16:14:52 +05:30