sas.qtgui.Calculators.Shape2SAS.Tables package¶
Subpackages¶
Submodules¶
sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable module¶
- class sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable.CustomDelegate¶
Bases:
QStyledItemDelegateDelegate for appearance and behaviour control of the model table view
- __annotations__ = {}¶
- __doc__ = 'Delegate for appearance and \n behaviour control of the model table view'¶
- __module__ = 'sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable'¶
- createEditor(widget, option, index)¶
Create editor for the model table view
- setEditorData(editor, index)¶
Set the editor data from the model
- setModelData(editor, model, index)¶
Set model data for the editor
- staticMetaObject = PySide6.QtCore.QMetaObject("CustomDelegate" inherits "QStyledItemDelegate": )¶
- class sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable.CustomStandardItem(prefix='', unit='', tooltip='', default_value=None)¶
Bases:
QStandardItemCustom QStandardItem to set initial values, roles and take care of subunit and colour case
- __annotations__ = {}¶
- __doc__ = 'Custom QStandardItem to set initial values, roles\n and take care of subunit and colour case'¶
- __init__(self, /) None¶
- __init__(self, other: PySide6.QtGui.QStandardItem, /) None
- __init__(self, text: str, /) None
- __init__(self, icon: PySide6.QtGui.QIcon | PySide6.QtGui.QPixmap, text: str, /) None
- __init__(self, rows: int, /, columns: int = 1) None
Initialize self. See help(type(self)) for accurate signature.
- __module__ = 'sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable'¶
- data(role=ItemDataRole.DisplayRole)¶
Check the role of the data
- setData(value, role=ItemDataRole.EditRole)¶
Set data for the model
- class sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable.DoubleValidator(bottom: float, top: float, decimals: int, parent=None)¶
Bases:
QDoubleValidatorCustom QDoubleValidator that ensures no comma values can be written.
- __annotations__ = {}¶
- __doc__ = 'Custom QDoubleValidator that ensures no comma values can be written.'¶
- __init__(self, /, parent: PySide6.QtCore.QObject | None = None, *, bottom: float | None = None, top: float | None = None, decimals: int | None = None, notation: PySide6.QtGui.QDoubleValidator.Notation | None = None) None¶
- __init__(self, bottom: float, top: float, decimals: int, /, parent: PySide6.QtCore.QObject | None = None, *, notation: PySide6.QtGui.QDoubleValidator.Notation | None = None) None
Initialize self. See help(type(self)) for accurate signature.
- __module__ = 'sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable'¶
- staticMetaObject = PySide6.QtCore.QMetaObject("DoubleValidator" inherits "QDoubleValidator": )¶
- validate(input: str, pos: int) tuple¶
Return invalid for commas to prevent decimal separator issues.
- class sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable.ExtendedEnum(value)¶
Bases:
EnumExtended Enum class to return all values
- __doc__ = 'Extended Enum class to return all values'¶
- __module__ = 'sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable'¶
- classmethod list()¶
- class sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable.ModelTableModel(parent=None)¶
Bases:
QStandardItemModelSubclass from QStandardItemModel to allow displaying parameters in QTableView model.
- __annotations__ = {}¶
- __doc__ = 'Subclass from QStandardItemModel to allow displaying parameters in\n QTableView model.'¶
- __init__(self, /, parent: PySide6.QtCore.QObject | None = None, *, sortRole: int | None = None) None¶
- __init__(self, rows: int, columns: int, /, parent: PySide6.QtCore.QObject | None = None, *, sortRole: int | None = None) None
Initialize self. See help(type(self)) for accurate signature.
- __module__ = 'sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable'¶
- staticMetaObject = PySide6.QtCore.QMetaObject("ModelTableModel" inherits "QStandardItemModel": )¶
- class sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable.OptionLayout(value)¶
Bases:
ExtendedEnumRow layout for the subunit table
- COMX()¶
Return COMX dimensions
- COMY()¶
Return COMY dimensions
- COMZ()¶
Return COMZ dimensions
- COM_x = 'COMX'¶
- COM_y = 'COMY'¶
- COM_z = 'COMZ'¶
- Colour = 'colour'¶
- RPX()¶
Return RPX dimensions
- RPY()¶
Return RPY dimensions
- RPZ()¶
Return RPZ dimensions
- RP_x = 'RPX'¶
- RP_y = 'RPY'¶
- RP_z = 'RPZ'¶
- SLD()¶
Return ΔSLD dimensions
- Subunit = 'Subunit'¶
- __doc__ = 'Row layout for the subunit table'¶
- __module__ = 'sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable'¶
- __new__(value)¶
- alpha()¶
Return α dimensions
- beta()¶
Return β dimensions
- colour()¶
Return Colour dimensions
- cube()¶
Return the cube dimensions
- cuboid()¶
Return the cuboid dimensions
- cyl_ring()¶
Return the cylinder ring dimensions
- cylinder()¶
Return the cylinder dimensions
- disc()¶
Return the disc dimensions
- ellipsoid()¶
ellipsoid dimension layout
- elliptical_cylinder()¶
Return the elliptical cylinder dimensions
- gamma()¶
Return γ dimensions
- static get_position(enum)¶
Get the position of a enum (row)
- hollow_cube()¶
Return the hollow cube dimensions
- hollow_sphere()¶
Return the hollow sphere dimensions
- sphere()¶
sphere dimension layout
- x = 'X'¶
- y = 'Y'¶
- z = 'Z'¶
- ΔSLD = 'SLD'¶
- α = 'alpha'¶
- β = 'beta'¶
- γ = 'gamma'¶
- class sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable.SubunitTable¶
Bases:
QWidget,Ui_SubunitTableControllerSubunit table functionality and design for the model tab
- __annotations__ = {}¶
- __doc__ = 'Subunit table functionality and design for the model tab'¶
- __init__(self, /, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags), *, modal: bool | None = None, windowModality: PySide6.QtCore.Qt.WindowModality | None = None, enabled: bool | None = None, geometry: PySide6.QtCore.QRect | None = None, frameGeometry: PySide6.QtCore.QRect | None = None, normalGeometry: PySide6.QtCore.QRect | None = None, x: int | None = None, y: int | None = None, pos: PySide6.QtCore.QPoint | None = None, frameSize: PySide6.QtCore.QSize | None = None, size: PySide6.QtCore.QSize | None = None, width: int | None = None, height: int | None = None, rect: PySide6.QtCore.QRect | None = None, childrenRect: PySide6.QtCore.QRect | None = None, childrenRegion: PySide6.QtGui.QRegion | None = None, sizePolicy: PySide6.QtWidgets.QSizePolicy | None = None, minimumSize: PySide6.QtCore.QSize | None = None, maximumSize: PySide6.QtCore.QSize | None = None, minimumWidth: int | None = None, minimumHeight: int | None = None, maximumWidth: int | None = None, maximumHeight: int | None = None, sizeIncrement: PySide6.QtCore.QSize | None = None, baseSize: PySide6.QtCore.QSize | None = None, palette: PySide6.QtGui.QPalette | None = None, font: PySide6.QtGui.QFont | None = None, cursor: PySide6.QtGui.QCursor | None = None, mouseTracking: bool | None = None, tabletTracking: bool | None = None, isActiveWindow: bool | None = None, focusPolicy: PySide6.QtCore.Qt.FocusPolicy | None = None, focus: bool | None = None, contextMenuPolicy: PySide6.QtCore.Qt.ContextMenuPolicy | None = None, updatesEnabled: bool | None = None, visible: bool | None = None, minimized: bool | None = None, maximized: bool | None = None, fullScreen: bool | None = None, sizeHint: PySide6.QtCore.QSize | None = None, minimumSizeHint: PySide6.QtCore.QSize | None = None, acceptDrops: bool | None = None, windowTitle: str | None = None, windowIcon: PySide6.QtGui.QIcon | None = None, windowIconText: str | None = None, windowOpacity: float | None = None, windowModified: bool | None = None, toolTip: str | None = None, toolTipDuration: int | None = None, statusTip: str | None = None, whatsThis: str | None = None, accessibleName: str | None = None, accessibleDescription: str | None = None, accessibleIdentifier: str | None = None, layoutDirection: PySide6.QtCore.Qt.LayoutDirection | None = None, autoFillBackground: bool | None = None, styleSheet: str | None = None, locale: PySide6.QtCore.QLocale | None = None, windowFilePath: str | None = None, inputMethodHints: PySide6.QtCore.Qt.InputMethodHint | None = None) None¶
Initialize self. See help(type(self)) for accurate signature.
- __module__ = 'sas.qtgui.Calculators.Shape2SAS.Tables.subunitTable'¶
- initializeModel()¶
Setup the model for the subunit table
- initializeSignals()¶
Setup signals for the subunit table
- onAdding()¶
Add a subunit to the model table
- onClearSubunitTable()¶
Clear the subunit table
- onDeleting()¶
Delete the selected subunit from the model table
- setButtonSpinboxBounds()¶
Set new bounds for the spinbox when a new column is added or deleted
- setSubunitOptions()¶
Set the subunit options in the combobox
- setSubunitRestriction(dimensions)¶
Set input restriction for a row
- setTableProperties()¶
Setting table properties
- static smallestInteger(numcolumn, columnEyeKeeper: list) int¶
Find the smallest integer not in columnEyeKeeper list
- staticMetaObject = PySide6.QtCore.QMetaObject("SubunitTable" inherits "QWidget": )¶
sas.qtgui.Calculators.Shape2SAS.Tables.variableTable module¶
- class sas.qtgui.Calculators.Shape2SAS.Tables.variableTable.CustomDelegate¶
Bases:
QStyledItemDelegateCustom delegate to set check box in the table
- __annotations__ = {}¶
- __doc__ = 'Custom delegate to set check box in the table'¶
- __module__ = 'sas.qtgui.Calculators.Shape2SAS.Tables.variableTable'¶
- createEditor(widget, option, index)¶
Create editor for the model table view
- setEditorData(editor, index)¶
Set the checkbox state based on the model data
- setModelData(editor, model, index)¶
Update the model data based on the checkbox state
- staticMetaObject = PySide6.QtCore.QMetaObject("CustomDelegate" inherits "QStyledItemDelegate": )¶
- class sas.qtgui.Calculators.Shape2SAS.Tables.variableTable.ModelVariableTableModel(parent=None)¶
Bases:
QStandardItemModelSubclass from QStandardItemModel to allow displaying parameters in QTableView model.
- __annotations__ = {}¶
- __doc__ = 'Subclass from QStandardItemModel to allow displaying parameters in\n QTableView model.'¶
- __init__(self, /, parent: PySide6.QtCore.QObject | None = None, *, sortRole: int | None = None) None¶
- __init__(self, rows: int, columns: int, /, parent: PySide6.QtCore.QObject | None = None, *, sortRole: int | None = None) None
Initialize self. See help(type(self)) for accurate signature.
- __module__ = 'sas.qtgui.Calculators.Shape2SAS.Tables.variableTable'¶
- headerData(section, orientation, role=ItemDataRole.DisplayRole)¶
Displays model parameters in the header of the model table
- staticMetaObject = PySide6.QtCore.QMetaObject("ModelVariableTableModel" inherits "QStandardItemModel": )¶
- class sas.qtgui.Calculators.Shape2SAS.Tables.variableTable.VariableTable¶
Bases:
QWidget,Ui_VariableTable- __annotations__ = {}¶
- __doc__ = None¶
- __init__(self, /, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags), *, modal: bool | None = None, windowModality: PySide6.QtCore.Qt.WindowModality | None = None, enabled: bool | None = None, geometry: PySide6.QtCore.QRect | None = None, frameGeometry: PySide6.QtCore.QRect | None = None, normalGeometry: PySide6.QtCore.QRect | None = None, x: int | None = None, y: int | None = None, pos: PySide6.QtCore.QPoint | None = None, frameSize: PySide6.QtCore.QSize | None = None, size: PySide6.QtCore.QSize | None = None, width: int | None = None, height: int | None = None, rect: PySide6.QtCore.QRect | None = None, childrenRect: PySide6.QtCore.QRect | None = None, childrenRegion: PySide6.QtGui.QRegion | None = None, sizePolicy: PySide6.QtWidgets.QSizePolicy | None = None, minimumSize: PySide6.QtCore.QSize | None = None, maximumSize: PySide6.QtCore.QSize | None = None, minimumWidth: int | None = None, minimumHeight: int | None = None, maximumWidth: int | None = None, maximumHeight: int | None = None, sizeIncrement: PySide6.QtCore.QSize | None = None, baseSize: PySide6.QtCore.QSize | None = None, palette: PySide6.QtGui.QPalette | None = None, font: PySide6.QtGui.QFont | None = None, cursor: PySide6.QtGui.QCursor | None = None, mouseTracking: bool | None = None, tabletTracking: bool | None = None, isActiveWindow: bool | None = None, focusPolicy: PySide6.QtCore.Qt.FocusPolicy | None = None, focus: bool | None = None, contextMenuPolicy: PySide6.QtCore.Qt.ContextMenuPolicy | None = None, updatesEnabled: bool | None = None, visible: bool | None = None, minimized: bool | None = None, maximized: bool | None = None, fullScreen: bool | None = None, sizeHint: PySide6.QtCore.QSize | None = None, minimumSizeHint: PySide6.QtCore.QSize | None = None, acceptDrops: bool | None = None, windowTitle: str | None = None, windowIcon: PySide6.QtGui.QIcon | None = None, windowIconText: str | None = None, windowOpacity: float | None = None, windowModified: bool | None = None, toolTip: str | None = None, toolTipDuration: int | None = None, statusTip: str | None = None, whatsThis: str | None = None, accessibleName: str | None = None, accessibleDescription: str | None = None, accessibleIdentifier: str | None = None, layoutDirection: PySide6.QtCore.Qt.LayoutDirection | None = None, autoFillBackground: bool | None = None, styleSheet: str | None = None, locale: PySide6.QtCore.QLocale | None = None, windowFilePath: str | None = None, inputMethodHints: PySide6.QtCore.Qt.InputMethodHint | None = None) None¶
Initialize self. See help(type(self)) for accurate signature.
- __module__ = 'sas.qtgui.Calculators.Shape2SAS.Tables.variableTable'¶
- getAllTableColumnsPos()¶
Get all columns from the variable table
- getAllTableNamesVariables()¶
Get all names from the variable table
- getCheckedTableNamesVariables()¶
Get checked names from the variable table
- getCheckedVariables() list[list[bool]]¶
Get checked names and associated columns from variable table
- initializeVariableModel()¶
Setup the model for the subunit table
- onClearTable()¶
Clear the table
- removeTableData(row)¶
Remove data from table
- resetTable()¶
Reset table
- setDefaultLayout()¶
Set default values
- setUncheckToAllCheckBoxes()¶
Uncheck all checkboxes
- setVariableTableData(names: list[str], column: int)¶
Set names and checkboxes to table
- staticMetaObject = PySide6.QtCore.QMetaObject("VariableTable" inherits "QWidget": )¶