editor.base_widgets#
A list of widgets and methods used by bookmarks.editor.base.BasePropertyEditor
.
Classes:
|
Base combobox used by |
|
ShotGrid entity type picker. |
|
ShotGrid entity type picker. |
|
Context menu associated with the |
|
Widget used to edit item thumbnails. |
Functions:
|
Converts, resizes and loads an image file as a QImage. |
- class bookmarks.editor.base_widgets.BaseComboBox(parent=None)[source]#
Bases:
QComboBox
Base combobox used by
BasePropertyEditor
.Methods:
addItem
(*args, **kwargs)Custom add item function.
decorate_item
([error])Changes the appearance of the item.
Initializes the items.
- class bookmarks.editor.base_widgets.SGAssetTypesWidget(parent=None)[source]#
Bases:
BaseComboBox
ShotGrid entity type picker.
Methods:
Initialize items.
- class bookmarks.editor.base_widgets.SGProjectTypesWidget(parent=None)[source]#
Bases:
BaseComboBox
ShotGrid entity type picker.
Methods:
Initialize items.
- class bookmarks.editor.base_widgets.ThumbnailContextMenu(index, parent=None)[source]#
Bases:
BaseContextMenu
Context menu associated with the
ThumbnailEditorWidget
.Methods:
setup
()Creates the context menu.
- class bookmarks.editor.base_widgets.ThumbnailEditorWidget(size=THUMBNAIL_EDITOR_SIZE, fallback_thumb='placeholder', parent=None)[source]#
Bases:
ClickableIconButton
Widget used to edit item thumbnails.
Methods:
capture
()Captures a thumbnail and save it as a QImage.
contextMenuEvent
(event)Context menu event handler.
dragEnterEvent
(event)Drag event handler.
dragLeaveEvent
(event)Drag leave event handler.
dragMoveEvent
(event)Drag move event handler.
dropEvent
(event)Drop event handler.
enterEvent
(event)Enter event handler.
Move the window out of view.
image
()The current thumbnail image.
leaveEvent
(event)Leave event handler.
paintEvent
(event)Paint event handler.
Pick image action.
process_image
(source)Load and set an image from a source file.
Clears the selected thumbnail image.
save_image
([destination])Saves the selected thumbnail image to the file.
set_image
(image)Sets the given QImage as the current image.
- capture()[source]#
Captures a thumbnail and save it as a QImage.
The captured image is stored internally in self._image and saved to disk when self.save_image() is called.