jdxi_editor.jdxi.preset.widget ============================== .. py:module:: jdxi_editor.jdxi.preset.widget .. autoapi-nested-parse:: Preset Widget to be used by All Editors Classes ------- .. autoapisummary:: jdxi_editor.jdxi.preset.widget.InstrumentPresetWidget Module Contents --------------- .. py:class:: InstrumentPresetWidget(parent: jdxi_editor.ui.editors.synth.editor.SynthEditor) Bases: :py:obj:`PySide6.QtWidgets.QWidget` InstrumentPresetWidget .. py:attribute:: group :type: PySide6.QtWidgets.QGroupBox | None :value: None .. py:attribute:: layout :type: PySide6.QtWidgets.QVBoxLayout | None :value: None .. py:attribute:: instrument_presets :type: PySide6.QtWidgets.QWidget | None :value: None .. py:attribute:: widget :type: PySide6.QtWidgets.QWidget | None :value: None .. py:attribute:: hlayout :type: PySide6.QtWidgets.QHBoxLayout | None :value: None .. py:attribute:: parent .. py:method:: add_image_group(group: PySide6.QtWidgets.QGroupBox) add image group .. py:method:: add_preset_group(group: PySide6.QtWidgets.QGroupBox) add groupbox for instruments .. py:method:: setup() set up the widget - creates the main vertical layout .. py:method:: create_instrument_image_group() -> tuple[PySide6.QtWidgets.QGroupBox, Any, Any] Image group .. py:method:: create_instrument_preset_group(synth_type: str = 'Analog') -> PySide6.QtWidgets.QGroupBox Create the instrument preset group box with tabs for normal and cheat presets (Analog only). :param synth_type: str :return: QGroupBox .. py:method:: _add_normal_preset_content(layout: PySide6.QtWidgets.QVBoxLayout, synth_type: str) Add normal preset selection content to the layout. .. py:method:: _add_cheat_preset_content(layout: PySide6.QtWidgets.QVBoxLayout) Add cheat preset content to the layout (Analog only). .. py:method:: _populate_cheat_presets(search_text: str = '') Populate the cheat preset combo box with Digital Synth presets. :param search_text: str Search filter text .. py:method:: _on_cheat_category_changed(index: int) Handle category selection change for cheat presets. .. py:method:: _load_cheat_preset() Load a Digital Synth preset on the Analog Synth channel (Cheat Mode). .. py:method:: setup_header_layout() -> None Top layout with title and image --- .. py:method:: add_stretch() Pad both sides by symmetry, supposedly.