ScreenshotViewer ================ Screenshot thumbnail viewer for review UI. Displays screenshot thumbnails with selection and actions. Classes ------- .. py:class:: ScreenshotInfo Information about a screenshot. .. py:class:: ScreenshotViewer Screenshot gallery with thumbnails. Manages a collection of screenshots with thumbnail display, selection, and actions (view full, copy path). **Methods:** .. py:method:: __init__() Initialize viewer. .. py:method:: set_screenshots() Update gallery with new screenshots. .. py:method:: load_from_directory() Load screenshots from a directory. .. py:method:: select() Select a screenshot by index. .. py:method:: get_selected() Get currently selected screenshot. .. py:method:: select_next() Select next screenshot. .. py:method:: select_previous() Select previous screenshot. .. py:method:: view_full_size() Open selected screenshot in system viewer. .. py:method:: copy_path_to_clipboard() Copy selected screenshot path to clipboard. .. py:method:: get_count() Get number of screenshots. .. py:method:: clear() Clear all screenshots. Functions --------- .. py:function:: set_screenshots() Update gallery with new screenshots. Args: screenshots: List of screenshot info objects. .. py:function:: load_from_directory() Load screenshots from a directory. Args: directory: Directory containing PNG files. Returns: List of ScreenshotInfo objects. .. py:function:: select() Select a screenshot by index. Args: index: Screenshot index. Returns: Selected ScreenshotInfo or None. .. py:function:: get_selected() Get currently selected screenshot. Returns: Selected ScreenshotInfo or None. .. py:function:: select_next() Select next screenshot. Returns: Selected ScreenshotInfo or None. .. py:function:: select_previous() Select previous screenshot. Returns: Selected ScreenshotInfo or None. .. py:function:: view_full_size() Open selected screenshot in system viewer. Returns: True if opened successfully. .. py:function:: copy_path_to_clipboard() Copy selected screenshot path to clipboard. Returns: True if copied successfully. .. py:function:: get_count() Get number of screenshots. .. py:function:: clear() Clear all screenshots.