Skip to content

Commit 4af048e

Browse files
committed
refactor(beamline-states): BeamlineStateManager widget moved to separate module
1 parent f3ae15b commit 4af048e

6 files changed

Lines changed: 619 additions & 629 deletions

File tree

bec_widgets/cli/client.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -721,20 +721,7 @@ def set_position(self, x: "float", y: "float"):
721721
class BeamlineStateManager(RPCBase):
722722
"""Widget displaying and managing all BEC beamline states."""
723723

724-
_IMPORT_MODULE = "bec_widgets.widgets.services.beamline_states.beamline_state_pill"
725-
726-
@property
727-
@rpc_call
728-
def idle_card_background(self) -> "bool":
729-
"""
730-
Whether idle collapsed pills keep the status-tinted card background.
731-
"""
732-
733-
@rpc_call
734-
def set_idle_card_background(self, enabled: "bool") -> "None":
735-
"""
736-
Set whether idle collapsed pills keep the status-tinted card background.
737-
"""
724+
_IMPORT_MODULE = "bec_widgets.widgets.services.beamline_states.beamline_state_manager"
738725

739726
@rpc_call
740727
def clear_filters(self) -> "None":

bec_widgets/cli/designer_plugins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"BECSpinBox": ("bec_widgets.widgets.utility.spinbox.decimal_spinbox", "BECSpinBox"),
2121
"BECStatusBox": ("bec_widgets.widgets.services.bec_status_box.bec_status_box", "BECStatusBox"),
2222
"BeamlineStateManager": (
23-
"bec_widgets.widgets.services.beamline_states.beamline_state_pill",
23+
"bec_widgets.widgets.services.beamline_states.beamline_state_manager",
2424
"BeamlineStateManager",
2525
),
2626
"BecConsole": ("bec_widgets.widgets.editors.bec_console.bec_console", "BecConsole"),

0 commit comments

Comments
 (0)