Beispiel #1
0
    def _ui_settings_params_hfv4(self):
        self.paramsHFv4 = QtWidgets.QGroupBox("Parameters")
        self.settings_hfv4_vbox.addWidget(self.paramsHFv4)

        vbox = QtWidgets.QVBoxLayout()
        vbox.setContentsMargins(30, 10, 30, 10)
        self.paramsHFv4.setLayout(vbox)

        # slider holiday area limit

        slider_label_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(slider_label_hbox)
        # stretch
        slider_label_hbox.addStretch()
        # mode
        self.upper_limit_label_v4 = QtWidgets.QLabel(
            "Upper holiday area limit (as multiple of minimum holiday size):")
        self.upper_limit_label_v4.setAlignment(QtCore.Qt.AlignCenter)
        self.upper_limit_label_v4.setDisabled(True)
        slider_label_hbox.addWidget(self.upper_limit_label_v4)
        # stretch
        slider_label_hbox.addStretch()

        slider_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(slider_hbox)
        # stretch
        slider_hbox.addStretch()

        slider_gbox = QtWidgets.QGridLayout()
        slider_hbox.addLayout(slider_gbox)

        # labels
        text_sz = 36
        text_value = QtWidgets.QLabel("100")
        text_value.setFixedWidth(text_sz + 8)
        text_value.setAlignment(QtCore.Qt.AlignLeft)
        text_value.setStyleSheet(GuiSettings.stylesheet_slider_labels())
        slider_gbox.addWidget(text_value, 0, 0, 1, 1)
        text_value = QtWidgets.QLabel("400")
        text_value.setFixedWidth(text_sz)
        text_value.setAlignment(QtCore.Qt.AlignCenter)
        text_value.setStyleSheet(GuiSettings.stylesheet_slider_labels())
        slider_gbox.addWidget(text_value, 0, 1, 1, 1)
        text_value = QtWidgets.QLabel("1000")
        text_value.setFixedWidth(text_sz + 20)
        text_value.setAlignment(QtCore.Qt.AlignCenter)
        text_value.setStyleSheet(GuiSettings.stylesheet_slider_labels())
        slider_gbox.addWidget(text_value, 0, 2, 1, 1)
        text_value = QtWidgets.QLabel("4000")
        text_value.setFixedWidth(text_sz)
        text_value.setAlignment(QtCore.Qt.AlignCenter)
        text_value.setStyleSheet(GuiSettings.stylesheet_slider_labels())
        slider_gbox.addWidget(text_value, 0, 3, 1, 1)
        text_value = QtWidgets.QLabel("unlimited")
        text_value.setFixedWidth(text_sz + 8)
        text_value.setAlignment(QtCore.Qt.AlignRight)
        text_value.setStyleSheet(GuiSettings.stylesheet_slider_labels())
        slider_gbox.addWidget(text_value, 0, 4, 1, 1)

        # slider
        self.upper_limit_v4 = QtWidgets.QSlider(QtCore.Qt.Horizontal)
        self.upper_limit_v4.setRange(1, 5)
        self.upper_limit_v4.setSingleStep(1)
        self.upper_limit_v4.setValue(3)
        self.upper_limit_v4.setTickInterval(1)
        self.upper_limit_v4.setTickPosition(QtWidgets.QSlider.TicksBelow)
        self.upper_limit_v4.setDisabled(True)
        slider_gbox.addWidget(self.upper_limit_v4, 1, 0, 1, 5)

        # stretch
        slider_hbox.addStretch()

        vbox.addSpacing(6)

        # slider minimum resolution

        slider_label_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(slider_label_hbox)
        # stretch
        slider_label_hbox.addStretch()
        # mode
        self.slider_pct_min_res_label_v4 = QtWidgets.QLabel(
            "Resolution (as percentage of minimum resolution among tiles):")
        self.slider_pct_min_res_label_v4.setAlignment(QtCore.Qt.AlignCenter)
        self.slider_pct_min_res_label_v4.setDisabled(True)
        self.slider_pct_min_res_label_v4.setHidden(True)
        slider_label_hbox.addWidget(self.slider_pct_min_res_label_v4)
        # stretch
        slider_label_hbox.addStretch()

        slider_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(slider_hbox)
        # stretch
        slider_hbox.addStretch()

        slider_gbox = QtWidgets.QGridLayout()
        slider_hbox.addLayout(slider_gbox)

        # labels
        text_sz = 36
        text_value = QtWidgets.QLabel("50%")
        text_value.setFixedWidth(text_sz)
        text_value.setAlignment(QtCore.Qt.AlignLeft)
        text_value.setStyleSheet(GuiSettings.stylesheet_slider_labels())
        text_value.setHidden(True)
        slider_gbox.addWidget(text_value, 0, 0, 1, 1)
        text_value = QtWidgets.QLabel("66%")
        text_value.setFixedWidth(text_sz)
        text_value.setAlignment(QtCore.Qt.AlignCenter)
        text_value.setStyleSheet(GuiSettings.stylesheet_slider_labels())
        text_value.setHidden(True)
        slider_gbox.addWidget(text_value, 0, 1, 1, 1)
        text_value = QtWidgets.QLabel("100%")
        text_value.setFixedWidth(text_sz)
        text_value.setAlignment(QtCore.Qt.AlignRight)
        text_value.setStyleSheet(GuiSettings.stylesheet_slider_labels())
        text_value.setHidden(True)
        slider_gbox.addWidget(text_value, 0, 2, 1, 1)

        # slider
        self.slider_pct_min_res_v4 = QtWidgets.QSlider(QtCore.Qt.Horizontal)
        self.slider_pct_min_res_v4.setRange(1, 3)
        self.slider_pct_min_res_v4.setSingleStep(1)
        self.slider_pct_min_res_v4.setValue(3)
        self.slider_pct_min_res_v4.setTickInterval(1)
        self.slider_pct_min_res_v4.setTickPosition(
            QtWidgets.QSlider.TicksBelow)
        self.slider_pct_min_res_v4.setDisabled(True)
        self.slider_pct_min_res_v4.setHidden(True)
        slider_gbox.addWidget(self.slider_pct_min_res_v4, 1, 0, 1, 3)

        # stretch
        slider_hbox.addStretch()

        # # slider sizer
        #
        # slider_label_hbox = QtWidgets.QHBoxLayout()
        # vbox.addLayout(slider_label_hbox)
        # # stretch
        # slider_label_hbox.addStretch()
        # # mode
        # text_obj = QtWidgets.QLabel(
        # "Sizer rule (from coarsest allowed resolution resolution to holiday size in nodes):")
        # text_obj.setAlignment(QtCore.Qt.AlignCenter)
        # slider_label_hbox.addWidget(text_obj)
        # # stretch
        # slider_label_hbox.addStretch()
        #
        # slider_hbox = QtWidgets.QHBoxLayout()
        # vbox.addLayout(slider_hbox)
        # # stretch
        # slider_hbox.addStretch()
        #
        # slider_gbox = QtWidgets.QGridLayout()
        # slider_hbox.addLayout(slider_gbox)
        #
        # self.slider_hole_sizer_v4 = QtWidgets.QSlider(QtCore.Qt.Horizontal)
        # self.slider_hole_sizer_v4.setRange(1, 3)
        # self.slider_hole_sizer_v4.setSingleStep(1)
        # self.slider_hole_sizer_v4.setValue(3)
        # self.slider_hole_sizer_v4.setTickInterval(1)
        # self.slider_hole_sizer_v4.setTickPosition(QtWidgets.QSlider.TicksBelow)
        # slider_gbox.addWidget(self.slider_hole_sizer_v4, 0, 0, 1, 3)
        # # labels
        # text_sz = 36
        # text_value = QtWidgets.QLabel("2x")
        # text_value.setFixedWidth(text_sz + 8)
        # text_value.setAlignment(QtCore.Qt.AlignLeft)
        # text_value.setStyleSheet("QLabel { color: rgb(155, 155, 155); }")
        # slider_gbox.addWidget(text_value, 1, 0, 1, 1)
        # text_value = QtWidgets.QLabel("2x+1")
        # text_value.setFixedWidth(text_sz)
        # text_value.setAlignment(QtCore.Qt.AlignCenter)
        # text_value.setStyleSheet("QLabel { color: rgb(155, 155, 155); }")
        # slider_gbox.addWidget(text_value, 1, 1, 1, 1)
        # text_value = QtWidgets.QLabel("3x")
        # text_value.setFixedWidth(text_sz + 8)
        # text_value.setAlignment(QtCore.Qt.AlignRight)
        # text_value.setStyleSheet("QLabel { color: rgb(155, 155, 155); }")
        # slider_gbox.addWidget(text_value, 1, 2, 1, 1)
        #
        # # stretch
        # slider_hbox.addStretch()

        # slider ref depth

        # slider_label_hbox = QtWidgets.QHBoxLayout()
        # vbox.addLayout(slider_label_hbox)
        # # stretch
        # slider_label_hbox.addStretch()
        # # strategy
        # text_obj = QtWidgets.QLabel("Analytic approach:")
        # text_obj.setAlignment(QtCore.Qt.AlignCenter)
        # slider_label_hbox.addWidget(text_obj)
        # # stretch
        # slider_label_hbox.addStretch()
        # # mode
        # text_obj = QtWidgets.QLabel("Median depth from:")
        # text_obj.setAlignment(QtCore.Qt.AlignCenter)
        # slider_label_hbox.addWidget(text_obj)
        # # stretch
        # slider_label_hbox.addStretch()
        #
        # slider_hbox = QtWidgets.QHBoxLayout()
        # vbox.addLayout(slider_hbox)
        # # stretch
        # slider_hbox.addStretch()
        #
        # slider_gbox = QtWidgets.QGridLayout()
        # slider_hbox.addLayout(slider_gbox)
        #
        # self.slider_strategy_v4 = QtWidgets.QSlider(QtCore.Qt.Horizontal)
        # self.slider_strategy_v4.setRange(0, 1)
        # self.slider_strategy_v4.setSingleStep(1)
        # self.slider_strategy_v4.setValue(0)
        # self.slider_strategy_v4.setTickInterval(1)
        # self.slider_strategy_v4.setTickPosition(QtWidgets.QSlider.TicksBelow)
        # slider_gbox.addWidget(self.slider_strategy_v4, 0, 0, 1, 2)
        #
        # # labels
        # text_sz = 48
        # text_value = QtWidgets.QLabel("Per-Tile")
        # text_value.setFixedWidth(text_sz + 8)
        # text_value.setAlignment(QtCore.Qt.AlignLeft)
        # text_value.setStyleSheet("QLabel { color: rgb(155, 155, 155); }")
        # slider_gbox.addWidget(text_value, 1, 0, 1, 1)
        # text_value = QtWidgets.QLabel("Brute Force")
        # text_value.setFixedWidth(text_sz + 8)
        # text_value.setAlignment(QtCore.Qt.AlignRight)
        # text_value.setStyleSheet("QLabel { color: rgb(155, 155, 155); }")
        # slider_gbox.addWidget(text_value, 1, 1, 1, 1)
        #
        # # stretch
        # slider_hbox.addStretch()
        #
        # slider_gbox = QtWidgets.QGridLayout()
        # slider_hbox.addLayout(slider_gbox)
        #
        # self.slider_ref_depth_v4 = QtWidgets.QSlider(QtCore.Qt.Horizontal)
        # self.slider_ref_depth_v4.setRange(0, 1)
        # self.slider_ref_depth_v4.setSingleStep(1)
        # self.slider_ref_depth_v4.setValue(1)
        # self.slider_ref_depth_v4.setTickInterval(1)
        # self.slider_ref_depth_v4.setTickPosition(QtWidgets.QSlider.TicksBelow)
        # slider_gbox.addWidget(self.slider_ref_depth_v4, 0, 0, 1, 2)
        # # labels
        # text_sz = 48
        # text_value = QtWidgets.QLabel("Tile")
        # text_value.setFixedWidth(text_sz + 8)
        # text_value.setAlignment(QtCore.Qt.AlignLeft)
        # text_value.setStyleSheet("QLabel { color: rgb(155, 155, 155); }")
        # slider_gbox.addWidget(text_value, 1, 0, 1, 1)
        # text_value = QtWidgets.QLabel("Perimeter")
        # text_value.setFixedWidth(text_sz)
        # text_value.setAlignment(QtCore.Qt.AlignRight)
        # text_value.setStyleSheet("QLabel { color: rgb(155, 155, 155); }")
        # slider_gbox.addWidget(text_value, 1, 1, 1, 1)
        #
        # # stretch
        # slider_hbox.addStretch()

        # locker

        vbox.addSpacing(6)

        lock_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(lock_hbox)
        lock_hbox.addStretch()
        self.locker_v4 = QtWidgets.QPushButton()
        self.locker_v4.setIconSize(QtCore.QSize(24, 24))
        self.locker_v4.setFixedHeight(28)
        edit_icon = QtGui.QIcon()
        edit_icon.addFile(os.path.join(self.parent_win.media, 'lock.png'),
                          state=QtGui.QIcon.Off)
        edit_icon.addFile(os.path.join(self.parent_win.media, 'unlock.png'),
                          state=QtGui.QIcon.On)
        self.locker_v4.setIcon(edit_icon)
        self.locker_v4.setCheckable(True)
        # noinspection PyUnresolvedReferences
        self.locker_v4.clicked.connect(self.on_editable_v4)
        self.locker_v4.setToolTip("Unlock editing for parameters")
        lock_hbox.addWidget(self.locker_v4)
        lock_hbox.addStretch()
Beispiel #2
0
 def setup_ui(self):
     self.setObjectName('asset')
     self.resize(400, 600)
     self.setStyleSheet('font: 12pt \"MS Shell Dlg 2\";')
     self.verticallayout = QtWidgets.QVBoxLayout(self)
     self.verticallayout.setObjectName('verticallayout')
     self.verticallayout.setSpacing(10)
     self.verticallayout.setContentsMargins(10, 10, 10, 10)
     self.groupbox_asset = QtWidgets.QGroupBox(self)
     self.groupbox_asset.setObjectName('groupbox_asset')
     self.groupbox_asset.setTitle('Asset')
     self.verticallayout.addWidget(self.groupbox_asset)
     self.verticallayout_asset = QtWidgets.QVBoxLayout(self.groupbox_asset)
     self.verticallayout_asset.setObjectName('verticallayout_asset')
     self.verticallayout_asset.setSpacing(10)
     self.verticallayout_asset.setContentsMargins(10, 10, 10, 10)
     self.groupbox_snapshot = QtWidgets.QGroupBox(self.groupbox_asset)
     self.groupbox_snapshot.setObjectName('groupBox_snapshot')
     self.verticallayout_asset.addWidget(self.groupbox_snapshot)
     self.horizontallayout_snapshot = QtWidgets.QHBoxLayout(
         self.groupbox_snapshot)
     self.horizontallayout_snapshot.setObjectName(
         'horizontallayout_snapshot')
     self.horizontallayout_snapshot.setSpacing(10)
     self.horizontallayout_snapshot.setContentsMargins(10, 10, 10, 10)
     spacer_item = QtWidgets.QSpacerItem(40, 20,
                                         QtWidgets.QSizePolicy.Expanding,
                                         QtWidgets.QSizePolicy.Minimum)
     self.horizontallayout_snapshot.addItem(spacer_item)
     self.button_snapshot = QtWidgets.QPushButton(self.groupbox_snapshot)
     self.button_snapshot.setObjectName('button_snapshot')
     self.button_snapshot.setText('')
     size_policy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                         QtWidgets.QSizePolicy.Fixed)
     size_policy.setHorizontalStretch(0)
     size_policy.setVerticalStretch(0)
     size_policy.setHeightForWidth(
         self.button_snapshot.sizePolicy().hasHeightForWidth())
     self.button_snapshot.setSizePolicy(size_policy)
     self.button_snapshot.setMinimumSize(
         QtCore.QSize(self._width, self._height))
     self.button_snapshot.setMaximumSize(
         QtCore.QSize(self._width, self._height))
     self.horizontallayout_snapshot.addWidget(self.button_snapshot)
     self.image_to_button()
     spacer_item = QtWidgets.QSpacerItem(40, 20,
                                         QtWidgets.QSizePolicy.Expanding,
                                         QtWidgets.QSizePolicy.Minimum)
     self.horizontallayout_snapshot.addItem(spacer_item)
     self.groupbox_path = QtWidgets.QGroupBox(self.groupbox_asset)
     self.groupbox_path.setObjectName('groupbox_path')
     self.gridlayout_inputs = QtWidgets.QGridLayout(self.groupbox_path)
     self.gridlayout_inputs.setObjectName('gridLayout')
     self.gridlayout_inputs.setSpacing(10)
     self.gridlayout_inputs.setContentsMargins(10, 10, 10, 10)
     self.label_filepath = QtWidgets.QLabel(self.groupbox_asset)
     self.label_filepath.setObjectName('label_filepath')
     self.label_filepath.setText('File Path')
     self.label_filepath.setAlignment(QtCore.Qt.AlignRight
                                      | QtCore.Qt.AlignVCenter)
     self.gridlayout_inputs.addWidget(self.label_filepath, 0, 0, 1, 1)
     self.lineedit_filepath = QtWidgets.QLineEdit(self.groupbox_asset)
     self.lineedit_filepath.setObjectName('lineedit_filepath')
     self.gridlayout_inputs.addWidget(self.lineedit_filepath, 0, 1, 1, 1)
     self.pushbutton_filepath = QtWidgets.QPushButton(self.groupbox_asset)
     self.pushbutton_filepath.setObjectName('pushbutton_filepath')
     self.pushbutton_filepath.setText('...')
     self.gridlayout_inputs.addWidget(self.pushbutton_filepath, 0, 2, 1, 1)
     self.label_imagepath = QtWidgets.QLabel(self.groupbox_asset)
     self.label_imagepath.setObjectName('label_filepath')
     self.label_imagepath.setText('Image Path')
     self.label_imagepath.setAlignment(QtCore.Qt.AlignRight
                                       | QtCore.Qt.AlignVCenter)
     self.gridlayout_inputs.addWidget(self.label_imagepath, 1, 0, 1, 1)
     self.lineedit_imagepath = QtWidgets.QLineEdit(self.groupbox_asset)
     self.lineedit_imagepath.setObjectName('lineedit_imagepath')
     self.gridlayout_inputs.addWidget(self.lineedit_imagepath, 1, 1, 1, 1)
     self.pushbutton_imagepath = QtWidgets.QPushButton(self.groupbox_asset)
     self.pushbutton_imagepath.setObjectName('pushbutton_filepath')
     self.pushbutton_imagepath.setText('...')
     self.gridlayout_inputs.addWidget(self.pushbutton_imagepath, 1, 2, 1, 1)
     self.verticallayout_asset.addWidget(self.groupbox_path)
     self.groupbox_label = QtWidgets.QGroupBox(self.groupbox_asset)
     self.groupbox_label.setObjectName('groupbox_label')
     self.verticallayout_asset.addWidget(self.groupbox_label)
     self.horizontallayout_label = QtWidgets.QHBoxLayout(
         self.groupbox_label)
     self.horizontallayout_label.setObjectName('horizontallayout_label')
     self.horizontallayout_label.setSpacing(10)
     self.horizontallayout_label.setContentsMargins(10, 10, 10, 10)
     self.label_label = QtWidgets.QLabel(self.groupbox_label)
     self.label_label.setObjectName('label_label')
     self.label_label.setText('Name')
     self.horizontallayout_label.addWidget(self.label_label)
     self.lineedit_label = QtWidgets.QLineEdit(self.groupbox_label)
     self.lineedit_label.setObjectName('lineEdit_label')
     self.lineedit_label.setText('')
     self.horizontallayout_label.addWidget(self.lineedit_label)
     self.textedit_history = QtWidgets.QTextEdit(self.groupbox_asset)
     self.textedit_history.setObjectName('textedit_history')
     self.textedit_history.setStyleSheet('font: 10pt \"MS Shell Dlg 2\";')
     self.verticallayout_asset.addWidget(self.textedit_history)
     self.button_publish = QtWidgets.QPushButton(self.groupbox_asset)
     self.button_publish.setObjectName('button_publish')
     self.button_publish.setText('Publish')
     self.verticallayout_asset.addWidget(self.button_publish)
     self.button_build = QtWidgets.QPushButton(self.groupbox_asset)
     self.button_build.setObjectName('button_build')
     self.button_build.setText('Build')
     self.button_build.hide()
     self.verticallayout_asset.addWidget(self.button_build)
     self.button_logo = QtWidgets.QPushButton(self.groupbox_asset)
     self.button_logo.setObjectName('button_logo')
     self.button_logo.setFlat(True)
     self.button_logo.clicked.connect(self.subin_toolkits)
     log_path = os.path.join(resources.getIconPath(), 'logo.png')
     self.image_to_button(self.button_logo, log_path, self._width,
                          self._height)
     self.verticallayout_asset.addWidget(self.button_logo)
     self.label_subin = QtWidgets.QLabel(self.groupbox_asset)
     self.label_subin.setObjectName('label_logo')
     self.label_subin.setAlignment(QtCore.Qt.AlignCenter)
     self.label_subin.setText(
         'Author: Subin. Gopi\[email protected]\nwww.subins-toolkits.com\ncopyright(c) 2019, Subin Gopi'
     )
     self.label_subin.setStyleSheet('font: 11pt \"Sans Serif\";')
     self.verticallayout_asset.addWidget(self.label_subin)
     self.textedit_console = QtWidgets.QTextEdit(self.groupbox_asset)
     self.textedit_console.setObjectName('textedit_console')
     self.textedit_console.setStyleSheet('font: 10pt \"MS Shell Dlg 2\";')
     self.textedit_console.setMinimumSize(QtCore.QSize(0, 50))
     self.textedit_console.setMaximumSize(QtCore.QSize(16777215, 50))
     self.verticallayout_asset.addWidget(self.textedit_console)
