tik_manager4.ui.widgets.info

Custom class for thumbnail section. Keeps the aspect ratio when resized.

Classes

ImageWidget

Custom class for thumbnail section. Keeps the aspect ratio when resized.

LightboxDialog

Minimalistic lightbox dialog to show full size image.

NotesEditor

Custom notes editor widget.

Module Contents

class ImageWidget

Bases: tik_manager4.ui.Qt.QtWidgets.QLabel

Custom 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.QDialog

Minimalistic 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.QPlainTextEdit

Custom notes editor widget.

can_edit()

Check if the notes can be edited.

right_click_menu(position)

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