anki/qt/aqt/browser/__init__.py
Damien Elmes 78a3536bfc move "find duplicates" into separate file
As far as I'm aware, no add-ons were extending that screen, so I've
dropped the old context object and the export in browser/__init__.py
2021-05-08 14:33:43 +10:00

45 lines
1.2 KiB
Python

# Copyright: Ankitects Pty Ltd and contributors
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
from __future__ import annotations
import sys
import aqt
from .browser import Browser
from .dialogs import CardInfoDialog, ChangeModel, FindAndReplaceDialog
from .previewer import BrowserPreviewer, MultiCardPreviewer, Previewer
from .sidebar import (
SidebarItem,
SidebarItemType,
SidebarModel,
SidebarSearchBar,
SidebarStage,
SidebarTool,
SidebarToolbar,
SidebarTreeView,
)
from .table import (
CardState,
Cell,
CellRow,
Column,
Columns,
DataModel,
ItemId,
ItemList,
ItemState,
NoteState,
SearchContext,
StatusDelegate,
Table,
)
# aliases for legacy pathnames
sys.modules["aqt.find_and_replace"] = sys.modules["aqt.browser.dialogs"]
aqt.find_and_replace = sys.modules["aqt.browser.dialogs"] # type: ignore
sys.modules["aqt.sidebar"] = sys.modules["aqt.browser.sidebar"]
aqt.sidebar = sys.modules["aqt.browser.sidebar"] # type: ignore
sys.modules["aqt.previewer"] = sys.modules["aqt.browser.previewer"]
aqt.previewer = sys.modules["aqt.browser.previewer"] # type: ignore