Beispiel #3
0
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(933, 528)
        self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tabWidget = QtWidgets.QTabWidget(Dialog)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.tab)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.splitter = QtWidgets.QSplitter(self.tab)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.frame_4 = QtWidgets.QFrame(self.splitter)
        self.frame_4.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.frame_4)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.frame = QtWidgets.QFrame(self.frame_4)
        self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.frame)
        self.horizontalLayout_5.setContentsMargins(0, -1, 0, -1)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.open_button = QtWidgets.QPushButton(self.frame)
        self.open_button.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/Icons/icons/import_profiles.svg"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.open_button.setIcon(icon)
        self.open_button.setObjectName("open_button")
        self.horizontalLayout_5.addWidget(self.open_button)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem)
        self.label_5 = QtWidgets.QLabel(self.frame)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_5.addWidget(self.label_5)
        self.units_combobox = QtWidgets.QComboBox(self.frame)
        self.units_combobox.setObjectName("units_combobox")
        self.horizontalLayout_5.addWidget(self.units_combobox)
        self.verticalLayout_5.addWidget(self.frame)
        self.sources_list = QtWidgets.QListView(self.frame_4)
        self.sources_list.setObjectName("sources_list")
        self.verticalLayout_5.addWidget(self.sources_list)
        self.frame_6 = QtWidgets.QFrame(self.splitter)
        self.frame_6.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_6.setObjectName("frame_6")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frame_6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.frame_10 = QtWidgets.QFrame(self.frame_6)
        self.frame_10.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_10.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_10.setObjectName("frame_10")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.frame_10)
        self.horizontalLayout_7.setContentsMargins(0, -1, 0, -1)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.autolink_button = QtWidgets.QPushButton(self.frame_10)
        self.autolink_button.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/Icons/icons/auto-link.svg"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.autolink_button.setIcon(icon1)
        self.autolink_button.setObjectName("autolink_button")
        self.horizontalLayout_7.addWidget(self.autolink_button)
        self.rnd_link_pushButton = QtWidgets.QPushButton(self.frame_10)
        self.rnd_link_pushButton.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/Icons/icons/auto-link-rnd.svg"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.rnd_link_pushButton.setIcon(icon2)
        self.rnd_link_pushButton.setObjectName("rnd_link_pushButton")
        self.horizontalLayout_7.addWidget(self.rnd_link_pushButton)
        self.assign_to_all_pushButton = QtWidgets.QPushButton(self.frame_10)
        self.assign_to_all_pushButton.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/Icons/icons/link-to-all.svg"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.assign_to_all_pushButton.setIcon(icon3)
        self.assign_to_all_pushButton.setObjectName("assign_to_all_pushButton")
        self.horizontalLayout_7.addWidget(self.assign_to_all_pushButton)
        self.assign_to_selection_pushButton = QtWidgets.QPushButton(
            self.frame_10)
        self.assign_to_selection_pushButton.setText("")
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/Icons/icons/link-to-selection.svg"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.assign_to_selection_pushButton.setIcon(icon4)
        self.assign_to_selection_pushButton.setObjectName(
            "assign_to_selection_pushButton")
        self.horizontalLayout_7.addWidget(self.assign_to_selection_pushButton)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem1)
        self.clear_selection_button = QtWidgets.QPushButton(self.frame_10)
        self.clear_selection_button.setText("")
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/Icons/icons/delete.svg"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.clear_selection_button.setIcon(icon5)
        self.clear_selection_button.setObjectName("clear_selection_button")
        self.horizontalLayout_7.addWidget(self.clear_selection_button)
        self.verticalLayout_3.addWidget(self.frame_10)
        self.assignation_table = QtWidgets.QTableView(self.frame_6)
        self.assignation_table.setObjectName("assignation_table")
        self.verticalLayout_3.addWidget(self.assignation_table)
        self.frame_9 = QtWidgets.QFrame(self.frame_6)
        self.frame_9.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_9.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_9.setObjectName("frame_9")
        self.gridLayout = QtWidgets.QGridLayout(self.frame_9)
        self.gridLayout.setContentsMargins(0, -1, 0, 0)
        self.gridLayout.setObjectName("gridLayout")
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem2, 0, 3, 1, 1)
        self.set_multiplier_button = QtWidgets.QPushButton(self.frame_9)
        self.set_multiplier_button.setText("")
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(":/Icons/icons/multiply.svg"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.set_multiplier_button.setIcon(icon6)
        self.set_multiplier_button.setObjectName("set_multiplier_button")
        self.gridLayout.addWidget(self.set_multiplier_button, 0, 0, 1, 1)
        self.multSpinBox = QtWidgets.QDoubleSpinBox(self.frame_9)
        self.multSpinBox.setMinimum(-99999.0)
        self.multSpinBox.setMaximum(99999.0)
        self.multSpinBox.setObjectName("multSpinBox")
        self.gridLayout.addWidget(self.multSpinBox, 0, 1, 1, 1)
        self.doit_button = QtWidgets.QPushButton(self.frame_9)
        self.doit_button.setStatusTip("")
        self.doit_button.setText("")
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(":/Icons/icons/gear.svg"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.doit_button.setIcon(icon7)
        self.doit_button.setObjectName("doit_button")
        self.gridLayout.addWidget(self.doit_button, 0, 5, 1, 1)
        self.normalized_checkBox = QtWidgets.QCheckBox(self.frame_9)
        self.normalized_checkBox.setObjectName("normalized_checkBox")
        self.gridLayout.addWidget(self.normalized_checkBox, 0, 4, 1, 1)
        self.verticalLayout_3.addWidget(self.frame_9)
        self.horizontalLayout_2.addWidget(self.splitter)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.tab_2)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.splitter_3 = QtWidgets.QSplitter(self.tab_2)
        self.splitter_3.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_3.setObjectName("splitter_3")
        self.frame_8 = QtWidgets.QFrame(self.splitter_3)
        self.frame_8.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_8.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_8.setObjectName("frame_8")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.frame_8)
        self.verticalLayout_7.setContentsMargins(-1, 0, -1, -1)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.tableView = QtWidgets.QTableView(self.frame_8)
        self.tableView.setObjectName("tableView")
        self.verticalLayout_7.addWidget(self.tableView)
        self.PlotFrame = QtWidgets.QFrame(self.splitter_3)
        self.PlotFrame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.PlotFrame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.PlotFrame.setObjectName("PlotFrame")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.PlotFrame)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.plotwidget = MatplotlibWidget(self.PlotFrame)
        self.plotwidget.setObjectName("plotwidget")
        self.horizontalLayout.addWidget(self.plotwidget)
        self.horizontalLayout_4.addWidget(self.splitter_3)
        self.tabWidget.addTab(self.tab_2, "")
        self.verticalLayout.addWidget(self.tabWidget)

        self.retranslateUi(Dialog)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
    def __init__(self, parent=None):
        super(GIS_NL_Dialog, self).__init__(parent)

        self.sitename = "GIS-Sitedata"

        #Get/set parameters for GIS
        self.tempFolderName = "GIStemp/"
        self.X = str(GIS2BIM_FreeCAD.ArchSiteCreateCheck(self.sitename).CRS_x)
        self.Y = str(GIS2BIM_FreeCAD.ArchSiteCreateCheck(self.sitename).CRS_y)
        self.lat = str(
            GIS2BIM_FreeCAD.ArchSiteCreateCheck(self.sitename).WGS84_Latitude)
        self.lon = str(
            GIS2BIM_FreeCAD.ArchSiteCreateCheck(self.sitename).WGS84_Longitude)
        self.bboxWidthStart = str(
            GIS2BIM_FreeCAD.ArchSiteCreateCheck(
                self.sitename).BoundingboxWidth)
        self.bboxHeightStart = str(
            GIS2BIM_FreeCAD.ArchSiteCreateCheck(
                self.sitename).BoundingboxHeight)
        self.CRS = str(
            GIS2BIM_FreeCAD.ArchSiteCreateCheck(self.sitename).CRS_EPSG_SRID)
        self.CRSDescription = str(
            GIS2BIM_FreeCAD.ArchSiteCreateCheck(
                self.sitename).CRS_EPSG_Description)
        self.bboxString = GIS2BIM.CreateBoundingBox(
            float(GIS2BIM_FreeCAD.ArchSiteCreateCheck(self.sitename).CRS_x),
            float(GIS2BIM_FreeCAD.ArchSiteCreateCheck(self.sitename).CRS_y),
            float(self.bboxWidthStart), float(self.bboxHeightStart), 0)

        #Set Style
        self.setStyleSheet(
            "QWidget {background-color: rgb(68, 68, 68)} QPushButton { background-color: black } QGroupBox {border: 1px solid grey; }"
        )  #margin: 2px;

        #Download files
        self.URLUpdate = GIS2BIM.GetWebServerData(
            "HTMLLocationDataJSmapbboxupdate", "Other",
            "URL")  #Javascript-URL for update boundingbox
        self.URLmap = GIS2BIM.GetWebServerData("HTMLwfs", "Other", "URL")
        self.filepathJSUpdate = GIS2BIM.DownloadURL(
            GIS2BIM_FreeCAD.CreateTempFolder(self.tempFolderName),
            self.URLUpdate,
            "map_bboxupdate.js")  #Javascript-file for update boundingbox
        self.filepathBaseMap = GIS2BIM.DownloadURL(
            GIS2BIM_FreeCAD.CreateTempFolder(self.tempFolderName), self.URLmap,
            "basemapWFS.html")  #Basemap from GIS2BIM Repository for preview
        self.filepathNewMap = GIS2BIM.DownloadURL(
            GIS2BIM_FreeCAD.CreateTempFolder(self.tempFolderName), self.URLmap,
            "mapWFS.html")  #Edited Basemap with location and bbox
        #self.filepathBaseMap = "C:/Users/mikev/OneDrive/Bureaublad/TEMP/GIStemp/basemapWFS.html"
        #self.filepathNewMap = "C:/Users/mikev/OneDrive/Bureaublad/TEMP/GIStemp/mapWFS.html"
        self.tempFolderPath = GIS2BIM_FreeCAD.CreateTempFolder(
            self.tempFolderName)

        os.remove(self.filepathNewMap)
        BaseMap = open(self.filepathBaseMap, "r")
        BaseMapstr = BaseMap.read()
        Newstr = BaseMapstr.replace("51LAT", str(self.lat))
        Newstr = Newstr.replace("4LONG", str(self.lon))
        Newstr = Newstr.replace("WBBOX", self.bboxWidthStart)
        Newstr = Newstr.replace("HBBOX", self.bboxHeightStart)
        open(self.filepathNewMap, "x")
        f1 = open(self.filepathNewMap, "w")
        f1.write(Newstr)
        f1.close()

        #Overall Grid
        grid = QtWidgets.QGridLayout()
        grid.addWidget(self.webViewGroup(), 0, 0, 1, 2)
        grid.addWidget(self.locationGroup(), 3, 0)
        grid.addWidget(self.pdokGroup(), 3, 1)
        grid.addLayout(self.buttonGroup(), 4, 0, 1, 2)
        grid.setRowStretch(0, 2)
        self.setLayout(grid)

        self.setWindowTitle("PDOK: Load GIS-data in the Netherlands")
        self.resize(920, 910)
