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

docs: add missing class doc strings for rpc-enabled widgets

This commit is contained in:
2025-04-12 21:11:02 +02:00
parent d2c90757c2
commit cfc8272ac2
10 changed files with 54 additions and 0 deletions

View File

@ -240,6 +240,8 @@ class BECDock(RPCBase):
class BECDockArea(RPCBase):
"""Container for other widgets. Widgets can be added to the dock area and arranged in a grid layout."""
@property
@rpc_call
def _rpc_id(self) -> "str":
@ -660,6 +662,8 @@ class DapComboBox(RPCBase):
class DeviceBrowser(RPCBase):
"""DeviceBrowser is a widget that displays all available devices in the current BEC session."""
@rpc_call
def remove(self):
"""
@ -698,6 +702,8 @@ class DeviceLineEdit(RPCBase):
class Image(RPCBase):
"""Image widget for displaying 2D data."""
@property
@rpc_call
def enable_toolbar(self) -> "bool":
@ -1379,6 +1385,8 @@ class LogPanel(RPCBase):
class MotorMap(RPCBase):
"""Motor map widget for plotting motor positions in 2D including a trace of the last points."""
@property
@rpc_call
def enable_toolbar(self) -> "bool":
@ -1768,6 +1776,8 @@ class MotorMap(RPCBase):
class MultiWaveform(RPCBase):
"""MultiWaveform widget for displaying multiple waveforms emitted by a single signal."""
@property
@rpc_call
def enable_toolbar(self) -> "bool":
@ -2177,6 +2187,8 @@ class MultiWaveform(RPCBase):
class PositionIndicator(RPCBase):
"""Display a position within a defined range, e.g. motor limits."""
@rpc_call
def set_value(self, position: float):
"""
@ -2328,6 +2340,8 @@ class Ring(RPCBase):
class RingProgressBar(RPCBase):
"""Show the progress of devices, scans or custom values in the form of ring progress bars."""
@rpc_call
def _get_all_rpc(self) -> "dict":
"""
@ -2507,6 +2521,8 @@ class RingProgressBar(RPCBase):
class ScanControl(RPCBase):
"""Widget to submit new scans to the queue."""
@rpc_call
def remove(self):
"""
@ -2896,6 +2912,8 @@ class VSCodeEditor(RPCBase):
class Waveform(RPCBase):
"""Widget for plotting waveforms."""
@property
@rpc_call
def _config_dict(self) -> "dict":

View File

@ -48,6 +48,10 @@ class DockAreaConfig(ConnectionConfig):
class BECDockArea(BECWidget, QWidget):
"""
Container for other widgets. Widgets can be added to the dock area and arranged in a grid layout.
"""
PLUGIN = True
USER_ACCESS = [
"_rpc_id",

View File

@ -8,6 +8,10 @@ from bec_widgets.utils.colors import get_accent_colors, get_theme_palette
class PositionIndicator(BECWidget, QWidget):
"""
Display a position within a defined range, e.g. motor limits.
"""
USER_ACCESS = ["set_value", "set_range", "vertical", "indicator_width", "rounded_corners"]
PLUGIN = True
ICON_NAME = "horizontal_distribute"

View File

@ -41,6 +41,10 @@ class ScanControlConfig(ConnectionConfig):
class ScanControl(BECWidget, QWidget):
"""
Widget to submit new scans to the queue.
"""
PLUGIN = True
ICON_NAME = "tune"
ARG_BOX_POSITION: int = 2

View File

@ -41,6 +41,10 @@ class ImageConfig(ConnectionConfig):
class Image(PlotBase):
"""
Image widget for displaying 2D data.
"""
PLUGIN = True
RPC = True
ICON_NAME = "image"

View File

@ -83,6 +83,10 @@ class MotorMapConfig(ConnectionConfig):
class MotorMap(PlotBase):
"""
Motor map widget for plotting motor positions in 2D including a trace of the last points.
"""
PLUGIN = True
RPC = True
ICON_NAME = "my_location"

View File

@ -45,6 +45,10 @@ class MultiWaveformConfig(ConnectionConfig):
class MultiWaveform(PlotBase):
"""
MultiWaveform widget for displaying multiple waveforms emitted by a single signal.
"""
PLUGIN = True
RPC = True
ICON_NAME = "ssid_chart"

View File

@ -38,6 +38,10 @@ class WaveformConfig(ConnectionConfig):
class Waveform(PlotBase):
"""
Widget for plotting waveforms.
"""
PLUGIN = True
RPC = True
ICON_NAME = "show_chart"

View File

@ -71,6 +71,10 @@ class RingProgressBarConfig(ConnectionConfig):
class RingProgressBar(BECWidget, QWidget):
"""
Show the progress of devices, scans or custom values in the form of ring progress bars.
"""
PLUGIN = True
ICON_NAME = "track_changes"
USER_ACCESS = [

View File

@ -13,6 +13,10 @@ from bec_widgets.widgets.services.device_browser.device_item import DeviceItem
class DeviceBrowser(BECWidget, QWidget):
"""
DeviceBrowser is a widget that displays all available devices in the current BEC session.
"""
device_update: Signal = Signal()
PLUGIN = True
ICON_NAME = "lists"