Kovid Goyal
21d4a3b7cb
More PyQt6 nonsense
2022-07-06 19:19:33 +05:30
Kovid Goyal
eb78a761a9
Automated upgrade of code to python 3.7+
...
Done by https://github.com/asottile/pyupgrade
Consists mainly of moving string formatting to f-strings and removing
encoding declarations
2022-01-08 11:47:40 +05:30
Kovid Goyal
d9bdbbab7f
Replace use of the deprecated QDesktoWidget
...
It is removed in PyQt6
2021-11-19 22:01:50 +05:30
Kovid Goyal
7d85958b57
more meaningless pyqt busywork
...
PyQt6 makes exec_() no longer available as an alias for exec(). Just to
waste my time, I suppose.
2021-11-19 21:05:35 +05:30
Kovid Goyal
0e9b1c55e6
Edit book: Add a tool to transform HTML tags based on rules (Tools->Transform HTML)
2021-11-11 09:54:20 +05:30
Kovid Goyal
f7a70971d1
String changes
2021-11-10 10:03:02 +05:30
Eli Schwartz
fd467c4527
perform various automated cleanups of python2-compatible code
...
performed using:
```
pyupgrade --keep-percent-format --py3-only
```
and committing the results.
This changes various things, including:
- remove u from u'' strings, since python3 strings are always unicode
- consolidate on OSError for various exceptions that are deprecated aliases
- dict/set literals and comprehensions
- yield from
- remove extraneous () produced by accident by some modernization code
- modern super()
- remove __future__ imports
etc.
2021-10-20 21:45:51 -04:00
Eli Schwartz
39a22268b9
py3 porting cleanup: drop str proxy
...
We don't need unicode_type anymore, because the str/unicode split
disappeared.
In addition to converting all unicode_type to str, there are some cases
where string literals were converted to unicode_type, e.g. for r''
strings, since ur'' didn't work. These can now be dropped entirely.
2021-10-20 21:45:24 -04:00
Eli Schwartz
887f620406
py3 porting cleanup: remove unneeded indirect import of builtins
...
filter, map, range, and zip were proxied through polyglot.builtins to
ensure that their `future_builtins` forms were used. In python3 this is
no longer needed and they don't need to be imported at all, from
anywhere. So, don't.
2021-10-20 21:43:43 -04:00
Kovid Goyal
8bc07171ff
Workaround Qt bug that broke restoring of dock widget states in the editor
2021-07-09 08:29:28 +05:30
Kovid Goyal
efdf661457
Remove DBUS based global menu and system tray code
...
This was mainly present to support GNOME and GNOME has decided to ditch
system trays and global menus. Since the python-dbus package this code
uses is not maintained, ditch it entirely.
2021-06-24 10:55:12 +05:30
Kovid Goyal
dae94f64ee
Initial auto-conversion of PyQt imports
2021-03-01 14:38:47 +05:30
Kovid Goyal
70e383ccbf
More stupid PyQt enums
2020-12-08 20:42:41 +05:30
Kovid Goyal
289a5977af
pep8
2020-12-06 09:09:34 +05:30
Kovid Goyal
dcbb893367
Edit book: Ensure popup message box is hidden at startup
...
Was visible in the system theme on windows
2020-12-05 21:51:03 +05:30
Kovid Goyal
5c9e597fb3
Use the new PyQt scoped enums
2020-12-03 09:17:37 +05:30
Kovid Goyal
cc5bc58856
Ensure popup never gets focus
2020-11-26 21:45:00 +05:30
Kovid Goyal
8c5869dfc7
Edit book: Show up unobtrusive popup for a few seconds to allow undoing file delete operations
2020-11-26 08:02:10 +05:30
Kovid Goyal
0ff2db7f7b
String changes
2020-11-03 11:20:36 +05:30
Kovid Goyal
786f3e963e
Edit book: Add an action to the right click menu for tabs to close tabs to the right of the current tab. Fixes #1902518 [feature request: Lock tabs in editor so that they don't close in close all other tabs action]( https://bugs.launchpad.net/calibre/+bug/1902518 )
2020-11-02 17:52:18 +05:30
Kovid Goyal
13552bef07
isosx -> ismacos
2020-09-09 14:51:09 +05:30
Kovid Goyal
b0633f3db0
String changes
2020-09-03 14:06:09 +05:30
Kovid Goyal
9ff27782de
Remove useless __future__ imports
...
Not needed on python3
2020-08-22 18:47:55 +05:30
Kovid Goyal
29cd8d64ea
Change shebangs to python from python2
...
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30
Kovid Goyal
53cd9b3f42
Edit book: Show EPUB version in window title
2020-07-22 17:24:09 +05:30
Kovid Goyal
24645ef1d7
String changes
2020-05-20 20:13:24 +05:30
Kovid Goyal
ba362375ae
Fix #1872249 [[Enhancement] Don't use bold fonts in the bottom toolbar]( https://bugs.launchpad.net/calibre/+bug/1872249 )
2020-04-12 10:11:26 +05:30
Kovid Goyal
6a71dd647b
...
2020-02-27 07:38:03 +05:30
Kovid Goyal
da1b823e07
String changes
2020-02-27 07:37:01 +05:30
Kovid Goyal
17b09210ee
String changes
2020-02-25 19:42:58 +05:30
Kovid Goyal
3196e631ef
String changes
2020-02-20 11:25:27 +05:30
Kovid Goyal
3247c8b6ae
Make text in current tab italic throughout
2020-01-12 08:04:26 +05:30
Kovid Goyal
dcc5757a24
Make font italic for current tab in editor
2020-01-02 00:12:54 +05:30
Kovid Goyal
02343fd965
Possible fix for offscreen dialogs on windows
...
See https://bugreports.qt.io/browse/QTBUG-77385
2019-12-27 09:21:25 +05:30
Kovid Goyal
34d3011726
Get rid of busy loop retries for connecting to inspector dock
2019-10-05 11:10:38 +05:30
Kovid Goyal
7198248ce9
Fix error when installing a new editor plugin because of web engine initialization
2019-09-13 09:13:35 +05:30
Kovid Goyal
5e55554454
Restore inspector functionality for the preview pane
2019-09-13 09:12:09 +05:30
Eli Schwartz
c05fdfa1c6
use unicode_type instead of introspecting type('')
2019-09-08 13:46:50 +05:30
Eli Schwartz
45ca4c7934
py3: merge multiline __future__ imports to not confuse 2to3
2019-05-27 00:41:14 -04:00
Eli Schwartz
a623717d96
python3: apply various fixes from python-modernize "dict_six"
...
Imports were then fixed and consolidated to derive from the internal
polyglot.builtins
2019-03-24 01:18:27 -04:00
Kovid Goyal
2d4127f7b9
Get rid of more xrange
2019-03-13 18:19:24 +05:30
Eli Schwartz
cbc42bec23
python3: add unicode/unichr wrappers to polyglot
2019-03-13 06:41:38 +05:30
Kovid Goyal
409aac87dd
Donate buttons should link to localized donate pages
...
Fixes #1819064 [Clicking on the heart (donate) button will not get you to the donate page in your language](https://bugs.launchpad.net/calibre/+bug/1819064 )
2019-03-08 10:32:08 +05:30
Kovid Goyal
5234e43f0e
Port future_builtins to polyglot
2018-09-10 20:12:01 +05:30
Kovid Goyal
0f276ad5a0
Edit book: Add a shortcut (Ctrl+Alt+Down) to edit the next file in the book spine. Fixes #1779616 [Editor: Add a keyboard shortcut to open the next file]( https://bugs.launchpad.net/calibre/+bug/1779616 )
2018-07-03 08:24:12 +05:30
Kovid Goyal
5d95d13935
Edit Book: Fix names for some control characters not being displayed in the status bar
...
Uses the unicode names database I created for kitty. Much more
comprehensive than the one in ICU.
2018-05-01 10:23:50 +05:30
Kovid Goyal
7f7e73f4d2
Edit book: Fix upgrade book tool accidentally rplacing remove unused css tool
2018-04-20 12:54:44 +05:30
Kovid Goyal
4a9f5d2a18
Edit Book: Add a tool to upgrade EPUB 2 books to EPUB 3. Accessed via Tools->Upgrade book internals
2018-04-15 19:47:18 +05:30
Kovid Goyal
564cafdba6
...
2017-10-25 23:29:01 +05:30
Kovid Goyal
1e12b7fede
...
2017-10-22 09:20:12 +05:30