typerig.proxy.gs3.gui.dialogs.TRLayerSelectDialog
TRLayerSelectDialog
Modeless layer-picker dialog.
Args:
controller: TRMainPanel-like object exposing layers_refresh()
(called on every checkbox change) and selected_layer_names
(list[str]) which this dialog keeps in sync.
mode (int): 0 = current glyph's layers (with type column);
1 = font masters list.
font: optional Glyphs font object; if None, resolved from
Glyphs.font at refresh time.
glyph: optional GSGlyph; if None, resolved from
Glyphs.font.selectedLayers[0].parent at refresh time.
Source bases
object(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 |
|---|---|---|---|
__init__ |
function | (self, controller, mode=0, font=None, glyph=None) |
|
get_checked_names |
function | (self) |
Convenience: just the list of checked layer names. |
get_table |
function | (self) |
Return the FL-shaped list of checked rows: [(name, type), ...]. |
hide |
function | (self) |
|
refresh |
function | (self, font=None, glyph=None) |
Repopulate the table from the current font/glyph. |
set_mode |
function | (self, mode) |
Switch between glyph-layers (0) and font-masters (1). |
show |
function | (self) |