Damien Elmes
8a8b7b623b
remove a few unnecessary PyQt workarounds
...
https://www.riverbankcomputing.com/pipermail/pyqt/2021-October/044314.html
2021-10-24 14:24:35 +10:00
Damien Elmes
7971472c65
fixes and documentation for Linux ARM64
...
+ add qt6 dep to wheel install docs
+ remove x86_64 constraint on orjson
2021-10-23 15:22:24 +10:00
Damien Elmes
ba88e78c87
improve PyQt install
...
- use a single script for all PyQt versions
- add hashes
- add a new ./run-qt5.14 script for testing with PyQt5.14
2021-10-23 10:56:17 +10:00
Damien Elmes
8fc77ff294
build all the UI files in one go
...
On macOS, the overhead of importing PyQt for each file far exceeds
any gains we get from incremental recompilation.
2021-10-16 09:20:20 +10:00
Damien Elmes
3f51bd3cff
use string replacements to generate Qt5 forms
...
They are mostly compatible, and this means a Qt5 install is not required
as part of the build process.
2021-10-16 08:59:09 +10:00
Damien Elmes
dac8e547a8
drop PyAudio support
...
I do not recall anyone reporting that it worked better than the Qt
implementation for them, and the lack of recent wheels on PyPI is a pain.
We can always add it back in the future if enough people come out of
the woodwork to report they were using it.
2021-10-15 13:15:16 +10:00
Damien Elmes
631c345ef0
switch to new-style PyQt scoped enums and Qt6
...
The enum changes should work on PyQt 5.x, and are required in PyQt 6.x.
They are not supported by the PyQt5 typings however, so we need to run
our tests with PyQt6.
2021-10-15 12:57:19 +10:00
Damien Elmes
7dc33ad4fe
generate pyqt6 forms
2021-10-15 12:57:19 +10:00
evandrocoan
061f854b82
Increased max visible items from clayout_top.ui ( #1425 )
...
10 is too small for big decks.
2021-10-14 19:36:04 +10:00
Damien Elmes
1db83ba066
use Qt search path instead of resource system
...
Means URLs like :/icons/foo.jpg should become icons:foo.jpg
This is part of the prep work for a PyQt6 update. PyQt6 has dropped
pyrcc, so we can longer generate the icons_qrc.py file we did previously.
Qt Designer expects us to use the resource system, so we continue to
generate the icons.qrc file to make editing the UI files easier. But at
runtime, we no longer use that file.
2021-10-12 16:17:08 +10:00
Damien Elmes
176c626ffd
ctrl+alt+n for forget
...
https://forums.ankiweb.net/t/anki-2-1-44-make-cards-new/12247/7
2021-08-18 15:32:45 +10:00
Damien Elmes
70dec17296
add symlink to generated icons.qrc
...
Otherwise Qt Designer tries to remove the reference.
2021-08-18 15:32:45 +10:00
RumovZ
4b1218184d
Rework Find & Replace dialog:
...
- Add option to affect whole collection
- Allow to open without selection
- Add parameter for presetting field
2021-07-13 16:33:45 +02:00
Henrik Giesel
01cc9df232
Add flag icons from mdi after all
...
- This way, we can also use their modifier versions with little pluses/minuses
2021-07-01 01:16:50 +02:00
Henrik Giesel
d5f8a6e50c
Remove multiple icons, new notetype/cardtype icons
2021-07-01 01:12:11 +02:00
Henrik Giesel
32f3c5dbe7
Replace card state and clock icon
2021-06-30 21:02:23 +02:00
Henrik Giesel
1850f24c4b
Replace saved search icon
2021-06-30 21:02:23 +02:00
Henrik Giesel
5fe2519619
Add new icons for decks
2021-06-30 21:02:23 +02:00
Henrik Giesel
d9a368631f
Add tag_multiple icon
2021-06-30 21:02:23 +02:00
Damien Elmes
efd6d47a05
v3 scheduler: experimental -> beta
2021-06-24 14:46:09 +10:00
Damien Elmes
4ffca62afe
allow customization of default search text
...
https://forums.ankiweb.net/t/whats-the-default-search-when-browsing-now-also-how-do-i-choose-to-browse-current-deck/8922
2021-06-24 11:24:30 +10:00
Henrik Giesel
43171c02af
Allow inclusion of external icons into aqt/forms/icons
...
+ Replace old tag icon with mdi tag and tag-off icon
2021-06-16 17:19:21 +10:00
Damien Elmes
52195cbc5a
remove 'flag ' prefix from flag names
2021-06-04 15:03:17 +10:00
Damien Elmes
d38f57cf3c
Merge pull request #1213 from RumovZ/new-flags
...
Add pink, turquoise and purple flags
2021-06-02 11:22:26 +10:00
RumovZ
d6d712c4a7
Rename violet to pink
2021-06-01 18:14:43 +02:00
Damien Elmes
5ca77f6934
require reposition to start at 0; cap maximum
...
https://forums.ankiweb.net/t/unable-to-reposition-cards-to-negative-start-position/10370/2
2021-06-01 10:09:24 +10:00
RumovZ
9e56a4421b
Add violet, turquoise and purple flags
2021-05-31 12:03:30 +02:00
Damien Elmes
85c5860426
remove sticky setting from fields dialog
...
https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/60
2021-05-28 18:33:29 +10:00
Damien Elmes
b0bde454ff
add v3 scheduler to prefs screen
2021-05-27 23:09:49 +10:00
Damien Elmes
0767754ca6
enable redo support
...
Also:
- fix issues where the Undo action in the Browse screen was not
consistent with the main window. The existing hook signature has been
changed; from a snapshot of the add-on code from a few months ago, it
was not a hook that was being used by anyone.
- change the undo shortcut in the Browse window to match the main
window. It was different because undoing a change in the editing area
could accidentally trigger an undo of an operation, but the damage is
limited now that (most) operations can be redone. If it still proves to
be a problem, perhaps we should just always swallow ctrl+z when an
editing field is focused.
2021-05-19 15:18:39 +10:00
Damien Elmes
973463cb96
split deck description into separate screen linked from overview
2021-04-22 21:03:16 +10:00
Damien Elmes
2a43d42323
run black/isort on Python scripts
2021-04-14 18:22:02 +10:00
RumovZ
460e79ba73
Change notes mode shortcut
2021-04-06 16:48:35 +02:00
RumovZ
dec8fd6181
Tweak new browsing strings
2021-04-06 11:41:18 +02:00
RumovZ
3e87a28232
Add shortcut and tooltip to switch
2021-03-31 18:53:36 +02:00
RumovZ
dd997b20af
Make toggle actions checkable
2021-03-31 10:05:44 +02:00
RumovZ
98288ff1cc
Add switch for browser states
2021-03-29 12:24:24 +02:00
RumovZ
1f79a8766d
squash merge browser refactor
...
Closes #1100
2021-03-29 16:14:54 +10:00
Damien Elmes
1c0f7274f4
enable type checking of aqt/forms, and fix the new typing issues
...
Referencing an invalid translation should now break the build
2021-03-26 16:06:02 +10:00
Damien Elmes
f0b65bfa4b
symlink forms/*.py in for the benefit of editor completions
2021-03-26 15:33:30 +10:00
Damien Elmes
aaf09a19d8
update TR references in .ui files
...
We're not benefiting from type checking yet, as mypy and pylint currently
ignore the generated files
2021-03-26 15:03:51 +10:00
Damien Elmes
6dc98b8010
dyndeckconf -> filtered_deck
2021-03-24 13:17:12 +10:00
RumovZ
b093d62f5a
Merge branch 'master' into sidebar-tools
2021-03-11 12:08:32 +01:00
RumovZ
c018c31985
Merge branch 'master' into sidebar-tools
2021-03-10 10:34:36 +01:00
Damien Elmes
99f825c138
expand backend Preferences and make undoable
...
- moved 'default to current deck when adding' into prefs
- move some profile options into the collection config, so they're
undoable and will sync. There is (currently) no automatic migration
from the old profile settings, meaning users will need to set the
options again if they've customized them.
- tidy up preferences.py
- drop the deleteMedia option that was not exposed in the UI
2021-03-10 18:51:03 +10:00
RumovZ
589fea1046
Remove edit mode
2021-03-08 11:55:15 +01:00
RumovZ
3b1af18b4f
Adjust sidebar tool icons to smaller size
2021-03-04 17:20:10 +01:00
RumovZ
572bf12d9d
Make clickable dyndeck labels fixed in size
2021-03-01 11:26:52 +01:00
Damien Elmes
45e1aacaf1
monospace font in html editor
...
https://forums.ankiweb.net/t/change-default-font-of-html-edit-mode-to-a-monospaced-font/7833
2021-03-01 10:16:12 +10:00
RumovZ
b2964d65bb
Add edit mode in sidebar
2021-02-25 13:12:51 +01:00