Ejemplo 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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
    def _build_preview_and_buttons(self):
        v_layout = create_box_layout(ORIENTATION.VERTICAL, margin=0,
                                      spacing=5)

        v_layout.addSpacing(20)

        self._preview = PreviewWidget(parent=self)
        v_layout.addWidget(self._preview, 0, QtCore.Qt.AlignTop)

        self._import_button = QtWidgets.QPushButton("Import")
        self._import_button.setFixedHeight(75)
        v_layout.addWidget(self._import_button, 1, QtCore.Qt.AlignBottom)

        self._secondary_layout.addLayout(v_layout)
Ejemplo n.º 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)
Ejemplo n.º 5
0
 def _build_buttons(self):
     self._export_button = QtWidgets.QPushButton("Export")
     self._export_button.setFixedHeight(25)
     self._layout.addWidget(self._export_button)