Table Models and Views

class squirrel.tables.pv_browser_table.CSVTableModel(*args: Any, **kwargs: Any)[source]

Methods

__call__(*args, **kwargs)

Call self as a function.

get_validation_results()

Return comprehensive validation results

columnCount

data

headerData

rowCount

get_validation_results() Dict[source]

Return comprehensive validation results

class squirrel.tables.pv_browser_table.PVBrowserFilterProxyModel(*args: Any, **kwargs: Any)[source]
Attributes:
search_string

Get the current search string for filtering.

Methods

__call__(*args, **kwargs)

Call self as a function.

is_tag_subset(entry_tags)

Check if the entry's tags are a subset of the filter's tag set.

search_accepts_entry(entry)

Check if the entry matches the current search string.

set_tag_set(tag_set)

Set the tag set for filtering.

filterAcceptsRow

is_tag_subset(entry_tags: dict[int, set[int]]) bool[source]

Check if the entry’s tags are a subset of the filter’s tag set.

Parameters:
entry_tagsTagSet

The tags of the entry to check.

Returns:
bool

True if the entry’s tags are a subset of the filter’s tag set, False otherwise.

search_accepts_entry(entry: PV) bool[source]

Check if the entry matches the current search string. Searches the device, setpoint, and readback fields.

Parameters:
entryPV

Entry to be searched

Returns:
bool

True if the entry matches the search string, False otherwise

property search_string: str

Get the current search string for filtering.

set_tag_set(tag_set: dict[int, set[int]]) None[source]

Set the tag set for filtering. Apply filter to model immediately.

Parameters:
tag_setTagSet

The set of tags to filter entries by.

class squirrel.tables.pv_browser_table.PVBrowserTableModel(*args: Any, **kwargs: Any)[source]

Methods

__call__(*args, **kwargs)

Call self as a function.

add_pv

add_pvs

canFetchMore

columnCount

data

fetchMore

headerData

refetch_row

removeRow

rowCount

class squirrel.tables.pv_browser_table.PV_BROWSER_HEADER(value)[source]

An enumeration.

class squirrel.widgets.squirrel_table_view.SquirrelTableGridDelegate(*args: Any, **kwargs: Any)[source]

Styled Item Delegate for showing the horizontal grid lines in a table view. To be used by the SquirrelTableView class.

Methods

__call__(*args, **kwargs)

Call self as a function.

paint

class squirrel.widgets.squirrel_table_view.SquirrelTableView(*args: Any, **kwargs: Any)[source]

Methods

__call__(*args, **kwargs)

Call self as a function.

copy_address

mousePressEvent

resizeColumnsToContents