61e86cc29d
- changes can now be undone - the same field can now be mapped to multiple target fields, allowing fields to be cloned - the old Qt dialog has been removed - the old col.models.change() API calls the new code, to avoid breaking existing consumers. It requires the field map to always be passed in, but that appears to have been the common case. - closes #1175
42 lines
916 B
Python
42 lines
916 B
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, PreviewDialog
|
|
|
|
# aliases for legacy pathnames
|
|
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,
|
|
)
|
|
|
|
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
|