Skip to content

fontlabapp.studios.component_studio._shared.ComponentPanel · declarations 001

Back to fontlabapp.studios.component_studio._shared.ComponentPanel

HEADERS class-attribute instance-attribute

HEADERS: tuple[str, ...]

__init__

__init__(tool: Tool) -> None

add_buttons

add_buttons(buttons: Any) -> None

after_apply

after_apply() -> None

Show the new state of the font.

apply

apply() -> bool

Write the shown plan as one Undo step, then re-read every tab.

cells

cells(change: Any) -> tuple[str, ...]

Row texts after glyph and master: 3 original columns (component, result) or 4 (with current).

chosen_masters

chosen_masters() -> list[str]

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

clear

clear() -> None

done_text

done_text(result: dict, plan: Any) -> str

The original panel's status after a write.

editor

editor() -> Any

fill

fill(plan: Any) -> None

final_plan

final_plan(package: Any, glyphs: list[Any], facts: Any, plan: Any) -> Any

The plan Apply writes; the live plan by default.

glyph_names

glyph_names() -> list[str]

Glyphs the tab works on: the Font window selection.

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 (the originals' texts).

live_plan

live_plan() -> tuple[Any, Any, Any]

Plan again from live data; refuse a refused, empty or changed plan before any write.

make_plan

make_plan(package: Any, glyphs: list[Any], facts: Any) -> tuple[Any, str]

The original panel's plan: collect, blocked rows first, then require_safe.

on_reload

on_reload() -> None

Refresh control contents that depend on the font.

planner

planner() -> Any

refresh

refresh() -> None

Reload selection: read font, selection and the auto-composite map again, then plan.

relabel

relabel() -> None

Keep the scope combo in step with the font; the first fill takes the original's default.

reloaded

reloaded() -> None

The Reload selection button: re-read the font and every tab.

replan

replan() -> None

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

row_chosen

row_chosen(name: str, master: Any) -> None

Load the row's glyph on its master in the TGlyph preview.

scope_box

scope_box(layout: Any, *, plain: bool = False, title: str = 'Masters') -> Any

The originals' Masters combo: "Current master (M)" / "All masters (N)".

status_text

status_text(plan: Any) -> str

summary

summary(plan: Any) -> str

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