Skip to content

fontlabapp.contours.selection.panel.ui.SelectionPanel

SelectionPanel

Non-modal panel: controls, scope, consent, preview table, Use selection, Close, action.

Subclasses set TITLE, KEY, ACTION and HEADERS and fill in the hooks build_controls(), plan_rows(), cells(), pending(), write() and result_text(). facts stores the auto-layer snapshot from construction, reselect() or scan() (explicit Refresh). Control changes reuse it. SCOPE False hides the master scope (every master is planned); CONSENT "" hides the consent tick. ALIGN right-aligns the value columns of ready rows. NOUN names the selection in messages.

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)
ALIGN attribute
CONSENT attribute
HEADERS attribute tuple[str, ...]
KEY attribute (shared captured text)
NOUN attribute
SCOPE attribute
TABLE_HEIGHT attribute
TITLE attribute (shared captured text)
WIDTH attribute (shared captured text)
__init__ function (self, parent: Any=None) -> None Build every widget, bind the current font and selection, then plan.
add_row function (self, label: str, *widgets: Any) -> None Put a label and widgets on the next grid row.
apply function (self) -> None Plan again from the live font, then write once.
build function (self) -> None Create every widget before any font data is read.
build_controls function (self) -> None Subclass hook: create the controls, add_row() them and watch() their signals.
cells function (self, row: Any) -> list[str] Subclass hook: the table texts of <code>row</code>, one per header.
chosen_masters function (self, package: Any) -> list[str] Masters in scope: the current master, or every master (also without a scope).
closeEvent function (self, event: Any) -> None Disconnect owned signals, then delete the panel.
consented function (self) -> bool True when the consent tick exists and the user ticked it.
font_package function (self) -> Any Return the bound font.
intro function (self) -> str Subtitle text: the number of selected glyphs and their first names.
is_ready function (self, row: Any) -> bool True when <code>row</code> will be written: it has no note.
on_reselect function (self) -> None Subclass hook: forget results that belong to the old selection.
on_result function (self, result: dict[str, Any]) -> None Subclass hook: keep values of the result before the preview is planned again.
pending function (self, todo: Sequence[Any]) -> str Subclass hook: the status text for the ready rows before the action.
plan function (self) -> list[Any] Plan from the live font.
plan_rows function (self, package: Any, masters: list[str]) -> list[Any] Subclass hook: return the preview rows for <code>masters</code>.
refresh function (self) -> None Recompute the preview.
reselect function (self) -> None Take the Font window selection again; clear the consent; plan again.
result_text function (self, result: dict[str, Any]) -> str Subclass hook: the status text after the action.
scan function (self) -> None Read fresh auto-layer facts, then refresh the preview.
watch function (self, signal: Any, callback: Callable[..., Any] | None=None) -> None Connect through the guard: an exception in a PythonQt slot can exit FontLab. (shared captured text)
write function (self, package: Any, rows: list[Any]) -> dict[str, Any] Subclass hook: write the ready rows (one Undo step) and return the result.