Beispiel #5
0
    def setupUi(self, EntryDialog):
        EntryDialog.setObjectName("EntryDialog")
        EntryDialog.resize(439, 171)
        self.vboxlayout = QtWidgets.QVBoxLayout(EntryDialog)
        self.vboxlayout.setObjectName("vboxlayout")
        self.hboxlayout = QtWidgets.QHBoxLayout()
        self.hboxlayout.setObjectName("hboxlayout")
        self.label = QtWidgets.QLabel(EntryDialog)
        self.label.setObjectName("label")
        self.hboxlayout.addWidget(self.label)
        self.name = QtWidgets.QLineEdit(EntryDialog)
        self.name.setObjectName("name")
        self.hboxlayout.addWidget(self.name)
        self.vboxlayout.addLayout(self.hboxlayout)
        self.hboxlayout1 = QtWidgets.QHBoxLayout()
        self.hboxlayout1.setObjectName("hboxlayout1")
        self.label_6 = QtWidgets.QLabel(EntryDialog)
        self.label_6.setObjectName("label_6")
        self.hboxlayout1.addWidget(self.label_6)
        self.legend = QtWidgets.QLineEdit(EntryDialog)
        self.legend.setObjectName("legend")
        self.hboxlayout1.addWidget(self.legend)
        self.vboxlayout.addLayout(self.hboxlayout1)
        self.gridlayout = QtWidgets.QGridLayout()
        self.gridlayout.setObjectName("gridlayout")
        self.label_2 = QtWidgets.QLabel(EntryDialog)
        self.label_2.setObjectName("label_2")
        self.gridlayout.addWidget(self.label_2, 0, 0, 1, 1)
        self.type = QtWidgets.QComboBox(EntryDialog)
        self.type.setObjectName("type")
        self.gridlayout.addWidget(self.type, 0, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(41, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.gridlayout.addItem(spacerItem, 0, 2, 1, 1)
        self.label_3 = QtWidgets.QLabel(EntryDialog)
        self.label_3.setObjectName("label_3")
        self.gridlayout.addWidget(self.label_3, 0, 3, 1, 1)
        self.startDate = QtWidgets.QDateTimeEdit(EntryDialog)
        self.startDate.setCalendarPopup(True)
        self.startDate.setObjectName("startDate")
        self.gridlayout.addWidget(self.startDate, 0, 4, 1, 1)
        self.label_5 = QtWidgets.QLabel(EntryDialog)
        self.label_5.setObjectName("label_5")
        self.gridlayout.addWidget(self.label_5, 1, 0, 1, 1)
        self.completion = QtWidgets.QSpinBox(EntryDialog)
        self.completion.setMaximum(100)
        self.completion.setObjectName("completion")
        self.gridlayout.addWidget(self.completion, 1, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(EntryDialog)
        self.label_4.setObjectName("label_4")
        self.gridlayout.addWidget(self.label_4, 1, 3, 1, 1)
        self.endDate = QtWidgets.QDateTimeEdit(EntryDialog)
        self.endDate.setCalendarPopup(True)
        self.endDate.setObjectName("endDate")
        self.gridlayout.addWidget(self.endDate, 1, 4, 1, 1)
        self.readOnly = QtWidgets.QCheckBox(EntryDialog)
        self.readOnly.setObjectName("readOnly")
        self.gridlayout.addWidget(self.readOnly, 2, 0, 1, 2)
        self.dependsLabel = QtWidgets.QLabel(EntryDialog)
        self.dependsLabel.setObjectName("dependsLabel")
        self.gridlayout.addWidget(self.dependsLabel, 2, 3, 1, 1)
        self.depends = QtWidgets.QComboBox(EntryDialog)
        self.depends.setObjectName("depends")
        self.depends.addItem("")
        self.gridlayout.addWidget(self.depends, 2, 4, 1, 1)
        self.vboxlayout.addLayout(self.gridlayout)
        self.buttonBox = QtWidgets.QDialogButtonBox(EntryDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.NoButton
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.vboxlayout.addWidget(self.buttonBox)

        self.retranslateUi(EntryDialog)
        self.buttonBox.accepted.connect(EntryDialog.accept)
        self.buttonBox.rejected.connect(EntryDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(EntryDialog)
Beispiel #6
0
    def createToolBox(self):
        self.buttonGroup = QtWidgets.QButtonGroup()
        self.buttonGroup.setExclusive(False)
        self.buttonGroup.buttonClicked[int].connect(self.buttonGroupClicked)

        layout = QtWidgets.QGridLayout()
        layout.addWidget(
            self.createCellWidget("Conditional", DiagramItem.Conditional), 0,
            0)
        layout.addWidget(self.createCellWidget("Process", DiagramItem.Step), 0,
                         1)
        layout.addWidget(self.createCellWidget("Input/Output", DiagramItem.Io),
                         1, 0)

        textButton = QtWidgets.QToolButton()
        textButton.setCheckable(True)
        self.buttonGroup.addButton(textButton, self.InsertTextButton)
        textButton.setIcon(
            QtGui.QIcon(
                QtGui.QPixmap(':/images/textpointer.png').scaled(30, 30)))
        textButton.setIconSize(QtCore.QSize(50, 50))

        textLayout = QtWidgets.QGridLayout()
        textLayout.addWidget(textButton, 0, 0, QtCore.Qt.AlignHCenter)
        textLayout.addWidget(QtWidgets.QLabel("Text"), 1, 0,
                             QtCore.Qt.AlignCenter)
        textWidget = QtWidgets.QWidget()
        textWidget.setLayout(textLayout)
        layout.addWidget(textWidget, 1, 1)

        layout.setRowStretch(3, 10)
        layout.setColumnStretch(2, 10)

        itemWidget = QtWidgets.QWidget()
        itemWidget.setLayout(layout)

        self.backgroundButtonGroup = QtWidgets.QButtonGroup()
        self.backgroundButtonGroup.buttonClicked.connect(
            self.backgroundButtonGroupClicked)

        backgroundLayout = QtWidgets.QGridLayout()
        backgroundLayout.addWidget(
            self.createBackgroundCellWidget("Blue Grid",
                                            ':/images/background1.png'), 0, 0)
        backgroundLayout.addWidget(
            self.createBackgroundCellWidget("White Grid",
                                            ':/images/background2.png'), 0, 1)
        backgroundLayout.addWidget(
            self.createBackgroundCellWidget("Gray Grid",
                                            ':/images/background3.png'), 1, 0)
        backgroundLayout.addWidget(
            self.createBackgroundCellWidget("No Grid",
                                            ':/images/background4.png'), 1, 1)

        backgroundLayout.setRowStretch(2, 10)
        backgroundLayout.setColumnStretch(2, 10)

        backgroundWidget = QtWidgets.QWidget()
        backgroundWidget.setLayout(backgroundLayout)

        self.toolBox = QtWidgets.QToolBox()
        self.toolBox.setSizePolicy(
            QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                  QtWidgets.QSizePolicy.Ignored))
        self.toolBox.setMinimumWidth(itemWidget.sizeHint().width())
        self.toolBox.addItem(itemWidget, "Basic Flowchart Shapes")
        self.toolBox.addItem(backgroundWidget, "Backgrounds")
Beispiel #7
0
# -*- coding: utf-8 -*-
from PySide2 import QtCore, QtGui, QtWidgets


class Ui_{tool_name}WindowUI(object):
    def setupUi(self, {tool_name}WindowUI):
        {tool_name}WindowUI.setObjectName("{tool_name}WindowUI")
        {tool_name}WindowUI.resize(265, 168)
        self.centralwidget = QtWidgets.QWidget({tool_name}WindowUI)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.printSelectedObjectNameButton = QtWidgets.QPushButton(self.centralwidget)
        self.printSelectedObjectNameButton.setObjectName("printSelectedObjectNameButton")
        self.gridLayout.addWidget(self.printSelectedObjectNameButton, 2, 0, 1, 1)
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout.addWidget(self.line, 1, 0, 1, 1)
        self.textBrowser = QtWidgets.QTextBrowser(self.centralwidget)
        self.textBrowser.setObjectName("textBrowser")
        self.gridLayout.addWidget(self.textBrowser, 0, 0, 1, 1)
        {tool_name}WindowUI.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar({tool_name}WindowUI)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 265, 21))
        self.menubar.setObjectName("menubar")
        {tool_name}WindowUI.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar({tool_name}WindowUI)
        self.statusbar.setObjectName("statusbar")
        {tool_name}WindowUI.setStatusBar(self.statusbar)
Beispiel #8
0
    def createGUI(self):
        layout = QtWidgets.QGridLayout()
        row = 0

        self.txtStylePath= QtWidgets.QLabel()
        self.txtStylePath.setText("Style image:")
        self.txtStylePath.setFixedSize(150, 25)
        self.edtStylePath= QtWidgets.QLineEdit()
        self.edtStylePath.setPlaceholderText("URL or file path")
        self.btnStylePath = QtWidgets.QPushButton("...")
        self.btnStylePath.setFixedSize(25, 25)
        QtCore.QObject.connect(self.btnStylePath, QtCore.SIGNAL("clicked()"), lambda: self.chooseStylePath())
        layout.addWidget(self.txtStylePath, row, 0)
        layout.addWidget(self.edtStylePath, row, 1)
        layout.addWidget(self.btnStylePath, row, 2)
        row += 1

        self.txtStyleName = QtWidgets.QLabel()
        self.txtStyleName.setText("Style name:")
        self.txtStyleName.setFixedSize(150, 25)
        self.edtStyleName = QtWidgets.QLineEdit()
        layout.addWidget(self.txtStyleName, row, 0)
        layout.addWidget(self.edtStyleName, row, 1, 1, 2)
        row += 1

        self.txtStepsNumber = QtWidgets.QLabel()
        self.txtStepsNumber.setText("Steps number:")
        self.txtStepsNumber.setFixedSize(150, 25)
        self.edtStepsNumber = QtWidgets.QLineEdit()
        self.edtStepsNumber.setPlaceholderText("number of iterations")
        layout.addWidget(self.txtStepsNumber, row, 0)
        layout.addWidget(self.edtStepsNumber, row, 1, 1, 2)
        row += 1

        self.txtTextureSize = QtWidgets.QLabel()
        self.txtTextureSize.setText("Texture size:")
        self.txtTextureSize.setFixedSize(150, 25)
        self.edtTextureSize = QtWidgets.QLineEdit()
        self.edtTextureSize.setPlaceholderText("resulting texture resolution")
        layout.addWidget(self.txtTextureSize, row, 0)
        layout.addWidget(self.edtTextureSize, row, 1, 1, 2)
        row += 1

        self.txtRenderingSize = QtWidgets.QLabel()
        self.txtRenderingSize.setText("Rendering size:")
        self.txtRenderingSize.setFixedSize(150, 25)
        self.edtRenderingSize = QtWidgets.QLineEdit()
        self.edtRenderingSize.setPlaceholderText("width of rendering buffer")
        layout.addWidget(self.txtRenderingSize, row, 0)
        layout.addWidget(self.edtRenderingSize, row, 1, 1, 2)
        row += 1

        self.txtModelName = QtWidgets.QLabel()
        self.txtModelName.setText("Model name:")
        self.txtModelName.setFixedSize(150, 25)
        self.edtModelName = QtWidgets.QLineEdit()
        layout.addWidget(self.txtModelName, row, 0)
        layout.addWidget(self.edtModelName, row, 1, 1, 2)
        row += 1

        self.txtWorkingDir= QtWidgets.QLabel()
        self.txtWorkingDir.setText("Working dir:")
        self.txtWorkingDir.setFixedSize(150, 25)
        self.edtWorkingDir= QtWidgets.QLineEdit()
        self.edtWorkingDir.setPlaceholderText("path to dir")
        self.btnWorkingDir = QtWidgets.QPushButton("...")
        self.btnWorkingDir.setFixedSize(25, 25)
        QtCore.QObject.connect(self.btnWorkingDir, QtCore.SIGNAL("clicked()"), lambda: self.chooseWorkingDir())
        layout.addWidget(self.txtWorkingDir, row, 0)
        layout.addWidget(self.edtWorkingDir, row, 1)
        layout.addWidget(self.btnWorkingDir, row, 2)
        row += 1

        self.txtContentWeight= QtWidgets.QLabel()
        self.txtContentWeight.setText("Content weight:")
        self.txtContentWeight.setFixedSize(150, 25)
        self.edtContentWeight= QtWidgets.QLineEdit()
        layout.addWidget(self.txtContentWeight, row, 0)
        layout.addWidget(self.edtContentWeight, row, 1, 1, 2)
        row += 1

        self.txtUseCameraPositions= QtWidgets.QLabel()
        self.txtUseCameraPositions.setText("Use cameras position:")
        self.txtUseCameraPositions.setFixedSize(150, 25)
        self.chbUseCameraPositions= QtWidgets.QCheckBox()
        if len(chunk.cameras) == 0:
            self.chbUseCameraPositions.setEnabled(False)
        layout.addWidget(self.txtUseCameraPositions, row, 0)
        layout.addWidget(self.chbUseCameraPositions, row, 1)
        row += 1

        self.txtPBar = QtWidgets.QLabel()
        self.txtPBar.setText("Progress:")
        self.txtPBar.setFixedSize(150, 25)
        self.pBar = QtWidgets.QProgressBar()
        self.pBar.setTextVisible(False)
        self.pBar.setMinimumSize(239, 25)
        layout.addWidget(self.txtPBar, row, 0)
        layout.addWidget(self.pBar, row, 1, 1, 2)
        row += 1

        self.btnRun = QtWidgets.QPushButton("Run")
        layout.addWidget(self.btnRun, row, 1, 1, 2)
        row += 1

        self.setLayout(layout)

        QtCore.QObject.connect(self.btnRun, QtCore.SIGNAL("clicked()"), lambda: self.modelStyleTransfer())
Beispiel #9
0
    def __init__(self, settingsWidgetType, jobTypes=JobTypes.JobTypes, parent=None, *args, **kwargs):
        super(CueSubmitWidget, self).__init__(parent)
        self.startupErrors = list()
        self.skipDataChangedEvent = False
        self.settings = QtCore.QSettings('opencue', 'cuesubmit')
        self.clearMessageShown = False
        self.jobTypes = jobTypes
        self.primaryWidgetType = settingsWidgetType
        self.primaryWidgetArgs = {'args': args, 'kwargs': kwargs}
        self.mainLayout = QtWidgets.QVBoxLayout()
        self.mainLayout.addSpacing(0)
        self.mainLayout.setSpacing(0)
        self.scrollArea = QtWidgets.QScrollArea(self)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.scrollableWidget = QtWidgets.QWidget(self.scrollArea)
        self.scrollArea.setWidget(self.scrollableWidget)
        self.scrollingLayout = QtWidgets.QVBoxLayout()
        self.scrollingLayout.addSpacing(0)
        self.scrollingLayout.setSpacing(0)
        self.scrollableWidget.setLayout(self.scrollingLayout)
        self.mainLayout.addWidget(self.scrollArea)
        self.jobInfoLayout = QtWidgets.QVBoxLayout()
        self.layerInfoLayout = QtWidgets.QVBoxLayout()
        self.submissionDetailsLayout = QtWidgets.QVBoxLayout()
        self.jobInfoLayout.setContentsMargins(20, 0, 0, 0)
        self.layerInfoLayout.setContentsMargins(20, 0, 0, 0)
        self.submissionDetailsLayout.setContentsMargins(20, 0, 0, 0)
        self.settingsLayout = QtWidgets.QHBoxLayout()

        self.coresLayout = QtWidgets.QHBoxLayout()
        self.servicesLayout = QtWidgets.QHBoxLayout()
        self.showLayout = QtWidgets.QGridLayout()
        self.facilityLayout = QtWidgets.QGridLayout()

        self.titleLogo = QtWidgets.QLabel()
        self.titleLogo.setPixmap(QtGui.QPixmap('{}/images/OpenCue.png'.format(Constants.DIR_PATH)))
        self.userNameInput = Widgets.CueLabelLineEdit(
            'User Name:',
            getpass.getuser(),
            tooltip='User name that should be associated with this job.',
            completers=['foo', 'bar'],
            validators=[Validators.matchNoSpecialCharactersOnly]
        )
        self.jobNameInput = Widgets.CueLabelLineEdit(
            'Job Name:',
            tooltip='Job names must be unique, have more than 3 characters, and contain no spaces.',
            completers=self.getFilteredHistorySetting('submit/jobName'),
            validators=[Validators.matchNoSpecialCharactersOnly, Validators.moreThan3Chars,
                        Validators.matchNoSpaces]
        )
        shows = Util.getShows()
        if not shows:
            self.startupErrors.append("No shows exist yet. Please create some or contact your OpenCue administrator to create one!\n" +\
                      "You won't be able to submit job for non-existent show!\n")
            shows = ['']  # to allow building UI
        self.showSelector = Widgets.CueSelectPulldown(
            'Show:', shows[0],
            options=shows,
            multiselect=False,
            parent=self)
        self.shotInput = Widgets.CueLabelLineEdit(
            'Shot:',
            tooltip='Name of the shot associated with this submission.',
            completers=self.getFilteredHistorySetting('submit/shotName'),
            validators=[Validators.matchNoSpecialCharactersOnly]
        )
        self.layerNameInput = Widgets.CueLabelLineEdit(
            'Layer Name:',
            tooltip='Name for this layer of the job. Should be more than 3 characters, '
                    'and contain no spaces.',
            completers=self.getFilteredHistorySetting('submit/layerName'),
            validators=[Validators.matchNoSpecialCharactersOnly, Validators.moreThan3Chars,
                        Validators.matchNoSpaces]
        )
        self.frameBox = Frame.FrameSpecWidget()
        jobTypes = self.jobTypes.types()
        self.jobTypeSelector = Widgets.CueSelectPulldown(
            'Job Type:',
            options=jobTypes,
            multiselect=False
        )
        self.jobTypeSelector.setChecked(self.primaryWidgetType)
        self.servicesSelector = Widgets.CueSelectPulldown(
            'Services:',
            options=Util.getServices()
        )
        self.limitsSelector = Widgets.CueSelectPulldown(
            'Limits:',
            options=Util.getLimits()
        )
        self.coresInput = Widgets.CueLabelLineEdit(
            'Min Cores:',
            '0',
            tooltip='Minimum number of cores to run. 0 is any',
            validators=[Validators.matchNumbersOnly]
        )
        self.chunkInput = Widgets.CueLabelLineEdit(
            'Chunk Size:',
            '1',
            tooltip='Chunk frames by this value. Integers equal or greater than 1.',
            validators=[Validators.matchPositiveIntegers]
        )
        self.chunkInput.lineEdit.setFixedWidth(120)
        self.dependSelector = Widgets.CueSelectPulldown(
            'Dependency Type:',
            emptyText='',
            options=[Layer.DependType.Null, Layer.DependType.Layer, Layer.DependType.Frame],
            multiselect=False)

        allocations = Util.getAllocations()
        facilities = Util.getFacilities(allocations)
        preset_facility = Util.getPresetFacility()
        selected_facility = preset_facility if preset_facility else facilities[0]
        self.facilitySelector = Widgets.CueSelectPulldown(
            'Facility:',
            facilities[0],
            options=facilities,
            multiselect=False)
        self.facilitySelector.setChecked(selected_facility)

        self.settingsWidget = self.jobTypes.build(self.primaryWidgetType, *args, **kwargs)
        self.jobTreeWidget = Job.CueJobWidget()
        self.submitButtons = CueSubmitButtons()
        self.setupUi()
        self.setupConnections()
        self.jobDataChanged()
Beispiel #10
0
    def __init__(self, parent, main, app: FastFlixApp):
        super().__init__(parent, main, app)
        self.main = main
        self.app = app

        grid = QtWidgets.QGridLayout()

        self.widgets = Box(mode=None)

        self.mode = "Bitrate"
        self.updating_settings = False

        grid.addLayout(self.init_modes(), 0, 2, 4, 4)
        grid.addLayout(self._add_custom(title="Custom NVEncC options", disable_both_passes=True), 10, 0, 1, 6)

        grid.addLayout(self.init_preset(), 0, 0, 1, 2)
        # grid.addLayout(self.init_profile(), 1, 0, 1, 2)
        # grid.addLayout(self.init_tier(), 1, 0, 1, 2)
        grid.addLayout(self.init_multipass(), 2, 0, 1, 2)
        grid.addLayout(self.init_lookahead(), 3, 0, 1, 2)

        breaker = QtWidgets.QHBoxLayout()
        breaker_label = QtWidgets.QLabel(t("Advanced"))
        breaker_label.setFont(QtGui.QFont("helvetica", 8, weight=55))

        breaker.addWidget(get_breaker(), stretch=1)
        breaker.addWidget(breaker_label, alignment=QtCore.Qt.AlignHCenter)
        breaker.addWidget(get_breaker(), stretch=1)

        grid.addLayout(breaker, 4, 0, 1, 6)

        grid.addLayout(self.init_aq(), 5, 0, 1, 2)
        grid.addLayout(self.init_aq_strength(), 6, 0, 1, 2)
        grid.addLayout(self.init_mv_precision(), 7, 0, 1, 2)

        qp_line = QtWidgets.QHBoxLayout()
        qp_line.addLayout(self.init_vbr_target())
        qp_line.addStretch(1)
        qp_line.addLayout(self.init_init_q())
        qp_line.addStretch(1)
        qp_line.addLayout(self.init_min_q())
        qp_line.addStretch(1)
        qp_line.addLayout(self.init_max_q())

        grid.addLayout(qp_line, 5, 2, 1, 4)

        advanced = QtWidgets.QHBoxLayout()
        advanced.addLayout(self.init_ref())
        advanced.addStretch(1)
        advanced.addLayout(self.init_b_frames())
        advanced.addStretch(1)
        advanced.addLayout(self.init_level())
        advanced.addStretch(1)
        advanced.addLayout(self.init_b_ref_mode())
        advanced.addStretch(1)
        advanced.addLayout(self.init_metrics())
        grid.addLayout(advanced, 6, 2, 1, 4)

        grid.addLayout(self.init_dhdr10_info(), 7, 2, 1, 4)

        self.ffmpeg_level = QtWidgets.QLabel()
        grid.addWidget(self.ffmpeg_level, 8, 2, 1, 4)

        grid.setRowStretch(9, 1)

        guide_label = QtWidgets.QLabel(
            link(
                "https://github.com/rigaya/NVEnc/blob/master/NVEncC_Options.en.md",
                t("NVEncC Options"),
                app.fastflix.config.theme,
            )
        )

        warning_label = QtWidgets.QLabel()
        warning_label.setPixmap(QtGui.QIcon(get_icon("onyx-warning", self.app.fastflix.config.theme)).pixmap(22))

        guide_label.setAlignment(QtCore.Qt.AlignBottom)
        guide_label.setOpenExternalLinks(True)
        grid.addWidget(guide_label, 11, 0, 1, 4)
        grid.addWidget(warning_label, 11, 4, 1, 1, alignment=QtCore.Qt.AlignRight)
        grid.addWidget(QtWidgets.QLabel(t("NVEncC Encoder support is still experimental!")), 11, 5, 1, 1)

        self.setLayout(grid)
        self.hide()
        self.hdr10plus_signal.connect(self.done_hdr10plus_extract)
        self.hdr10plus_ffmpeg_signal.connect(lambda x: self.ffmpeg_level.setText(x))
    def setupUi(self, CadastroUsuario):
        CadastroUsuario.setObjectName("CadastroUsuario")
        CadastroUsuario.setWindowModality(QtCore.Qt.NonModal)
        CadastroUsuario.resize(350, 200)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            CadastroUsuario.sizePolicy().hasHeightForWidth())
        CadastroUsuario.setSizePolicy(sizePolicy)
        CadastroUsuario.setMinimumSize(QtCore.QSize(350, 200))
        CadastroUsuario.setMaximumSize(QtCore.QSize(500, 250))
        self.gridLayout = QtWidgets.QGridLayout(CadastroUsuario)
        self.gridLayout.setObjectName("gridLayout")
        self.frame = QtWidgets.QFrame(CadastroUsuario)
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.formLayout = QtWidgets.QFormLayout(self.frame)
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(self.frame)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.label)
        self.frame_username = QtWidgets.QFrame(self.frame)
        self.frame_username.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_username.setFrameShadow(QtWidgets.QFrame.Plain)
        self.frame_username.setObjectName("frame_username")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_username)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lineEdit_username = QtWidgets.QLineEdit(self.frame_username)
        self.lineEdit_username.setMaxLength(16)
        self.lineEdit_username.setObjectName("lineEdit_username")
        self.horizontalLayout.addWidget(self.lineEdit_username)
        self.checkBox_ativo = QtWidgets.QCheckBox(self.frame_username)
        self.checkBox_ativo.setObjectName("checkBox_ativo")
        self.horizontalLayout.addWidget(self.checkBox_ativo)
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.frame_username)
        self.label_2 = QtWidgets.QLabel(self.frame)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                  self.label_2)
        self.lineEdit_password = QtWidgets.QLineEdit(self.frame)
        self.lineEdit_password.setMaxLength(20)
        self.lineEdit_password.setFrame(True)
        self.lineEdit_password.setEchoMode(QtWidgets.QLineEdit.Password)
        self.lineEdit_password.setObjectName("lineEdit_password")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                  self.lineEdit_password)
        self.gridLayout.addWidget(self.frame, 2, 1, 1, 1)
        self.frame_menu = QtWidgets.QFrame(CadastroUsuario)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_menu.sizePolicy().hasHeightForWidth())
        self.frame_menu.setSizePolicy(sizePolicy)
        self.frame_menu.setMaximumSize(QtCore.QSize(16777215, 60))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.frame_menu.setFont(font)
        self.frame_menu.setObjectName("frame_menu")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.frame_menu)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.pushButton_cadastrar = QtWidgets.QPushButton(self.frame_menu)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.pushButton_cadastrar.setFont(font)
        self.pushButton_cadastrar.setCheckable(False)
        self.pushButton_cadastrar.setDefault(False)
        self.pushButton_cadastrar.setFlat(True)
        self.pushButton_cadastrar.setObjectName("pushButton_cadastrar")
        self.horizontalLayout_4.addWidget(self.pushButton_cadastrar)
        self.pushButton_localizar = QtWidgets.QPushButton(self.frame_menu)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.pushButton_localizar.setFont(font)
        self.pushButton_localizar.setCheckable(False)
        self.pushButton_localizar.setDefault(False)
        self.pushButton_localizar.setFlat(True)
        self.pushButton_localizar.setObjectName("pushButton_localizar")
        self.horizontalLayout_4.addWidget(self.pushButton_localizar)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.gridLayout.addWidget(self.frame_menu, 1, 1, 1, 1)
        self.frame_buttons = QtWidgets.QFrame(CadastroUsuario)
        self.frame_buttons.setMaximumSize(QtCore.QSize(16777215, 60))
        self.frame_buttons.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_buttons.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.frame_buttons.setObjectName("frame_buttons")
        self.frame_buttonsLayout = QtWidgets.QHBoxLayout(self.frame_buttons)
        self.frame_buttonsLayout.setObjectName("frame_buttonsLayout")
        self.lineEdit_id = QtWidgets.QLineEdit(self.frame_buttons)
        self.lineEdit_id.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_id.sizePolicy().hasHeightForWidth())
        self.lineEdit_id.setSizePolicy(sizePolicy)
        self.lineEdit_id.setAutoFillBackground(False)
        self.lineEdit_id.setFrame(False)
        self.lineEdit_id.setDragEnabled(False)
        self.lineEdit_id.setReadOnly(False)
        self.lineEdit_id.setObjectName("lineEdit_id")
        self.frame_buttonsLayout.addWidget(self.lineEdit_id)
        self.buttonBox = QtWidgets.QDialogButtonBox(self.frame_buttons)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.frame_buttonsLayout.addWidget(self.buttonBox)
        self.gridLayout.addWidget(self.frame_buttons, 3, 1, 1, 1)

        self.retranslateUi(CadastroUsuario)
        QtCore.QMetaObject.connectSlotsByName(CadastroUsuario)
Beispiel #12
0
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(391, 232)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setContentsMargins(-1, 4, -1, -1)
        self.gridLayout.setObjectName("gridLayout")
        self.valueEdit = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.valueEdit.sizePolicy().hasHeightForWidth())
        self.valueEdit.setSizePolicy(sizePolicy)
        self.valueEdit.setObjectName("valueEdit")
        self.gridLayout.addWidget(self.valueEdit, 5, 0, 2, 2)
        self.label_4 = QtWidgets.QLabel(Dialog)
        self.label_4.setStyleSheet("font: 63 11pt \"Segoe UI Semibold\";")
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 4, 2, 1, 2)
        self.categoryCombo = QtWidgets.QComboBox(Dialog)
        self.categoryCombo.setObjectName("categoryCombo")
        self.gridLayout.addWidget(self.categoryCombo, 3, 0, 1, 2)
        self.dateEdit = QtWidgets.QDateEdit(Dialog)
        self.dateEdit.setObjectName("dateEdit")
        self.gridLayout.addWidget(self.dateEdit, 3, 2, 1, 2)
        self.label_3 = QtWidgets.QLabel(Dialog)
        self.label_3.setStyleSheet("font: 63 11pt \"Segoe UI Semibold\";")
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 4, 0, 1, 2)
        self.radioButton = QtWidgets.QRadioButton(Dialog)
        self.radioButton.setChecked(True)
        self.radioButton.setObjectName("radioButton")
        self.gridLayout.addWidget(self.radioButton, 5, 2, 1, 1)
        self.radioButton_2 = QtWidgets.QRadioButton(Dialog)
        self.radioButton_2.setObjectName("radioButton_2")
        self.gridLayout.addWidget(self.radioButton_2, 5, 3, 1, 1)
        self.pushButton = QtWidgets.QPushButton(Dialog)
        self.pushButton.setObjectName("pushButton")
        self.gridLayout.addWidget(self.pushButton, 8, 3, 1, 1)
        self.accCombo = QtWidgets.QComboBox(Dialog)
        self.accCombo.setObjectName("accCombo")
        self.gridLayout.addWidget(self.accCombo, 6, 2, 1, 2)
        self.commentEdit = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.commentEdit.sizePolicy().hasHeightForWidth())
        self.commentEdit.setSizePolicy(sizePolicy)
        self.commentEdit.setObjectName("commentEdit")
        self.gridLayout.addWidget(self.commentEdit, 8, 0, 1, 3)
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setStyleSheet("font: 63 11pt \"Segoe UI Semibold\";")
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 2, 0, 1, 2)
        self.label_5 = QtWidgets.QLabel(Dialog)
        self.label_5.setStyleSheet("font: 63 11pt \"Segoe UI Semibold\";")
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 7, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setStyleSheet("font: 63 11pt \"Segoe UI Semibold\";")
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 2, 2, 1, 2)
        self.groupBox = QtWidgets.QGroupBox(Dialog)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setContentsMargins(9, 0, 0, 4)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.Revenue = QtWidgets.QRadioButton(self.groupBox)
        self.Revenue.setChecked(True)
        self.Revenue.setObjectName("Revenue")
        self.horizontalLayout.addWidget(self.Revenue)
        self.Expense = QtWidgets.QRadioButton(self.groupBox)
        self.Expense.setChecked(False)
        self.Expense.setObjectName("Expense")
        self.horizontalLayout.addWidget(self.Expense)
        self.gridLayout.addWidget(self.groupBox, 1, 0, 1, 4)

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
Beispiel #13
0
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(422, 313)
        self.verticalLayoutWidget = QtWidgets.QWidget(Form)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 80, 160, 112))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.DeviceName = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.DeviceName.setObjectName("DeviceName")
        self.verticalLayout.addWidget(self.DeviceName)
        self.comboBox_DeviceName = QtWidgets.QComboBox(self.verticalLayoutWidget)
        self.comboBox_DeviceName.setObjectName("comboBox_DeviceName")
        self.verticalLayout.addWidget(self.comboBox_DeviceName)
        self.label_DataType = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_DataType.setObjectName("label_DataType")
        self.verticalLayout.addWidget(self.label_DataType)
        self.comboBox_DataType = QtWidgets.QComboBox(self.verticalLayoutWidget)
        self.comboBox_DataType.setObjectName("comboBox_DataType")
        self.verticalLayout.addWidget(self.comboBox_DataType)
        self.comboBox_TSS_file = QtWidgets.QComboBox(self.verticalLayoutWidget)
        self.comboBox_TSS_file.setMouseTracking(False)
        self.comboBox_TSS_file.setObjectName("comboBox_TSS_file")
        self.verticalLayout.addWidget(self.comboBox_TSS_file)
        self.comboBox_TSS_file.currentIndexChanged.connect(self.update_TSS_DATA)  # AR chaneg
        self.verticalLayoutWidget_2 = QtWidgets.QWidget(Form)
        self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(220, 80, 181, 86))
        self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.StartDate_Label = QtWidgets.QLabel(self.verticalLayoutWidget_2)
        self.StartDate_Label.setObjectName("StartDate_Label")
        self.verticalLayout_2.addWidget(self.StartDate_Label)
        self.StartDate_2 = QtWidgets.QDateTimeEdit(self.verticalLayoutWidget_2)
        self.StartDate_2.setObjectName("StartDate_2")
        self.StartDate_2.setDateTime(QtCore.QDateTime.currentDateTime()) # AR


        self.StartDate_2.setCalendarPopup(True)  #### By AR to display the calendar
        self.verticalLayout_2.addWidget(self.StartDate_2)
        self.EndDate_Label = QtWidgets.QLabel(self.verticalLayoutWidget_2)
        self.EndDate_Label.setObjectName("EndDate_Label")
        self.verticalLayout_2.addWidget(self.EndDate_Label)
        self.endDate = QtWidgets.QDateTimeEdit(self.verticalLayoutWidget_2)
        self.endDate.setObjectName("endDate")
        self.endDate.setDateTime(QtCore.QDateTime.currentDateTime()) #AR
        self.endDate.setCalendarPopup(True)  #### By AR to display the calendar
        self.verticalLayout_2.addWidget(self.endDate)
        self.verticalLayoutWidget_3 = QtWidgets.QWidget(Form)
        self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(10, 210, 160, 83))
        self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.Save_button = QtWidgets.QPushButton(self.verticalLayoutWidget_3)
        self.Save_button.setObjectName("Save_button")
        self.verticalLayout_3.addWidget(self.Save_button)
        self.Save_button.clicked.connect(self.update_parameters)  #### By AR to display the calendar
        self.export_button = QtWidgets.QPushButton(self.verticalLayoutWidget_3)
        self.export_button.setObjectName("export_button")
        self.verticalLayout_3.addWidget(self.export_button)
        self.export_button.clicked.connect(self.loginCheck)  #### By AR to display the calendar
        self.plot_button = QtWidgets.QPushButton(self.verticalLayoutWidget_3)
        self.plot_button.setObjectName("plot_button")
        self.verticalLayout_3.addWidget(self.plot_button)
        self.plot_button.clicked.connect(self.plotFCAS)  #### By AR to display the calendar
        self.gridLayoutWidget = QtWidgets.QWidget(Form)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(220, 210, 186, 80))
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setObjectName("gridLayout")
        self.lineEdit_2 = QtWidgets.QLineEdit(self.gridLayoutWidget)
        self.lineEdit_2.setObjectName("lineEdit_2")
        self.gridLayout.addWidget(self.lineEdit_2, 2, 0, 1, 1)
        self.toolButton_2 = QtWidgets.QToolButton(self.gridLayoutWidget)
        self.toolButton_2.setObjectName("toolButton_2")
        self.gridLayout.addWidget(self.toolButton_2, 2, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget)
        self.toolButton_2.clicked.connect(self.selectDestinationFolder)  # AR
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.gridLayoutWidget_2 = QtWidgets.QWidget(Form)
        self.gridLayoutWidget_2.setGeometry(QtCore.QRect(10, 20, 391, 44))
        self.gridLayoutWidget_2.setObjectName("gridLayoutWidget_2")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.gridLayoutWidget_2)
        self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.toolButton = QtWidgets.QToolButton(self.gridLayoutWidget_2)
        self.toolButton.setObjectName("toolButton")
        self.gridLayout_2.addWidget(self.toolButton, 2, 1, 1, 1)
        self.lineEdit = QtWidgets.QLineEdit(self.gridLayoutWidget_2)
        self.toolButton.clicked.connect(self.selectDirectory)  # AR
        self.lineEdit.setMouseTracking(False)
        self.lineEdit.setAcceptDrops(True)
        self.lineEdit.setDragEnabled(False)
        self.lineEdit.setReadOnly(True)
        self.lineEdit.setObjectName("lineEdit")
        self.gridLayout_2.addWidget(self.lineEdit, 2, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.gridLayoutWidget_2)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Beispiel #14
