anki/qt/tools
evandrocoan d9f1e22648
Create the hook will_show_web to control html5 media elements with Javascript (#2340)
* Replaced ankimedia object directly call by addon specific hook

# Conflicts:
#	qt/aqt/browser/previewer.py
#	qt/aqt/clayout.py
#	qt/aqt/reviewer.py

* Replaced ankimedia.js by addon specific hook

# Conflicts:
#	qt/aqt/browser/previewer.py
#	qt/aqt/clayout.py
#	qt/aqt/main.py

* Create specific location name for each hook to reuse control

* Created the card_review_webview_did_init hook

* Extended the hook card_will_show to replace will_show_web

The new hook card_will_show_state takes three new arguments

* Created the hook audio_did_pause_or_unpause to replace will_show_web

The new hook is called when audio toggle pause is called

* Created the hook audio_will_replay to replace will_show_web

The new hook is called when the audio is replayed by the user.

* Created the hook previewer_will_redraw_after_show_both_sides_toggled

to replace will_show_web.
The new hook fully replaces the last uses of will_show_web.

* Replaced card_will_show_state hook with reviewer_did_init and

equivalents. Instead of receiving the required state, it access it
by caching the object values with hooks as reviewer_did_init.
2023-02-13 14:50:26 +10:00
..
build_qrc.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
build_ui.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
color_svg.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
extract_sass_vars.py Auto-hide toolbar in Reviewer (#2262) 2023-01-09 14:39:31 +10:00
genhooks_gui.py Create the hook will_show_web to control html5 media elements with Javascript (#2340) 2023-02-13 14:50:26 +10:00
profile.py add missing copyright headers to *.py 2021-04-13 18:45:35 +10:00
runanki.system.in