def _build_operators(self): self._operators_group = QtWidgets.QGroupBox("Operators") h_layout = create_box_layout(ORIENTATION.HORIZONTAL, margin=2) self._operators_group.setLayout(h_layout) self._operator_list = QtWidgets.QListWidget() self._operator_list.setSelectionMode( QtWidgets.QAbstractItemView.ExtendedSelection) h_layout.addWidget(self._operator_list) self._force_all = QtWidgets.QCheckBox("Force Evaluation") h_layout.addWidget(self._force_all, 0, QtCore.Qt.AlignTop) self._layout.addWidget(self._operators_group)
def _build_tab_import(self): widget = QtWidgets.QWidget() v_layout = create_box_layout(ORIENTATION.VERTICAL, margin=5, spacing=10) widget.setLayout(v_layout) self._tab_widget.addTab(widget, "Import") v_layout.addSpacing(10) self._apply, self._insert, self._replace = create_radio_buttons( None, ['Apply', 'Insert', 'Replace'], self, v_layout, width=60, add_stretch=False) v_layout.addWidget(create_separator(ORIENTATION.HORIZONTAL)) h_layout1 = create_box_layout(ORIENTATION.HORIZONTAL, margin=0, spacing=0) h_layout1.addSpacing(18) h_layout1.addWidget(create_label("Frame value: ", width=116)) self._frame_value = QtWidgets.QSpinBox(self) h_layout1.addWidget(self._frame_value) v_layout.addLayout(h_layout1) h_layout2 = create_box_layout(ORIENTATION.HORIZONTAL, margin=0, spacing=5) self._enable_frame_range = QtWidgets.QCheckBox("") self._enable_frame_range.setFixedWidth(13) h_layout2.addWidget(self._enable_frame_range) self._frame_range = FrameRange(self, width=111) h_layout2.addWidget(self._frame_range) v_layout.addLayout(h_layout2) self._hierarchy = QtWidgets.QCheckBox("Hierarchy") self._hierarchy.setVisible(self._manager.facade.support_hierarchy()) v_layout.addWidget(self._hierarchy) v_layout.addWidget(create_separator(ORIENTATION.HORIZONTAL)) h_layout3 = create_box_layout(ORIENTATION.HORIZONTAL, margin=0, spacing=5) self._enable_channel_op_priority = QtWidgets.QCheckBox("Channel Op " "Priority") self._enable_channel_op_priority.setFixedWidth(130) h_layout3.addWidget(self._enable_channel_op_priority) self._channel_op_priority = QtWidgets.QListWidget(self) self._channel_op_priority.setDragDropMode( QtWidgets.QAbstractItemView.InternalMove) h_layout3.addWidget(self._channel_op_priority) v_layout.addLayout(h_layout3) h_layout4 = create_box_layout(ORIENTATION.HORIZONTAL, margin=0, spacing=5) self._enable_item_op_priority = QtWidgets.QCheckBox("Item Op Priority") self._enable_item_op_priority.setFixedWidth(130) h_layout4.addWidget(self._enable_item_op_priority) self._item_op_priority = QtWidgets.QListWidget(self) self._item_op_priority.setDragDropMode( QtWidgets.QAbstractItemView.InternalMove) h_layout4.addWidget(self._item_op_priority) v_layout.addLayout(h_layout4) self._scale_fps = QtWidgets.QCheckBox("Scale FPS") v_layout.addWidget(self._scale_fps) self._ignore_item_chunks = QtWidgets.QCheckBox("Ignore Item Chunks") v_layout.addWidget(self._ignore_item_chunks) v_layout.addStretch(1)