0
    def _ui_settings_debug_hfv4(self):
        self.debugHFv4 = QtWidgets.QGroupBox("Debug")
        self.debugHFv4.setHidden(True)
        self.settings_hfv4_vbox.addWidget(self.debugHFv4)

        vbox = QtWidgets.QVBoxLayout()
        vbox.setContentsMargins(10, 5, 5, 10)
        self.debugHFv4.setLayout(vbox)

        # slider visual debug

        # - labels

        slider_label_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(slider_label_hbox)

        # stretch
        slider_label_hbox.addStretch()

        # # mode
        # text_obj = QtWidgets.QLabel("Visual debug mode:")
        # text_obj.setAlignment(QtCore.Qt.AlignCenter)
        # slider_label_hbox.addWidget(text_obj)
        #
        # slider_label_hbox.addSpacing(15)

        # export ascii
        text_obj = QtWidgets.QLabel("Save oversampled grid:")
        text_obj.setAlignment(QtCore.Qt.AlignCenter)
        slider_label_hbox.addWidget(text_obj)

        # stretch
        slider_label_hbox.addStretch()

        # - values

        slider_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(slider_hbox)
        # stretch
        slider_hbox.addStretch()

        # visual debug

        slider_gbox = QtWidgets.QGridLayout()
        slider_hbox.addLayout(slider_gbox)

        # # labels
        # text_sz = 36
        # text_value = QtWidgets.QLabel("On")
        # text_value.setFixedWidth(text_sz + 8)
        # text_value.setAlignment(QtCore.Qt.AlignLeft)
        # text_value.setStyleSheet(GuiSettings.stylesheet_slider_labels())
        # slider_gbox.addWidget(text_value, 0, 0, 1, 1)
        # text_value = QtWidgets.QLabel("Off")
        # text_value.setFixedWidth(text_sz)
        # text_value.setAlignment(QtCore.Qt.AlignCenter)
        # text_value.setStyleSheet(GuiSettings.stylesheet_slider_labels())
        # slider_gbox.addWidget(text_value, 0, 1, 1, 1)
        # # slider
        # self.slider_visual_debug_v4 = QtWidgets.QSlider(QtCore.Qt.Horizontal)
        # self.slider_visual_debug_v4.setRange(1, 2)
        # self.slider_visual_debug_v4.setSingleStep(1)
        # self.slider_visual_debug_v4.setValue(2)
        # self.slider_visual_debug_v4.setTickInterval(1)
        # self.slider_visual_debug_v4.setTickPosition(QtWidgets.QSlider.TicksBelow)
        # slider_gbox.addWidget(self.slider_visual_debug_v4, 1, 0, 1, 2)
        #
        # spacer = QtWidgets.QSpacerItem(1, 1)
        # slider_gbox.addItem(spacer, 1, 2, 1, 1)
        #
        # slider_hbox.addSpacing(30)

        # ascii export

        slider_gbox = QtWidgets.QGridLayout()
        slider_hbox.addLayout(slider_gbox)

        # labels
        text_sz = 36
        text_value = QtWidgets.QLabel("On")
        text_value.setFixedWidth(text_sz + 8)
        text_value.setAlignment(QtCore.Qt.AlignLeft)
        text_value.setStyleSheet(GuiSettings.stylesheet_slider_labels())
        slider_gbox.addWidget(text_value, 0, 0, 1, 1)
        text_value = QtWidgets.QLabel("Off")
        text_value.setFixedWidth(text_sz)
        text_value.setAlignment(QtCore.Qt.AlignCenter)
        text_value.setStyleSheet(GuiSettings.stylesheet_slider_labels())
        slider_gbox.addWidget(text_value, 0, 1, 1, 1)
        # slider
        self.slider_export_ascii_v4 = QtWidgets.QSlider(QtCore.Qt.Horizontal)
        self.slider_export_ascii_v4.setRange(1, 2)
        self.slider_export_ascii_v4.setSingleStep(1)
        self.slider_export_ascii_v4.setValue(2)
        self.slider_export_ascii_v4.setTickInterval(1)
        self.slider_export_ascii_v4.setTickPosition(
            QtWidgets.QSlider.TicksBelow)
        slider_gbox.addWidget(self.slider_export_ascii_v4, 1, 0, 1, 2)

        # stretch
        slider_hbox.addStretch()
Beispiel #15
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(526, 520)
        MainWindow.setAutoFillBackground(False)
        MainWindow.setStyleSheet("background-color: #2b2b2b;")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setObjectName("gridLayout")
        self.widget = QtWidgets.QWidget(self.centralwidget)
        self.widget.setMinimumSize(QtCore.QSize(0, 100))
        self.widget.setAutoFillBackground(False)
        self.widget.setStyleSheet("background-color: white;")
        self.widget.setObjectName("widget")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.widget)
        self.gridLayout_5.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setSpacing(0)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.playlist_widget = QtWidgets.QListWidget(self.widget)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(102, 102, 102))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Highlight,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(102, 102, 102))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Highlight,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(168, 168, 168))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Highlight,
                         brush)
        self.playlist_widget.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(13)
        self.playlist_widget.setFont(font)
        self.playlist_widget.setAutoFillBackground(True)
        self.playlist_widget.setStyleSheet("border: 0;")
        self.playlist_widget.setFrameShape(QtWidgets.QFrame.WinPanel)
        self.playlist_widget.setObjectName("playlist_widget")
        self.gridLayout_4.addWidget(self.playlist_widget, 0, 0, 1, 1)
        self.songs_widget = QtWidgets.QListWidget(self.widget)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(102, 102, 102))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Highlight,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(102, 102, 102))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Highlight,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(168, 168, 168))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Highlight,
                         brush)
        self.songs_widget.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(13)
        self.songs_widget.setFont(font)
        self.songs_widget.setAutoFillBackground(True)
        self.songs_widget.setStyleSheet("border-left: 1px;")
        self.songs_widget.setFrameShape(QtWidgets.QFrame.WinPanel)
        self.songs_widget.setObjectName("songs_widget")
        self.gridLayout_4.addWidget(self.songs_widget, 0, 1, 1, 1)
        self.gridLayout_5.addLayout(self.gridLayout_4, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.widget, 1, 0, 1, 1)
        self.now_playing_label = QtWidgets.QLabel(self.centralwidget)
        self.now_playing_label.setMinimumSize(QtCore.QSize(0, 80))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(20)
        font.setWeight(50)
        font.setBold(False)
        self.now_playing_label.setFont(font)
        self.now_playing_label.setStyleSheet("color: white;")
        self.now_playing_label.setAlignment(QtCore.Qt.AlignCenter)
        self.now_playing_label.setWordWrap(True)
        self.now_playing_label.setMargin(10)
        self.now_playing_label.setObjectName("now_playing_label")
        self.gridLayout.addWidget(self.now_playing_label, 0, 0, 1, 1)
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setContentsMargins(5, 10, -1, -1)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.previous_btn = QtWidgets.QPushButton(self.centralwidget)
        self.previous_btn.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("resources/previous.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.previous_btn.setIcon(icon)
        self.previous_btn.setObjectName("previous_btn")
        self.gridLayout_3.addWidget(self.previous_btn, 0, 0, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem, 0, 4, 1, 1)
        self.play_pause_btn = QtWidgets.QPushButton(self.centralwidget)
        self.play_pause_btn.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("resources/play.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.play_pause_btn.setIcon(icon1)
        self.play_pause_btn.setObjectName("play_pause_btn")
        self.gridLayout_3.addWidget(self.play_pause_btn, 0, 2, 1, 1)
        self.next_btn = QtWidgets.QPushButton(self.centralwidget)
        self.next_btn.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap("resources/next.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.next_btn.setIcon(icon2)
        self.next_btn.setObjectName("next_btn")
        self.gridLayout_3.addWidget(self.next_btn, 0, 3, 1, 1)
        self.mute_button = QtWidgets.QPushButton(self.centralwidget)
        self.mute_button.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("resources/volume.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mute_button.setIcon(icon3)
        self.mute_button.setObjectName("mute_button")
        self.gridLayout_3.addWidget(self.mute_button, 0, 5, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_3, 2, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 526, 20))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
    def _create_widgets(self):
        vl = _build_layout(False)
        self._main_layout.addLayout(vl)

        self._frame_before = QtWidgets.QSpinBox(parent=self)
        self._frame_before.setSingleStep(1)
        self._frame_before.setMinimum(0)
        vl.addWidget(
            LineWidget("Frame before:", self._frame_before, parent=self))

        self._frame_after = QtWidgets.QSpinBox(parent=self)
        self._frame_after.setSingleStep(1)
        self._frame_after.setMinimum(0)
        vl.addWidget(LineWidget("Frame after:", self._frame_after,
                                parent=self))

        vl.addWidget(self._get_selection_group_box())
        vl.addWidget(self._get_pivots_group_box())

        self._main_layout.addWidget(create_separator(True))

        gl = QtWidgets.QGridLayout()
        gl.setContentsMargins(QtCore.QMargins(2, 2, 2, 2))
        self._main_layout.addLayout(gl)

        self._show_key_frames = QtWidgets.QPushButton()
        self._show_key_frames.setCheckable(True)
        self._show_key_frames.setFixedWidth(120)
        self._show_key_frames.setText("Show keyframes")
        gl.addWidget(self._show_key_frames, 0, 0)

        self._show_tangents = QtWidgets.QPushButton()
        self._show_tangents.setCheckable(True)
        self._show_tangents.setFixedWidth(120)
        self._show_tangents.setText("Show tangents")
        gl.addWidget(self._show_tangents, 1, 0)

        self._show_key_number = QtWidgets.QPushButton()
        self._show_key_number.setCheckable(True)
        self._show_key_number.setFixedWidth(120)
        self._show_key_number.setText("Show key numbers")
        gl.addWidget(self._show_key_number, 2, 0)

        self._show_rotation = QtWidgets.QPushButton()
        self._show_rotation.setCheckable(True)
        self._show_rotation.setFixedWidth(120)
        self._show_rotation.setText("Show rotation keys")
        gl.addWidget(self._show_rotation, 3, 0)

        self._show_path = QtWidgets.QPushButton()
        self._show_path.setCheckable(True)
        self._show_path.setFixedWidth(120)
        self._show_path.setText("Show path")
        gl.addWidget(self._show_path, 0, 1)

        self._alternating_color = QtWidgets.QPushButton()
        self._alternating_color.setCheckable(True)
        self._alternating_color.setFixedWidth(120)
        self._alternating_color.setText("Alternate path color")
        gl.addWidget(self._alternating_color, 1, 1)

        self._show_frame_number = QtWidgets.QPushButton()
        self._show_frame_number.setCheckable(True)
        self._show_frame_number.setFixedWidth(120)
        self._show_frame_number.setText("Show frame numbers")
        gl.addWidget(self._show_frame_number, 2, 1)
Beispiel #17
0
    def setupUi(self, EventWindow):
        EventWindow.setObjectName("EventWindow")
        EventWindow.resize(609, 580)
        self.centralwidget = QtWidgets.QWidget(EventWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.scrollArea = QtWidgets.QScrollArea(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.scrollArea.sizePolicy().hasHeightForWidth())
        self.scrollArea.setSizePolicy(sizePolicy)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 583, 446))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.gridLayout_2 = QtWidgets.QGridLayout(
            self.scrollAreaWidgetContents)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.textBrowser = QtWidgets.QTextBrowser(
            self.scrollAreaWidgetContents)
        self.textBrowser.setObjectName("textBrowser")
        self.gridLayout_2.addWidget(self.textBrowser, 0, 0, 1, 1)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.gridLayout.addWidget(self.scrollArea, 0, 0, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.AddToCalendarButton = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.AddToCalendarButton.sizePolicy().hasHeightForWidth())
        self.AddToCalendarButton.setSizePolicy(sizePolicy)
        self.AddToCalendarButton.setMinimumSize(QtCore.QSize(0, 0))
        self.AddToCalendarButton.setObjectName("AddToCalendarButton")
        self.gridLayout_3.addWidget(self.AddToCalendarButton, 1, 0, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.DateTimeLabel = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.DateTimeLabel.sizePolicy().hasHeightForWidth())
        self.DateTimeLabel.setSizePolicy(sizePolicy)
        self.DateTimeLabel.setMinimumSize(QtCore.QSize(0, 0))
        self.DateTimeLabel.setObjectName("DateTimeLabel")
        self.horizontalLayout_2.addWidget(self.DateTimeLabel)
        self.dateTimeEdit = QtWidgets.QDateTimeEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dateTimeEdit.sizePolicy().hasHeightForWidth())
        self.dateTimeEdit.setSizePolicy(sizePolicy)
        self.dateTimeEdit.setWrapping(False)
        self.dateTimeEdit.setFrame(True)
        self.dateTimeEdit.setButtonSymbols(
            QtWidgets.QAbstractSpinBox.UpDownArrows)
        self.dateTimeEdit.setAccelerated(False)
        self.dateTimeEdit.setCorrectionMode(
            QtWidgets.QAbstractSpinBox.CorrectToPreviousValue)
        self.dateTimeEdit.setProperty("showGroupSeparator", False)
        self.dateTimeEdit.setMaximumDate(QtCore.QDate(2022, 12, 31))
        self.dateTimeEdit.setMinimumDate(QtCore.QDate(2019, 1, 1))
        self.dateTimeEdit.setCurrentSection(
            QtWidgets.QDateTimeEdit.MonthSection)
        self.dateTimeEdit.setCalendarPopup(True)
        self.dateTimeEdit.setCurrentSectionIndex(0)
        self.dateTimeEdit.setDateTime(QtCore.QDateTime.currentDateTime())
        self.dateTimeEdit.setTimeSpec(QtCore.Qt.LocalTime)
        self.dateTimeEdit.setObjectName("dateTimeEdit")
        self.horizontalLayout_2.addWidget(self.dateTimeEdit)
        self.gridLayout_3.addLayout(self.horizontalLayout_2, 0, 0, 1, 1)
        self.horizontalLayout.addLayout(self.gridLayout_3)
        self.line = QtWidgets.QFrame(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.line.sizePolicy().hasHeightForWidth())
        self.line.setSizePolicy(sizePolicy)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout.addWidget(self.line)
        self.AddToFavoritesButton = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.AddToFavoritesButton.sizePolicy().hasHeightForWidth())
        self.AddToFavoritesButton.setSizePolicy(sizePolicy)
        self.AddToFavoritesButton.setObjectName("AddToFavoritesButton")
        self.horizontalLayout.addWidget(self.AddToFavoritesButton)
        self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 1)
        EventWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(EventWindow)
        self.statusbar.setObjectName("statusbar")
        EventWindow.setStatusBar(self.statusbar)

        self.retranslateUi(EventWindow)
        QtCore.QMetaObject.connectSlotsByName(EventWindow)
