preset.combo_box

combo_box.py

This module defines a custom combo box widget for selecting presets in the JDXI editor. It provides a user-friendly interface for searching and selecting presets from a list, and emits a signal when a preset is loaded. The widget includes a search box, a category selector, and a load button. The presets are displayed in a combo box, allowing users to filter and select them easily. # selected_text.split(“:”)[0].strip()

Classes

PresetComboBox

A custom widget for selecting presets from a combo box.

Module Contents

class preset.combo_box.PresetComboBox(presets, parent=None)[source]

Bases: PySide6.QtWidgets.QWidget

A custom widget for selecting presets from a combo box.

preset_loaded[source]
preset_list[source]
full_presets[source]
index_mapping = [][source]
category_mapping[source]
presets[source]
search_box[source]
combo_box[source]
category_combo_box[source]
load_button[source]
_on_load_clicked()[source]

Handle load button click.

_filter_presets(search_text: str)[source]

Filter presets based on the search text.

Parameters:

search_text – str

Returns:

None

update_category_combo_box_categories()[source]

Update the category combo box with available categories.

set_presets(presets)[source]
current_preset()[source]

Get the currently selected preset.

on_category_changed(_)[source]

Handle category selection change.

_populate_presets(search_text: str = '')[source]

Populate the program list with available presets.