schrodinger.ui.qt.forcefield.metals_forcefield_annotations_gui_dir.widgets.atom_table_utils module¶
Derivation and HTML formatting for the Status, Status Note, and Atom ID cells.
- class schrodinger.ui.qt.forcefield.metals_forcefield_annotations_gui_dir.widgets.atom_table_utils.Emphasis¶
Bases:
StrEnum- NORMAL = 'normal'¶
- BOLD = 'bold'¶
- ERROR = 'error'¶
- class schrodinger.ui.qt.forcefield.metals_forcefield_annotations_gui_dir.widgets.atom_table_utils.StatusLine(text: str, emphasis: schrodinger.ui.qt.forcefield.metals_forcefield_annotations_gui_dir.widgets.atom_table_utils.Emphasis = <Emphasis.NORMAL: 'normal'>)¶
Bases:
object- text: str¶
- schrodinger.ui.qt.forcefield.metals_forcefield_annotations_gui_dir.widgets.atom_table_utils.get_status_lines(row: MetalAtomRow) list[StatusLine]¶
Return the Status cell lines for a row.
- schrodinger.ui.qt.forcefield.metals_forcefield_annotations_gui_dir.widgets.atom_table_utils.get_status_note_lines(row: MetalAtomRow) list[StatusLine]¶
Return the Status Note cell lines for a row.
- schrodinger.ui.qt.forcefield.metals_forcefield_annotations_gui_dir.widgets.atom_table_utils.get_atom_id_text(element: str, charge: int, atom_index: int) str¶
Render an atom identifier as plain text, e.g.
Fe2+ 120.
- schrodinger.ui.qt.forcefield.metals_forcefield_annotations_gui_dir.widgets.atom_table_utils.get_atom_id_html(element: str, charge: int, atom_index: int) str¶
Render an atom identifier as HTML, e.g.
Fe<sup>2+</sup> 120.
- schrodinger.ui.qt.forcefield.metals_forcefield_annotations_gui_dir.widgets.atom_table_utils.lines_to_html(lines: list[StatusLine]) str¶
Join StatusLine’s into
<br>-separated HTML with bold/red styling.
- schrodinger.ui.qt.forcefield.metals_forcefield_annotations_gui_dir.widgets.atom_table_utils.lines_to_text(lines: list[StatusLine]) str¶
Join StatusLine’s into plain text, one line each (for copy/export).