fontlabapp.components.panel.ui.ComponentPanel
ComponentPanel
Non-modal panel: controls, live preview table, Reload, Close, Apply.
Subclasses set TITLE, KEY, ACTION, DONE, HEADERS and override build_controls(), planner() and editor(). The preview recomputes on every control change and shows exactly what Apply would write. Apply stays off while any row is blocked.
Source bases
QtGui.QDialog(not resolved from selected source)
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
ACTION |
attribute | (shared captured text) | |
DONE |
attribute | ||
HEADERS |
attribute | tuple[str, ...] |
|
KEY |
attribute | (shared captured text) | |
RELOAD |
attribute | ||
TITLE |
attribute | (shared captured text) | |
WIDTH |
attribute | (shared captured text) | |
__init__ |
function | (self, parent: Any=None) -> None |
Build every widget, then scan the font (<code>first_scan</code>). |
after_apply |
function | (self) -> None |
Show the new state of the font. |
apply |
function | (self) -> None |
Plan again from live data, re-check safety, write once. |
build |
function | (self) -> None |
Create every widget before any font data is read. |
build_controls |
function | (self) -> None |
Subclass hook: add widgets to self.form and self.watch() their signals. |
cells |
function | (self, label: str, change: component_writer.Change) -> list[str] |
Row texts for 3 columns (glyph, component, result) or 4 (with current). |
chosen_masters |
function | (self) -> list[str] |
Masters in scope: the first scope combo picks current or all. |
closeEvent |
function | (self, event: Any) -> None |
Disconnect owned signals, stop timers and unregister the panel. |
editor |
function | (self) -> component_writer.Editor |
Subclass hook: return the write strategy. |
fill |
function | (self, plan: component_writer.Plan) -> None |
Show the first MAX_ROWS rows. |
first_scan |
function | (self) -> None |
Scan when the panel opens. |
glyph_names |
function | (self) -> list[str] |
Glyphs the panel works on: the Font window selection, or the current glyph. |
intro |
function | (self) -> str |
Subtitle text. |
live_glyphs |
function | (self) -> tuple[Any, list[Any]] |
Re-resolve the bound font and the scanned glyphs. |
on_reload |
function | (self) -> None |
Subclass hook: refresh control contents that depend on the font. (shared captured text) |
planner |
function | (self) -> component_writer.Planner |
Subclass hook: return the per-layer planner. |
read_font |
function | (self) -> None |
Bind to the current font and its masters. |
refresh |
function | (self) -> None |
Recompute the plan; fill the table; enable Apply only when it is safe. |
relabel |
function | (self) -> None |
Keep the scope combos in step with the font. |
reload |
function | (self) -> None |
Scan again. |
scan |
function | (self) -> None |
Read font, selection and the auto-composite map again. |
scope_box |
function | (self) -> Any |
Combo: current master or all masters. |
summary |
function | (self, plan: component_writer.Plan) -> str |
Status line when Apply is possible, or when nothing is to do. |
watch |
function | (self, signal: Any, callback: Callable[..., Any] | None=None) -> None |
Connect through the guard: an exception in a PythonQt slot can exit FontLab. |