mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
fix(client): RPC API adjusted for DockArea, ImageItem and Waveform
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -49,6 +49,9 @@ class DockAreaConfig(ConnectionConfig):
|
|||||||
class BECDockArea(BECWidget, QWidget):
|
class BECDockArea(BECWidget, QWidget):
|
||||||
PLUGIN = True
|
PLUGIN = True
|
||||||
USER_ACCESS = [
|
USER_ACCESS = [
|
||||||
|
"_rpc_id",
|
||||||
|
"_config_dict",
|
||||||
|
"_get_all_rpc",
|
||||||
"new",
|
"new",
|
||||||
"show",
|
"show",
|
||||||
"hide",
|
"hide",
|
||||||
|
@ -166,11 +166,11 @@ class ImageItem(BECConnector, pg.ImageItem):
|
|||||||
self.apply_autorange()
|
self.apply_autorange()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def autorange_mode(self) -> Literal["max", "mean"]:
|
def autorange_mode(self) -> str:
|
||||||
return self.config.autorange_mode
|
return self.config.autorange_mode
|
||||||
|
|
||||||
@autorange_mode.setter
|
@autorange_mode.setter
|
||||||
def autorange_mode(self, mode: Literal["max", "mean"]):
|
def autorange_mode(self, mode: str):
|
||||||
self.config.autorange_mode = mode
|
self.config.autorange_mode = mode
|
||||||
if self.autorange:
|
if self.autorange:
|
||||||
self.apply_autorange()
|
self.apply_autorange()
|
||||||
|
@ -45,6 +45,7 @@ class Waveform(PlotBase):
|
|||||||
ICON_NAME = "show_chart"
|
ICON_NAME = "show_chart"
|
||||||
USER_ACCESS = [
|
USER_ACCESS = [
|
||||||
# General PlotBase Settings
|
# General PlotBase Settings
|
||||||
|
"_config_dict",
|
||||||
"enable_toolbar",
|
"enable_toolbar",
|
||||||
"enable_toolbar.setter",
|
"enable_toolbar.setter",
|
||||||
"enable_side_panel",
|
"enable_side_panel",
|
||||||
|
Reference in New Issue
Block a user