tik_manager4.ui.widgets.info
Custom class for thumbnail section. Keeps the aspect ratio when resized.
Classes
Custom class for thumbnail section. Keeps the aspect ratio when resized. |
|
Minimalistic lightbox dialog to show full size image. |
|
Custom notes editor widget. |
Module Contents
- class ImageWidget
Bases:
tik_manager4.ui.Qt.QtWidgets.QLabelCustom class for thumbnail section. Keeps the aspect ratio when resized.
- adjust_height_to_ratio()
Adjust the height of the widget to match the aspect ratio.
- clear()
Clear the thumbnail image.
- enterEvent(_)
- leaveEvent(_)
- mousePressEvent(event)
Handle mouse press event to open lightbox.
- paintEvent(event)
Paint the image or movie frame with aspect fill.
- resizeEvent(_resize_event)
- set_media(media_path)
Set the media to the widget.
- set_preview_settings(settings)
Set the preview settings object.
- update_aspect_ratio()
Update the aspect ratio from settings.
- class LightboxDialog(media_path, parent=None)
Bases:
tik_manager4.ui.Qt.QtWidgets.QDialogMinimalistic lightbox dialog to show full size image.
- keyPressEvent(event)
- mousePressEvent(event)
- paintEvent(event)
Draw the semi-transparent background.
- set_media()
- class NotesEditor(*args, **kwargs)
Bases:
tik_manager4.ui.Qt.QtWidgets.QPlainTextEditCustom notes editor widget.
- can_edit()
Check if the notes can be edited.
Right click menu for the notes editor.
- set_version(version_obj)
Set the base object.
- show_edit_dialog()
Pop-up a dialog to edit the notes.
- notes_updated