Beispiel #18
0
    def setupUi(self, Addpath):
        Addpath.setObjectName("Addpath")
        Addpath.resize(807, 516)
        Addpath.setAcceptDrops(False)
        self.gridLayout = QtWidgets.QGridLayout(Addpath)
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.pushButtonAF = QtWidgets.QPushButton(Addpath)
        self.pushButtonAF.setObjectName("pushButtonAF")
        self.verticalLayout_2.addWidget(self.pushButtonAF)
        self.pushButtonRemove = QtWidgets.QPushButton(Addpath)
        self.pushButtonRemove.setObjectName("pushButtonRemove")
        self.verticalLayout_2.addWidget(self.pushButtonRemove)
        self.verticalLayout_4.addLayout(self.verticalLayout_2)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.pushButtonMtoT = QtWidgets.QPushButton(Addpath)
        self.pushButtonMtoT.setObjectName("pushButtonMtoT")
        self.verticalLayout.addWidget(self.pushButtonMtoT)
        self.pushButtonMU = QtWidgets.QPushButton(Addpath)
        self.pushButtonMU.setObjectName("pushButtonMU")
        self.verticalLayout.addWidget(self.pushButtonMU)
        self.pushButtonMD = QtWidgets.QPushButton(Addpath)
        self.pushButtonMD.setObjectName("pushButtonMD")
        self.verticalLayout.addWidget(self.pushButtonMD)
        self.pushButtonMtoB = QtWidgets.QPushButton(Addpath)
        self.pushButtonMtoB.setObjectName("pushButtonMtoB")
        self.verticalLayout.addWidget(self.pushButtonMtoB)
        self.verticalLayout_4.addLayout(self.verticalLayout)
        self.horizontalLayout.addLayout(self.verticalLayout_4)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.label_2 = QtWidgets.QLabel(Addpath)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_3.addWidget(self.label_2)
        self.label = QtWidgets.QLabel(Addpath)
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setWeight(50)
        font.setItalic(False)
        font.setUnderline(False)
        font.setStrikeOut(False)
        font.setBold(False)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.verticalLayout_3.addWidget(self.label)
        self.label_3 = QtWidgets.QLabel(Addpath)
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setWeight(50)
        font.setItalic(False)
        font.setUnderline(False)
        font.setStrikeOut(False)
        font.setBold(False)
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.verticalLayout_3.addWidget(self.label_3)
        self.listWidget = QtWidgets.QListWidget(Addpath)
        self.listWidget.setObjectName("listWidget")
        self.verticalLayout_3.addWidget(self.listWidget)
        self.pushButtonSave = QtWidgets.QPushButton(Addpath)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.pushButtonSave.setFont(font)
        self.pushButtonSave.setObjectName("pushButtonSave")
        self.verticalLayout_3.addWidget(self.pushButtonSave,alignment=QtCore.Qt.AlignHCenter)
        self.horizontalLayout.addLayout(self.verticalLayout_3)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)

        self.retranslateUi(Addpath)
        QtCore.QMetaObject.connectSlotsByName(Addpath)
    def setupUi(self, DockWidget):
        DockWidget.setObjectName("DockWidget")
        DockWidget.resize(402, 405)
        self.dockWidgetContents = QtWidgets.QWidget()
        self.dockWidgetContents.setObjectName("dockWidgetContents")
        self.gridLayout = QtWidgets.QGridLayout(self.dockWidgetContents)
        self.gridLayout.setObjectName("gridLayout")
        self.dial = QtWidgets.QDial(self.dockWidgetContents)
        self.dial.setMinimumSize(QtCore.QSize(0, 0))
        self.dial.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.dial.setProperty("value", 50)
        self.dial.setObjectName("dial")
        self.gridLayout.addWidget(self.dial, 2, 1, 1, 1)
        self.label_25 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_25.setMinimumSize(QtCore.QSize(0, 0))
        self.label_25.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_25.setFont(font)
        self.label_25.setObjectName("label_25")
        self.gridLayout.addWidget(self.label_25, 7, 0, 1, 1)
        self.horizontalScrollBarDis = QtWidgets.QScrollBar(
            self.dockWidgetContents)
        self.horizontalScrollBarDis.setEnabled(False)
        self.horizontalScrollBarDis.setMinimumSize(QtCore.QSize(0, 0))
        self.horizontalScrollBarDis.setMaximumSize(
            QtCore.QSize(16777215, 16777215))
        self.horizontalScrollBarDis.setProperty("value", 50)
        self.horizontalScrollBarDis.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalScrollBarDis.setObjectName("horizontalScrollBarDis")
        self.gridLayout.addWidget(self.horizontalScrollBarDis, 3, 2, 1, 1)
        self.verticalSlider = QtWidgets.QSlider(self.dockWidgetContents)
        self.verticalSlider.setMinimumSize(QtCore.QSize(0, 70))
        self.verticalSlider.setMaximumSize(QtCore.QSize(16777215, 70))
        self.verticalSlider.setProperty("value", 50)
        self.verticalSlider.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider.setObjectName("verticalSlider")
        self.gridLayout.addWidget(self.verticalSlider, 7, 1, 1, 1)
        self.label_24 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_24.setMinimumSize(QtCore.QSize(0, 0))
        self.label_24.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_24.setFont(font)
        self.label_24.setObjectName("label_24")
        self.gridLayout.addWidget(self.label_24, 4, 0, 1, 1)
        self.horizontalSlider = QtWidgets.QSlider(self.dockWidgetContents)
        self.horizontalSlider.setMinimumSize(QtCore.QSize(0, 0))
        self.horizontalSlider.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.horizontalSlider.setProperty("value", 50)
        self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider.setObjectName("horizontalSlider")
        self.gridLayout.addWidget(self.horizontalSlider, 4, 1, 2, 1)
        self.horizontalSliderDis = QtWidgets.QSlider(self.dockWidgetContents)
        self.horizontalSliderDis.setEnabled(False)
        self.horizontalSliderDis.setMinimumSize(QtCore.QSize(0, 0))
        self.horizontalSliderDis.setMaximumSize(
            QtCore.QSize(16777215, 16777215))
        self.horizontalSliderDis.setProperty("value", 50)
        self.horizontalSliderDis.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSliderDis.setObjectName("horizontalSliderDis")
        self.gridLayout.addWidget(self.horizontalSliderDis, 4, 2, 1, 1)
        self.label_23 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_23.setMinimumSize(QtCore.QSize(0, 0))
        self.label_23.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_23.setFont(font)
        self.label_23.setObjectName("label_23")
        self.gridLayout.addWidget(self.label_23, 6, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.dockWidgetContents)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 2, 1, 1)
        self.verticalScrollBarDis = QtWidgets.QScrollBar(
            self.dockWidgetContents)
        self.verticalScrollBarDis.setEnabled(False)
        self.verticalScrollBarDis.setMinimumSize(QtCore.QSize(0, 70))
        self.verticalScrollBarDis.setMaximumSize(QtCore.QSize(16777215, 70))
        self.verticalScrollBarDis.setProperty("value", 50)
        self.verticalScrollBarDis.setOrientation(QtCore.Qt.Vertical)
        self.verticalScrollBarDis.setObjectName("verticalScrollBarDis")
        self.gridLayout.addWidget(self.verticalScrollBarDis, 5, 2, 2, 1)
        self.label_21 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_21.setMinimumSize(QtCore.QSize(0, 0))
        self.label_21.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_21.setFont(font)
        self.label_21.setObjectName("label_21")
        self.gridLayout.addWidget(self.label_21, 2, 0, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 0,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 8, 0, 1, 1)
        self.verticalScrollBar = QtWidgets.QScrollBar(self.dockWidgetContents)
        self.verticalScrollBar.setMinimumSize(QtCore.QSize(0, 70))
        self.verticalScrollBar.setMaximumSize(QtCore.QSize(16777215, 70))
        self.verticalScrollBar.setProperty("value", 50)
        self.verticalScrollBar.setOrientation(QtCore.Qt.Vertical)
        self.verticalScrollBar.setObjectName("verticalScrollBar")
        self.gridLayout.addWidget(self.verticalScrollBar, 6, 1, 1, 1)
        self.comboBoxDis = QtWidgets.QComboBox(self.dockWidgetContents)
        self.comboBoxDis.setEnabled(False)
        self.comboBoxDis.setMinimumSize(QtCore.QSize(0, 0))
        self.comboBoxDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.comboBoxDis.setObjectName("comboBoxDis")
        self.comboBoxDis.addItem("")
        self.comboBoxDis.addItem("")
        self.comboBoxDis.addItem("")
        self.gridLayout.addWidget(self.comboBoxDis, 1, 2, 1, 1)
        self.horizontalScrollBar = QtWidgets.QScrollBar(
            self.dockWidgetContents)
        self.horizontalScrollBar.setMinimumSize(QtCore.QSize(0, 0))
        self.horizontalScrollBar.setMaximumSize(
            QtCore.QSize(16777215, 16777215))
        self.horizontalScrollBar.setProperty("value", 50)
        self.horizontalScrollBar.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalScrollBar.setObjectName("horizontalScrollBar")
        self.gridLayout.addWidget(self.horizontalScrollBar, 3, 1, 1, 1)
        self.comboBox = QtWidgets.QComboBox(self.dockWidgetContents)
        self.comboBox.setMinimumSize(QtCore.QSize(0, 0))
        self.comboBox.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.gridLayout.addWidget(self.comboBox, 1, 1, 1, 1)
        self.label_22 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_22.setMinimumSize(QtCore.QSize(0, 0))
        self.label_22.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_22.setFont(font)
        self.label_22.setObjectName("label_22")
        self.gridLayout.addWidget(self.label_22, 3, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.dockWidgetContents)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 1, 1, 1)
        self.label_50 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_50.setAlignment(QtCore.Qt.AlignCenter)
        self.label_50.setObjectName("label_50")
        self.gridLayout.addWidget(self.label_50, 9, 0, 1, 3)
        self.label_11 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_11.setMinimumSize(QtCore.QSize(0, 0))
        self.label_11.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_11.setFont(font)
        self.label_11.setObjectName("label_11")
        self.gridLayout.addWidget(self.label_11, 1, 0, 1, 1)
        self.dialDis = QtWidgets.QDial(self.dockWidgetContents)
        self.dialDis.setEnabled(False)
        self.dialDis.setMinimumSize(QtCore.QSize(0, 0))
        self.dialDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.dialDis.setProperty("value", 50)
        self.dialDis.setObjectName("dialDis")
        self.gridLayout.addWidget(self.dialDis, 2, 2, 1, 1)
        self.verticalSliderDis = QtWidgets.QSlider(self.dockWidgetContents)
        self.verticalSliderDis.setEnabled(False)
        self.verticalSliderDis.setMinimumSize(QtCore.QSize(0, 70))
        self.verticalSliderDis.setMaximumSize(QtCore.QSize(16777215, 70))
        self.verticalSliderDis.setProperty("value", 50)
        self.verticalSliderDis.setOrientation(QtCore.Qt.Vertical)
        self.verticalSliderDis.setObjectName("verticalSliderDis")
        self.gridLayout.addWidget(self.verticalSliderDis, 7, 2, 1, 1)
        DockWidget.setWidget(self.dockWidgetContents)

        self.retranslateUi(DockWidget)
        QtCore.QObject.connect(self.dial, QtCore.SIGNAL("sliderMoved(int)"),
                               self.dialDis.setValue)
        QtCore.QObject.connect(self.horizontalScrollBar,
                               QtCore.SIGNAL("sliderMoved(int)"),
                               self.horizontalScrollBarDis.setValue)
        QtCore.QObject.connect(self.horizontalSlider,
                               QtCore.SIGNAL("sliderMoved(int)"),
                               self.horizontalSliderDis.setValue)
        QtCore.QObject.connect(self.verticalScrollBar,
                               QtCore.SIGNAL("sliderMoved(int)"),
                               self.verticalScrollBarDis.setValue)
        QtCore.QObject.connect(self.verticalSlider,
                               QtCore.SIGNAL("sliderMoved(int)"),
                               self.verticalSliderDis.setValue)
        QtCore.QObject.connect(self.comboBox,
                               QtCore.SIGNAL("currentIndexChanged(int)"),
                               self.comboBoxDis.setCurrentIndex)
        QtCore.QMetaObject.connectSlotsByName(DockWidget)
Beispiel #20
0
    def buildUI(self):
        """create the widgets and layouts"""
        # left stuff
        leftLayout = QtWidgets.QVBoxLayout()
        leftLayout.setContentsMargins(1, 1, 1, 1)
        leftWidget = QtWidgets.QWidget()  # widget required for QSplitter
        # - asset tree
        self.assetTree = QtWidgets.QTreeWidget()
        self.assetTree.setColumnCount(2)
        self.assetTree.setHeaderLabels(["Assets / Instances", "Subpath"])
        self.assetTree.setSelectionMode(
            QtWidgets.QAbstractItemView.ExtendedSelection)
        self.assetTree.setColumnWidth(0, 160)
        leftLayout.addWidget(self.assetTree)
        # - info labels
        self.discrepancyLbl = QtWidgets.QLabel(
            "Objects with same AssetPath but different geometry detected!")
        p = self.discrepancyLbl.palette()
        p.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                   self.discrepancyBrush)
        self.discrepancyLbl.setPalette(p)
        self.untaggedLbl = QtWidgets.QLabel(
            "Untagged objects detected, assigned auto-generated names.")
        p = self.untaggedLbl.palette()
        p.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                   self.untaggedBrush)
        self.untaggedLbl.setPalette(p)
        leftLayout.addWidget(self.discrepancyLbl)
        leftLayout.addWidget(self.untaggedLbl)
        # - left buttons
        layout = QtWidgets.QGridLayout()
        self.selectInstancesBtn = QtWidgets.QPushButton("Select Instances")
        self.selectInstancesBtn.setDisabled(True)
        layout.addWidget(self.selectInstancesBtn, 0, 0)
        self.removeBtn = QtWidgets.QPushButton("Remove")
        self.removeBtn.setDisabled(True)
        layout.addWidget(self.removeBtn, 1, 0)
        self.makeNewBtn = QtWidgets.QPushButton("Make New Unique(s)")
        self.makeNewBtn.setDisabled(True)
        layout.addWidget(self.makeNewBtn, 1, 1)

        leftLayout.addItem(layout)
        leftWidget.setLayout(leftLayout)

        # right stuff
        rightLayout = QtWidgets.QVBoxLayout()
        rightLayout.setContentsMargins(1, 1, 1, 1)
        rightWidget = QtWidgets.QWidget()
        # - editing group box
        editGrp = QtWidgets.QGroupBox("Edit Selected")
        grpLayout = QtWidgets.QVBoxLayout()
        grpLayout.setContentsMargins(1, 1, 1, 1)
        # - - asset path edit
        subpathLayout = QtWidgets.QGridLayout()
        label = QtWidgets.QLabel("Set Asset Subpath")
        subpathLayout.addWidget(label, 0, 0)
        self.subpathEdit = QtWidgets.QLineEdit()
        subpathLayout.addWidget(self.subpathEdit, 1, 0)
        self.subpathBrowseBtn = QtWidgets.QToolButton()
        self.subpathBrowseBtn.setIcon(icons.icoBrowse)
        self.subpathBrowseBtn.setToolTip("Browse")
        subpathLayout.addWidget(self.subpathBrowseBtn, 1, 1)
        self.subpathAssignBtn = QtWidgets.QPushButton("Set")
        subpathLayout.addWidget(self.subpathAssignBtn, 1, 2)
        grpLayout.addItem(subpathLayout)
        # - - prefix and suffix
        prefixLayout = QtWidgets.QGridLayout()
        label = QtWidgets.QLabel("Set Prefix")
        prefixLayout.addWidget(label, 0, 0)
        self.prefixEdit = QtWidgets.QLineEdit()
        prefixLayout.addWidget(self.prefixEdit, 0, 1)
        self.prefixAssignBtn = QtWidgets.QPushButton("Set")
        prefixLayout.addWidget(self.prefixAssignBtn, 0, 2)
        label = QtWidgets.QLabel("Set Suffix")
        prefixLayout.addWidget(label, 1, 0)
        self.suffixEdit = QtWidgets.QLineEdit()
        prefixLayout.addWidget(self.suffixEdit, 1, 1)
        self.suffixAssignBtn = QtWidgets.QPushButton("Set")
        prefixLayout.addWidget(self.suffixAssignBtn, 1, 2)
        grpLayout.addItem(prefixLayout)

        editGrp.setLayout(grpLayout)
        rightLayout.addWidget(editGrp)

        # - right buttons
        layout = QtWidgets.QGridLayout()
        layout.setColumnStretch(0, 1)
        self.assignAssetDataBtn = QtWidgets.QPushButton("Assign Edited Data")
        self.assignAssetDataBtn.setToolTip(
            "Only assign the data to the objects in the scene. Don't export.")
        self.assignAssetDataBtn.setIcon(icons.icoDoAssign)
        layout.addWidget(self.assignAssetDataBtn, 0, 1)
        self.exportSelectedBtn = QtWidgets.QPushButton("Export Selected")
        self.exportSelectedBtn.setToolTip(
            "Export only the assets that are selected in the list.")
        self.exportSelectedBtn.setIcon(icons.icoDoExportSel)
        layout.addWidget(self.exportSelectedBtn, 1, 1)
        self.cancelBtn = QtWidgets.QPushButton("Cancel")
        self.cancelBtn.setIcon(icons.icoCancel)
        layout.addWidget(self.cancelBtn, 2, 0)
        self.exportAllBtn = QtWidgets.QPushButton("Export")
        self.exportAllBtn.setIcon(icons.icoDoExport)
        layout.addWidget(self.exportAllBtn, 2, 1)

        rightLayout.addStretch()
        rightLayout.addItem(layout)
        rightWidget.setLayout(rightLayout)

        # add all onto the form (splitted)
        splitter = QtWidgets.QSplitter()
        splitter.addWidget(leftWidget)
        splitter.addWidget(rightWidget)
        leftWidget.resize(350, 200)
        # leftWidget.setSizePolicy(QtWidgets.QSizePolicy.Ignored,QtWidgets.QSizePolicy.Preferred)
        # rightWidget.setSizePolicy(QtWidgets.QSizePolicy.Maximum,QtWidgets.QSizePolicy.Preferred)
        # splitter.setStretchFactor(0, 100)
        layout = QtWidgets.QVBoxLayout()
        layout.setSpacing(1)
        layout.setContentsMargins(1, 1, 1, 1)
        layout.addWidget(splitter)
        self.setLayout(layout)
    def pdokGroup(self):
        groupBox = QtWidgets.QGroupBox(
            "GIS-data only available in the Netherlands. Source: PDOK, TU Delft, "
        )

        clsCadLab = QtWidgets.QLabel("Cadastral Parcels 2D(Vector")
        self.clsCad = QtWidgets.QCheckBox()
        self.clsCad.setChecked(1)

        clsBldLab = QtWidgets.QLabel("Building Outline 2D")
        self.clsBld = QtWidgets.QCheckBox()
        self.clsBld.setChecked(1)

        clsBAG3DLab = QtWidgets.QLabel("BAG 3D V2")
        self.clsBAG3D = QtWidgets.QCheckBox()
        self.clsBAG3D.setChecked(1)

        clsAerialLab = QtWidgets.QLabel("Aerialphoto 2020(Raster)")
        self.clsAerial = QtWidgets.QCheckBox()
        self.clsAerial.setChecked(1)

        clsAnnotationLab = QtWidgets.QLabel("GIS 2D Annotation")
        self.clsAnnotation = QtWidgets.QCheckBox()
        self.clsAnnotation.setChecked(1)

        clsBouwvlakLab = QtWidgets.QLabel(
            "Bestemmingsplan Bouwvlak 2D(Vector)")
        self.clsBouwvlak = QtWidgets.QCheckBox()
        self.clsBouwvlak.setChecked(1)

        clsBGTLab = QtWidgets.QLabel("BGT 2D(Vector)")
        self.clsBGT = QtWidgets.QCheckBox()
        self.clsBGT.setChecked(1)

        clsBestemmingsplanLab = QtWidgets.QLabel("Bestemmingsplan(Raster)")
        self.clsBestemmingsplan = QtWidgets.QCheckBox()
        self.clsBestemmingsplan.setChecked(1)

        grid = QtWidgets.QGridLayout()

        grid.addWidget(clsCadLab, 0, 0)
        grid.addWidget(self.clsCad, 0, 1)

        grid.addWidget(clsBldLab, 1, 0)
        grid.addWidget(self.clsBld, 1, 1)

        grid.addWidget(clsBAG3DLab, 2, 0)
        grid.addWidget(self.clsBAG3D, 2, 1)

        grid.addWidget(clsAerialLab, 3, 0)
        grid.addWidget(self.clsAerial, 3, 1)

        grid.addWidget(clsAnnotationLab, 4, 0)
        grid.addWidget(self.clsAnnotation, 4, 1)

        grid.addWidget(clsBouwvlakLab, 5, 0)
        grid.addWidget(self.clsBouwvlak, 5, 1)

        grid.addWidget(clsBGTLab, 6, 0)
        grid.addWidget(self.clsBGT, 6, 1)

        grid.addWidget(clsBestemmingsplanLab, 7, 0)
        grid.addWidget(self.clsBestemmingsplan, 7, 1)

        groupBox.setLayout(grid)

        return groupBox
Beispiel #22
0
    def __init__(self, parent=None):
        super(AddressBook, self).__init__(parent)

        self.contacts = SortedDict()
        self.oldName = ''
        self.oldAddress = ''
        self.currentMode = self.NavigationMode

        nameLabel = QtWidgets.QLabel("Name:")
        self.nameLine = QtWidgets.QLineEdit()
        self.nameLine.setReadOnly(True)

        addressLabel = QtWidgets.QLabel("Address:")
        self.addressText = QtWidgets.QTextEdit()
        self.addressText.setReadOnly(True)

        self.addButton = QtWidgets.QPushButton("&Add")
        self.editButton = QtWidgets.QPushButton("&Edit")
        self.editButton.setEnabled(False)
        self.removeButton = QtWidgets.QPushButton("&Remove")
        self.removeButton.setEnabled(False)
        self.submitButton = QtWidgets.QPushButton("&Submit")
        self.submitButton.hide()
        self.cancelButton = QtWidgets.QPushButton("&Cancel")
        self.cancelButton.hide()

        self.nextButton = QtWidgets.QPushButton("&Next")
        self.nextButton.setEnabled(False)
        self.previousButton = QtWidgets.QPushButton("&Previous")
        self.previousButton.setEnabled(False)

        self.addButton.clicked.connect(self.addContact)
        self.submitButton.clicked.connect(self.submitContact)
        self.editButton.clicked.connect(self.editContact)
        self.removeButton.clicked.connect(self.removeContact)
        self.cancelButton.clicked.connect(self.cancel)
        self.nextButton.clicked.connect(self.next)
        self.previousButton.clicked.connect(self.previous)

        buttonLayout1 = QtWidgets.QVBoxLayout()
        buttonLayout1.addWidget(self.addButton)
        buttonLayout1.addWidget(self.editButton)
        buttonLayout1.addWidget(self.removeButton)
        buttonLayout1.addWidget(self.submitButton)
        buttonLayout1.addWidget(self.cancelButton)
        buttonLayout1.addStretch()

        buttonLayout2 = QtWidgets.QHBoxLayout()
        buttonLayout2.addWidget(self.previousButton)
        buttonLayout2.addWidget(self.nextButton)

        mainLayout = QtWidgets.QGridLayout()
        mainLayout.addWidget(nameLabel, 0, 0)
        mainLayout.addWidget(self.nameLine, 0, 1)
        mainLayout.addWidget(addressLabel, 1, 0, QtCore.Qt.AlignTop)
        mainLayout.addWidget(self.addressText, 1, 1)
        mainLayout.addLayout(buttonLayout1, 1, 2)
        mainLayout.addLayout(buttonLayout2, 3, 1)

        self.setLayout(mainLayout)
        self.setWindowTitle("Simple Address Book")
