Damien Elmes
281f1b2bf9
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
2c17105a35
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
52642d693b
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
a7812dedc0
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
b0272f0336
generate pyqt6 forms
2021-10-15 12:57:19 +10:00
evandrocoan
2a12d44b34
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
e357dbf6b3
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
546d32cfda
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
40c1a86a25
add symlink to generated icons.qrc
...
Otherwise Qt Designer tries to remove the reference.
2021-08-18 15:32:45 +10:00
RumovZ
a5193339e7
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
8edcc54aae
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
bcfbd2f680
Remove multiple icons, new notetype/cardtype icons
2021-07-01 01:12:11 +02:00
Henrik Giesel
803295341e
Replace card state and clock icon
2021-06-30 21:02:23 +02:00
Henrik Giesel
39075039de
Replace saved search icon
2021-06-30 21:02:23 +02:00
Henrik Giesel
da69a5e352
Add new icons for decks
2021-06-30 21:02:23 +02:00
Henrik Giesel
dedddd7f8d
Add tag_multiple icon
2021-06-30 21:02:23 +02:00
Damien Elmes
a190697fd7
v3 scheduler: experimental -> beta
2021-06-24 14:46:09 +10:00
Damien Elmes
114eec6585
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
3aebae9f13
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
cff8069ef9
remove 'flag ' prefix from flag names
2021-06-04 15:03:17 +10:00
Damien Elmes
578b1b0552
Merge pull request #1213 from RumovZ/new-flags
...
Add pink, turquoise and purple flags
2021-06-02 11:22:26 +10:00
RumovZ
5e7a47fdc7
Rename violet to pink
2021-06-01 18:14:43 +02:00
Damien Elmes
688f22b4c8
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
c97c6c6e98
Add violet, turquoise and purple flags
2021-05-31 12:03:30 +02:00
Damien Elmes
7caaf0c735
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
6cc713cbe8
add v3 scheduler to prefs screen
2021-05-27 23:09:49 +10:00
Damien Elmes
9f3f6bab7d
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
f6a59ebdfa
split deck description into separate screen linked from overview
2021-04-22 21:03:16 +10:00
Damien Elmes
c49d6ce49f
run black/isort on Python scripts
2021-04-14 18:22:02 +10:00
RumovZ
08226e2004
Change notes mode shortcut
2021-04-06 16:48:35 +02:00
RumovZ
a1277b0919
Tweak new browsing strings
2021-04-06 11:41:18 +02:00
RumovZ
52b66dc985
Add shortcut and tooltip to switch
2021-03-31 18:53:36 +02:00
RumovZ
c8146c13c1
Make toggle actions checkable
2021-03-31 10:05:44 +02:00
RumovZ
ad7ac06398
Add switch for browser states
2021-03-29 12:24:24 +02:00
RumovZ
0d8b1c9d0b
squash merge browser refactor
...
Closes #1100
2021-03-29 16:14:54 +10:00
Damien Elmes
5a094e78fa
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
3079eaa460
symlink forms/*.py in for the benefit of editor completions
2021-03-26 15:33:30 +10:00
Damien Elmes
dbcb997ad7
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
5a1b00b6e6
dyndeckconf -> filtered_deck
2021-03-24 13:17:12 +10:00
RumovZ
f4c2fe6485
Merge branch 'master' into sidebar-tools
2021-03-11 12:08:32 +01:00
RumovZ
0c2ac4ba04
Merge branch 'master' into sidebar-tools
2021-03-10 10:34:36 +01:00
Damien Elmes
6b1dd9ee19
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
08c09bcb0f
Remove edit mode
2021-03-08 11:55:15 +01:00
RumovZ
6930ea24a9
Adjust sidebar tool icons to smaller size
2021-03-04 17:20:10 +01:00
RumovZ
e29bd4479b
Make clickable dyndeck labels fixed in size
2021-03-01 11:26:52 +01:00
Damien Elmes
e218604708
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
4a1e995934
Add edit mode in sidebar
2021-02-25 13:12:51 +01:00
RumovZ
9d3da3b844
Add icons for sidebar tools
2021-02-25 11:02:17 +01:00
RumovZ
d6b1c0cf3a
Give dyndeck hint unique styling
2021-02-23 23:34:05 +01:00
RumovZ
ae88f7e593
Add clickable hint to dyndeckconf
2021-02-23 23:14:11 +01:00