Source code for models.model_icon_and_pixmap

"""
The model_icon_and_pixmap module manages the retrieval of icons used in the application.
"""
import os
from PyQt6 import QtCore, QtGui


[docs] class GetResourcesIcon: """ The GetResourcesIcon class manages the retrieval of icons used in the application. Methods: - __init__: Initializes the GetResourcesIcon class. - get_icon_moilapp: Retrieves the MoilApp icon. - get_icon_user: Retrieves the user icon. - get_icon_fisheye_24px: Retrieves the fisheye icon with a size of 24 pixels. - get_icon_fisheye_200px: Retrieves the fisheye icon with a size of 200 pixels. - etc """ def __init__(self): self.__realpath = os.path.abspath(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) QtCore.QDir.addSearchPath("icons", self.__realpath + "/assets/icons")
[docs] def get_icon_moilapp(self): """ Return a QIcon object representing the Moil application icon. Return: QtGui.QIcon: Icon representing the Moil application. """ return QtGui.QIcon(self.__realpath + "/assets/icons/moil_icon.svg")
[docs] def get_icon_user(self): """ Returns a QIcon object representing the user icon. Return: QtGui.QIcon: Icon representing the user. """ return QtGui.QIcon(self.__realpath + "/assets/icons/user.svg")
# icon feature
[docs] def get_icon_fisheye_24px(self): """ Return a QIcon object representing the fisheye icon in 24px size. Return: QtGui.QIcon: Fisheye icon in 24px size. """ return QtGui.QIcon(self.__realpath + "/assets/icons/fisheye.svg")
[docs] def get_icon_fisheye_200px(self): """ Return a QIcon object representing the fisheye icon in 200px size. Return: QtGui.QIcon: Fisheye icon in 200px size. """ return QtGui.QIcon(self.__realpath + "/assets/icons/fisheye_ori.png")
[docs] def get_icon_anypoint_24px(self): """ Return a QIcon object representing the anypoint icon in 24px size. Return: QtGui.QIcon: AnyPoint icon in 24px size. """ return QtGui.QIcon(self.__realpath + "/assets/icons/any_point.svg")
[docs] def get_icon_anypoint_old_icon(self): """ Return a QIcon object representing an older version of the anypoint icon. Returns: QtGui.QIcon: Older version of the AnyPoint icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/anypoint.png")
[docs] def get_icon_anypoint_128px(self): """ Return a QIcon object representing the anypoint icon in 128px size. Return: QtGui.QIcon: AnyPoint icon in 128px size. """ return QtGui.QIcon(self.__realpath + "/assets/icons/any_point_ori.png")
[docs] def get_icon_panorama_24px(self): """ Return a QIcon object representing the panorama icon in 24px size. Return: QtGui.QIcon: Panorama icon in 24px size. """ return QtGui.QIcon(self.__realpath + "/assets/icons/panorama.svg")
[docs] def get_icon_panorama_old_icon(self): """ Return a QIcon object representing an older version of the panorama icon. Return: QtGui.QIcon: Older version of the panorama icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/panorama.svg")
[docs] def get_icon_panorama_128px(self): """ Return a QIcon object representing the panorama icon in 128px size. Return: QtGui.QIcon: Panorama icon in 128px size. """ return QtGui.QIcon(self.__realpath + "/assets/icons/panorama_or.svg")
# arrow
[docs] def get_icon_arrow_down(self): """ Return a QIcon object representing the arrow pointing downwards. Return: QtGui.QIcon: Icon of an arrow pointing downwards. """ return QtGui.QIcon(self.__realpath + "/assets/icons/arrow_down.svg")
[docs] def get_icon_arrow_left(self): """ Return a QIcon object representing the arrow pointing leftwards. Return: QtGui.QIcon: Icon of an arrow pointing leftwards. """ return QtGui.QIcon(self.__realpath + "/assets/icons/arrow_left.svg")
[docs] def get_icon_arrow_right(self): """ Return a QIcon object representing the arrow pointing rightwards. Return: QtGui.QIcon: Icon of an arrow pointing rightwards. """ return QtGui.QIcon(self.__realpath + "/assets/icons/arrow_right.svg")
[docs] def get_icon_arrow_up(self): """ Returns a QIcon object representing the arrow pointing upwards. Returns: QtGui.QIcon: Icon of an arrow pointing upwards. """ return QtGui.QIcon(self.__realpath + "/assets/icons/arrow_up.svg")
[docs] def get_icon_up(self): """ Returns a QIcon object representing an upward direction. Returns: QtGui.QIcon: Icon representing an upward direction. """ return QtGui.QIcon(self.__realpath + "/assets/icons/up.svg")
[docs] def get_icon_down(self): """ Returns a QIcon object representing a downward direction. Returns: QtGui.QIcon: Icon representing a downward direction. """ return QtGui.QIcon(self.__realpath + "/assets/icons/down.svg")
[docs] def get_icon_left(self): """ Returns a QIcon object representing a leftward direction. Returns: QtGui.QIcon: Icon representing a leftward direction. """ return QtGui.QIcon(self.__realpath + "/assets/icons/left.svg")
[docs] def get_icon_right(self): """ Returns a QIcon object representing a rightward direction. Returns: QtGui.QIcon: Icon representing a rightward direction. """ return QtGui.QIcon(self.__realpath + "/assets/icons/right.svg")
[docs] def get_icon_center(self): """ Returns a QIcon object representing the center point. Returns: QtGui.QIcon: Icon representing the center point. """ return QtGui.QIcon(self.__realpath + "/assets/icons/center.svg")
# media player icon
[docs] def get_icon_video(self): """ Returns a QIcon object representing a video. Returns: QtGui.QIcon: Icon representing a video. """ return QtGui.QIcon(self.__realpath + "/assets/icons/video.svg")
[docs] def get_icon_square(self): """ Returns a QIcon object representing a square shape. Returns: QtGui.QIcon: Icon representing a square shape. """ return QtGui.QIcon(self.__realpath + "/assets/icons/square.svg")
[docs] def get_icon_play_video(self): """ Returns a QIcon object representing the play button for a video. Returns: QtGui.QIcon: Icon representing the play button for a video. """ return QtGui.QIcon(self.__realpath + "/assets/icons/play.svg")
[docs] def get_icon_pause_video(self): """ Returns a QIcon object representing the pause button for a video. Returns: QtGui.QIcon: Icon representing the pause button for a video. """ return QtGui.QIcon(self.__realpath + "/assets/icons/pause.svg")
[docs] def get_icon_resume_video(self): """ Returns a QIcon object representing the resume button for a video. Returns: QtGui.QIcon: Icon representing the resume button for a video. """ return QtGui.QIcon(self.__realpath + "/assets/icons/resume.png")
[docs] def get_icon_rewind_video(self): """ Returns a QIcon object representing the rewind button for a video. Returns: QtGui.QIcon: Icon representing the rewind button for a video. """ return QtGui.QIcon(self.__realpath + "/assets/icons/rewind.svg")
[docs] def get_icon_forward_video(self): """ Returns a QIcon object representing the forward button for a video. Returns: QtGui.QIcon: Icon representing the forward button for a video. """ return QtGui.QIcon(self.__realpath + "/assets/icons/forward.svg")
[docs] def get_icon_skip_rewind_video(self): """ Returns a QIcon object representing the skip backward button for a video. Returns: QtGui.QIcon: Icon representing the skip backward button for a video. """ return QtGui.QIcon(self.__realpath + "/assets/icons/skip-back.svg")
[docs] def get_icon_skip_forward_video(self): """ Returns a QIcon object representing the skip forward button for a video. Returns: QtGui.QIcon: Icon representing the skip forward button for a video. """ return QtGui.QIcon(self.__realpath + "/assets/icons/skip-forward.svg")
# zoom in zoom out icon
[docs] def get_icon_zoom_in(self): """ Returns a QIcon object representing the zoom in button. Returns: QtGui.QIcon: Icon representing the zoom in button. """ return QtGui.QIcon(self.__realpath + "/assets/icons/zoom-in.svg")
[docs] def get_icon_zoom_out(self): """ Returns a QIcon object representing the zoom out button. Returns: QtGui.QIcon: Icon representing the zoom out button. """ return QtGui.QIcon(self.__realpath + "/assets/icons/zoom-out.svg")
# rotate
[docs] def get_icon_rotate_ccw(self): """ Returns a QIcon object representing the rotate counterclockwise button. Returns: QtGui.QIcon: Icon representing the rotate counterclockwise button. """ return QtGui.QIcon(self.__realpath + "/assets/icons/rotate-ccw.svg")
[docs] def get_icon_rotate_cw(self): """ Returns a QIcon object representing the rotate clockwise button. Returns: QtGui.QIcon: Icon representing the rotate clockwise button. """ return QtGui.QIcon(self.__realpath + "/assets/icons/rotate-cw.svg")
# show hide
[docs] def get_icon_show(self): """ Returns a QIcon object representing the show button. Returns: QtGui.QIcon: Icon representing the show button. """ return QtGui.QIcon(self.__realpath + "/assets/icons/show_.png")
[docs] def get_icon_mouse_pointer(self): """ Returns a QIcon object representing the mouse pointer icon. Returns: QtGui.QIcon: Icon representing the mouse pointer. """ return QtGui.QIcon(self.__realpath + "/assets/icons/mouse-pointer.svg")
[docs] def get_icon_hide(self): """ Returns a QIcon object representing the hide button. Returns: QtGui.QIcon: Icon representing the hide button. """ return QtGui.QIcon(self.__realpath + "/assets/icons/hide_.png")
# shape
[docs] def get_icon_sun(self): """ Returns a QIcon object representing the sun icon. Returns: QtGui.QIcon: Icon representing the sun. """ return QtGui.QIcon(self.__realpath + "/assets/icons/sun.svg")
[docs] def get_icon_moon(self): """ Returns a QIcon object representing the moon icon. Returns: QtGui.QIcon: Icon representing the moon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/moon.svg")
[docs] def get_icon_plus(self): """ Returns a QIcon object representing the plus icon. Returns: QtGui.QIcon: Icon representing the plus. """ return QtGui.QIcon(self.__realpath + "/assets/icons/plus.svg")
[docs] def get_icon_cross_x(self): """ Returns a QIcon object representing the cross or X icon. Returns: QtGui.QIcon: Icon representing the cross or X. """ return QtGui.QIcon(self.__realpath + "/assets/icons/x.svg")
[docs] def get_icon_setting(self): """ Returns a QIcon object representing the settings icon. Returns: QtGui.QIcon: Icon representing the settings. """ return QtGui.QIcon(self.__realpath + "/assets/icons/settings.svg")
[docs] def get_icon_opened_folder(self): """ Returns a QIcon object representing an opened folder icon. Returns: QtGui.QIcon: Icon representing an opened folder. """ return QtGui.QIcon(self.__realpath + "/assets/icons/opened-folder.svg")
[docs] def get_icon_trash(self): """ Returns a QIcon object representing the trash icon. Returns: QtGui.QIcon: Icon representing the trash. """ return QtGui.QIcon(self.__realpath + "/assets/icons/trash.svg")
[docs] def get_icon_text(self): """ Returns a QIcon object representing the text icon. Returns: QtGui.QIcon: Icon representing the text. """ return QtGui.QIcon(self.__realpath + "/assets/icons/text.svg")
[docs] def get_icon_help(self): """ Returns a QIcon object representing the help icon. Returns: QtGui.QIcon: Icon representing the help. """ return QtGui.QIcon(self.__realpath + "/assets/icons/help-circle.svg")
[docs] def get_icon_info(self): """ Returns a QIcon object representing the info icon. Returns: QtGui.QIcon: Icon representing the info. """ return QtGui.QIcon(self.__realpath + "/assets/icons/info.svg")
[docs] def get_icon_minus(self): """ Returns a QIcon object representing the minus icon. Returns: QtGui.QIcon: Icon representing the minus. """ return QtGui.QIcon(self.__realpath + "/assets/icons/minus-circle.svg")
[docs] def get_icon_maximize_view(self): """ Returns a QIcon object representing the maximize view icon. Returns: QtGui.QIcon: Icon representing the maximize view. """ return QtGui.QIcon(self.__realpath + "/assets/icons/maximize.svg")
# other
[docs] def get_icon_default(self): """ Returns a QIcon object representing the default icon. Returns: QtGui.QIcon: Icon representing the default. """ return QtGui.QIcon(self.__realpath + "/assets/icons/default.svg")
[docs] def get_icon_menu(self): """ Returns a QIcon object representing the menu icon. Returns: QtGui.QIcon: Icon representing the menu. """ return QtGui.QIcon(self.__realpath + "/assets/icons/menu.svg")
[docs] def get_icon_facebook(self): """ Returns a QIcon object representing the Facebook icon. Returns: QtGui.QIcon: Icon representing Facebook. """ return QtGui.QIcon(self.__realpath + "/assets/icons/facebook.svg")
[docs] def get_icon_github(self): """ Returns a QIcon object representing the GitHub icon. Returns: QtGui.QIcon: Icon representing GitHub. """ return QtGui.QIcon(self.__realpath + "/assets/icons/facebook.svg")
[docs] def get_icon_vlc(self): """ Returns a QIcon object representing the VLC icon. Returns: QtGui.QIcon: Icon representing VLC. """ return QtGui.QIcon(self.__realpath + "/assets/icons/VLC_Icon.svg")
[docs] def get_pixmap_vlc(self): """ Returns a QPixmap object representing the VLC icon. Returns: QtGui.QPixmap: Pixmap representing VLC. """ return QtGui.QPixmap(self.__realpath + "/assets/icons/VLC_Icon.svg")
# chevron for combo_box
[docs] def get_icon_chevron_down_24px(self): """ Returns a QIcon object representing the chevron down icon in 24px size. Returns: QtGui.QIcon: Chevron down icon in 24px size. """ return QtGui.QIcon(self.__realpath + "/assets/icons/chevron-down.svg")
[docs] def get_icon_chevron_down_12px(self): """ Returns a QIcon object representing the chevron down icon in 12px size. Returns: QtGui.QIcon: Chevron down icon in 12px size. """ return QtGui.QIcon(self.__realpath + "/assets/icons/chevron-down-12.svg")
[docs] def get_icon_chevron_up_24px(self): """ Returns a QIcon object representing the chevron up icon in 24px size. Returns: QtGui.QIcon: Chevron up icon in 24px size. """ return QtGui.QIcon(self.__realpath + "/assets/icons/chevron-up.svg")
[docs] def get_icon_chevron_up_12px(self): """ Returns a QIcon object representing the chevron up icon in 12px size. Returns: QtGui.QIcon: Chevron up icon in 12px size. """ return QtGui.QIcon(self.__realpath + "/assets/icons/chevron-up-12.svg")
# white icon
[docs] def get_icon_chevron_down_white_12px(self): """ Returns a QIcon object representing the white chevron down icon in 12px size. Returns: QtGui.QIcon: White chevron down icon in 12px size. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-arrow-bottom-12.png")
[docs] def get_icon_chevron_down_white_16px(self): """ Returns a QIcon object representing the white chevron down icon in 16px size. Returns: QtGui.QIcon: White chevron down icon in 16px size. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-arrow-bottom.svg")
[docs] def get_icon_chevron_up_white(self): """ Returns a QIcon object representing the white chevron up icon. Returns: QtGui.QIcon: White chevron up icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-arrow-top-12.svg")
[docs] def get_icon_camera_roll_white(self): """ Returns a QIcon object representing the white camera roll icon. Returns: QtGui.QIcon: White camera roll icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-camera-roll.svg")
[docs] def get_icon_check_white(self): """ Return a QIcon object representing the white check icon. Return: QtGui.QIcon: White check icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-check-alt.svg")
[docs] def get_icon_circle_white(self): """ Return a QIcon object representing the white circle icon. Return: QtGui.QIcon: White circle icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-circle.svg")
[docs] def get_icon_opened_folder_white(self): """ Return a QIcon object representing the white opened folder icon. Return: QtGui.QIcon: White opened folder icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-folder-open.svg")
[docs] def get_icon_loop_white(self): """ Return a QIcon object representing the white loop icon. Return: QtGui.QIcon: White loop icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-loop.svg")
[docs] def get_icon_loop_circular_white(self): """ Return a QIcon object representing the white loop circular icon. Return: QtGui.QIcon: White loop circular icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-loop-circular.svg")
[docs] def get_icon_pause_video_white(self): """ Return a QIcon object representing the white pause video icon. Return: QtGui.QIcon: White pause video icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-media-pause.svg")
[docs] def get_icon_play_video_white(self): """ Return a QIcon object representing the white play video icon. Return: QtGui.QIcon: White play video icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-media-play.svg")
[docs] def get_icon_rewind_video_white(self): """ Return a QIcon object representing the white rewind video icon. Return: QtGui.QIcon: White rewind video icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-media-skip-backward.svg")
[docs] def get_icon_forward_video_white(self): """ Return a QIcon object representing the white forward video icon. Return: QtGui.QIcon: White forward video icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-media-skip-forward.svg")
[docs] def get_icon_menu_white(self): """ Return a QIcon object representing the white menu icon. Return: QtGui.QIcon: White menu icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-menu.svg")
[docs] def get_icon_cross_x_white(self): """ Return a QIcon object representing the white cross or X icon. Return: QtGui.QIcon: White cross or X icon. """ return QtGui.QIcon(self.__realpath + "/assets/icons/light/cil-x.svg")