jdxi_editor.ui.windows.jdxi.panel ================================= .. py:module:: jdxi_editor.ui.windows.jdxi.panel .. autoapi-nested-parse:: The JD-Xi faceplate. instrument_panel.ui is the 1000 x 230 panel, with one empty host for each group of controls at its place on the picture. This module fills the hosts with the display, part buttons, sliders, and step buttons, and keeps each host on its place in the picture as the panel is stretched. Attributes ---------- .. autoapisummary:: jdxi_editor.ui.windows.jdxi.panel._UI jdxi_editor.ui.windows.jdxi.panel.HOSTS Classes ------- .. autoapisummary:: jdxi_editor.ui.windows.jdxi.panel.InstrumentFaceplate Functions --------- .. autoapisummary:: jdxi_editor.ui.windows.jdxi.panel.load_instrument_form jdxi_editor.ui.windows.jdxi.panel._host jdxi_editor.ui.windows.jdxi.panel.build_faceplate Module Contents --------------- .. py:data:: _UI .. py:data:: HOSTS :value: ('title_host', 'display_host', 'octave_arp_host', 'parts_host', 'program_host', 'tone_host',... .. py:function:: load_instrument_form() -> PySide6.QtWidgets.QWidget The empty faceplate from Qt Designer. .. py:function:: _host(form: PySide6.QtWidgets.QWidget, name: str) -> PySide6.QtWidgets.QWidget .. py:class:: InstrumentFaceplate(form: PySide6.QtWidgets.QWidget) Bases: :py:obj:`PySide6.QtWidgets.QWidget` The panel: the instrument picture, with the hosts laid over it. .. py:attribute:: form .. py:attribute:: image_label .. py:method:: _init_styling() .. py:method:: _init_hosts() .. py:method:: _init_sequencer() .. py:method:: create_image_label() create image label .. py:method:: scaled(rect: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect ``rect`` on the 1000 x 230 panel, where it falls on this one. :param rect: QRect in panel design coordinates :return: QRect in this widget's coordinates .. py:method:: apply_width(width: int) -> int Set the panel's depth for an instrument ``width`` px wide. Called by the window on resize rather than from resizeEvent here, where setting the height is undone by the resize that is still in progress. :param width: int the instrument's width in px :return: int the depth it was given .. py:method:: resizeEvent(event) .. py:method:: _place_hosts() -> None .. py:method:: _mask(host: PySide6.QtWidgets.QWidget) -> None :staticmethod: .. py:method:: eventFilter(watched, event) .. py:function:: build_faceplate(window) -> InstrumentFaceplate Build the faceplate and attach its controls to `window`. :param window: JDXiWindow :return: InstrumentFaceplate