Anki/qt
Damien Elmes 1e849316be more reset refactoring
'card modified' covers the common case where we need to rebuild the
study queue, but is also set when changing the card flags. We want to
avoid a queue rebuild in that case, as it causes UI flicker, and may
result in a different card being shown. Note marking doesn't trigger
a queue build, but still causes flicker, and may return the user back
to the front side when they were looking at the answer.

I still think entity-based change tracking is the simplest in the
common case, but to solve the above, I've introduced an enum describing
the last operation that was taken. This currently is not trying to list
out all possible operations, and just describes the ones we want to
special-case.

Other changes:

- Fire the old 'state_did_reset' hook after an operation is performed,
so legacy code can refresh itself after an operation is performed.
- Fire the new `operation_did_execute` hook when mw.reset() is called,
so that as the UI is updated to the use the new hook, it will still
be able to refresh after legacy code calls mw.reset()
- Update the deck browser, overview and review screens to listen to
the new hook, instead of relying on the main window to call moveToState()
- Add a 'set flag' backend action, so we can distinguish it from a
normal card update.
- Drop the separate added/modified entries in the change list in
favour of a single entry per entity.
- Add typing to mw.state
- Tweak perform_op()
- Convert a few more actions to use perform_op()
2021-03-19 19:45:21 +10:00
..
aqt more reset refactoring 2021-03-19 19:45:21 +10:00
icons move remaining Filter button items into sidebar 2021-02-05 18:58:22 +10:00
linux remove old symlink before installing a new version 2020-12-30 20:56:28 +10:00
mac exclude Mac dylib from '...' 2021-02-04 20:41:08 +10:00
tests start work on more clearly defining backend/protobuf boundaries 2021-01-31 18:55:45 +10:00
tools more reset refactoring 2021-03-19 19:45:21 +10:00
.isort.cfg initial Bazel conversion 2020-11-01 14:26:58 +10:00
.pylintrc more reset refactoring 2021-03-19 19:45:21 +10:00
bazelfixes.py fix deprecation error on startup on Windows 2020-12-16 15:56:10 +10:00
BUILD.bazel document ANKI_PROFILE_CODE and add bazel command to run snakeviz 2020-12-17 12:03:24 +10:00
dmypy-watch.sh add a bunch of return types 2021-02-01 23:53:23 +10:00
mypy.ini add remaining types and disable missing types on (almost) all aqt 2021-02-03 00:00:29 +10:00
README.md minor doc updates 2020-12-11 22:37:12 +10:00
runanki.py fix pywintypes issue when running tests on Windows 2020-11-02 21:36:01 +10:00

Python's Qt GUI is in aqt/