trigger.utils.shape_transfer.ui

Attributes

LOG

WINDOWNAME

Classes

DoubleSlider

MainUI

ProtocolWidget

Custom Layout for protocol properties.

Functions

launch([force])

Module Contents

class DoubleSlider(*args, **kargs)

Bases: trigger.ui.Qt.QtWidgets.QSlider

emitDoubleValueChanged()
map_to_original(value)

map the value from slider range (0-100) to the original range

map_to_slider(value)

map the value from original range to the slider range (0-100)

setMaximum(value)
setMinimum(value)
setSingleStep(value)
setValue(value)
set_original_maximum(value)
set_original_minimum(value)
singleStep()
value()
doubleValueChanged
class MainUI(parent=None)

Bases: trigger.ui.Qt.QtWidgets.QMainWindow

build_bars()

Build the menu and status bars.

build_buttons()

Build command buttons.

build_commons()

Build the commons section.

build_general_settings()

Build generic settings.

build_transfer_tabs()

Create a tabbed layout for the transfer protocols.

build_ui()

Build the UI.

on_preview(state)

Set the preview mode on the transfer handler.

on_source_visibility(value)

Set visibility of all sources on all protocols.

on_target_visibility(value)

Set visibility of all sources on all protocols.

on_transfer()

Run the transfer and inform the user about the progress and result.

set_protocol(*args, **kwargs)

Set the active protocol on shape_transfer object according to the active tab and protocol combo box.

class ProtocolWidget(protocol_object)

Bases: trigger.ui.Qt.QtWidgets.QWidget

Custom Layout for protocol properties.

build_layout()

Build the layout.

initialize_values()

Get the values from the protocol object and update the widgets.

setVisible(visible)

Override the setVisible method to set the layout visible and the protocol visible.

excluded_property_names = ['visibility', 'source_visibility', 'target_visibility']
launch(force=True)
LOG
WINDOWNAME = 'Shape Transfer v1.0.0'