Exemple #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)
Exemple #2
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)
Exemple #3
0
    def _build_string(self):
        widget = QtWidgets.QWidget()
        v_layout = create_box_layout(ORIENTATION.VERTICAL, margin=5,
                                     spacing=10)
        widget.setLayout(v_layout)
        self._tab_widget.addTab(widget, "Names")

        h_layout1 = create_box_layout(ORIENTATION.HORIZONTAL, margin=0,
                                      spacing=0)
        h_layout1.addWidget(create_label("String Replacement: ", width=115))
        self._str_repl_table = QtWidgets.QTableWidget(self)
        self._str_repl_table.setRowCount(1)
        self._str_repl_table.setColumnCount(2)
        self._str_repl_table.setHorizontalHeaderLabels(["From", "To"])
        self._str_repl_table.setColumnWidth(0, 125)
        self._str_repl_table.horizontalHeader().setStretchLastSection(True)
        self._str_repl_table.horizontalHeader().setSectionsClickable(False)
        self._str_repl_table.verticalHeader().setVisible(False)
        self._str_repl_table.setAlternatingRowColors(True)
        self._str_repl_table.setSelectionMode(
            QtWidgets.QAbstractItemView.SingleSelection)
        self._str_repl_table.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        h_layout1.addWidget(self._str_repl_table)
        v_layout.addLayout(h_layout1)

        self._str_repl_menu = QtWidgets.QMenu(self)
        self._str_repl_add_row = self._str_repl_menu.addAction("Add Row")
        self._str_repl_del_row = self._str_repl_menu.addAction("Delete Row")
        self._str_repl_del_all = self._str_repl_menu.addAction("Delete All")

        h_layout2 = create_box_layout(ORIENTATION.HORIZONTAL, margin=0,
                                      spacing=0)
        h_layout2.addWidget(create_label("Prefix To Add: ", width=115))
        self._prefix = QtWidgets.QLineEdit()
        h_layout2.addWidget(self._prefix)
        v_layout.addLayout(h_layout2)

        h_layout3 = create_box_layout(ORIENTATION.HORIZONTAL, margin=0,
                                      spacing=0)
        h_layout3.addWidget(create_label("Suffix To Add: ", width=115))
        self._suffix = QtWidgets.QLineEdit()
        h_layout3.addWidget(self._suffix)
        v_layout.addLayout(h_layout3)
Exemple #4
0
    def _buid_widgets(self, root, show_channels, show_chunks, facade):
        h_layout = create_box_layout(ORIENTATION.HORIZONTAL,
                                     margin=0,
                                     spacing=10)
        self._layout.addLayout(h_layout)

        self._search_field = QtWidgets.QLineEdit(self)
        h_layout.addWidget(self._search_field)

        self._search_button = QtWidgets.QPushButton(self)
        self._search_button.setIcon(QtGui.QIcon(get_image("search.png")))
        h_layout.addWidget(self._search_button)

        self._data_tree = DataTreeWidget(root=root,
                                         show_channels=show_channels,
                                         show_chunks=show_chunks,
                                         parent=self,
                                         facade=facade)
        self._layout.addWidget(self._data_tree)
Exemple #5
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)