class XRFScanParametersBrick(BaseComponents.BlissWidget):

    def __init__(self, *args):
        BaseComponents.BlissWidget.__init__(self, *args)

        self.addProperty('xrf-scan', 'string', '')        
        self.addProperty("session", "string", "/session")
        self.session_hwobj = None
	self.xrf_scan_hwobj = None
        
        # Layout
        main_layout = qt.QVBoxLayout(self)
        self.xrf_scan_widget = XRFScanParametersWidget(self)
        main_layout.addWidget(self.xrf_scan_widget)

        # Qt-Slots and signals
        self.defineSlot("populate_parameter_widget", ({}))

    def populate_parameter_widget(self, item):
        self.xrf_scan_widget.data_path_widget._base_image_dir = \
            self.session_hwobj.get_base_image_directory()
        self.xrf_scan_widget.data_path_widget._base_process_dir = \
            self.session_hwobj.get_base_process_directory()
        self.xrf_scan_widget.populate_widget(item)

    def propertyChanged(self, property_name, old_value, new_value):
        """
        Overriding BaseComponents.BlissWidget (propertyChanged object) 
        run method.
        """
	if property_name == 'xrf-scan':
	    self.xrf_scan_hwobj = self.getHardwareObject(new_value) 	 
            self.xrf_scan_widget.set_xrf_scan_hwobj(self.getHardwareObject(new_value))
        elif property_name == 'session':
            self.session_hwobj = self.getHardwareObject(new_value)
Beispiel #2
0
class XRFScanParametersBrick(BaseComponents.BlissWidget):
    def __init__(self, *args):
        BaseComponents.BlissWidget.__init__(self, *args)

        self.addProperty('xrf-scan', 'string', '')
        self.addProperty("session", "string", "/session")
        self.session_hwobj = None
        self.xrf_scan_hwobj = None

        # Layout
        main_layout = qt.QVBoxLayout(self)
        self.xrf_scan_widget = XRFScanParametersWidget(self)
        main_layout.addWidget(self.xrf_scan_widget)

        # Qt-Slots and signals
        self.defineSlot("populate_parameter_widget", ({}))

    def populate_parameter_widget(self, item):
        self.xrf_scan_widget.data_path_widget._base_image_dir = \
            self.session_hwobj.get_base_image_directory()
        self.xrf_scan_widget.data_path_widget._base_process_dir = \
            self.session_hwobj.get_base_process_directory()
        self.xrf_scan_widget.populate_widget(item)

    def propertyChanged(self, property_name, old_value, new_value):
        """
        Overriding BaseComponents.BlissWidget (propertyChanged object) 
        run method.
        """
        if property_name == 'xrf-scan':
            self.xrf_scan_hwobj = self.getHardwareObject(new_value)
            self.xrf_scan_widget.set_xrf_scan_hwobj(
                self.getHardwareObject(new_value))
        elif property_name == 'session':
            self.session_hwobj = self.getHardwareObject(new_value)
Beispiel #3
0
    def __init__(self, *args):
        BaseComponents.BlissWidget.__init__(self, *args)

        self.addProperty('xrf-scan', 'string', '')
        self.addProperty("session", "string", "/session")
        self.session_hwobj = None
        self.xrf_scan_hwobj = None

        # Layout
        main_layout = qt.QVBoxLayout(self)
        self.xrf_scan_widget = XRFScanParametersWidget(self)
        main_layout.addWidget(self.xrf_scan_widget)

        # Qt-Slots and signals
        self.defineSlot("populate_parameter_widget", ({}))
    def __init__(self, *args):
        BaseComponents.BlissWidget.__init__(self, *args)

        self.addProperty('xrf-scan', 'string', '')        
        self.addProperty("session", "string", "/session")
        self.session_hwobj = None
	self.xrf_scan_hwobj = None
        
        # Layout
        main_layout = qt.QVBoxLayout(self)
        self.xrf_scan_widget = XRFScanParametersWidget(self)
        main_layout.addWidget(self.xrf_scan_widget)

        # Qt-Slots and signals
        self.defineSlot("populate_parameter_widget", ({}))