Beispiel #23
0
    def setupUi(self, Form_UnitsOptions):
        Form_UnitsOptions.setObjectName("Form_UnitsOptions")
        Form_UnitsOptions.setWindowModality(QtCore.Qt.ApplicationModal)
        Form_UnitsOptions.resize(290, 290)
        Form_UnitsOptions.setMinimumSize(QtCore.QSize(290, 290))
        self.gridLayout_2 = QtWidgets.QGridLayout(Form_UnitsOptions)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.scrollArea = QtWidgets.QScrollArea(Form_UnitsOptions)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 270, 270))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.gridLayout = QtWidgets.QGridLayout(self.scrollAreaWidgetContents)
        self.gridLayout.setObjectName("gridLayout")
        self.frame = QtWidgets.QFrame(self.scrollAreaWidgetContents)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label = QtWidgets.QLabel(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName("label")
        self.verticalLayout_2.addWidget(self.label)
        self.label_2 = QtWidgets.QLabel(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_2.addWidget(self.label_2)
        self.label_3 = QtWidgets.QLabel(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName("label_3")
        self.verticalLayout_2.addWidget(self.label_3)
        self.label_4 = QtWidgets.QLabel(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_2.addWidget(self.label_4)
        self.label_5 = QtWidgets.QLabel(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_2.addWidget(self.label_5)
        self.label_6 = QtWidgets.QLabel(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        self.label_6.setObjectName("label_6")
        self.verticalLayout_2.addWidget(self.label_6)
        self.gridLayout.addWidget(self.frame, 0, 0, 1, 1)
        self.frame_2 = QtWidgets.QFrame(self.scrollAreaWidgetContents)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(4)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_2.sizePolicy().hasHeightForWidth())
        self.frame_2.setSizePolicy(sizePolicy)
        self.frame_2.setMaximumSize(QtCore.QSize(16777000, 16777215))
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.frame_2)
        self.verticalLayout.setObjectName("verticalLayout")
        self.comboBox_pressure = QtWidgets.QComboBox(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.comboBox_pressure.sizePolicy().hasHeightForWidth())
        self.comboBox_pressure.setSizePolicy(sizePolicy)
        self.comboBox_pressure.setObjectName("comboBox_pressure")
        self.verticalLayout.addWidget(self.comboBox_pressure)
        self.comboBox_temperature = QtWidgets.QComboBox(self.frame_2)
        self.comboBox_temperature.setObjectName("comboBox_temperature")
        self.verticalLayout.addWidget(self.comboBox_temperature)
        self.comboBox_volume = QtWidgets.QComboBox(self.frame_2)
        self.comboBox_volume.setObjectName("comboBox_volume")
        self.verticalLayout.addWidget(self.comboBox_volume)
        self.comboBox_density = QtWidgets.QComboBox(self.frame_2)
        self.comboBox_density.setObjectName("comboBox_density")
        self.verticalLayout.addWidget(self.comboBox_density)
        self.comboBox_energ_per_mol = QtWidgets.QComboBox(self.frame_2)
        self.comboBox_energ_per_mol.setObjectName("comboBox_energ_per_mol")
        self.verticalLayout.addWidget(self.comboBox_energ_per_mol)
        self.comboBox_energ_per_mol_temp = QtWidgets.QComboBox(self.frame_2)
        self.comboBox_energ_per_mol_temp.setObjectName(
            "comboBox_energ_per_mol_temp")
        self.verticalLayout.addWidget(self.comboBox_energ_per_mol_temp)
        self.gridLayout.addWidget(self.frame_2, 0, 1, 1, 1)
        self.frame_3 = QtWidgets.QFrame(self.scrollAreaWidgetContents)
        self.frame_3.setMaximumSize(QtCore.QSize(16777215, 47))
        self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_3)
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.btn_ok = QtWidgets.QPushButton(self.frame_3)
        self.btn_ok.setObjectName("btn_ok")
        self.horizontalLayout.addWidget(self.btn_ok)
        self.btn_cancel = QtWidgets.QPushButton(self.frame_3)
        self.btn_cancel.setObjectName("btn_cancel")
        self.horizontalLayout.addWidget(self.btn_cancel)
        self.gridLayout.addWidget(self.frame_3, 1, 0, 1, 2)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.gridLayout_2.addWidget(self.scrollArea, 0, 0, 1, 1)

        self.retranslateUi(Form_UnitsOptions)
        QtCore.QMetaObject.connectSlotsByName(Form_UnitsOptions)
Beispiel #24
0
    def setupUi(self, View):
        View.setObjectName("View")
        View.resize(1024, 742)
        font = QtGui.QFont()
        font.setPointSize(11)
        View.setFont(font)
        self.horizontalLayout = QtWidgets.QHBoxLayout(View)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.controlPanel_widget = QtWidgets.QWidget(View)
        self.controlPanel_widget.setMinimumSize(QtCore.QSize(270, 0))
        self.controlPanel_widget.setObjectName("controlPanel_widget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.controlPanel_widget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.leftLung_groupBox = QtWidgets.QGroupBox(self.controlPanel_widget)
        self.leftLung_groupBox.setObjectName("leftLung_groupBox")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.leftLung_groupBox)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.datacloudIpdata_lineEdit = QtWidgets.QLineEdit(self.leftLung_groupBox)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.datacloudIpdata_lineEdit.setFont(font)
        self.datacloudIpdata_lineEdit.setObjectName("datacloudIpdata_lineEdit")
        self.gridLayout_4.addWidget(self.datacloudIpdata_lineEdit, 0, 0, 1, 1)
        self.surfaceIpnode_pushButton = QtWidgets.QPushButton(self.leftLung_groupBox)
        self.surfaceIpnode_pushButton.setObjectName("surfaceIpnode_pushButton")
        self.gridLayout_4.addWidget(self.surfaceIpnode_pushButton, 1, 1, 1, 1)
        self.datacloudIpdata_pushButton = QtWidgets.QPushButton(self.leftLung_groupBox)
        self.datacloudIpdata_pushButton.setObjectName("datacloudIpdata_pushButton")
        self.gridLayout_4.addWidget(self.datacloudIpdata_pushButton, 0, 1, 1, 1)
        self.surfaceIpnode_lineEdit = QtWidgets.QLineEdit(self.leftLung_groupBox)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.surfaceIpnode_lineEdit.setFont(font)
        self.surfaceIpnode_lineEdit.setObjectName("surfaceIpnode_lineEdit")
        self.gridLayout_4.addWidget(self.surfaceIpnode_lineEdit, 1, 0, 1, 1)
        self.surfaceIpelem_pushButton = QtWidgets.QPushButton(self.leftLung_groupBox)
        self.surfaceIpelem_pushButton.setObjectName("surfaceIpelem_pushButton")
        self.gridLayout_4.addWidget(self.surfaceIpelem_pushButton, 2, 1, 1, 1)
        self.surfaceIpelem_lineEdit = QtWidgets.QLineEdit(self.leftLung_groupBox)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.surfaceIpelem_lineEdit.setFont(font)
        self.surfaceIpelem_lineEdit.setObjectName("surfaceIpelem_lineEdit")
        self.gridLayout_4.addWidget(self.surfaceIpelem_lineEdit, 2, 0, 1, 1)
        self.showDatacloud_checkBox = QtWidgets.QCheckBox(self.leftLung_groupBox)
        self.showDatacloud_checkBox.setChecked(True)
        self.showDatacloud_checkBox.setObjectName("showDatacloud_checkBox")
        self.gridLayout_4.addWidget(self.showDatacloud_checkBox, 4, 0, 1, 2)
        self.showMesh_checkBox = QtWidgets.QCheckBox(self.leftLung_groupBox)
        self.showMesh_checkBox.setChecked(True)
        self.showMesh_checkBox.setObjectName("showMesh_checkBox")
        self.gridLayout_4.addWidget(self.showMesh_checkBox, 5, 0, 1, 2)
        self.load_pushButton = QtWidgets.QPushButton(self.leftLung_groupBox)
        self.load_pushButton.setMinimumSize(QtCore.QSize(0, 40))
        self.load_pushButton.setObjectName("load_pushButton")
        self.gridLayout_4.addWidget(self.load_pushButton, 3, 0, 1, 2)
        self.verticalLayout.addWidget(self.leftLung_groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(self.controlPanel_widget)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.iterations_spinBox = QtWidgets.QSpinBox(self.groupBox_2)
        self.iterations_spinBox.setMinimum(1)
        self.iterations_spinBox.setMaximum(20)
        self.iterations_spinBox.setProperty("value", 8)
        self.iterations_spinBox.setObjectName("iterations_spinBox")
        self.gridLayout_3.addWidget(self.iterations_spinBox, 2, 1, 1, 1)
        self.fit_pushButton = QtWidgets.QPushButton(self.groupBox_2)
        self.fit_pushButton.setMinimumSize(QtCore.QSize(0, 40))
        self.fit_pushButton.setObjectName("fit_pushButton")
        self.gridLayout_3.addWidget(self.fit_pushButton, 4, 0, 1, 2)
        self.label = QtWidgets.QLabel(self.groupBox_2)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName("label")
        self.gridLayout_3.addWidget(self.label, 2, 0, 1, 1)
        self.landmarks_groupBox = QtWidgets.QGroupBox(self.groupBox_2)
        self.landmarks_groupBox.setObjectName("landmarks_groupBox")
        self.gridLayout = QtWidgets.QGridLayout(self.landmarks_groupBox)
        self.gridLayout.setSpacing(6)
        self.gridLayout.setObjectName("gridLayout")
        self.ventralNode_pushButton = QtWidgets.QPushButton(self.landmarks_groupBox)
        self.ventralNode_pushButton.setMinimumSize(QtCore.QSize(0, 50))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.ventralNode_pushButton.setFont(font)
        self.ventralNode_pushButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.ventralNode_pushButton.setAutoFillBackground(False)
        self.ventralNode_pushButton.setStyleSheet("color:olive;")
        self.ventralNode_pushButton.setCheckable(True)
        self.ventralNode_pushButton.setObjectName("ventralNode_pushButton")
        self.gridLayout.addWidget(self.ventralNode_pushButton, 1, 0, 1, 1)
        self.apexNode_pushButton = QtWidgets.QPushButton(self.landmarks_groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.apexNode_pushButton.sizePolicy().hasHeightForWidth())
        self.apexNode_pushButton.setSizePolicy(sizePolicy)
        self.apexNode_pushButton.setMinimumSize(QtCore.QSize(0, 50))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.apexNode_pushButton.setFont(font)
        self.apexNode_pushButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.apexNode_pushButton.setAutoFillBackground(False)
        self.apexNode_pushButton.setStyleSheet("color:green;")
        self.apexNode_pushButton.setCheckable(True)
        self.apexNode_pushButton.setObjectName("apexNode_pushButton")
        self.gridLayout.addWidget(self.apexNode_pushButton, 0, 0, 1, 1)
        self.basalNode_pushButton = QtWidgets.QPushButton(self.landmarks_groupBox)
        self.basalNode_pushButton.setMinimumSize(QtCore.QSize(0, 50))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.basalNode_pushButton.setFont(font)
        self.basalNode_pushButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.basalNode_pushButton.setAutoFillBackground(False)
        self.basalNode_pushButton.setStyleSheet("color:maroon;")
        self.basalNode_pushButton.setCheckable(True)
        self.basalNode_pushButton.setObjectName("basalNode_pushButton")
        self.gridLayout.addWidget(self.basalNode_pushButton, 0, 1, 1, 1)
        self.lateralNode_pushButton = QtWidgets.QPushButton(self.landmarks_groupBox)
        self.lateralNode_pushButton.setMinimumSize(QtCore.QSize(0, 50))
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setWeight(75)
        font.setBold(True)
        self.lateralNode_pushButton.setFont(font)
        self.lateralNode_pushButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.lateralNode_pushButton.setAutoFillBackground(False)
        self.lateralNode_pushButton.setStyleSheet("color:navy;")
        self.lateralNode_pushButton.setCheckable(True)
        self.lateralNode_pushButton.setObjectName("lateralNode_pushButton")
        self.gridLayout.addWidget(self.lateralNode_pushButton, 1, 1, 1, 1)
        self.gridLayout_3.addWidget(self.landmarks_groupBox, 1, 0, 1, 2)
        self.verticalLayout.addWidget(self.groupBox_2)
        spacerItem = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.groupBox = QtWidgets.QGroupBox(self.controlPanel_widget)
        self.groupBox.setFlat(False)
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.outputExnode_lineEdit = QtWidgets.QLineEdit(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.outputExnode_lineEdit.setFont(font)
        self.outputExnode_lineEdit.setObjectName("outputExnode_lineEdit")
        self.gridLayout_2.addWidget(self.outputExnode_lineEdit, 0, 0, 1, 1)
        self.outputExelem_lineEdit = QtWidgets.QLineEdit(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.outputExelem_lineEdit.setFont(font)
        self.outputExelem_lineEdit.setObjectName("outputExelem_lineEdit")
        self.gridLayout_2.addWidget(self.outputExelem_lineEdit, 1, 0, 1, 1)
        self.outputExnode_pushButton = QtWidgets.QPushButton(self.groupBox)
        self.outputExnode_pushButton.setObjectName("outputExnode_pushButton")
        self.gridLayout_2.addWidget(self.outputExnode_pushButton, 0, 1, 1, 1)
        self.outputExelem_pushButton = QtWidgets.QPushButton(self.groupBox)
        self.outputExelem_pushButton.setObjectName("outputExelem_pushButton")
        self.gridLayout_2.addWidget(self.outputExelem_pushButton, 1, 1, 1, 1)
        self.save_pushButton = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.save_pushButton.sizePolicy().hasHeightForWidth())
        self.save_pushButton.setSizePolicy(sizePolicy)
        self.save_pushButton.setMinimumSize(QtCore.QSize(0, 40))
        self.save_pushButton.setObjectName("save_pushButton")
        self.gridLayout_2.addWidget(self.save_pushButton, 2, 0, 1, 2)
        self.verticalLayout.addWidget(self.groupBox)
        self.info_pushButton = QtWidgets.QPushButton(self.controlPanel_widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.info_pushButton.sizePolicy().hasHeightForWidth())
        self.info_pushButton.setSizePolicy(sizePolicy)
        self.info_pushButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.info_pushButton.setFlat(True)
        self.info_pushButton.setObjectName("info_pushButton")
        self.verticalLayout.addWidget(self.info_pushButton)
        self.horizontalLayout.addWidget(self.controlPanel_widget)
        self.sceneviewer_widget = SceneviewerWidget(View)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sceneviewer_widget.sizePolicy().hasHeightForWidth())
        self.sceneviewer_widget.setSizePolicy(sizePolicy)
        self.sceneviewer_widget.setObjectName("sceneviewer_widget")
        self.horizontalLayout.addWidget(self.sceneviewer_widget)

        self.retranslateUi(View)
        QtCore.QMetaObject.connectSlotsByName(View)
    def setupUi(self, CongregationWindow):
        CongregationWindow.setObjectName("CongregationWindow")
        CongregationWindow.resize(323, 363)
        CongregationWindow.setLayoutDirection(QtCore.Qt.LeftToRight)
        CongregationWindow.setSizeGripEnabled(True)
        CongregationWindow.setModal(False)
        self.gridLayout = QtWidgets.QGridLayout(CongregationWindow)
        self.gridLayout.setObjectName("gridLayout")
        self.list_congregation = QtWidgets.QListWidget(CongregationWindow)
        self.list_congregation.setObjectName("list_congregation")
        self.gridLayout.addWidget(self.list_congregation, 0, 0, 1, 1)
        self.frame_2 = QtWidgets.QFrame(CongregationWindow)
        self.frame_2.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.frame_2.setAutoFillBackground(False)
        self.frame_2.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Plain)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2)
        self.horizontalLayout.setContentsMargins(6, 6, -1, 6)
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.button_delete = QtWidgets.QPushButton(self.frame_2)
        self.button_delete.setObjectName("button_delete")
        self.horizontalLayout.addWidget(self.button_delete)
        self.button_add = QtWidgets.QPushButton(self.frame_2)
        self.button_add.setObjectName("button_add")
        self.horizontalLayout.addWidget(self.button_add)
        self.button_edit = QtWidgets.QPushButton(self.frame_2)
        self.button_edit.setObjectName("button_edit")
        self.horizontalLayout.addWidget(self.button_edit)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.gridLayout.addWidget(self.frame_2, 1, 0, 1, 1)
        self.frame = QtWidgets.QFrame(CongregationWindow)
        self.frame.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame.setFrameShadow(QtWidgets.QFrame.Plain)
        self.frame.setObjectName("frame")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.frame)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.button_close = QtWidgets.QPushButton(self.frame)
        self.button_close.setObjectName("button_close")
        self.gridLayout_3.addWidget(self.button_close, 0, 2, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem2, 0, 1, 1, 1)
        self.frame_3 = QtWidgets.QFrame(self.frame)
        self.frame_3.setFrameShape(QtWidgets.QFrame.Box)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.frame_3.setObjectName("frame_3")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.frame_3)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.radioAscending = QtWidgets.QRadioButton(self.frame_3)
        self.radioAscending.setToolTip("")
        self.radioAscending.setChecked(True)
        self.radioAscending.setObjectName("radioAscending")
        self.gridLayout_2.addWidget(self.radioAscending, 2, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.frame_3)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 1, 0, 1, 1)
        self.radioDistance = QtWidgets.QRadioButton(self.frame_3)
        self.radioDistance.setEnabled(False)
        self.radioDistance.setObjectName("radioDistance")
        self.gridLayout_2.addWidget(self.radioDistance, 4, 0, 1, 1)
        self.radioDesending = QtWidgets.QRadioButton(self.frame_3)
        self.radioDesending.setToolTip("")
        self.radioDesending.setObjectName("radioDesending")
        self.gridLayout_2.addWidget(self.radioDesending, 2, 1, 1, 1)
        self.gridLayout_3.addWidget(self.frame_3, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.frame, 2, 0, 1, 1)

        self.retranslateUi(CongregationWindow)
        QtCore.QObject.connect(self.button_close, QtCore.SIGNAL("clicked()"),
                               CongregationWindow.close)
        QtCore.QMetaObject.connectSlotsByName(CongregationWindow)
        CongregationWindow.setTabOrder(self.button_add, self.button_edit)
        CongregationWindow.setTabOrder(self.button_edit, self.button_delete)
        CongregationWindow.setTabOrder(self.button_delete, self.radioAscending)
        CongregationWindow.setTabOrder(self.radioAscending, self.button_close)
        CongregationWindow.setTabOrder(self.button_close,
                                       self.list_congregation)
Beispiel #26
0
    def setupUi(self, widget_contactball):
        widget_contactball.setObjectName("widget_contactball")
        widget_contactball.resize(396, 442)
        widget_contactball.setLocale(
            QtCore.QLocale(QtCore.QLocale.English,
                           QtCore.QLocale.UnitedStates))
        self.gridLayout = QtWidgets.QGridLayout(widget_contactball)
        self.gridLayout.setObjectName("gridLayout")
        self.label_7 = QtWidgets.QLabel(widget_contactball)
        self.label_7.setWordWrap(True)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 0, 0, 1, 1)
        self.frame = QtWidgets.QFrame(widget_contactball)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.formLayout = QtWidgets.QFormLayout(self.frame)
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(self.frame)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.label)
        self.sbR = QtWidgets.QDoubleSpinBox(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sbR.sizePolicy().hasHeightForWidth())
        self.sbR.setSizePolicy(sizePolicy)
        self.sbR.setDecimals(3)
        self.sbR.setMinimum(0.0)
        self.sbR.setMaximum(99999999999999.0)
        self.sbR.setObjectName("sbR")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.sbR)
        self.label_2 = QtWidgets.QLabel(self.frame)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                  self.label_2)
        self.sbK = QtWidgets.QDoubleSpinBox(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sbK.sizePolicy().hasHeightForWidth())
        self.sbK.setSizePolicy(sizePolicy)
        self.sbK.setDecimals(3)
        self.sbK.setMinimum(0.0)
        self.sbK.setMaximum(99999999999999.0)
        self.sbK.setSingleStep(100.0)
        self.sbK.setObjectName("sbK")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.sbK)
        self.gridLayout.addWidget(self.frame, 1, 0, 1, 2)
        self.label_9 = QtWidgets.QLabel(widget_contactball)
        self.label_9.setWordWrap(True)
        self.label_9.setObjectName("label_9")
        self.gridLayout.addWidget(self.label_9, 2, 0, 1, 2)
        self.lwMeshes = QtWidgets.QListWidget(widget_contactball)
        self.lwMeshes.setAcceptDrops(True)
        self.lwMeshes.setObjectName("lwMeshes")
        self.gridLayout.addWidget(self.lwMeshes, 3, 0, 1, 2)
        self.pbRemoveSelected = QtWidgets.QPushButton(widget_contactball)
        self.pbRemoveSelected.setObjectName("pbRemoveSelected")
        self.gridLayout.addWidget(self.pbRemoveSelected, 4, 1, 1, 1)

        self.retranslateUi(widget_contactball)
        QtCore.QMetaObject.connectSlotsByName(widget_contactball)
        widget_contactball.setTabOrder(self.sbR, self.sbK)
