0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

fix(client): RPC API adjusted for DockArea, ImageItem and Waveform

This commit is contained in:
2025-03-21 11:27:24 +01:00
parent b58a098ed4
commit 6ca4aa0f9b
4 changed files with 41 additions and 1733 deletions

File diff suppressed because it is too large Load Diff

View File

@ -49,6 +49,9 @@ class DockAreaConfig(ConnectionConfig):
class BECDockArea(BECWidget, QWidget):
PLUGIN = True
USER_ACCESS = [
"_rpc_id",
"_config_dict",
"_get_all_rpc",
"new",
"show",
"hide",

View File

@ -166,11 +166,11 @@ class ImageItem(BECConnector, pg.ImageItem):
self.apply_autorange()
@property
def autorange_mode(self) -> Literal["max", "mean"]:
def autorange_mode(self) -> str:
return self.config.autorange_mode
@autorange_mode.setter
def autorange_mode(self, mode: Literal["max", "mean"]):
def autorange_mode(self, mode: str):
self.config.autorange_mode = mode
if self.autorange:
self.apply_autorange()

View File

@ -45,6 +45,7 @@ class Waveform(PlotBase):
ICON_NAME = "show_chart"
USER_ACCESS = [
# General PlotBase Settings
"_config_dict",
"enable_toolbar",
"enable_toolbar.setter",
"enable_side_panel",