anki/qt/aqt/browser
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
..
sidebar Fix unreadable text when searching in sidebar 2023-01-04 18:16:19 +10:00
table Allow burying cards in browser (#2351) 2023-01-30 19:21:06 +10:00
__init__.py new change notetype implementation for the frontend 2021-06-10 22:19:24 +10:00
browser.py Allow burying cards in browser (#2351) 2023-01-30 19:21:06 +10:00
card_info.py Rework & unify webview identification and title setting (#2366) 2023-02-10 14:53:11 +10:00
find_and_replace.py Import submodules directly (#1662) 2022-02-13 13:40:47 +10:00
find_duplicates.py Rework & unify webview identification and title setting (#2366) 2023-02-10 14:53:11 +10:00
layout.py Equalize browser panes on splitter double-click (#2175) 2022-11-03 12:13:48 +10:00
previewer.py Create the hook will_show_web to control html5 media elements with Javascript (#2340) 2023-02-13 14:50:26 +10:00