Beispiel #27
0
    def setupUi(self, DockWidget):
        DockWidget.setObjectName("DockWidget")
        DockWidget.resize(703, 632)
        self.dockWidgetContents = QtWidgets.QWidget()
        self.dockWidgetContents.setObjectName("dockWidgetContents")
        self.gridLayout = QtWidgets.QGridLayout(self.dockWidgetContents)
        self.gridLayout.setObjectName("gridLayout")
        self.textBrowser = QtWidgets.QTextBrowser(self.dockWidgetContents)
        self.textBrowser.setMinimumSize(QtCore.QSize(0, 0))
        self.textBrowser.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.textBrowser.setObjectName("textBrowser")
        self.gridLayout.addWidget(self.textBrowser, 2, 1, 1, 1)
        self.label_77 = QtWidgets.QLabel(self.dockWidgetContents)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_77.setFont(font)
        self.label_77.setObjectName("label_77")
        self.gridLayout.addWidget(self.label_77, 0, 1, 1, 1)
        self.label_78 = QtWidgets.QLabel(self.dockWidgetContents)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_78.setFont(font)
        self.label_78.setObjectName("label_78")
        self.gridLayout.addWidget(self.label_78, 0, 2, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_3.setMinimumSize(QtCore.QSize(0, 0))
        self.label_3.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
        self.label_79 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_79.setEnabled(False)
        self.label_79.setObjectName("label_79")
        self.gridLayout.addWidget(self.label_79, 1, 2, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_4.setMinimumSize(QtCore.QSize(0, 0))
        self.label_4.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_4.setFont(font)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 2, 0, 1, 1)
        self.textBrowserDis = QtWidgets.QTextBrowser(self.dockWidgetContents)
        self.textBrowserDis.setEnabled(False)
        self.textBrowserDis.setObjectName("textBrowserDis")
        self.gridLayout.addWidget(self.textBrowserDis, 2, 2, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_5.setMinimumSize(QtCore.QSize(0, 0))
        self.label_5.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_5.setFont(font)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 3, 0, 1, 1)
        self.graphicsView = QtWidgets.QGraphicsView(self.dockWidgetContents)
        self.graphicsView.setMinimumSize(QtCore.QSize(0, 0))
        self.graphicsView.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.graphicsView.setObjectName("graphicsView")
        self.gridLayout.addWidget(self.graphicsView, 3, 1, 1, 1)
        self.graphicsViewDis = QtWidgets.QGraphicsView(self.dockWidgetContents)
        self.graphicsViewDis.setEnabled(False)
        self.graphicsViewDis.setObjectName("graphicsViewDis")
        self.gridLayout.addWidget(self.graphicsViewDis, 3, 2, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_6.setMinimumSize(QtCore.QSize(0, 0))
        self.label_6.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_6.setFont(font)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 4, 0, 1, 1)
        self.calendarWidget = QtWidgets.QCalendarWidget(self.dockWidgetContents)
        self.calendarWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.calendarWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.calendarWidget.setObjectName("calendarWidget")
        self.gridLayout.addWidget(self.calendarWidget, 4, 1, 1, 1)
        self.calendarWidgetDis = QtWidgets.QCalendarWidget(self.dockWidgetContents)
        self.calendarWidgetDis.setEnabled(False)
        self.calendarWidgetDis.setObjectName("calendarWidgetDis")
        self.gridLayout.addWidget(self.calendarWidgetDis, 4, 2, 1, 1)
        self.lcdNumberDis = QtWidgets.QLCDNumber(self.dockWidgetContents)
        self.lcdNumberDis.setEnabled(False)
        self.lcdNumberDis.setObjectName("lcdNumberDis")
        self.gridLayout.addWidget(self.lcdNumberDis, 5, 2, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_7.setMinimumSize(QtCore.QSize(0, 0))
        self.label_7.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_7.setFont(font)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 5, 0, 1, 1)
        self.lcdNumber = QtWidgets.QLCDNumber(self.dockWidgetContents)
        self.lcdNumber.setMinimumSize(QtCore.QSize(0, 0))
        self.lcdNumber.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.lcdNumber.setObjectName("lcdNumber")
        self.gridLayout.addWidget(self.lcdNumber, 5, 1, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_8.setMinimumSize(QtCore.QSize(0, 0))
        self.label_8.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_8.setFont(font)
        self.label_8.setObjectName("label_8")
        self.gridLayout.addWidget(self.label_8, 6, 0, 1, 1)
        self.progressBar = QtWidgets.QProgressBar(self.dockWidgetContents)
        self.progressBar.setMinimumSize(QtCore.QSize(0, 0))
        self.progressBar.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName("progressBar")
        self.gridLayout.addWidget(self.progressBar, 6, 1, 1, 1)
        self.progressBarDis = QtWidgets.QProgressBar(self.dockWidgetContents)
        self.progressBarDis.setEnabled(False)
        self.progressBarDis.setProperty("value", 24)
        self.progressBarDis.setObjectName("progressBarDis")
        self.gridLayout.addWidget(self.progressBarDis, 6, 2, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_9.setMinimumSize(QtCore.QSize(0, 0))
        self.label_9.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_9.setFont(font)
        self.label_9.setObjectName("label_9")
        self.gridLayout.addWidget(self.label_9, 7, 0, 1, 1)
        self.lineH = QtWidgets.QFrame(self.dockWidgetContents)
        self.lineH.setMinimumSize(QtCore.QSize(0, 0))
        self.lineH.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.lineH.setFrameShape(QtWidgets.QFrame.HLine)
        self.lineH.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.lineH.setObjectName("lineH")
        self.gridLayout.addWidget(self.lineH, 7, 1, 1, 1)
        self.lineHDis = QtWidgets.QFrame(self.dockWidgetContents)
        self.lineHDis.setEnabled(False)
        self.lineHDis.setFrameShape(QtWidgets.QFrame.HLine)
        self.lineHDis.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.lineHDis.setObjectName("lineHDis")
        self.gridLayout.addWidget(self.lineHDis, 7, 2, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_10.setMinimumSize(QtCore.QSize(0, 0))
        self.label_10.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_10.setFont(font)
        self.label_10.setObjectName("label_10")
        self.gridLayout.addWidget(self.label_10, 8, 0, 1, 1)
        self.lineV = QtWidgets.QFrame(self.dockWidgetContents)
        self.lineV.setMinimumSize(QtCore.QSize(0, 50))
        self.lineV.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.lineV.setFrameShape(QtWidgets.QFrame.VLine)
        self.lineV.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.lineV.setObjectName("lineV")
        self.gridLayout.addWidget(self.lineV, 8, 1, 1, 1)
        self.lineVDis = QtWidgets.QFrame(self.dockWidgetContents)
        self.lineVDis.setEnabled(False)
        self.lineVDis.setMinimumSize(QtCore.QSize(0, 50))
        self.lineVDis.setFrameShape(QtWidgets.QFrame.VLine)
        self.lineVDis.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.lineVDis.setObjectName("lineVDis")
        self.gridLayout.addWidget(self.lineVDis, 8, 2, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 9, 0, 1, 1)
        self.label_37 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_37.setAlignment(QtCore.Qt.AlignCenter)
        self.label_37.setObjectName("label_37")
        self.gridLayout.addWidget(self.label_37, 10, 0, 1, 3)
        self.label_2 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_2.setMinimumSize(QtCore.QSize(0, 0))
        self.label_2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 1, 1, 1)
        DockWidget.setWidget(self.dockWidgetContents)

        self.retranslateUi(DockWidget)
        QtCore.QObject.connect(self.calendarWidget, QtCore.SIGNAL("currentPageChanged(int,int)"), self.calendarWidgetDis.setCurrentPage)
        QtCore.QObject.connect(self.calendarWidget, QtCore.SIGNAL("clicked(QDate)"), self.calendarWidgetDis.setSelectedDate)
        QtCore.QObject.connect(self.progressBar, QtCore.SIGNAL("valueChanged(int)"), self.progressBarDis.setValue)
        QtCore.QMetaObject.connectSlotsByName(DockWidget)
Beispiel #28
0
    def setupUi(self, onionSkinRenderer):
        onionSkinRenderer.setObjectName("onionSkinRenderer")
        onionSkinRenderer.resize(488, 684)
        self.onionSkinRenderer_mainLayout = QtWidgets.QWidget(
            onionSkinRenderer)
        self.onionSkinRenderer_mainLayout.setObjectName(
            "onionSkinRenderer_mainLayout")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(
            self.onionSkinRenderer_mainLayout)
        self.verticalLayout_3.setContentsMargins(2, 0, 2, 0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.onionSkins_grp = QtWidgets.QGroupBox(
            self.onionSkinRenderer_mainLayout)
        self.onionSkins_grp.setTitle("")
        self.onionSkins_grp.setObjectName("onionSkins_grp")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.onionSkins_grp)
        self.verticalLayout.setSpacing(8)
        self.verticalLayout.setContentsMargins(4, 9, 4, 4)
        self.verticalLayout.setObjectName("verticalLayout")
        self.main_scrollArea = QtWidgets.QScrollArea(self.onionSkins_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.main_scrollArea.sizePolicy().hasHeightForWidth())
        self.main_scrollArea.setSizePolicy(sizePolicy)
        self.main_scrollArea.setMinimumSize(QtCore.QSize(0, 150))
        self.main_scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.main_scrollArea.setFrameShadow(QtWidgets.QFrame.Plain)
        self.main_scrollArea.setLineWidth(0)
        self.main_scrollArea.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAsNeeded)
        self.main_scrollArea.setWidgetResizable(True)
        self.main_scrollArea.setAlignment(QtCore.Qt.AlignLeading
                                          | QtCore.Qt.AlignLeft
                                          | QtCore.Qt.AlignTop)
        self.main_scrollArea.setObjectName("main_scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 474, 592))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.scrollAreaWidgetContents.sizePolicy().hasHeightForWidth())
        self.scrollAreaWidgetContents.setSizePolicy(sizePolicy)
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(
            self.scrollAreaWidgetContents)
        self.verticalLayout_6.setSpacing(8)
        self.verticalLayout_6.setContentsMargins(2, -1, 2, 2)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.targetObjects_grp = QtWidgets.QGroupBox(
            self.scrollAreaWidgetContents)
        self.targetObjects_grp.setAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignTop)
        self.targetObjects_grp.setFlat(True)
        self.targetObjects_grp.setCheckable(True)
        self.targetObjects_grp.setObjectName("targetObjects_grp")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.targetObjects_grp)
        self.horizontalLayout.setContentsMargins(-1, 9, -1, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.targetObjects_list = QtWidgets.QListWidget(self.targetObjects_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.targetObjects_list.sizePolicy().hasHeightForWidth())
        self.targetObjects_list.setSizePolicy(sizePolicy)
        self.targetObjects_list.setBaseSize(QtCore.QSize(2, 1))
        self.targetObjects_list.setFrameShadow(QtWidgets.QFrame.Plain)
        self.targetObjects_list.setSelectionMode(
            QtWidgets.QAbstractItemView.NoSelection)
        self.targetObjects_list.setObjectName("targetObjects_list")
        self.horizontalLayout.addWidget(self.targetObjects_list)
        self.targetObjects_btn_layout = QtWidgets.QVBoxLayout()
        self.targetObjects_btn_layout.setObjectName("targetObjects_btn_layout")
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.targetObjects_btn_layout.addItem(spacerItem)
        self.targetObjects_add_btn = QtWidgets.QPushButton(
            self.targetObjects_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.targetObjects_add_btn.sizePolicy().hasHeightForWidth())
        self.targetObjects_add_btn.setSizePolicy(sizePolicy)
        self.targetObjects_add_btn.setMinimumSize(QtCore.QSize(0, 0))
        self.targetObjects_add_btn.setObjectName("targetObjects_add_btn")
        self.targetObjects_btn_layout.addWidget(self.targetObjects_add_btn)
        self.targetObjects_remove_btn = QtWidgets.QPushButton(
            self.targetObjects_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.targetObjects_remove_btn.sizePolicy().hasHeightForWidth())
        self.targetObjects_remove_btn.setSizePolicy(sizePolicy)
        self.targetObjects_remove_btn.setMinimumSize(QtCore.QSize(0, 0))
        self.targetObjects_remove_btn.setObjectName("targetObjects_remove_btn")
        self.targetObjects_btn_layout.addWidget(self.targetObjects_remove_btn)
        self.targetObjects_clear_btn = QtWidgets.QPushButton(
            self.targetObjects_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.targetObjects_clear_btn.sizePolicy().hasHeightForWidth())
        self.targetObjects_clear_btn.setSizePolicy(sizePolicy)
        self.targetObjects_clear_btn.setMinimumSize(QtCore.QSize(0, 0))
        self.targetObjects_clear_btn.setObjectName("targetObjects_clear_btn")
        self.targetObjects_btn_layout.addWidget(self.targetObjects_clear_btn)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.targetObjects_btn_layout.addItem(spacerItem1)
        self.horizontalLayout.addLayout(self.targetObjects_btn_layout)
        self.verticalLayout_6.addWidget(self.targetObjects_grp)
        self.onionSkinFrames_grp = QtWidgets.QGroupBox(
            self.scrollAreaWidgetContents)
        self.onionSkinFrames_grp.setMaximumSize(
            QtCore.QSize(16777215, 16777215))
        self.onionSkinFrames_grp.setAlignment(QtCore.Qt.AlignLeading
                                              | QtCore.Qt.AlignLeft
                                              | QtCore.Qt.AlignTop)
        self.onionSkinFrames_grp.setFlat(True)
        self.onionSkinFrames_grp.setCheckable(True)
        self.onionSkinFrames_grp.setChecked(True)
        self.onionSkinFrames_grp.setObjectName("onionSkinFrames_grp")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.onionSkinFrames_grp)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.relative_step_layout = QtWidgets.QHBoxLayout()
        self.relative_step_layout.setContentsMargins(5, -1, 5, -1)
        self.relative_step_layout.setObjectName("relative_step_layout")
        self.relative_step_label = QtWidgets.QLabel(self.onionSkinFrames_grp)
        self.relative_step_label.setAlignment(QtCore.Qt.AlignRight
                                              | QtCore.Qt.AlignTrailing
                                              | QtCore.Qt.AlignVCenter)
        self.relative_step_label.setObjectName("relative_step_label")
        self.relative_step_layout.addWidget(self.relative_step_label)
        self.relative_step_spinBox = QtWidgets.QSpinBox(
            self.onionSkinFrames_grp)
        self.relative_step_spinBox.setMinimum(1)
        self.relative_step_spinBox.setObjectName("relative_step_spinBox")
        self.relative_step_layout.addWidget(self.relative_step_spinBox)
        self.gridLayout.addLayout(self.relative_step_layout, 3, 0, 1, 1)
        self.relative_frame = QtWidgets.QFrame(self.onionSkinFrames_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.relative_frame.sizePolicy().hasHeightForWidth())
        self.relative_frame.setSizePolicy(sizePolicy)
        self.relative_frame.setMinimumSize(QtCore.QSize(200, 0))
        self.relative_frame.setMaximumSize(QtCore.QSize(100000, 16777215))
        self.relative_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.relative_frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.relative_frame.setObjectName("relative_frame")
        self.relative_frame_layout = QtWidgets.QVBoxLayout(self.relative_frame)
        self.relative_frame_layout.setSpacing(3)
        self.relative_frame_layout.setContentsMargins(0, 4, 4, 4)
        self.relative_frame_layout.setObjectName("relative_frame_layout")
        self.gridLayout.addWidget(self.relative_frame, 1, 0, 1, 1)
        self.relative_label = QtWidgets.QLabel(self.onionSkinFrames_grp)
        self.relative_label.setObjectName("relative_label")
        self.gridLayout.addWidget(self.relative_label, 0, 0, 1, 1)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setContentsMargins(5, -1, 5, -1)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_4 = QtWidgets.QLabel(self.onionSkinFrames_grp)
        self.label_4.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_5.addWidget(self.label_4)
        self.relative_keyframes_chkbx = QtWidgets.QCheckBox(
            self.onionSkinFrames_grp)
        self.relative_keyframes_chkbx.setText("")
        self.relative_keyframes_chkbx.setChecked(True)
        self.relative_keyframes_chkbx.setObjectName("relative_keyframes_chkbx")
        self.horizontalLayout_5.addWidget(self.relative_keyframes_chkbx)
        self.gridLayout.addLayout(self.horizontalLayout_5, 2, 0, 1, 1)
        self.absolute_label = QtWidgets.QLabel(self.onionSkinFrames_grp)
        self.absolute_label.setObjectName("absolute_label")
        self.gridLayout.addWidget(self.absolute_label, 0, 1, 1, 1)
        self.absolute_frame = QtWidgets.QFrame(self.onionSkinFrames_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.absolute_frame.sizePolicy().hasHeightForWidth())
        self.absolute_frame.setSizePolicy(sizePolicy)
        self.absolute_frame.setMinimumSize(QtCore.QSize(200, 0))
        self.absolute_frame.setMaximumSize(QtCore.QSize(10000, 16777215))
        self.absolute_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.absolute_frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.absolute_frame.setObjectName("absolute_frame")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.absolute_frame)
        self.verticalLayout_2.setSpacing(3)
        self.verticalLayout_2.setContentsMargins(4, 4, 4, 4)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.absolute_list = QtWidgets.QListWidget(self.absolute_frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.absolute_list.sizePolicy().hasHeightForWidth())
        self.absolute_list.setSizePolicy(sizePolicy)
        self.absolute_list.setSelectionMode(
            QtWidgets.QAbstractItemView.NoSelection)
        self.absolute_list.setObjectName("absolute_list")
        self.verticalLayout_2.addWidget(self.absolute_list)
        self.gridLayout.addWidget(self.absolute_frame, 1, 1, 1, 1)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.absolute_add_btn = QtWidgets.QPushButton(self.onionSkinFrames_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.absolute_add_btn.sizePolicy().hasHeightForWidth())
        self.absolute_add_btn.setSizePolicy(sizePolicy)
        self.absolute_add_btn.setObjectName("absolute_add_btn")
        self.horizontalLayout_3.addWidget(self.absolute_add_btn)
        self.absolute_add_spinBox = QtWidgets.QSpinBox(
            self.onionSkinFrames_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.absolute_add_spinBox.sizePolicy().hasHeightForWidth())
        self.absolute_add_spinBox.setSizePolicy(sizePolicy)
        self.absolute_add_spinBox.setMinimum(-100000)
        self.absolute_add_spinBox.setMaximum(100000)
        self.absolute_add_spinBox.setObjectName("absolute_add_spinBox")
        self.horizontalLayout_3.addWidget(self.absolute_add_spinBox)
        self.gridLayout.addLayout(self.horizontalLayout_3, 2, 1, 1, 1)
        self.absolute_add_layout = QtWidgets.QHBoxLayout()
        self.absolute_add_layout.setObjectName("absolute_add_layout")
        self.absolute_addCrnt_btn = QtWidgets.QPushButton(
            self.onionSkinFrames_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.absolute_addCrnt_btn.sizePolicy().hasHeightForWidth())
        self.absolute_addCrnt_btn.setSizePolicy(sizePolicy)
        self.absolute_addCrnt_btn.setMinimumSize(QtCore.QSize(0, 0))
        self.absolute_addCrnt_btn.setObjectName("absolute_addCrnt_btn")
        self.absolute_add_layout.addWidget(self.absolute_addCrnt_btn)
        self.absolute_clear_btn = QtWidgets.QPushButton(
            self.onionSkinFrames_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.absolute_clear_btn.sizePolicy().hasHeightForWidth())
        self.absolute_clear_btn.setSizePolicy(sizePolicy)
        self.absolute_clear_btn.setObjectName("absolute_clear_btn")
        self.absolute_add_layout.addWidget(self.absolute_clear_btn)
        self.gridLayout.addLayout(self.absolute_add_layout, 3, 1, 1, 1)
        self.verticalLayout_4.addLayout(self.gridLayout)
        self.verticalLayout_6.addWidget(self.onionSkinFrames_grp)
        self.onionSkinSettings_grp = QtWidgets.QGroupBox(
            self.scrollAreaWidgetContents)
        self.onionSkinSettings_grp.setAlignment(QtCore.Qt.AlignLeading
                                                | QtCore.Qt.AlignLeft
                                                | QtCore.Qt.AlignTop)
        self.onionSkinSettings_grp.setFlat(True)
        self.onionSkinSettings_grp.setCheckable(True)
        self.onionSkinSettings_grp.setObjectName("onionSkinSettings_grp")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(
            self.onionSkinSettings_grp)
        self.verticalLayout_5.setContentsMargins(9, -1, -1, -1)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label = QtWidgets.QLabel(self.onionSkinSettings_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setMinimumSize(QtCore.QSize(90, 20))
        self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                                | QtCore.Qt.AlignVCenter)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 4, 0, 1, 1)
        self.relative_tint_strength_slider = QtWidgets.QSlider(
            self.onionSkinSettings_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.relative_tint_strength_slider.
                                     sizePolicy().hasHeightForWidth())
        self.relative_tint_strength_slider.setSizePolicy(sizePolicy)
        self.relative_tint_strength_slider.setMinimumSize(QtCore.QSize(200, 0))
        self.relative_tint_strength_slider.setStyleSheet(
            "QSlider{\n"
            "border: 1px solid rgb(20, 20, 20);\n"
            "margin: 2px;\n"
            "background: rgb(150, 150, 150);\n"
            "height: 15px;\n"
            "}\n"
            "QSlider::handle{\n"
            "height: 4px;\n"
            "background: rgb(50, 50, 50);\n"
            "border: 1px solid rgb(20, 20, 20);\n"
            "margin: -2px -2px;\n"
            "}\n"
            "QSlider::groove{\n"
            "background: grey;\n"
            "}\n"
            "QSlider::sub-page{\n"
            "background: rgb(75, 75, 75);\n"
            "}\n"
            "QSlider::add-page{\n"
            "background: rgb(150, 150, 150);\n"
            "}")
        self.relative_tint_strength_slider.setMaximum(100)
        self.relative_tint_strength_slider.setProperty("value", 100)
        self.relative_tint_strength_slider.setOrientation(QtCore.Qt.Horizontal)
        self.relative_tint_strength_slider.setObjectName(
            "relative_tint_strength_slider")
        self.gridLayout_2.addWidget(self.relative_tint_strength_slider, 3, 1,
                                    1, 1)
        self.globalOpacity_slider = QtWidgets.QSlider(
            self.onionSkinSettings_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.globalOpacity_slider.sizePolicy().hasHeightForWidth())
        self.globalOpacity_slider.setSizePolicy(sizePolicy)
        self.globalOpacity_slider.setMinimumSize(QtCore.QSize(200, 0))
        self.globalOpacity_slider.setStyleSheet(
            "QSlider{\n"
            "border: 1px solid rgb(20, 20, 20);\n"
            "margin: 2px;\n"
            "background: rgb(150, 150, 150);\n"
            "height: 15px;\n"
            "}\n"
            "QSlider::handle{\n"
            "height: 4px;\n"
            "background: rgb(50, 50, 50);\n"
            "border: 1px solid rgb(20, 20, 20);\n"
            "margin: -2px -2px;\n"
            "}\n"
            "QSlider::groove{\n"
            "background: grey;\n"
            "}\n"
            "QSlider::sub-page{\n"
            "background: rgb(75, 75, 75);\n"
            "}\n"
            "QSlider::add-page{\n"
            "background: rgb(150, 150, 150);\n"
            "}")
        self.globalOpacity_slider.setMaximum(100)
        self.globalOpacity_slider.setProperty("value", 100)
        self.globalOpacity_slider.setOrientation(QtCore.Qt.Horizontal)
        self.globalOpacity_slider.setObjectName("globalOpacity_slider")
        self.gridLayout_2.addWidget(self.globalOpacity_slider, 2, 1, 1, 1)
        self.globalOpacity_label = QtWidgets.QLabel(self.onionSkinSettings_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.globalOpacity_label.sizePolicy().hasHeightForWidth())
        self.globalOpacity_label.setSizePolicy(sizePolicy)
        self.globalOpacity_label.setMinimumSize(QtCore.QSize(90, 20))
        self.globalOpacity_label.setAlignment(QtCore.Qt.AlignRight
                                              | QtCore.Qt.AlignTrailing
                                              | QtCore.Qt.AlignVCenter)
        self.globalOpacity_label.setObjectName("globalOpacity_label")
        self.gridLayout_2.addWidget(self.globalOpacity_label, 2, 0, 1, 1)
        self.onionType_cBox = QtWidgets.QComboBox(self.onionSkinSettings_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.onionType_cBox.sizePolicy().hasHeightForWidth())
        self.onionType_cBox.setSizePolicy(sizePolicy)
        self.onionType_cBox.setMinimumSize(QtCore.QSize(80, 0))
        self.onionType_cBox.setObjectName("onionType_cBox")
        self.onionType_cBox.addItem("")
        self.onionType_cBox.addItem("")
        self.onionType_cBox.addItem("")
        self.gridLayout_2.addWidget(self.onionType_cBox, 0, 1, 1, 1)
        self.relative_tint_strength_label = QtWidgets.QLabel(
            self.onionSkinSettings_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.relative_tint_strength_label.sizePolicy().hasHeightForWidth())
        self.relative_tint_strength_label.setSizePolicy(sizePolicy)
        self.relative_tint_strength_label.setMinimumSize(QtCore.QSize(90, 20))
        self.relative_tint_strength_label.setAlignment(
            QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
            | QtCore.Qt.AlignVCenter)
        self.relative_tint_strength_label.setObjectName(
            "relative_tint_strength_label")
        self.gridLayout_2.addWidget(self.relative_tint_strength_label, 3, 0, 1,
                                    1)
        self.tint_type_cBox = QtWidgets.QComboBox(self.onionSkinSettings_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tint_type_cBox.sizePolicy().hasHeightForWidth())
        self.tint_type_cBox.setSizePolicy(sizePolicy)
        self.tint_type_cBox.setMinimumSize(QtCore.QSize(80, 0))
        self.tint_type_cBox.setObjectName("tint_type_cBox")
        self.tint_type_cBox.addItem("")
        self.tint_type_cBox.addItem("")
        self.tint_type_cBox.addItem("")
        self.gridLayout_2.addWidget(self.tint_type_cBox, 4, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.onionSkinSettings_grp)
        self.label_5.setMinimumSize(QtCore.QSize(0, 20))
        self.label_5.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 1)
        self.onionType_label = QtWidgets.QLabel(self.onionSkinSettings_grp)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.onionType_label.sizePolicy().hasHeightForWidth())
        self.onionType_label.setSizePolicy(sizePolicy)
        self.onionType_label.setMinimumSize(QtCore.QSize(90, 20))
        self.onionType_label.setAlignment(QtCore.Qt.AlignRight
                                          | QtCore.Qt.AlignTrailing
                                          | QtCore.Qt.AlignVCenter)
        self.onionType_label.setObjectName("onionType_label")
        self.gridLayout_2.addWidget(self.onionType_label, 0, 0, 1, 1)
        self.drawBehind_chkBx = QtWidgets.QCheckBox(self.onionSkinSettings_grp)
        self.drawBehind_chkBx.setText("")
        self.drawBehind_chkBx.setChecked(True)
        self.drawBehind_chkBx.setObjectName("drawBehind_chkBx")
        self.gridLayout_2.addWidget(self.drawBehind_chkBx, 1, 1, 1, 1)
        self.constant_col_widget = QtWidgets.QWidget(
            self.onionSkinSettings_grp)
        self.constant_col_widget.setObjectName("constant_col_widget")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(
            self.constant_col_widget)
        self.horizontalLayout_2.setContentsMargins(1, 1, 1, 1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.relative_pastTint_btn = QtWidgets.QPushButton(
            self.constant_col_widget)
        self.relative_pastTint_btn.setStyleSheet(
            "background-color:rgb(255, 26, 75)")
        self.relative_pastTint_btn.setObjectName("relative_pastTint_btn")
        self.horizontalLayout_2.addWidget(self.relative_pastTint_btn)
        self.relative_futureTint_btn = QtWidgets.QPushButton(
            self.constant_col_widget)
        self.relative_futureTint_btn.setStyleSheet(
            "background-color: rgb(20, 255, 114)")
        self.relative_futureTint_btn.setObjectName("relative_futureTint_btn")
        self.horizontalLayout_2.addWidget(self.relative_futureTint_btn)
        self.absolute_tint_btn = QtWidgets.QPushButton(
            self.constant_col_widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.absolute_tint_btn.sizePolicy().hasHeightForWidth())
        self.absolute_tint_btn.setSizePolicy(sizePolicy)
        self.absolute_tint_btn.setMinimumSize(QtCore.QSize(0, 0))
        self.absolute_tint_btn.setStyleSheet("background:rgb(200, 200, 50)")
        self.absolute_tint_btn.setObjectName("absolute_tint_btn")
        self.horizontalLayout_2.addWidget(self.absolute_tint_btn)
        self.gridLayout_2.addWidget(self.constant_col_widget, 5, 1, 1, 1)
        self.verticalLayout_5.addLayout(self.gridLayout_2)
        self.verticalLayout_6.addWidget(self.onionSkinSettings_grp)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_6.addItem(spacerItem2)
        self.main_scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout.addWidget(self.main_scrollArea)
        self.verticalLayout_3.addWidget(self.onionSkins_grp)
        self.toggleRenderer_btn = QtWidgets.QPushButton(
            self.onionSkinRenderer_mainLayout)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.toggleRenderer_btn.sizePolicy().hasHeightForWidth())
        self.toggleRenderer_btn.setSizePolicy(sizePolicy)
        self.toggleRenderer_btn.setMinimumSize(QtCore.QSize(40, 30))
        self.toggleRenderer_btn.setObjectName("toggleRenderer_btn")
        self.verticalLayout_3.addWidget(self.toggleRenderer_btn)
        onionSkinRenderer.setCentralWidget(self.onionSkinRenderer_mainLayout)
        self.onionSkinRenderer_menubar = QtWidgets.QMenuBar(onionSkinRenderer)
        self.onionSkinRenderer_menubar.setGeometry(QtCore.QRect(0, 0, 488, 21))
        self.onionSkinRenderer_menubar.setObjectName(
            "onionSkinRenderer_menubar")
        self.menubar_settings = QtWidgets.QMenu(self.onionSkinRenderer_menubar)
        self.menubar_settings.setObjectName("menubar_settings")
        onionSkinRenderer.setMenuBar(self.onionSkinRenderer_menubar)
        self.statusbar = QtWidgets.QStatusBar(onionSkinRenderer)
        self.statusbar.setObjectName("statusbar")
        onionSkinRenderer.setStatusBar(self.statusbar)
        self.settings_clearBuffer = QtWidgets.QAction(onionSkinRenderer)
        self.settings_clearBuffer.setCheckable(False)
        self.settings_clearBuffer.setObjectName("settings_clearBuffer")
        self.settings_autoClearBuffer = QtWidgets.QAction(onionSkinRenderer)
        self.settings_autoClearBuffer.setCheckable(True)
        self.settings_autoClearBuffer.setChecked(True)
        self.settings_autoClearBuffer.setObjectName("settings_autoClearBuffer")
        self.settings_preferences = QtWidgets.QAction(onionSkinRenderer)
        self.settings_preferences.setObjectName("settings_preferences")
        self.settings_saveSettings = QtWidgets.QAction(onionSkinRenderer)
        self.settings_saveSettings.setObjectName("settings_saveSettings")
        self.menubar_settings.addAction(self.settings_clearBuffer)
        self.menubar_settings.addAction(self.settings_autoClearBuffer)
        self.menubar_settings.addAction(self.settings_preferences)
        self.menubar_settings.addAction(self.settings_saveSettings)
        self.onionSkinRenderer_menubar.addAction(
            self.menubar_settings.menuAction())

        self.retranslateUi(onionSkinRenderer)
        self.onionType_cBox.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(onionSkinRenderer)
