Skip to content

fontlabapp.components.panel.ui.ComponentPanel · declarations 001

Back to fontlabapp.components.panel.ui.ComponentPanel

DONE class-attribute instance-attribute

DONE

HEADERS class-attribute instance-attribute

HEADERS: tuple[str, ...]

RELOAD class-attribute instance-attribute

RELOAD

__init__

__init__(parent: Any = None) -> None

Build every widget, then scan the font (first_scan).

after_apply

after_apply() -> None

Show the new state of the font. Subclasses may read the font again.

apply

apply() -> None

Plan again from live data, re-check safety, write once.

build

build() -> None

Create every widget before any font data is read.

build_controls

build_controls() -> None

Subclass hook: add widgets to self.form and self.watch() their signals.

cells

cells(label: str, change: Change) -> list[str]

Row texts for 3 columns (glyph, component, result) or 4 (with current).

chosen_masters

chosen_masters() -> list[str]

Masters in scope: the first scope combo picks current or all.

closeEvent

closeEvent(event: Any) -> None

Disconnect owned signals, stop timers and unregister the panel.

editor

editor() -> Editor

Subclass hook: return the write strategy.

fill

fill(plan: Plan) -> None

Show the first MAX_ROWS rows.

Blocked rows red, changes in the accent colour, notes (auto layers that are skipped, rows without a change) in the muted colour.

first_scan

first_scan() -> None

Scan when the panel opens. Subclasses may wait for a button.

glyph_names

glyph_names() -> list[str]

Glyphs the panel works on: the Font window selection, or the current glyph.

intro

intro() -> str

Subtitle text. Names the glyphs, or says what is missing.

live_glyphs

live_glyphs() -> tuple[Any, list[Any]]

Re-resolve the bound font and the scanned glyphs. ValueError when stale.

planner

planner() -> Planner

Subclass hook: return the per-layer planner. Raise ValueError on bad input.

read_font

read_font() -> None

Bind to the current font and its masters.

refresh

refresh() -> None

Recompute the plan; fill the table; enable Apply only when it is safe.

relabel

relabel() -> None

Keep the scope combos in step with the font.

reload

reload() -> None

Scan again. A failure shows in the status line and blocks Apply.

scan

scan() -> None

Read font, selection and the auto-composite map again.

scope_box

scope_box() -> Any

Combo: current master or all masters.

summary

summary(plan: Plan) -> str

Status line when Apply is possible, or when nothing is to do.

watch

watch(signal: Any, callback: Callable[..., Any] | None = None) -> None

Connect through the guard: an exception in a PythonQt slot can exit FontLab.