43434 Commits

Author SHA1 Message Date
Kovid Goyal
7005d6ecd0
Use RAII for PROPVARIANT 2021-04-22 22:01:26 +05:30
Kovid Goyal
ad3f147c56
DRYer 2021-04-22 21:30:17 +05:30
Kovid Goyal
51d37960b1
Make handle initialization explicit 2021-04-22 21:25:51 +05:30
Kovid Goyal
d152d5d62d
Use RAII to read the filesystem 2021-04-22 21:07:33 +05:30
Kovid Goyal
5d9e2296f3
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1925378 [Error when trying to edit Undefined Date](https://bugs.launchpad.net/calibre/+bug/1925378)
2021-04-22 07:54:48 +05:30
Charles Haley
8a02c33eb6 Bug #1925378: Error when trying to edit Undefined Date 2021-04-21 19:22:18 +01:00
Kovid Goyal
4796b030db
Merge branch 'master' of https://github.com/cbhaley/calibre 2021-04-21 21:18:30 +05:30
Charles Haley
7d3c0b5b05 More template stuff:
- Replace the newline() function with the character('name') function
- Document the new function
- In the template editor/debugger, display special characters like newline as escaped characters
2021-04-21 16:44:16 +01:00
Kovid Goyal
dc157a4e6b
Merge branch 'master' of https://github.com/cbhaley/calibre 2021-04-21 18:48:39 +05:30
Charles Haley
cc022c6eb9 Formatter changes:
1) Fix a regression that broke specifying a separator for a 'for' statement
2) When parsing, use a table lookup instead of a series of ifs
3) Add a function 'newline()' that returns a newline. Intended to be used with strcat().
4) Better comments
2021-04-21 14:11:07 +01:00
Kovid Goyal
37a13064eb
... 2021-04-21 14:09:45 +05:30
Kovid Goyal
76d6ce3fd2
Start adding RAII to content_enumeration.cpp 2021-04-21 14:00:07 +05:30
Kovid Goyal
b4a1b26145
Forgot to migrate winsapi as well 2021-04-21 12:32:24 +05:30
Kovid Goyal
741abb24d7
... 2021-04-21 12:19:32 +05:30
Kovid Goyal
272ca315ea
On second thoughts overload & is too magical 2021-04-21 11:54:23 +05:30
Kovid Goyal
55f52e0e09
Use RAII in device.cpp 2021-04-21 11:17:45 +05:30
Kovid Goyal
2324812b13
Mark raii class as noexcept 2021-04-21 11:09:09 +05:30
Kovid Goyal
30a37bf583
Fix parseargs converters to wchar 2021-04-21 11:02:31 +05:30
Kovid Goyal
91b7c428d3
Use RAII for device_information 2021-04-21 10:54:27 +05:30
Kovid Goyal
902f25985b
DRYer 2021-04-21 10:44:29 +05:30
Kovid Goyal
10e5697740
Simplify code 2021-04-21 09:52:15 +05:30
Kovid Goyal
2452fbc928
Use RAII for get_device_information
Also the function to set an error from an hresult must return NULL
2021-04-21 09:48:22 +05:30
Kovid Goyal
13d7f3e5d9
Use & instead of address() 2021-04-21 08:30:31 +05:30
Kovid Goyal
a5de2b33c0
Make the RAII constructor explicit 2021-04-21 08:28:07 +05:30
Kovid Goyal
25ae5a1284
DRYer 2021-04-21 07:56:16 +05:30
Kovid Goyal
e1f1572377
Default to running test build during extdev 2021-04-21 07:55:42 +05:30
Kovid Goyal
d7150a4b86
Use RAII for get_storage_info() 2021-04-20 22:37:43 +05:30
Kovid Goyal
014f7fe82a
Use a smart pointer for portable device manager 2021-04-20 20:30:07 +05:30
Kovid Goyal
e1a133c990
Use smart pointers for the device object 2021-04-20 20:03:01 +05:30
Kovid Goyal
4d575db0a4
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1925136 [Rules editors: Moving multiple rules deselects all but one](https://bugs.launchpad.net/calibre/+bug/1925136)
2021-04-20 18:31:37 +05:30
Charles Haley
1ff211dc3d Bug #1925136: Rules editors: Moving multiple rules deselects all but one 2021-04-20 12:37:48 +01:00
Kovid Goyal
06d82ad1c3
Use CComPtr for client information 2021-04-20 14:49:23 +05:30
Kovid Goyal
96af51a318
Start using RAII in WPD driver 2021-04-20 14:29:51 +05:30
Kovid Goyal
1516d709fb
Clean up wpd utils 2021-04-20 14:10:40 +05:30
Kovid Goyal
7f4685544c
Windows MTP driver: Set modified and created times when putting files/folders on device. Also read modified time correctly. 2021-04-20 13:48:50 +05:30
Kovid Goyal
1455f4dda1
Indicate when running in portable mode in the status bar. Fixes #1925108 [list calibre version in bottom left hand corner by version number](https://bugs.launchpad.net/calibre/+bug/1925108) 2021-04-20 11:57:33 +05:30
Kovid Goyal
09470577fe
Windows: E-book viewer: Fix switching away from viewer while in fullscreen and switching back causing some corruption until the page is scrolled. Fixes #1918591 [[Viewer] Using Alt + Tab to switch programs in Windows when using the viewer in full screen, the text is adjusted as it was not in full screen](https://bugs.launchpad.net/calibre/+bug/1918591) 2021-04-20 11:50:17 +05:30
Kovid Goyal
1857483eb0
Start code review of WPD driver 2021-04-20 11:01:22 +05:30
Kovid Goyal
6c0653a9d1
pep8 v5.16.1 2021-04-19 08:36:34 +05:30
Kovid Goyal
c08b0d3ea0
version 5.16.1 2021-04-19 08:35:02 +05:30
Kovid Goyal
4fe2fdc5c1
Use the platform native fullscreen key for the standalone cover browser 2021-04-19 08:21:20 +05:30
Kovid Goyal
961607c554
Micro optimization 2021-04-19 08:05:00 +05:30
Kovid Goyal
ef61093181
Fix #1924875 [Clicking X doesn't start auto scroll when Cover browser is shown in separate window](https://bugs.launchpad.net/calibre/+bug/1924875) 2021-04-18 22:15:41 +05:30
Kovid Goyal
0b94f39d9a
E-book viewer: Fix a regression in 5.15 that caused the viewer to not respect page-break properties 2021-04-18 22:07:25 +05:30
Kovid Goyal
36511cb505
Merge branch 'master' of https://github.com/cbhaley/calibre 2021-04-18 21:13:37 +05:30
Charles Haley
2da2b1400e Add tweak to set the tab stop width in the template editor. 2021-04-18 15:53:39 +01:00
Charles Haley
6e3595a680 Fix regression that broke using stored templates. 2021-04-18 15:51:23 +01:00
Kovid Goyal
a4463603f8
Add encoding declaration to people_daily recipe 2021-04-18 16:09:45 +05:30
Kovid Goyal
e9e53e767b
add a note 2021-04-18 13:54:57 +05:30
Kovid Goyal
c1d261defb
Fix New Scientist login 2021-04-18 13:45:48 +05:30