Esempio n. 1
0
    def _build_file(self):
        h_layout = create_box_layout(ORIENTATION.HORIZONTAL, margin=2)
        h_layout.addWidget(create_label("File: "))
        self._file_path = QtWidgets.QLineEdit()
        h_layout.addWidget(self._file_path)
        self._search_file_button = QtWidgets.QPushButton("Search")
        h_layout.addWidget(self._search_file_button)
        self._layout.addLayout(h_layout)

        self._options_group = QtWidgets.QGroupBox("Options")
        v_layout = create_box_layout(ORIENTATION.VERTICAL, margin=2)
        self._options_group.setLayout(v_layout)

        self._data_export, self._tar_export = create_radio_buttons("Data: ",
                    ['Data Only', "Data And Images"], self, v_layout)

        self._selection, self._hierarchy = create_radio_buttons("Hierarchy: ",
                    ["Selection", "Below"], self, v_layout)
        self._hierarchy.setEnabled(self._manager.facade.support_hierarchy())

        self._all_frames, self._gui_range, self._start_end = \
                    create_radio_buttons("Frames:", ["All", "GUI Frame Range",
                                         "Start/End"], self, v_layout)

        self._frame_range = FrameRange(self)
        v_layout.addWidget(self._frame_range)

        self._layout.addWidget(self._options_group)
Esempio n. 2
0
    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)
Esempio n. 3
0
    def _build_image(self):
        self._images_group = QtWidgets.QGroupBox("Images")
        v_layout = create_box_layout(ORIENTATION.VERTICAL, margin=2)
        self._images_group.setLayout(v_layout)

        h_layout = create_box_layout(ORIENTATION.HORIZONTAL, margin=2)
        h_layout.addWidget(create_label("Source: ", width=80))
        self._image_source = QtWidgets.QComboBox()
        h_layout.addWidget(self._image_source)

        v_layout.addLayout(h_layout)

        h_layout = create_box_layout(ORIENTATION.HORIZONTAL, margin=2)
        self._image_frame_range = FrameRange(self)
        h_layout.addWidget(self._image_frame_range)
        h_layout.addWidget(create_separator(ORIENTATION.VERTICAL))
        h_layout.addWidget(create_label("Sample every (frames): ", width=120))
        self._image_sampling = QtWidgets.QLineEdit()
        self._image_sampling.setValidator(QtGui.QDoubleValidator())
        h_layout.addWidget(self._image_sampling)

        v_layout.addLayout(h_layout)

        self._layout.addWidget(self._images_group)