Beispiel #29
0
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(419, 509)
        self.verticalLayout = QtWidgets.QVBoxLayout(Form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBox_3 = QtWidgets.QGroupBox(Form)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.ikNb_label = QtWidgets.QLabel(self.groupBox_3)
        self.ikNb_label.setObjectName("ikNb_label")
        self.horizontalLayout_2.addWidget(self.ikNb_label)
        self.ikNb_spinBox = QtWidgets.QSpinBox(self.groupBox_3)
        self.ikNb_spinBox.setMinimum(2)
        self.ikNb_spinBox.setMaximum(999)
        self.ikNb_spinBox.setProperty("value", 5)
        self.ikNb_spinBox.setObjectName("ikNb_spinBox")
        self.horizontalLayout_2.addWidget(self.ikNb_spinBox)
        self.gridLayout_4.addLayout(self.horizontalLayout_2, 0, 0, 1, 1)
        self.verticalLayout.addWidget(self.groupBox_3)
        self.overrideNegate_checkBox = QtWidgets.QCheckBox(Form)
        self.overrideNegate_checkBox.setText(
            "Override Negate Axis Direction For \"R\" Side")
        self.overrideNegate_checkBox.setObjectName("overrideNegate_checkBox")
        self.verticalLayout.addWidget(self.overrideNegate_checkBox)
        self.addJoints_checkBox = QtWidgets.QCheckBox(Form)
        self.addJoints_checkBox.setText("Add Joints")
        self.addJoints_checkBox.setChecked(True)
        self.addJoints_checkBox.setObjectName("addJoints_checkBox")
        self.verticalLayout.addWidget(self.addJoints_checkBox)
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.softness_label = QtWidgets.QLabel(Form)
        self.softness_label.setObjectName("softness_label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.softness_label)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.softness_slider = QtWidgets.QSlider(Form)
        self.softness_slider.setMinimumSize(QtCore.QSize(0, 15))
        self.softness_slider.setMaximum(100)
        self.softness_slider.setOrientation(QtCore.Qt.Horizontal)
        self.softness_slider.setObjectName("softness_slider")
        self.horizontalLayout_3.addWidget(self.softness_slider)
        self.softness_spinBox = QtWidgets.QSpinBox(Form)
        self.softness_spinBox.setMaximum(100)
        self.softness_spinBox.setObjectName("softness_spinBox")
        self.horizontalLayout_3.addWidget(self.softness_spinBox)
        self.formLayout.setLayout(0, QtWidgets.QFormLayout.FieldRole,
                                  self.horizontalLayout_3)
        self.softness_label_2 = QtWidgets.QLabel(Form)
        self.softness_label_2.setObjectName("softness_label_2")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                  self.softness_label_2)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.position_slider = QtWidgets.QSlider(Form)
        self.position_slider.setMinimumSize(QtCore.QSize(0, 15))
        self.position_slider.setMaximum(100)
        self.position_slider.setOrientation(QtCore.Qt.Horizontal)
        self.position_slider.setObjectName("position_slider")
        self.horizontalLayout_4.addWidget(self.position_slider)
        self.position_spinBox = QtWidgets.QSpinBox(Form)
        self.position_spinBox.setMaximum(100)
        self.position_spinBox.setObjectName("position_spinBox")
        self.horizontalLayout_4.addWidget(self.position_spinBox)
        self.formLayout.setLayout(1, QtWidgets.QFormLayout.FieldRole,
                                  self.horizontalLayout_4)
        self.maxStretch_label = QtWidgets.QLabel(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.maxStretch_label.sizePolicy().hasHeightForWidth())
        self.maxStretch_label.setSizePolicy(sizePolicy)
        self.maxStretch_label.setObjectName("maxStretch_label")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole,
                                  self.maxStretch_label)
        self.maxStretch_spinBox = QtWidgets.QDoubleSpinBox(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.maxStretch_spinBox.sizePolicy().hasHeightForWidth())
        self.maxStretch_spinBox.setSizePolicy(sizePolicy)
        self.maxStretch_spinBox.setMinimum(1.0)
        self.maxStretch_spinBox.setSingleStep(0.1)
        self.maxStretch_spinBox.setProperty("value", 1.0)
        self.maxStretch_spinBox.setObjectName("maxStretch_spinBox")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole,
                                  self.maxStretch_spinBox)
        self.maxSquash_label = QtWidgets.QLabel(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.maxSquash_label.sizePolicy().hasHeightForWidth())
        self.maxSquash_label.setSizePolicy(sizePolicy)
        self.maxSquash_label.setObjectName("maxSquash_label")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole,
                                  self.maxSquash_label)
        self.maxSquash_spinBox = QtWidgets.QDoubleSpinBox(Form)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.maxSquash_spinBox.sizePolicy().hasHeightForWidth())
        self.maxSquash_spinBox.setSizePolicy(sizePolicy)
        self.maxSquash_spinBox.setMinimum(0.1)
        self.maxSquash_spinBox.setMaximum(1.0)
        self.maxSquash_spinBox.setSingleStep(0.1)
        self.maxSquash_spinBox.setProperty("value", 1.0)
        self.maxSquash_spinBox.setObjectName("maxSquash_spinBox")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole,
                                  self.maxSquash_spinBox)
        self.verticalLayout.addLayout(self.formLayout)
        self.groupBox_4 = QtWidgets.QGroupBox(Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_4.sizePolicy().hasHeightForWidth())
        self.groupBox_4.setSizePolicy(sizePolicy)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label = QtWidgets.QLabel(self.groupBox_4)
        self.label.setObjectName("label")
        self.horizontalLayout_5.addWidget(self.label)
        self.masterLocal_lineEdit = QtWidgets.QLineEdit(self.groupBox_4)
        self.masterLocal_lineEdit.setObjectName("masterLocal_lineEdit")
        self.horizontalLayout_5.addWidget(self.masterLocal_lineEdit)
        self.masterLocal_pushButton = QtWidgets.QPushButton(self.groupBox_4)
        self.masterLocal_pushButton.setObjectName("masterLocal_pushButton")
        self.horizontalLayout_5.addWidget(self.masterLocal_pushButton)
        self.gridLayout_5.addLayout(self.horizontalLayout_5, 0, 0, 1, 1)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.label_3 = QtWidgets.QLabel(self.groupBox_4)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_6.addWidget(self.label_3)
        self.masterGlobal_lineEdit = QtWidgets.QLineEdit(self.groupBox_4)
        self.masterGlobal_lineEdit.setObjectName("masterGlobal_lineEdit")
        self.horizontalLayout_6.addWidget(self.masterGlobal_lineEdit)
        self.masterGlobal_pushButton = QtWidgets.QPushButton(self.groupBox_4)
        self.masterGlobal_pushButton.setObjectName("masterGlobal_pushButton")
        self.horizontalLayout_6.addWidget(self.masterGlobal_pushButton)
        self.gridLayout_5.addLayout(self.horizontalLayout_6, 1, 0, 1, 1)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.jntNb_label_3 = QtWidgets.QLabel(self.groupBox_4)
        self.jntNb_label_3.setObjectName("jntNb_label_3")
        self.horizontalLayout_7.addWidget(self.jntNb_label_3)
        self.cnxOffset_spinBox = QtWidgets.QSpinBox(self.groupBox_4)
        self.cnxOffset_spinBox.setMinimum(0)
        self.cnxOffset_spinBox.setMaximum(9999)
        self.cnxOffset_spinBox.setProperty("value", 0)
        self.cnxOffset_spinBox.setObjectName("cnxOffset_spinBox")
        self.horizontalLayout_7.addWidget(self.cnxOffset_spinBox)
        self.gridLayout_5.addLayout(self.horizontalLayout_7, 2, 0, 1, 1)
        self.isGlobalMaster_checkBox = QtWidgets.QCheckBox(self.groupBox_4)
        self.isGlobalMaster_checkBox.setText(
            "Only IK Global Master (No FK ctl and Joints)")
        self.isGlobalMaster_checkBox.setChecked(False)
        self.isGlobalMaster_checkBox.setObjectName("isGlobalMaster_checkBox")
        self.gridLayout_5.addWidget(self.isGlobalMaster_checkBox, 3, 0, 1, 1)
        self.isBoundFkToCurve_checkBox = QtWidgets.QCheckBox(self.groupBox_4)
        self.isBoundFkToCurve_checkBox.setText(
            "Bound each FK controllers the curve")
        self.isBoundFkToCurve_checkBox.setChecked(True)
        self.isBoundFkToCurve_checkBox.setObjectName(
            "isBoundFkToCurve_checkBox")
        self.gridLayout_5.addWidget(self.isBoundFkToCurve_checkBox, 4, 0, 1, 1)
        self.isSplitHip_checkBox = QtWidgets.QCheckBox(self.groupBox_4)
        self.isSplitHip_checkBox.setText("Split Hip Fk control from others.")
        self.isSplitHip_checkBox.setChecked(True)
        self.isSplitHip_checkBox.setObjectName("isSplitHip_checkBox")
        self.gridLayout_5.addWidget(self.isSplitHip_checkBox, 5, 0, 1, 1)
        self.verticalLayout.addWidget(self.groupBox_4)
        self.ikProfile_pushButton = QtWidgets.QPushButton(Form)
        self.ikProfile_pushButton.setObjectName("ikProfile_pushButton")
        self.verticalLayout.addWidget(self.ikProfile_pushButton)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
    def __init__(self, parent=None):
        super().__init__(parent)
        self.setTitle("Generator settings")
        self.setSubTitle("\nOptions affecting the generation of the game.")
        self.setPixmap(
            QtWidgets.QWizard.LogoPixmap,
            QtGui.QPixmap("./resources/ui/wizard/logo1.png"),
        )

        # Campaign settings
        generatorSettingsGroup = QtWidgets.QGroupBox("Generator Settings")
        no_carrier = QtWidgets.QCheckBox()
        self.registerField("no_carrier", no_carrier)
        no_lha = QtWidgets.QCheckBox()
        self.registerField("no_lha", no_lha)
        supercarrier = QtWidgets.QCheckBox()
        self.registerField("supercarrier", supercarrier)
        no_player_navy = QtWidgets.QCheckBox()
        self.registerField("no_player_navy", no_player_navy)
        no_enemy_navy = QtWidgets.QCheckBox()
        self.registerField("no_enemy_navy", no_enemy_navy)
        desired_player_mission_duration = TimeInputs(
            "Desired mission duration", DEFAULT_MISSION_LENGTH)
        self.registerField("desired_player_mission_duration",
                           desired_player_mission_duration.spinner)

        generatorLayout = QtWidgets.QGridLayout()
        generatorLayout.addWidget(QtWidgets.QLabel("No Aircraft Carriers"), 1,
                                  0)
        generatorLayout.addWidget(no_carrier, 1, 1)
        generatorLayout.addWidget(QtWidgets.QLabel("No LHA"), 2, 0)
        generatorLayout.addWidget(no_lha, 2, 1)
        generatorLayout.addWidget(QtWidgets.QLabel("Use Supercarrier module"),
                                  3, 0)
        generatorLayout.addWidget(supercarrier, 3, 1)
        generatorLayout.addWidget(QtWidgets.QLabel("No Player Navy"), 4, 0)
        generatorLayout.addWidget(no_player_navy, 4, 1)
        generatorLayout.addWidget(QtWidgets.QLabel("No Enemy Navy"), 5, 0)
        generatorLayout.addWidget(no_enemy_navy, 5, 1)
        generatorLayout.addLayout(desired_player_mission_duration, 6, 0)
        generatorSettingsGroup.setLayout(generatorLayout)

        modSettingsGroup = QtWidgets.QGroupBox("Mod Settings")
        a4_skyhawk = QtWidgets.QCheckBox()
        self.registerField("a4_skyhawk", a4_skyhawk)
        hercules = QtWidgets.QCheckBox()
        self.registerField("hercules", hercules)
        f22_raptor = QtWidgets.QCheckBox()
        self.registerField("f22_raptor", f22_raptor)
        jas39_gripen = QtWidgets.QCheckBox()
        self.registerField("jas39_gripen", jas39_gripen)
        su57_felon = QtWidgets.QCheckBox()
        self.registerField("su57_felon", su57_felon)
        frenchpack = QtWidgets.QCheckBox()
        self.registerField("frenchpack", frenchpack)
        high_digit_sams = QtWidgets.QCheckBox()
        self.registerField("high_digit_sams", high_digit_sams)

        modHelpText = QtWidgets.QLabel(
            "<p>Select the mods you have installed. If your chosen factions support them, you'll be able to use these mods in your campaign.</p>"
        )
        modHelpText.setAlignment(Qt.AlignCenter)

        modLayout = QtWidgets.QGridLayout()
        modLayout.addWidget(QtWidgets.QLabel("A-4E Skyhawk"), 1, 0)
        modLayout.addWidget(a4_skyhawk, 1, 1)
        modLayout.addWidget(QtWidgets.QLabel("F-22A Raptor"), 2, 0)
        modLayout.addWidget(f22_raptor, 2, 1)
        modLayout.addWidget(QtWidgets.QLabel("C-130J-30 Super Hercules"), 3, 0)
        modLayout.addWidget(hercules, 3, 1)
        modLayout.addWidget(QtWidgets.QLabel("JAS 39 Gripen"), 4, 0)
        modLayout.addWidget(jas39_gripen, 4, 1)
        modLayout.addWidget(QtWidgets.QLabel("Su-57 Felon"), 5, 0)
        modLayout.addWidget(su57_felon, 5, 1)
        modLayout.addWidget(QtWidgets.QLabel("Frenchpack"), 6, 0)
        modLayout.addWidget(frenchpack, 6, 1)
        modLayout.addWidget(QtWidgets.QLabel("High Digit SAMs"), 7, 0)
        modLayout.addWidget(high_digit_sams, 7, 1)
        modSettingsGroup.setLayout(modLayout)

        mlayout = QVBoxLayout()
        mlayout.addWidget(generatorSettingsGroup)
        mlayout.addWidget(modSettingsGroup)
        mlayout.addWidget(modHelpText)
        self.setLayout(mlayout)