jdxi_editor.ui.widgets.digital.base

Digital Display Base class

Attributes

LCD_FONT_FILE

LCD_FONT_FALLBACKS

_loaded_lcd_family

_lcd_font_loaded

LCD_FONT_FAMILIES

Classes

DigitalDisplayBase

Base class for JD-Xi style digital displays.

Functions

_lcd_font_candidates() → tuple[pathlib.Path, ...]

Return possible paths to the bundled LCD font.

load_lcd_font() → str | None

Register the bundled JD-Xi LCD font once per process.

lcd_font_families([primary]) → tuple[str, ...]

Build an ordered family list for LCD widgets.

get_lcd_font_family() → str

Return the preferred LCD font family for new widgets.

lcd_font(point_size, *[, bold, primary]) → PySide6.QtGui.QFont

Build a font with LCD-style family fallbacks.

Module Contents

jdxi_editor.ui.widgets.digital.base.LCD_FONT_FILE = 'JdLCD.ttf'[source]
jdxi_editor.ui.widgets.digital.base.LCD_FONT_FALLBACKS = ('JD LCD Rounded', 'DS-Digital', 'Menlo', 'Monaco', 'Courier New', 'monospace')[source]
jdxi_editor.ui.widgets.digital.base._loaded_lcd_family: str | None = None[source]
jdxi_editor.ui.widgets.digital.base._lcd_font_loaded = False[source]
jdxi_editor.ui.widgets.digital.base._lcd_font_candidates() → tuple[pathlib.Path, ...][source]

Return possible paths to the bundled LCD font.

jdxi_editor.ui.widgets.digital.base.load_lcd_font() → str | None[source]

Register the bundled JD-Xi LCD font once per process.

Returns:

The registered font family name, or None if loading failed.

jdxi_editor.ui.widgets.digital.base.lcd_font_families(primary: str | None = None) → tuple[str, ...][source]

Build an ordered family list for LCD widgets.

jdxi_editor.ui.widgets.digital.base.get_lcd_font_family() → str[source]

Return the preferred LCD font family for new widgets.

jdxi_editor.ui.widgets.digital.base.lcd_font(point_size: int, *, bold: bool = False, primary: str | None = None) → PySide6.QtGui.QFont[source]

Build a font with LCD-style family fallbacks.

class jdxi_editor.ui.widgets.digital.base.DigitalDisplayBase(digital_font_family: str | None = None, parent: PySide6.QtWidgets.QWidget = None)[source]

Bases: PySide6.QtWidgets.QWidget

Base class for JD-Xi style digital displays.

digital_font_family[source]
display_texts: list[str] = [][source]
paintEvent(event: PySide6.QtGui.QPaintEvent) → None[source]

Handles rendering of the digital digital.

property lcd[source]

The display’s colours, from the skin the faceplate is wearing.

A brushed aluminium panel with a Roland-orange display would read as a mistake, so the screen follows the skin.

Returns:

LcdPalette

_paint_lcd_panel(painter: PySide6.QtGui.QPainter) → None[source]

Signature LCD bezel: skin’s screen gradient + subtle inner edge.

draw_display(painter: PySide6.QtGui.QPainter)[source]

Draws the LCD-style digital with a gradient glow effect.

set_state(state: jdxi_editor.ui.widgets.digital.state.JDXiDisplayState) → None[source]
update_display(texts: list) → None[source]

Update the digital text and trigger repaint.

set_upper_display_text(text: str) → None[source]

Update the upper line of the display.

set_wire_detail(*, bank_msb: int | None = None, bank_lsb: int | None = None, program: int | None = None) → None[source]

Set or clear the BANK / PC detail line under the tone name.

jdxi_editor.ui.widgets.digital.base.LCD_FONT_FAMILIES = ('JD LCD Rounded', 'DS-Digital', 'Menlo', 'Monaco', 'Courier New', 'monospace')[source]