MacroModel
Qt table model for displaying macros in the macro panel.
- class macro_plugin.ui.macro_model.MacroTableModel[source]
Bases:
_StubTable model for a list of
Macroobjects.- headers: ClassVar[dict[int, str]] = {0: 'Macro'}
- add_macro(macro)[source]
Append a macro and notify attached views.
- Parameters:
macro (Macro)
- Return type:
None
- remove_macro(row)[source]
Remove the macro at row and notify attached views.
- Parameters:
row (int)
- Return type:
None
- reset_macros(macros)[source]
Replace the entire macro list and reset the model.
- Parameters:
macros (list[Macro])
- Return type:
None
- headerData(section, orientation, role=)[source]
- Parameters:
section (int)
orientation
role
- Return type: