mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
import widgets from new locations
This commit is contained in:
parent
fb3df8c806
commit
95a67b666f
19 changed files with 40 additions and 30 deletions
|
|
@ -8,8 +8,11 @@ from qtpy import QtWidgets, QtCore, QtGui
|
|||
|
||||
from ayon_core import style
|
||||
from ayon_core.pipeline import get_current_project_name
|
||||
from ayon_core.tools.utils import PlaceholderLineEdit, RefreshButton
|
||||
from ayon_core.tools.ayon_utils.widgets import SimpleFoldersWidget
|
||||
from ayon_core.tools.utils import (
|
||||
PlaceholderLineEdit,
|
||||
RefreshButton,
|
||||
SimpleFoldersWidget,
|
||||
)
|
||||
|
||||
from pxr import Sdf
|
||||
|
||||
|
|
|
|||
|
|
@ -10,15 +10,13 @@ from ayon_core.tools.ayon_utils.models import (
|
|||
ProjectsModel,
|
||||
HierarchyModel,
|
||||
)
|
||||
from ayon_core.tools.ayon_utils.widgets import (
|
||||
from ayon_core.tools.utils import (
|
||||
ProjectsCombobox,
|
||||
FoldersWidget,
|
||||
TasksWidget,
|
||||
)
|
||||
from ayon_core.tools.utils.lib import (
|
||||
center_window,
|
||||
get_ayon_qt_app,
|
||||
)
|
||||
from ayon_core.tools.utils.lib import center_window
|
||||
|
||||
|
||||
class SelectionModel(object):
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import collections
|
|||
from qtpy import QtWidgets, QtCore, QtGui
|
||||
|
||||
from ayon_core.tools.flickcharm import FlickCharm
|
||||
from ayon_core.tools.ayon_utils.widgets import get_qt_icon
|
||||
from ayon_core.tools.utils import get_qt_icon
|
||||
|
||||
from .resources import get_options_image_path
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from ayon_core.tools.utils import (
|
|||
SquareButton,
|
||||
RefreshButton,
|
||||
)
|
||||
from ayon_core.tools.ayon_utils.widgets import (
|
||||
from ayon_core.tools.utils import (
|
||||
ProjectsCombobox,
|
||||
FoldersWidget,
|
||||
TasksWidget,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
from qtpy import QtWidgets, QtCore
|
||||
|
||||
from ayon_core.tools.flickcharm import FlickCharm
|
||||
from ayon_core.tools.utils import PlaceholderLineEdit, RefreshButton
|
||||
from ayon_core.tools.ayon_utils.widgets import (
|
||||
from ayon_core.tools.utils import (
|
||||
PlaceholderLineEdit,
|
||||
RefreshButton,
|
||||
ProjectsQtModel,
|
||||
ProjectSortFilterProxy,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ from ayon_core.tools.utils.widgets import (
|
|||
OptionalAction,
|
||||
OptionDialog,
|
||||
)
|
||||
from ayon_core.tools.ayon_utils.widgets import get_qt_icon
|
||||
from ayon_core.tools.utils import get_qt_icon
|
||||
|
||||
|
||||
def show_actions_menu(action_items, global_point, one_item_selected, parent):
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ from ayon_core.tools.utils import (
|
|||
)
|
||||
from ayon_core.style import get_objected_colors
|
||||
|
||||
from ayon_core.tools.ayon_utils.widgets import (
|
||||
from ayon_core.tools.utils import (
|
||||
FoldersQtModel,
|
||||
FOLDERS_MODEL_SENDER_NAME,
|
||||
)
|
||||
from ayon_core.tools.ayon_utils.widgets.folders_widget import FOLDER_ID_ROLE
|
||||
from ayon_core.tools.utils.folders_widget import FOLDER_ID_ROLE
|
||||
|
||||
if qtpy.API == "pyside":
|
||||
from PySide.QtGui import QStyleOptionViewItemV4
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from qtpy import QtWidgets, QtGui, QtCore
|
||||
|
||||
from ayon_core.tools.ayon_utils.widgets import get_qt_icon
|
||||
from ayon_core.tools.utils import get_qt_icon
|
||||
|
||||
PRODUCT_TYPE_ROLE = QtCore.Qt.UserRole + 1
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import qtawesome
|
|||
from qtpy import QtGui, QtCore
|
||||
|
||||
from ayon_core.style import get_default_entity_icon_color
|
||||
from ayon_core.tools.ayon_utils.widgets import get_qt_icon
|
||||
from ayon_core.tools.utils import get_qt_icon
|
||||
|
||||
PRODUCTS_MODEL_SENDER_NAME = "qt_products_model"
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ from qtpy import QtWidgets, QtGui, QtCore
|
|||
import qtawesome
|
||||
|
||||
from ayon_core.style import get_default_entity_icon_color
|
||||
from ayon_core.tools.ayon_utils.widgets import get_qt_icon
|
||||
from ayon_core.tools.utils import get_qt_icon
|
||||
from ayon_core.tools.utils import DeselectableTreeView
|
||||
|
||||
from .actions_utils import show_actions_menu
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ from ayon_core.tools.utils import (
|
|||
GoToCurrentButton,
|
||||
)
|
||||
from ayon_core.tools.utils.lib import center_window
|
||||
from ayon_core.tools.ayon_utils.widgets import ProjectsCombobox
|
||||
from ayon_core.tools.utils import ProjectsCombobox
|
||||
from ayon_core.tools.loader.control import LoaderController
|
||||
|
||||
from .folders_widget import LoaderFoldersWidget
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ from ayon_core.lib.events import QueuedEventSystem
|
|||
from ayon_core.tools.utils import PlaceholderLineEdit, GoToCurrentButton
|
||||
|
||||
from ayon_core.tools.ayon_utils.models import HierarchyExpectedSelection
|
||||
from ayon_core.tools.ayon_utils.widgets import FoldersWidget, TasksWidget
|
||||
from ayon_core.tools.utils import FoldersWidget, TasksWidget
|
||||
|
||||
|
||||
class CreateSelectionModel(object):
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
from qtpy import QtWidgets, QtCore, QtGui
|
||||
|
||||
from ayon_core.lib.events import QueuedEventSystem
|
||||
from ayon_core.tools.ayon_utils.widgets import FoldersWidget
|
||||
from ayon_core.tools.utils import PlaceholderLineEdit
|
||||
from ayon_core.tools.utils import PlaceholderLineEdit, FoldersWidget
|
||||
|
||||
|
||||
class FoldersDialogController:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
from qtpy import QtWidgets, QtCore, QtGui
|
||||
|
||||
from ayon_core.tools.utils.lib import get_default_task_icon
|
||||
from ayon_core.style import get_default_entity_icon_color
|
||||
from ayon_core.tools.utils import get_qt_icon
|
||||
|
||||
TASK_NAME_ROLE = QtCore.Qt.UserRole + 1
|
||||
TASK_TYPE_ROLE = QtCore.Qt.UserRole + 2
|
||||
|
|
@ -121,6 +122,11 @@ class TasksModel(QtGui.QStandardItemModel):
|
|||
item = self._items_by_name.pop(task_name)
|
||||
root_item.removeRow(item.row())
|
||||
|
||||
icon = get_qt_icon({
|
||||
"type": "awesome-font",
|
||||
"name": "fa.male",
|
||||
"color": get_default_entity_icon_color(),
|
||||
})
|
||||
new_items = []
|
||||
for task_name in new_task_names:
|
||||
if task_name in self._items_by_name:
|
||||
|
|
@ -129,7 +135,7 @@ class TasksModel(QtGui.QStandardItemModel):
|
|||
item = QtGui.QStandardItem(task_name)
|
||||
item.setData(task_name, TASK_NAME_ROLE)
|
||||
if task_name:
|
||||
item.setData(get_default_task_icon(), QtCore.Qt.DecorationRole)
|
||||
item.setData(icon, QtCore.Qt.DecorationRole)
|
||||
self._items_by_name[task_name] = item
|
||||
new_items.append(item)
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@ from ayon_core.tools.utils import (
|
|||
PlaceholderLineEdit,
|
||||
SeparatorWidget,
|
||||
set_style_property,
|
||||
)
|
||||
from ayon_core.tools.ayon_utils.widgets import (
|
||||
ProjectsCombobox,
|
||||
FoldersWidget,
|
||||
TasksWidget,
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ from ayon_core.pipeline import (
|
|||
HeroVersionType,
|
||||
)
|
||||
from ayon_core.style import get_default_entity_icon_color
|
||||
from ayon_core.tools.utils import get_qt_icon
|
||||
from ayon_core.tools.utils.models import TreeModel, Item
|
||||
from ayon_core.tools.ayon_utils.widgets import get_qt_icon
|
||||
|
||||
|
||||
def walk_hierarchy(node):
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ from ayon_core.tools.utils import (
|
|||
PlaceholderLineEdit,
|
||||
BaseClickableFrame,
|
||||
set_style_property,
|
||||
FoldersWidget,
|
||||
)
|
||||
from ayon_core.tools.ayon_utils.widgets import FoldersWidget
|
||||
|
||||
NOT_SET = object()
|
||||
|
||||
|
|
|
|||
|
|
@ -16,9 +16,10 @@ from ayon_core.pipeline import install_host
|
|||
from ayon_core.hosts.traypublisher.api import TrayPublisherHost
|
||||
from ayon_core.tools.publisher.control_qt import QtPublisherController
|
||||
from ayon_core.tools.publisher.window import PublisherWindow
|
||||
from ayon_core.tools.utils import PlaceholderLineEdit, get_ayon_qt_app
|
||||
from ayon_core.tools.ayon_utils.models import ProjectsModel
|
||||
from ayon_core.tools.ayon_utils.widgets import (
|
||||
from ayon_core.tools.utils import (
|
||||
PlaceholderLineEdit,
|
||||
get_ayon_qt_app,
|
||||
ProjectsQtModel,
|
||||
ProjectSortFilterProxy,
|
||||
PROJECT_NAME_ROLE,
|
||||
|
|
|
|||
|
|
@ -6,9 +6,13 @@ from ayon_core.tools.utils import (
|
|||
MessageOverlayObject,
|
||||
)
|
||||
|
||||
from ayon_core.tools.ayon_utils.widgets import FoldersWidget, TasksWidget
|
||||
from ayon_core.tools.workfiles.control import BaseWorkfileController
|
||||
from ayon_core.tools.utils import GoToCurrentButton, RefreshButton
|
||||
from ayon_core.tools.utils import (
|
||||
GoToCurrentButton,
|
||||
RefreshButton,
|
||||
FoldersWidget,
|
||||
TasksWidget,
|
||||
)
|
||||
|
||||
from .side_panel import SidePanelWidget
|
||||
from .files_widget import FilesWidget
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue