2021-04-12 09:50:44 +02:00
|
|
|
# Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
from __future__ import annotations
|
|
|
|
|
2021-04-13 11:21:36 +02:00
|
|
|
import sys
|
|
|
|
|
|
|
|
import aqt
|
|
|
|
|
2021-05-18 01:10:28 +02:00
|
|
|
from .browser import Browser, PreviewDialog
|
2021-05-08 07:08:45 +02:00
|
|
|
|
|
|
|
# aliases for legacy pathnames
|
|
|
|
from .change_notetype import ChangeModel
|
2021-04-13 11:05:49 +02:00
|
|
|
from .sidebar import (
|
|
|
|
SidebarItem,
|
|
|
|
SidebarItemType,
|
|
|
|
SidebarModel,
|
|
|
|
SidebarSearchBar,
|
|
|
|
SidebarStage,
|
|
|
|
SidebarTool,
|
|
|
|
SidebarToolbar,
|
|
|
|
SidebarTreeView,
|
|
|
|
)
|
2021-04-12 09:50:44 +02:00
|
|
|
from .table import (
|
|
|
|
CardState,
|
|
|
|
Cell,
|
|
|
|
CellRow,
|
|
|
|
Column,
|
|
|
|
Columns,
|
|
|
|
DataModel,
|
|
|
|
ItemId,
|
|
|
|
ItemList,
|
|
|
|
ItemState,
|
|
|
|
NoteState,
|
|
|
|
SearchContext,
|
|
|
|
StatusDelegate,
|
|
|
|
Table,
|
|
|
|
)
|
2021-04-13 11:21:36 +02:00
|
|
|
|
2021-04-13 11:30:32 +02:00
|
|
|
sys.modules["aqt.sidebar"] = sys.modules["aqt.browser.sidebar"]
|
|
|
|
aqt.sidebar = sys.modules["aqt.browser.sidebar"] # type: ignore
|
2021-04-13 11:38:35 +02:00
|
|
|
sys.modules["aqt.previewer"] = sys.modules["aqt.browser.previewer"]
|
|
|
|
aqt.previewer = sys.modules["aqt.browser.previewer"] # type: ignore
|