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