Beispiel #1
0
    def setupUi(self, ImportCsvDialog):
        ImportCsvDialog.setObjectName("ImportCsvDialog")
        ImportCsvDialog.resize(620, 360)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("../ico/appicon.png"), QtGui.QIcon.Normal,
                       QtGui.QIcon.Off)
        ImportCsvDialog.setWindowIcon(icon)
        self.verticalLayout = QtWidgets.QVBoxLayout(ImportCsvDialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.comboBox_format = QtWidgets.QComboBox(ImportCsvDialog)
        self.comboBox_format.setFocusPolicy(QtCore.Qt.ClickFocus)
        self.comboBox_format.setObjectName("comboBox_format")
        self.comboBox_format.addItem("")
        self.comboBox_format.addItem("")
        self.comboBox_format.addItem("")
        self.comboBox_format.addItem("")
        self.comboBox_format.addItem("")
        self.comboBox_format.addItem("")
        self.comboBox_format.addItem("")
        self.comboBox_format.addItem("")
        self.gridLayout.addWidget(self.comboBox_format, 1, 1, 1, 1)
        self.lineEdit_tableName = QtWidgets.QLineEdit(ImportCsvDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_tableName.sizePolicy().hasHeightForWidth())
        self.lineEdit_tableName.setSizePolicy(sizePolicy)
        self.lineEdit_tableName.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.lineEdit_tableName.setAcceptDrops(False)
        self.lineEdit_tableName.setObjectName("lineEdit_tableName")
        self.gridLayout.addWidget(self.lineEdit_tableName, 1, 0, 1, 1)
        self.label_deckName = QtWidgets.QLabel(ImportCsvDialog)
        self.label_deckName.setObjectName("label_deckName")
        self.gridLayout.addWidget(self.label_deckName, 0, 0, 1, 1)
        self.label_format = QtWidgets.QLabel(ImportCsvDialog)
        self.label_format.setObjectName("label_format")
        self.gridLayout.addWidget(self.label_format, 0, 1, 1, 1)
        self.horizontalLayout_3.addLayout(self.gridLayout)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.comboBox_vocabulary = QtWidgets.QComboBox(ImportCsvDialog)
        self.comboBox_vocabulary.setFocusPolicy(QtCore.Qt.TabFocus)
        self.comboBox_vocabulary.setObjectName("comboBox_vocabulary")
        self.gridLayout_2.addWidget(self.comboBox_vocabulary, 1, 0, 1, 1)
        self.comboBox_definition = QtWidgets.QComboBox(ImportCsvDialog)
        self.comboBox_definition.setFocusPolicy(QtCore.Qt.TabFocus)
        self.comboBox_definition.setObjectName("comboBox_definition")
        self.gridLayout_2.addWidget(self.comboBox_definition, 1, 1, 1, 1)
        self.label_vocabulary = QtWidgets.QLabel(ImportCsvDialog)
        self.label_vocabulary.setObjectName("label_vocabulary")
        self.gridLayout_2.addWidget(self.label_vocabulary, 0, 0, 1, 1)
        self.label_definition = QtWidgets.QLabel(ImportCsvDialog)
        self.label_definition.setObjectName("label_definition")
        self.gridLayout_2.addWidget(self.label_definition, 0, 1, 1, 1)
        self.label_separator = QtWidgets.QLabel(ImportCsvDialog)
        self.label_separator.setObjectName("label_separator")
        self.gridLayout_2.addWidget(self.label_separator, 0, 2, 1, 1)
        self.comboBox_separator = QtWidgets.QComboBox(ImportCsvDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.comboBox_separator.sizePolicy().hasHeightForWidth())
        self.comboBox_separator.setSizePolicy(sizePolicy)
        self.comboBox_separator.setFocusPolicy(QtCore.Qt.TabFocus)
        self.comboBox_separator.setFrame(True)
        self.comboBox_separator.setObjectName("comboBox_separator")
        self.comboBox_separator.addItem("")
        self.comboBox_separator.addItem("")
        self.comboBox_separator.addItem("")
        self.comboBox_separator.addItem("")
        self.gridLayout_2.addWidget(self.comboBox_separator, 1, 2, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_2)
        self.plainTextEdit_deckName = QtWidgets.QPlainTextEdit(ImportCsvDialog)
        self.plainTextEdit_deckName.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.plainTextEdit_deckName.setAutoFillBackground(False)
        self.plainTextEdit_deckName.setTabChangesFocus(True)
        self.plainTextEdit_deckName.setObjectName("plainTextEdit_deckName")
        self.verticalLayout.addWidget(self.plainTextEdit_deckName)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_numLines = QtWidgets.QLabel(ImportCsvDialog)
        self.label_numLines.setText("")
        self.label_numLines.setObjectName("label_numLines")
        self.horizontalLayout_4.addWidget(self.label_numLines)
        self.buttonBox = QtWidgets.QDialogButtonBox(ImportCsvDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.horizontalLayout_4.addWidget(self.buttonBox)
        self.verticalLayout.addLayout(self.horizontalLayout_4)

        self.retranslateUi(ImportCsvDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"),
                               ImportCsvDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"),
                               ImportCsvDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(ImportCsvDialog)
Beispiel #2
0
    def initUI(self):
        # Window layout
        self.setFixedSize(360, 420)
        self.setWindowTitle('Confirm Export')
        main_layout = QtWidgets.QVBoxLayout()
        self.setLayout(main_layout)

        # Job Name Input Widget
        self.jobName = QtWidgets.QLineEdit('JobName')
        self.jobName.selectAll()
        name_layout = QtWidgets.QHBoxLayout()
        name_layout.addWidget(QtWidgets.QLabel('Job Name:'))
        name_layout.addWidget(self.jobName)
        main_layout.addLayout(name_layout)

        # Number of Cores Input Widget
        self.numCores = QtWidgets.QLineEdit('4')
        coresLayout = QtWidgets.QHBoxLayout()
        coresLayout.addWidget(QtWidgets.QLabel('Number of Cores:'))
        coresLayout.addWidget(self.numCores)
        main_layout.addLayout(coresLayout)

        # Priority and Start Time
        # Priority
        self.priority = QtWidgets.QComboBox()
        priority_opt = [
            'Very Low', 'Low', 'Medium', 'High', 'Very High', 'Critical'
        ]
        for opt in priority_opt:
            self.priority.addItem(opt)
        self.priority.setCurrentIndex(2)
        # Begin time
        self.delay = QtWidgets.QComboBox()
        delay_opts = ['Immediate', 'Manual', 'Delayed']
        for opt in delay_opts:
            self.delay.addItem(opt)
        self.delay.currentIndexChanged.connect(self.delaytime)
        # Combo box options layout
        opts_layout = QtWidgets.QHBoxLayout()
        opts_layout.addWidget(QtWidgets.QLabel('Priority:'))
        opts_layout.addWidget(self.priority)
        opts_layout.addWidget(QtWidgets.QLabel('Begin:'))
        opts_layout.addWidget(self.delay)
        opts_layout.addStretch()
        main_layout.addLayout(opts_layout)

        # Time-frame selection for delayed jobs
        self.delay_time = QtWidgets.QLineEdit('5')
        self.delay_unit = QtWidgets.QComboBox()
        delay_unit_opts = ['mins', 'hours', 'days']
        for opt in delay_unit_opts:
            self.delay_unit.addItem(opt)
        self.delay_unit.setCurrentIndex(0)
        # Delay time layout
        self.delay_layout = QtWidgets.QHBoxLayout()
        self.delay_layout.addWidget(QtWidgets.QLabel('Delay time:'))
        self.delay_layout.addWidget(self.delay_time)
        self.delay_layout.addWidget(self.delay_unit)
        self.delay_layout.addStretch()
        self.delaytime(0)
        main_layout.addLayout(self.delay_layout)

        # Mantra node selection list
        self.select = QtWidgets.QListWidget()
        self.select.setSelectionMode(
            QtWidgets.QAbstractItemView.ExtendedSelection)
        for node in self.renderNodes:
            item = QtWidgets.QListWidgetItem(node.name())
            self.select.addItem(item)
            # must come after adding to widget
            item.setSelected(True)
        main_layout.addWidget(self.select)

        # Buttons
        self.export_btn = QtWidgets.QPushButton('Export')
        self.export_btn.clicked.connect(self.export)
        self.cancel_btn = QtWidgets.QPushButton('Cancel')
        self.cancel_btn.clicked.connect(self.close)
        btn_layout = QtWidgets.QHBoxLayout()
        btn_layout.addWidget(self.cancel_btn)
        btn_layout.addWidget(self.export_btn)
        main_layout.addLayout(btn_layout)
Beispiel #3
0
    def __init__(self, operation_selection, parent=None):
        super(PlayWidget, self).__init__(parent)

        sound = QtMultimedia.QSound("sounds/blip2.wav")
        sound.play()

        self.operand = operation_selection
        self.random = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10']

        textStyle = ("color: white; font-size: 60px;")
        solStyle = ("color: red; font-size: 65px;")

        # question widget
        self.numLeft = QtWidgets.QLabel(random.choice(self.random))
        self.op = QtWidgets.QLabel(self.operand)
        self.numRight = QtWidgets.QLabel(random.choice(self.random))
        self.eq = QtWidgets.QLabel("=")
        self.sol = QtWidgets.QLabel("?")

        self.numLeft.setStyleSheet(textStyle)
        self.op.setStyleSheet(textStyle)
        self.numRight.setStyleSheet(textStyle)
        self.eq.setStyleSheet(textStyle)
        self.sol.setStyleSheet(solStyle)

        # question layout
        self.QuestionLayout = QtWidgets.QHBoxLayout()
        self.QuestionLayout.addWidget(self.numLeft)
        self.QuestionLayout.addWidget(self.op)
        self.QuestionLayout.addWidget(self.numRight)
        self.QuestionLayout.addWidget(self.eq)
        self.QuestionLayout.addWidget(self.sol)
        self.QuestionLayout.setAlignment(QtCore.Qt.AlignCenter)

        #   input section
        self.TextInput = QtWidgets.QLineEdit()
        self.TextInput.setAlignment(QtCore.Qt.AlignCenter)
        self.TextInput.setStyleSheet(
            "color: white; padding: 30px 0px; font-size: 35px;")
        self.TextInput.returnPressed.connect(self.operate)
        self.submitButton = QtWidgets.QPushButton("Submit")
        self.submitButton.setStyleSheet(
            "background-color: green; color: white; padding: 15px 15px; font-size: 20px; border-radius: 10px;"
        )

        #   numpad input layout
        self.inputLayout = QtWidgets.QGridLayout()
        #self.inputLayout.setStyleSheet("background-color: #FFFFFF; opacity: 0.2; border-radius: 5px; border-color: black") #Style for numpad background
        self.inputLayout.addWidget(self.TextInput, 0, 0, 1, 2)
        self.inputLayout.addWidget(self.submitButton, 0, 2)
        self.submitButton.clicked.connect(self.operate)
        self.numPadButtons = [[
            QtWidgets.QPushButton('7'),
            QtWidgets.QPushButton('8'),
            QtWidgets.QPushButton('9')
        ],
                              [
                                  QtWidgets.QPushButton('4'),
                                  QtWidgets.QPushButton('5'),
                                  QtWidgets.QPushButton('6')
                              ],
                              [
                                  QtWidgets.QPushButton('1'),
                                  QtWidgets.QPushButton('2'),
                                  QtWidgets.QPushButton('3')
                              ],
                              [
                                  QtWidgets.QPushButton('+/-'),
                                  QtWidgets.QPushButton('0'),
                                  QtWidgets.QPushButton('DEL')
                              ]]
        for i in range(0, 4):
            for j in range(0, 3):
                self.numPadButtons[i][j].clicked.connect(
                    partial(self.enterNumber, self.numPadButtons[i][j].text()))
        for i in range(0, 4):
            for j in range(0, 3):
                self.numPadButtons[i][j].setStyleSheet(
                    "background-color: #002993; color: #FFFFFF; padding: 20px 20px; font-size: 35px; border-radius: 20px;"
                )
                self.inputLayout.addWidget(self.numPadButtons[i][j], i + 1, j)
        self.inputLayout.setVerticalSpacing(20)

        #   layout all widgets
        self.stack = QtWidgets.QVBoxLayout()
        self.stack.addLayout(self.QuestionLayout)
        self.stack.addLayout(self.inputLayout)
        self.setLayout(self.stack)

        self.shuffle(
        )  #Shuffle here to make sure that the operands are valid using shuffle's error checking
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(558, 577)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.pushButton_createNewBranch = QtWidgets.QPushButton(
            self.centralwidget)
        self.pushButton_createNewBranch.setGeometry(
            QtCore.QRect(310, 450, 231, 41))
        self.pushButton_createNewBranch.setObjectName(
            "pushButton_createNewBranch")
        self.lineEdit_branchName = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_branchName.setGeometry(QtCore.QRect(10, 450, 261, 41))
        self.lineEdit_branchName.setText("")
        self.lineEdit_branchName.setObjectName("lineEdit_branchName")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(10, 420, 161, 21))
        self.label.setObjectName("label")
        self.treeWidget_branches = QtWidgets.QTreeWidget(self.centralwidget)
        self.treeWidget_branches.setGeometry(QtCore.QRect(10, 10, 171, 311))
        self.treeWidget_branches.setAutoExpandDelay(1)
        self.treeWidget_branches.setObjectName("treeWidget_branches")
        item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget_branches)
        self.treeWidget_branches.header().setVisible(False)
        self.treeWidget_branches.header().setStretchLastSection(False)
        self.pushButton_reNewBranchDict = QtWidgets.QPushButton(
            self.centralwidget)
        self.pushButton_reNewBranchDict.setGeometry(
            QtCore.QRect(10, 510, 261, 41))
        self.pushButton_reNewBranchDict.setObjectName(
            "pushButton_reNewBranchDict")
        self.pushButton_mergeToMaster = QtWidgets.QPushButton(
            self.centralwidget)
        self.pushButton_mergeToMaster.setGeometry(
            QtCore.QRect(310, 510, 231, 41))
        self.pushButton_mergeToMaster.setObjectName("pushButton_mergeToMaster")
        self.tableWidget_FileList = QtWidgets.QTableWidget(self.centralwidget)
        self.tableWidget_FileList.setGeometry(QtCore.QRect(190, 10, 351, 151))
        font = QtGui.QFont()
        font.setPointSize(9)
        self.tableWidget_FileList.setFont(font)
        self.tableWidget_FileList.setSizeAdjustPolicy(
            QtWidgets.QAbstractScrollArea.AdjustToContentsOnFirstShow)
        self.tableWidget_FileList.setAlternatingRowColors(True)
        self.tableWidget_FileList.setSelectionMode(
            QtWidgets.QAbstractItemView.SingleSelection)
        self.tableWidget_FileList.setObjectName("tableWidget_FileList")
        self.tableWidget_FileList.setColumnCount(3)
        self.tableWidget_FileList.setRowCount(15)
        item = QtWidgets.QTableWidgetItem()

        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_FileList.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_FileList.setHorizontalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_FileList.setHorizontalHeaderItem(2, item)

        self.tableWidget_FileList.horizontalHeader().setVisible(False)
        self.tableWidget_FileList.horizontalHeader(
        ).setCascadingSectionResizes(False)
        self.tableWidget_FileList.horizontalHeader().setDefaultSectionSize(60)
        self.tableWidget_FileList.horizontalHeader().setSortIndicatorShown(
            True)
        self.tableWidget_FileList.horizontalHeader().setStretchLastSection(
            True)
        self.tableWidget_FileList.verticalHeader().setVisible(False)
        self.tableWidget_FileList.verticalHeader().setCascadingSectionResizes(
            False)
        self.textBrowser_BranchFileInfo = QtWidgets.QTextBrowser(
            self.centralwidget)
        self.textBrowser_BranchFileInfo.setGeometry(
            QtCore.QRect(190, 170, 351, 151))
        self.textBrowser_BranchFileInfo.setObjectName(
            "textBrowser_BranchFileInfo")
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Beispiel #5
0
    def __init__(self, source, parent=None):
        """Initialize the dialog
        @type  source: Job or Host
        @param source: The source to get the comments from
        @type  parent: QWidget
        @param parent: The dialog's parent"""
        QtWidgets.QDialog.__init__(self, parent)
        self.__source = source

        self.__labelTitle = QtWidgets.QLabel(self.__source.data.name, self)

        self.__splitter = QtWidgets.QSplitter(self)
        self.__splitter.setOrientation(QtCore.Qt.Vertical)

        self.__treeSubjects = QtWidgets.QTreeWidget(self)
        self.__textSubject = QtWidgets.QLineEdit(self)
        self.__textMessage = QtWidgets.QTextEdit(self)

        self.__comboMacro = QtWidgets.QComboBox(self)
        self.__btnNew = QtWidgets.QPushButton("New", self)
        self.__btnSave = QtWidgets.QPushButton(SAVE_EDIT, self)
        self.__btnDel = QtWidgets.QPushButton("Delete", self)
        self.__btnClose = QtWidgets.QPushButton("Close", self)

        self.setWindowTitle("Comments")
        self.resize(600, 300)
        self.__btnNew.setDefault(True)
        self.__treeSubjects.setHeaderLabels(["Subject", "User", "Date"])

        layout = QtWidgets.QVBoxLayout(self)
        layout.addWidget(self.__labelTitle)

        self.__splitter.addWidget(self.__treeSubjects)

        self.__group = QtWidgets.QGroupBox(self.__splitter)
        glayout = QtWidgets.QVBoxLayout()
        glayout.addWidget(self.__textSubject)
        glayout.addWidget(self.__textMessage)
        self.__group.setLayout(glayout)

        layout.addWidget(self.__splitter)

        btnLayout = QtWidgets.QHBoxLayout()
        btnLayout.addWidget(self.__comboMacro)
        btnLayout.addStretch()
        btnLayout.addWidget(self.__btnSave)
        btnLayout.addWidget(self.__btnNew)
        btnLayout.addWidget(self.__btnDel)
        btnLayout.addWidget(self.__btnClose)
        layout.addLayout(btnLayout)

        self.__treeSubjects.itemSelectionChanged.connect(self.__itemChanged)
        self.__comboMacro.currentTextChanged.connect(self.__macroHandle)
        self.__btnSave.pressed.connect(self.__saveComment)
        self.__btnDel.pressed.connect(self.__deleteSelectedComment)
        self.__btnNew.pressed.connect(self.__createNewComment)
        self.__btnClose.pressed.connect(self.__close)
        self.__textSubject.textEdited.connect(self.__textEdited)
        self.__textMessage.textChanged.connect(self.__textEdited)

        self.refreshComments()
        self.__macroLoad()
Beispiel #6
0
    def setupUi(self, CSVConfigDialog):
        CSVConfigDialog.setObjectName("CSVConfigDialog")
        CSVConfigDialog.resize(728, 600)
        self.verticalLayout = QtWidgets.QVBoxLayout(CSVConfigDialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.file_layout = QtWidgets.QHBoxLayout()
        self.file_layout.setObjectName("file_layout")
        self.file_label = QtWidgets.QLabel(CSVConfigDialog)
        self.file_label.setObjectName("file_label")
        self.file_layout.addWidget(self.file_label)
        self.file_line_edit = QtWidgets.QLineEdit(CSVConfigDialog)
        self.file_line_edit.setObjectName("file_line_edit")
        self.file_layout.addWidget(self.file_line_edit)
        self.file_button = QtWidgets.QPushButton(CSVConfigDialog)
        self.file_button.setObjectName("file_button")
        self.file_layout.addWidget(self.file_button)
        self.verticalLayout.addLayout(self.file_layout)
        self.h_line_1 = QtWidgets.QFrame(CSVConfigDialog)
        self.h_line_1.setFrameShape(QtWidgets.QFrame.HLine)
        self.h_line_1.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.h_line_1.setObjectName("h_line_1")
        self.verticalLayout.addWidget(self.h_line_1)
        self.infos_preset_layout = QtWidgets.QHBoxLayout()
        self.infos_preset_layout.setObjectName("infos_preset_layout")
        self.infos_button = QtWidgets.QPushButton(CSVConfigDialog)
        self.infos_button.setObjectName("infos_button")
        self.infos_preset_layout.addWidget(self.infos_button)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.infos_preset_layout.addItem(spacerItem)
        self.preset_label = QtWidgets.QLabel(CSVConfigDialog)
        self.preset_label.setObjectName("preset_label")
        self.infos_preset_layout.addWidget(self.preset_label)
        self.preset_cbox = QtWidgets.QComboBox(CSVConfigDialog)
        self.preset_cbox.setObjectName("preset_cbox")
        self.infos_preset_layout.addWidget(self.preset_cbox)
        self.save_cfg_button = QtWidgets.QPushButton(CSVConfigDialog)
        self.save_cfg_button.setObjectName("save_cfg_button")
        self.infos_preset_layout.addWidget(self.save_cfg_button)
        self.verticalLayout.addLayout(self.infos_preset_layout)
        self.options_columns_hlayout = QtWidgets.QHBoxLayout()
        self.options_columns_hlayout.setObjectName("options_columns_hlayout")
        self.options_vlayout = QtWidgets.QVBoxLayout()
        self.options_vlayout.setObjectName("options_vlayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.options_label = QtWidgets.QLabel(CSVConfigDialog)
        self.options_label.setObjectName("options_label")
        self.horizontalLayout.addWidget(self.options_label)
        self.options_vlayout.addLayout(self.horizontalLayout)
        self.options_table = QtWidgets.QTableView(CSVConfigDialog)
        self.options_table.setObjectName("options_table")
        self.options_vlayout.addWidget(self.options_table)
        self.options_columns_hlayout.addLayout(self.options_vlayout)
        self.columns_vlayout = QtWidgets.QVBoxLayout()
        self.columns_vlayout.setObjectName("columns_vlayout")
        self.columns_label = QtWidgets.QLabel(CSVConfigDialog)
        self.columns_label.setObjectName("columns_label")
        self.columns_vlayout.addWidget(self.columns_label)
        self.columns_table = QtWidgets.QTableView(CSVConfigDialog)
        self.columns_table.setObjectName("columns_table")
        self.columns_vlayout.addWidget(self.columns_table)
        self.options_columns_hlayout.addLayout(self.columns_vlayout)
        self.verticalLayout.addLayout(self.options_columns_hlayout)
        self.h_line_2 = QtWidgets.QFrame(CSVConfigDialog)
        self.h_line_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.h_line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.h_line_2.setObjectName("h_line_2")
        self.verticalLayout.addWidget(self.h_line_2)
        self.preview_label = QtWidgets.QLabel(CSVConfigDialog)
        self.preview_label.setObjectName("preview_label")
        self.verticalLayout.addWidget(self.preview_label)
        self.preview_table = QtWidgets.QTableView(CSVConfigDialog)
        self.preview_table.setAlternatingRowColors(True)
        self.preview_table.setObjectName("preview_table")
        self.verticalLayout.addWidget(self.preview_table)
        self.buttonBox = QtWidgets.QDialogButtonBox(CSVConfigDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(CSVConfigDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"),
                               CSVConfigDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"),
                               CSVConfigDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(CSVConfigDialog)
Beispiel #7
0
    def _ui_settings_params_filters_ffv9(self, vbox: QtWidgets.QVBoxLayout,
                                         min_group_box: int) -> None:
        hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(hbox)
        hbox.addStretch()

        set_filters_ffv9 = QtWidgets.QGroupBox("Filters")
        set_filters_ffv9.setMinimumWidth(min_group_box)
        hbox.addWidget(set_filters_ffv9)
        flt_vbox = QtWidgets.QVBoxLayout()
        set_filters_ffv9.setLayout(flt_vbox)

        # set distance
        distance_hbox = QtWidgets.QHBoxLayout()
        flt_vbox.addLayout(distance_hbox)
        self.set_distance_label_ffv9 = QtWidgets.QLabel("Distance <=")
        self.set_distance_label_ffv9.setDisabled(True)
        distance_hbox.addWidget(self.set_distance_label_ffv9)
        self.set_distance_label_ffv9.setFixedHeight(
            GuiSettings.single_line_height())
        self.set_distance_ffv9 = QtWidgets.QLineEdit("")
        distance_hbox.addWidget(self.set_distance_ffv9)
        self.set_distance_ffv9.setFixedHeight(GuiSettings.single_line_height())
        # self.set_distance_ffv9.setValidator(QtGui.QDoubleValidator(0.00001, 9999, 5, self.set_distance_ffv9))
        # noinspection PyUnresolvedReferences
        self.set_distance_ffv9.setAlignment(QtCore.Qt.AlignRight
                                            | QtCore.Qt.AlignVCenter)
        self.set_distance_ffv9.setReadOnly(False)
        self.set_distance_ffv9.setFont(GuiSettings.console_font())
        self.set_distance_ffv9.setFixedWidth(60)
        self.set_distance_ffv9.setText("%.1f" %
                                       FindFliersV9.default_filter_distance)
        self.set_distance_ffv9.setDisabled(True)
        self.set_distance_label2_ffv9 = QtWidgets.QLabel("nodes")
        self.set_distance_label2_ffv9.setDisabled(True)
        distance_hbox.addWidget(self.set_distance_label2_ffv9)
        distance_hbox.addStretch()

        # set delta_z
        delta_z_hbox = QtWidgets.QHBoxLayout()
        flt_vbox.addLayout(delta_z_hbox)
        self.set_delta_z_label_ffv9 = QtWidgets.QLabel("Delta Z <=")
        self.set_delta_z_label_ffv9.setDisabled(True)
        delta_z_hbox.addWidget(self.set_delta_z_label_ffv9)
        self.set_delta_z_label_ffv9.setFixedHeight(
            GuiSettings.single_line_height())
        self.set_delta_z_ffv9 = QtWidgets.QLineEdit("")
        delta_z_hbox.addWidget(self.set_delta_z_ffv9)
        self.set_delta_z_ffv9.setFixedHeight(GuiSettings.single_line_height())
        # self.set_delta_z_ffv9.setValidator(QtGui.QDoubleValidator(0.00001, 9999, 5, self.set_delta_z_ffv9))
        # noinspection PyUnresolvedReferences
        self.set_delta_z_ffv9.setAlignment(QtCore.Qt.AlignRight
                                           | QtCore.Qt.AlignVCenter)
        self.set_delta_z_ffv9.setReadOnly(False)
        self.set_delta_z_ffv9.setFont(GuiSettings.console_font())
        self.set_delta_z_ffv9.setFixedWidth(60)
        self.set_delta_z_ffv9.setText("%.2f" %
                                      FindFliersV9.default_filter_delta_z)
        self.set_delta_z_ffv9.setDisabled(True)
        self.set_delta_z_label2_ffv9 = QtWidgets.QLabel("meters")
        self.set_delta_z_label2_ffv9.setDisabled(True)
        delta_z_hbox.addWidget(self.set_delta_z_label2_ffv9)
        delta_z_hbox.addStretch()

        flt_vbox.addSpacing(6)

        self.set_filter_fff_ffv9 = QtWidgets.QCheckBox(
            "#1: Use Features from S57 File")
        self.set_filter_fff_ffv9.setDisabled(True)
        self.set_filter_fff_ffv9.setChecked(
            self.settings.value("survey/ff9_fff", 0) == 1)
        flt_vbox.addWidget(self.set_filter_fff_ffv9)

        self.set_filter_designated_ffv9 = QtWidgets.QCheckBox(
            "#2: Use Designated (SR BAG only)")
        self.set_filter_designated_ffv9.setDisabled(True)
        self.set_filter_designated_ffv9.setChecked(
            self.settings.value("survey/ff9_designated", 0) == 1)
        flt_vbox.addWidget(self.set_filter_designated_ffv9)

        hbox.addStretch()
Beispiel #8
0
	def __init__(self, parent = None):
		super(MainWidget, self).__init__(parent)
		self.mainLayout = QtWidgets.QVBoxLayout(self)
		self.mainLayout.setContentsMargins(0, 0, 0, 0)
		self.mainLayout.setSpacing(0)
		self.topWidget = QtWidgets.QFrame(self)
		self.topWidget.setObjectName('topWidget')
		self.topWidgetLayout = QtWidgets.QHBoxLayout(self.topWidget)
		self.topWidgetLayout.setContentsMargins(0, 0, 4, 0)
		self.topWidgetLayout.setSpacing(1)
		self.scrollArea = QtWidgets.QScrollArea(self.topWidget)
		self.scrollArea.setFocusPolicy(QtCore.Qt.NoFocus)
		self.breadCrumbWidget = BreadCrumb(self)

		self.breadCrumbWidget.setItemCLass(ModelBreadCrumbData)
		self.breadCrumbWidget.setDefaultName('Receipt')

		self.scrollArea.setWidgetResizable(True)
		self.scrollArea.setWidget(self.breadCrumbWidget)

		self.priceButtonDialog = PushButton(self.topWidget)
		self.priceButtonDialog.setText('Product Price (F4)')
		self.priceButtonDialog.setFixedSize(QtCore.QSize(140, 80))

		self.productDialogButton = PushButton(self.topWidget)
		self.productDialogButton.setText('Product (F9)')
		self.productDialogButton.setFixedSize(QtCore.QSize(100, 80))

		self.searchButton = PushButton(self.topWidget)
		self.searchButton.setText('Search Order (F10)')
		self.searchButton.setFixedSize(QtCore.QSize(140, 80))

		self.incomeButton = PushButton(self.topWidget)
		self.incomeButton.setText('Income (F6)')
		self.incomeButton.setFixedSize(QtCore.QSize(100, 80))

		self.printButton = PushButton(self.topWidget)
		self.printButton.setText('Print')
		self.printButton.setFixedSize(QtCore.QSize(80, 80))

		self.topWidgetLayout.addWidget(self.scrollArea)
		spacerItem = QtWidgets.QSpacerItem(8, 8, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
		self.topWidgetLayout.addItem(spacerItem)
		self.topWidgetLayout.addWidget(self.priceButtonDialog)
		self.topWidgetLayout.addWidget(self.productDialogButton)
		self.topWidgetLayout.addWidget(self.searchButton)
		self.topWidgetLayout.addWidget(self.incomeButton)
		self.topWidgetLayout.addWidget(self.printButton)

		self.centralWidget = QtWidgets.QWidget(self)
		self.centralWidgetLayout = QtWidgets.QHBoxLayout(self.centralWidget)
		sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
		sizePolicy.setVerticalStretch(1)
		self.centralWidget.setSizePolicy(sizePolicy)
		self.centralWidgetLayout.setContentsMargins(0, 0, 0, 0)
		self.centralWidgetLayout.setSpacing(0)

		self.tableViewContainer = QtWidgets.QWidget(self.centralWidget)
		self.tableViewContainerLayout = QtWidgets.QHBoxLayout(self.tableViewContainer)
		self.tableViewContainerLayout.setContentsMargins(0, 0, 0, 0)
		self.tableViewContainerLayout.setSpacing(0)

		self.soldTableView = QtWidgets.QTableView(self.tableViewContainer)
		self.soldTableView.customContextMenuRequested.connect(self.showPopup)
		self.soldTableView.setFocusPolicy(QtCore.Qt.ClickFocus)
		self.soldTableView.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
		self.soldTableView.verticalHeader().setDefaultSectionSize(24)

		sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
		sizePolicy.setHorizontalStretch(1)
		sizePolicy.setVerticalStretch(1)
		self.soldTableView.setSizePolicy(sizePolicy)

		self.buttonGroupWidget = ButtonGroupWidget(self.tableViewContainer)
		self.buttonGroupWidget.clicked.connect(self.addProductFromShortcutButton)
		self.buttonGroupWidget.createClicked.connect(self.createNewShortcutButton)
		self.buttonGroupWidget.setStyleSheet(core.fbs.qss('buttonGroupWidget.qss'))

		self.tableViewContainerLayout.addWidget(self.soldTableView)
		self.tableViewContainerLayout.addWidget(self.buttonGroupWidget)

		eventFilterObject = EventFilterForTableView(self)

		self.soldTableView.installEventFilter(eventFilterObject)
		self.productWidget = QtWidgets.QWidget(self.centralWidget)

		self.inputWidgetGroup = InputWidgetGroup(self.centralWidget)

		self.centralWidgetLayout.addWidget(self.tableViewContainer)
		self.centralWidgetLayout.addWidget(self.productWidget)

		self.totalPriceWidget = QtWidgets.QWidget(self)
		self.totalPriceWidgetLayout = QtWidgets.QHBoxLayout(self.totalPriceWidget)
		self.totalPriceWidgetLayout.setContentsMargins(0, 8, 8, 8)
		self.totalPriceWidgetLayout.setSpacing(8)
		self.totalPriceLabel = QtWidgets.QLabel(self.totalPriceWidget)
		self.totalPriceLabel.setObjectName('totalPriceLabel')
		self.totalPriceLabel.setText('Total Price')
		self.totalPriceTextEdit = QtWidgets.QLineEdit(self.totalPriceWidget)
		self.totalPriceTextEdit.setObjectName('totalPriceTextEdit')
		self.totalPriceTextEdit.setReadOnly(True)
		self.totalPriceTextEdit.setFocusPolicy(QtCore.Qt.NoFocus)
		self.totalPriceTextEdit.setAlignment(QtCore.Qt.AlignCenter)


		font = self.totalPriceTextEdit.font()
		font.setPointSize(FontSize.totalPriceFontSize())
		self.totalPriceTextEdit.setFont(font)

		self.totalPriceLabel.setFont(font)

		self.totalPriceWidgetLayout.addItem(
				QtWidgets.QSpacerItem(3, 3, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum))
		self.totalPriceWidgetLayout.addWidget(self.totalPriceLabel)
		self.totalPriceWidgetLayout.addWidget(self.totalPriceTextEdit)

		self.footerWidget = FooterWidget(self)
		self.footerWidget.setObjectName('footerWidget')

		self.mainLayout.addWidget(self.topWidget)
		self.mainLayout.addWidget(self.inputWidgetGroup)
		self.mainLayout.addWidget(self.centralWidget)
		self.mainLayout.addWidget(self.totalPriceWidget)
		self.mainLayout.addWidget(self.footerWidget)

		self.productModel = ProductModel()

		self.removeProductShortcut = QtWidgets.QShortcut(self.soldTableView)
		self.removeProductShortcut.setContext(QtCore.Qt.WidgetShortcut)
		self.removeProductShortcut.setKey(QtGui.QKeySequence(QtCore.Qt.Key_Delete))
		self.removeProductShortcut.activated.connect(self.deleteProduct)

		self.pressAsteriksShortcut = QtWidgets.QShortcut(self.soldTableView)
		self.pressAsteriksShortcut.setContext(QtCore.Qt.WidgetShortcut)
		self.pressAsteriksShortcut.setKey(QtGui.QKeySequence(QtCore.Qt.Key_Asterisk))
		self.pressAsteriksShortcut.activated.connect(self.pressAsteriks)

		self.showProductListLeftShortcut = QtWidgets.QShortcut(self.soldTableView)
		self.showProductListLeftShortcut.setContext(QtCore.Qt.WidgetShortcut)
		self.showProductListLeftShortcut.setKey(QtGui.QKeySequence(QtCore.Qt.Key_Left))
		self.showProductListLeftShortcut.activated.connect(self.showProductList)

		self.showProductListRightShortcut = QtWidgets.QShortcut(self.soldTableView)
		self.showProductListRightShortcut.setContext(QtCore.Qt.WidgetShortcut)
		self.showProductListRightShortcut.setKey(QtGui.QKeySequence(QtCore.Qt.Key_Right))
		self.showProductListRightShortcut.activated.connect(self.showProductList)

		self.addProductToDialySoldProductShortcut = QtWidgets.QShortcut(self)
		self.addProductToDialySoldProductShortcut.setContext(QtCore.Qt.ApplicationShortcut)
		self.addProductToDialySoldProductShortcut.setKey(QtGui.QKeySequence(QtCore.Qt.Key_F8))
		self.addProductToDialySoldProductShortcut.activated.connect(self.addProductToDialySoldProduct)

		self.showProductListDialog = QtWidgets.QShortcut(self)
		self.showProductListDialog.setContext(QtCore.Qt.ApplicationShortcut)
		self.showProductListDialog.setKey(QtGui.QKeySequence(QtCore.Qt.Key_F9))
		self.showProductListDialog.activated.connect(self.productDialogButton.click)

		self.showPriceDialogShortcut = QtWidgets.QShortcut(self)
		self.showPriceDialogShortcut.setContext(QtCore.Qt.ApplicationShortcut)
		self.showPriceDialogShortcut.setKey(QtGui.QKeySequence(QtCore.Qt.Key_F4))
		self.showPriceDialogShortcut.activated.connect(self.showPriceDialog)

		self.editProductShortcut = QtWidgets.QShortcut(self)
		self.editProductShortcut.setContext(QtCore.Qt.ApplicationShortcut)
		self.editProductShortcut.setKey(QtGui.QKeySequence('Alt+S'))
		self.editProductShortcut.activated.connect(self.showAddProductProduct)

		self.searchButtonDialogShortcut = QtWidgets.QShortcut(self)
		self.searchButtonDialogShortcut.setContext(QtCore.Qt.ApplicationShortcut)
		self.searchButtonDialogShortcut.setKey(QtGui.QKeySequence(QtCore.Qt.Key_F10))
		self.searchButtonDialogShortcut.activated.connect(self.searchButton.click)

		self.incomeDialogShortcut = QtWidgets.QShortcut(self)
		self.incomeDialogShortcut.setContext(QtCore.Qt.ApplicationShortcut)
		self.incomeDialogShortcut.setKey(QtGui.QKeySequence(QtCore.Qt.Key_F6))
		self.incomeDialogShortcut.activated.connect(self.incomeButton.click)

		self.initSignalsAndSlots()
		self.initialize()
Beispiel #9
0
    def setupUi(self, ExportDialog):
        ExportDialog.setObjectName("ExportDialog")
        ExportDialog.resize(650, 560)
        ExportDialog.setMinimumSize(QtCore.QSize(650, 560))
        ExportDialog.setMaximumSize(QtCore.QSize(650, 560))
        self.buttonBox = QtWidgets.QDialogButtonBox(ExportDialog)
        self.buttonBox.setGeometry(QtCore.QRect(300, 520, 341, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.characterBox = QtWidgets.QListWidget(ExportDialog)
        self.characterBox.setGeometry(QtCore.QRect(10, 30, 256, 211))
        self.characterBox.setObjectName("characterBox")
        self.label = QtWidgets.QLabel(ExportDialog)
        self.label.setGeometry(QtCore.QRect(20, 10, 101, 18))
        self.label.setObjectName("label")
        self.directoryBox = QtWidgets.QComboBox(ExportDialog)
        self.directoryBox.setGeometry(QtCore.QRect(300, 130, 341, 32))
        self.directoryBox.setObjectName("directoryBox")
        self.directoryBox.addItem("")
        self.directoryBox.addItem("")
        self.directoryBox.addItem("")
        self.label_2 = QtWidgets.QLabel(ExportDialog)
        self.label_2.setGeometry(QtCore.QRect(310, 110, 141, 18))
        self.label_2.setObjectName("label_2")
        self.selectCharacterButton = QtWidgets.QPushButton(ExportDialog)
        self.selectCharacterButton.setGeometry(QtCore.QRect(70, 250, 191, 34))
        self.selectCharacterButton.setObjectName("selectCharacterButton")
        self.fileNameBox = QtWidgets.QLineEdit(ExportDialog)
        self.fileNameBox.setGeometry(QtCore.QRect(300, 30, 341, 32))
        self.fileNameBox.setObjectName("fileNameBox")
        self.label_3 = QtWidgets.QLabel(ExportDialog)
        self.label_3.setGeometry(QtCore.QRect(310, 10, 81, 18))
        self.label_3.setObjectName("label_3")
        self.namePreview = QtWidgets.QLabel(ExportDialog)
        self.namePreview.setGeometry(QtCore.QRect(300, 70, 341, 41))
        self.namePreview.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.namePreview.setWordWrap(True)
        self.namePreview.setObjectName("namePreview")
        self.formatBox = QtWidgets.QComboBox(ExportDialog)
        self.formatBox.setGeometry(QtCore.QRect(300, 190, 81, 32))
        self.formatBox.setObjectName("formatBox")
        self.formatBox.addItem("")
        self.formatBox.addItem("")
        self.formatBox.addItem("")
        self.sampleBox = QtWidgets.QSpinBox(ExportDialog)
        self.sampleBox.setGeometry(QtCore.QRect(400, 190, 81, 32))
        self.sampleBox.setMinimum(1)
        self.sampleBox.setMaximum(999999)
        self.sampleBox.setProperty("value", 48000)
        self.sampleBox.setObjectName("sampleBox")
        self.label_5 = QtWidgets.QLabel(ExportDialog)
        self.label_5.setGeometry(QtCore.QRect(310, 170, 91, 18))
        self.label_5.setObjectName("label_5")
        self.label_6 = QtWidgets.QLabel(ExportDialog)
        self.label_6.setGeometry(QtCore.QRect(410, 170, 81, 18))
        self.label_6.setObjectName("label_6")
        self.moodBox = QtWidgets.QListWidget(ExportDialog)
        self.moodBox.setGeometry(QtCore.QRect(10, 300, 256, 211))
        self.moodBox.setObjectName("moodBox")
        self.selectMoodButton = QtWidgets.QPushButton(ExportDialog)
        self.selectMoodButton.setGeometry(QtCore.QRect(90, 520, 171, 34))
        self.selectMoodButton.setObjectName("selectMoodButton")
        self.label_7 = QtWidgets.QLabel(ExportDialog)
        self.label_7.setGeometry(QtCore.QRect(20, 280, 71, 18))
        self.label_7.setObjectName("label_7")
        self.metadataBox = QtWidgets.QComboBox(ExportDialog)
        self.metadataBox.setGeometry(QtCore.QRect(300, 250, 341, 32))
        self.metadataBox.setObjectName("metadataBox")
        self.metadataBox.addItem("")
        self.metadataBox.addItem("")
        self.metadataBox.addItem("")
        self.label_8 = QtWidgets.QLabel(ExportDialog)
        self.label_8.setGeometry(QtCore.QRect(310, 230, 131, 18))
        self.label_8.setObjectName("label_8")
        self.line = QtWidgets.QFrame(ExportDialog)
        self.line.setGeometry(QtCore.QRect(270, 10, 31, 541))
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.label_9 = QtWidgets.QLabel(ExportDialog)
        self.label_9.setGeometry(QtCore.QRect(310, 350, 161, 21))
        self.label_9.setObjectName("label_9")
        self.reservedBox = QtWidgets.QCheckBox(ExportDialog)
        self.reservedBox.setGeometry(QtCore.QRect(300, 380, 331, 22))
        self.reservedBox.setChecked(True)
        self.reservedBox.setObjectName("reservedBox")
        self.spaceBox = QtWidgets.QCheckBox(ExportDialog)
        self.spaceBox.setGeometry(QtCore.QRect(300, 410, 331, 22))
        self.spaceBox.setObjectName("spaceBox")
        self.bitDepthBox = QtWidgets.QComboBox(ExportDialog)
        self.bitDepthBox.setGeometry(QtCore.QRect(500, 190, 81, 32))
        self.bitDepthBox.setObjectName("bitDepthBox")
        self.bitDepthBox.addItem("")
        self.bitDepthBox.addItem("")
        self.bitDepthBox.addItem("")
        self.label_10 = QtWidgets.QLabel(ExportDialog)
        self.label_10.setGeometry(QtCore.QRect(510, 170, 81, 18))
        self.label_10.setObjectName("label_10")
        self.label_11 = QtWidgets.QLabel(ExportDialog)
        self.label_11.setGeometry(QtCore.QRect(310, 290, 161, 21))
        self.label_11.setObjectName("label_11")
        self.noise0Box = QtWidgets.QCheckBox(ExportDialog)
        self.noise0Box.setGeometry(QtCore.QRect(300, 320, 87, 22))
        self.noise0Box.setChecked(True)
        self.noise0Box.setObjectName("noise0Box")
        self.noise1Box = QtWidgets.QCheckBox(ExportDialog)
        self.noise1Box.setGeometry(QtCore.QRect(390, 320, 87, 22))
        self.noise1Box.setChecked(True)
        self.noise1Box.setObjectName("noise1Box")
        self.noise2Box = QtWidgets.QCheckBox(ExportDialog)
        self.noise2Box.setGeometry(QtCore.QRect(480, 320, 87, 22))
        self.noise2Box.setChecked(True)
        self.noise2Box.setObjectName("noise2Box")

        self.retranslateUi(ExportDialog)
        self.directoryBox.setCurrentIndex(1)
        self.formatBox.setCurrentIndex(0)
        self.metadataBox.setCurrentIndex(0)
        self.bitDepthBox.setCurrentIndex(1)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), ExportDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), ExportDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(ExportDialog)
        ExportDialog.setTabOrder(self.characterBox, self.selectCharacterButton)
        ExportDialog.setTabOrder(self.selectCharacterButton, self.moodBox)
        ExportDialog.setTabOrder(self.moodBox, self.selectMoodButton)
        ExportDialog.setTabOrder(self.selectMoodButton, self.fileNameBox)
        ExportDialog.setTabOrder(self.fileNameBox, self.directoryBox)
        ExportDialog.setTabOrder(self.directoryBox, self.formatBox)
        ExportDialog.setTabOrder(self.formatBox, self.sampleBox)
        ExportDialog.setTabOrder(self.sampleBox, self.bitDepthBox)
        ExportDialog.setTabOrder(self.bitDepthBox, self.metadataBox)
        ExportDialog.setTabOrder(self.metadataBox, self.noise0Box)
        ExportDialog.setTabOrder(self.noise0Box, self.noise1Box)
        ExportDialog.setTabOrder(self.noise1Box, self.noise2Box)
        ExportDialog.setTabOrder(self.noise2Box, self.reservedBox)
        ExportDialog.setTabOrder(self.reservedBox, self.spaceBox)
Beispiel #10
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(844, 697)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.centralWidget)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.pushButton_import = QtWidgets.QPushButton(self.centralWidget)
        font = QtGui.QFont()
        font.setPointSize(20)
        font.setWeight(75)
        font.setBold(True)
        self.pushButton_import.setFont(font)
        self.pushButton_import.setObjectName("pushButton_import")
        self.gridLayout.addWidget(self.pushButton_import, 0, 0, 1, 1)
        self._editsort = QtWidgets.QLabel(self.centralWidget)
        self._editsort.setObjectName("_editsort")
        self.gridLayout.addWidget(self._editsort, 1, 0, 1, 1)
        self.verticalLayout_4.addLayout(self.gridLayout)
        self.tableWidget_shotlist = QtWidgets.QTableWidget(self.centralWidget)
        self.tableWidget_shotlist.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tableWidget_shotlist.sizePolicy().hasHeightForWidth())
        self.tableWidget_shotlist.setSizePolicy(sizePolicy)
        self.tableWidget_shotlist.setMaximumSize(
            QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setWeight(50)
        font.setBold(False)
        self.tableWidget_shotlist.setFont(font)
        self.tableWidget_shotlist.setContextMenuPolicy(
            QtCore.Qt.CustomContextMenu)
        self.tableWidget_shotlist.setInputMethodHints(QtCore.Qt.ImhNone)
        self.tableWidget_shotlist.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.tableWidget_shotlist.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAsNeeded)
        self.tableWidget_shotlist.setSizeAdjustPolicy(
            QtWidgets.QAbstractScrollArea.AdjustToContents)
        self.tableWidget_shotlist.setAutoScroll(False)
        self.tableWidget_shotlist.setEditTriggers(
            QtWidgets.QAbstractItemView.DoubleClicked
            | QtWidgets.QAbstractItemView.SelectedClicked)
        self.tableWidget_shotlist.setTabKeyNavigation(False)
        self.tableWidget_shotlist.setProperty("showDropIndicator", False)
        self.tableWidget_shotlist.setDragDropOverwriteMode(False)
        self.tableWidget_shotlist.setAlternatingRowColors(True)
        self.tableWidget_shotlist.setSelectionMode(
            QtWidgets.QAbstractItemView.MultiSelection)
        self.tableWidget_shotlist.setSelectionBehavior(
            QtWidgets.QAbstractItemView.SelectItems)
        self.tableWidget_shotlist.setTextElideMode(QtCore.Qt.ElideRight)
        self.tableWidget_shotlist.setHorizontalScrollMode(
            QtWidgets.QAbstractItemView.ScrollPerItem)
        self.tableWidget_shotlist.setShowGrid(True)
        self.tableWidget_shotlist.setGridStyle(QtCore.Qt.SolidLine)
        self.tableWidget_shotlist.setWordWrap(True)
        self.tableWidget_shotlist.setCornerButtonEnabled(True)
        self.tableWidget_shotlist.setRowCount(101)
        self.tableWidget_shotlist.setColumnCount(38)
        self.tableWidget_shotlist.setObjectName("tableWidget_shotlist")
        self.tableWidget_shotlist.setColumnCount(38)
        self.tableWidget_shotlist.setRowCount(101)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setVerticalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(2, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(3, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(4, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(5, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(6, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(7, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(8, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(9, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(10, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(11, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(12, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(13, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(14, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(15, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(16, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(17, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(18, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(19, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(20, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(21, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(22, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(23, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(24, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(25, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(26, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setHorizontalHeaderItem(27, item)
        item = QtWidgets.QTableWidgetItem()
        item.setFlags(QtCore.Qt.ItemIsEnabled)
        self.tableWidget_shotlist.setItem(1, 0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setItem(1, 1, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setItem(1, 2, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setItem(1, 4, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setItem(1, 5, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setItem(1, 6, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setItem(1, 7, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setItem(1, 8, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setItem(1, 9, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setItem(1, 11, item)
        item = QtWidgets.QTableWidgetItem()
        item.setFlags(QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled)
        self.tableWidget_shotlist.setItem(2, 0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_shotlist.setItem(2, 1, item)
        item = QtWidgets.QTableWidgetItem()
        item.setFlags(QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled)
        self.tableWidget_shotlist.setItem(3, 0, item)
        self.tableWidget_shotlist.horizontalHeader().setVisible(True)
        self.tableWidget_shotlist.horizontalHeader(
        ).setCascadingSectionResizes(True)
        self.tableWidget_shotlist.horizontalHeader().setDefaultSectionSize(80)
        self.tableWidget_shotlist.horizontalHeader().setHighlightSections(True)
        self.tableWidget_shotlist.horizontalHeader().setMinimumSectionSize(30)
        self.tableWidget_shotlist.horizontalHeader().setStretchLastSection(
            False)
        self.tableWidget_shotlist.verticalHeader().setVisible(False)
        self.tableWidget_shotlist.verticalHeader().setCascadingSectionResizes(
            True)
        self.tableWidget_shotlist.verticalHeader().setDefaultSectionSize(30)
        self.tableWidget_shotlist.verticalHeader().setMinimumSectionSize(30)
        self.tableWidget_shotlist.verticalHeader().setStretchLastSection(False)
        self.verticalLayout_4.addWidget(self.tableWidget_shotlist)
        self.label_preview = QtWidgets.QLabel(self.centralWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_preview.sizePolicy().hasHeightForWidth())
        self.label_preview.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(13)
        font.setWeight(75)
        font.setBold(True)
        self.label_preview.setFont(font)
        self.label_preview.setObjectName("label_preview")
        self.verticalLayout_4.addWidget(self.label_preview)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.pushButton_xlsout = QtWidgets.QPushButton(self.centralWidget)
        font = QtGui.QFont()
        font.setPointSize(20)
        font.setWeight(75)
        font.setBold(True)
        self.pushButton_xlsout.setFont(font)
        self.pushButton_xlsout.setObjectName("pushButton_xlsout")
        self.horizontalLayout.addWidget(self.pushButton_xlsout)
        self.pushButton_reindex = QtWidgets.QPushButton(self.centralWidget)
        self.pushButton_reindex.setObjectName("pushButton_reindex")
        self.horizontalLayout.addWidget(self.pushButton_reindex)
        self.verticalLayout_4.addLayout(self.horizontalLayout)
        self.label_log = QtWidgets.QLabel(self.centralWidget)
        self.label_log.setObjectName("label_log")
        self.verticalLayout_4.addWidget(self.label_log)
        self.textEdit_Result = QtWidgets.QTextEdit(self.centralWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.textEdit_Result.sizePolicy().hasHeightForWidth())
        self.textEdit_Result.setSizePolicy(sizePolicy)
        self.textEdit_Result.setMinimumSize(QtCore.QSize(0, 120))
        self.textEdit_Result.setMaximumSize(QtCore.QSize(16777215, 240))
        self.textEdit_Result.setObjectName("textEdit_Result")
        self.verticalLayout_4.addWidget(self.textEdit_Result)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.pushButton_shotclear = QtWidgets.QPushButton(self.centralWidget)
        self.pushButton_shotclear.setObjectName("pushButton_shotclear")
        self.horizontalLayout_2.addWidget(self.pushButton_shotclear)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.verticalLayout_4.addLayout(self.horizontalLayout_2)
        self.gridLayout_3.addLayout(self.verticalLayout_4, 1, 2, 1, 1)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.pushButton_Input = QtWidgets.QPushButton(self.centralWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pushButton_Input.sizePolicy().hasHeightForWidth())
        self.pushButton_Input.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setWeight(75)
        font.setBold(True)
        self.pushButton_Input.setFont(font)
        self.pushButton_Input.setObjectName("pushButton_Input")
        self.gridLayout_2.addWidget(self.pushButton_Input, 1, 0, 1, 1)
        self.lineEdit_SourceDir = QtWidgets.QLineEdit(self.centralWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_SourceDir.sizePolicy().hasHeightForWidth())
        self.lineEdit_SourceDir.setSizePolicy(sizePolicy)
        self.lineEdit_SourceDir.setObjectName("lineEdit_SourceDir")
        self.gridLayout_2.addWidget(self.lineEdit_SourceDir, 1, 1, 1, 1)
        self.gridLayout_3.addLayout(self.gridLayout_2, 0, 1, 1, 2)
        self.progressBar_import = QtWidgets.QProgressBar(self.centralWidget)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.progressBar_import.setFont(font)
        self.progressBar_import.setProperty("value", 0)
        self.progressBar_import.setObjectName("progressBar_import")
        self.gridLayout_3.addWidget(self.progressBar_import, 2, 2, 1, 1)
        MainWindow.setCentralWidget(self.centralWidget)
        self.menuBar = QtWidgets.QMenuBar()
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 844, 22))
        self.menuBar.setObjectName("menuBar")
        self.menuFile = QtWidgets.QMenu(self.menuBar)
        self.menuFile.setObjectName("menuFile")
        MainWindow.setMenuBar(self.menuBar)
        self.mainToolBar = QtWidgets.QToolBar(MainWindow)
        self.mainToolBar.setObjectName("mainToolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.actionAbout_ShotList = QtWidgets.QAction(MainWindow)
        self.actionAbout_ShotList.setMenuRole(QtWidgets.QAction.AboutRole)
        self.actionAbout_ShotList.setObjectName("actionAbout_ShotList")
        self.actionSettings = QtWidgets.QAction(MainWindow)
        self.actionSettings.setMenuRole(QtWidgets.QAction.PreferencesRole)
        self.actionSettings.setObjectName("actionSettings")
        self.menuFile.addAction(self.actionAbout_ShotList)
        self.menuFile.addAction(self.actionSettings)
        self.menuBar.addAction(self.menuFile.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Beispiel #11
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.findButton = QtWidgets.QPushButton("&Find")
        self.findButton.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.loadButton = QtWidgets.QPushButton("&Load...")
        self.loadButton.setToolTip("Load contacts from a file")
        self.saveButton = QtWidgets.QPushButton("Sa&ve...")
        self.saveButton.setToolTip("Save contacts to a file")
        self.saveButton.setEnabled(False)

        self.dialog = FindDialog()

        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.findButton.clicked.connect(self.findContact)
        self.cancelButton.clicked.connect(self.cancel)
        self.nextButton.clicked.connect(self.next)
        self.previousButton.clicked.connect(self.previous)
        self.loadButton.clicked.connect(self.loadFromFile)
        self.saveButton.clicked.connect(self.saveToFile)

        buttonLayout1 = QtWidgets.QVBoxLayout()
        buttonLayout1.addWidget(self.addButton)
        buttonLayout1.addWidget(self.editButton)
        buttonLayout1.addWidget(self.removeButton)
        buttonLayout1.addWidget(self.findButton)
        buttonLayout1.addWidget(self.submitButton)
        buttonLayout1.addWidget(self.cancelButton)
        buttonLayout1.addWidget(self.loadButton)
        buttonLayout1.addWidget(self.saveButton)
        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, 2, 1)

        self.setLayout(mainLayout)
        self.setWindowTitle("Simple Address Book")
Beispiel #12
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1000, 500)
        MainWindow.setMinimumSize(QtCore.QSize(1000, 500))
        MainWindow.setStyleSheet("background-color: rgb(45, 45, 45);")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.Top_Bar = QtWidgets.QFrame(self.centralwidget)
        self.Top_Bar.setMaximumSize(QtCore.QSize(16777215, 40))
        self.Top_Bar.setStyleSheet("background-color: rgb(35, 35, 35);")
        self.Top_Bar.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.Top_Bar.setFrameShadow(QtWidgets.QFrame.Raised)
        self.Top_Bar.setObjectName("Top_Bar")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.Top_Bar)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.frame_toggle = QtWidgets.QFrame(self.Top_Bar)
        self.frame_toggle.setMaximumSize(QtCore.QSize(70, 40))
        self.frame_toggle.setStyleSheet("background-color: rgb(85, 170, 255);")
        self.frame_toggle.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_toggle.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_toggle.setObjectName("frame_toggle")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame_toggle)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.Btn_Toggle = QtWidgets.QPushButton(self.frame_toggle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.Btn_Toggle.sizePolicy().hasHeightForWidth())
        self.Btn_Toggle.setSizePolicy(sizePolicy)
        self.Btn_Toggle.setStyleSheet("color: rgb(255, 255, 255);\n"
                                      "border: 0px solid;")
        self.Btn_Toggle.setObjectName("Btn_Toggle")
        self.verticalLayout_2.addWidget(self.Btn_Toggle)
        self.horizontalLayout.addWidget(self.frame_toggle)
        self.frame_top = QtWidgets.QFrame(self.Top_Bar)
        self.frame_top.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_top.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_top.setObjectName("frame_top")
        self.horizontalLayout.addWidget(self.frame_top)
        self.verticalLayout.addWidget(self.Top_Bar)
        self.Content = QtWidgets.QFrame(self.centralwidget)
        self.Content.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.Content.setFrameShadow(QtWidgets.QFrame.Raised)
        self.Content.setObjectName("Content")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.Content)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setSpacing(0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.frame_left_menu = QtWidgets.QFrame(self.Content)
        self.frame_left_menu.setMinimumSize(QtCore.QSize(70, 0))
        self.frame_left_menu.setMaximumSize(QtCore.QSize(70, 16777215))
        self.frame_left_menu.setStyleSheet(
            "background-color: rgb(35, 35, 35);")
        self.frame_left_menu.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_left_menu.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_left_menu.setObjectName("frame_left_menu")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frame_left_menu)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.frame_top_menus = QtWidgets.QFrame(self.frame_left_menu)
        self.frame_top_menus.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_top_menus.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_top_menus.setObjectName("frame_top_menus")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.frame_top_menus)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setSpacing(0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.btn_page_1 = QtWidgets.QPushButton(self.frame_top_menus)
        self.btn_page_1.setMinimumSize(QtCore.QSize(0, 40))
        self.btn_page_1.setStyleSheet(
            "QPushButton {\n"
            "    color: rgb(255, 255, 255);\n"
            "    background-color: rgb(35, 35, 35);\n"
            "    border: 0px solid;\n"
            "}\n"
            "QPushButton:hover {\n"
            "    background-color: rgb(85, 170, 255);\n"
            "}")
        self.btn_page_1.setObjectName("btn_page_1")
        self.verticalLayout_4.addWidget(self.btn_page_1)
        self.btn_page_2 = QtWidgets.QPushButton(self.frame_top_menus)
        self.btn_page_2.setMinimumSize(QtCore.QSize(0, 40))
        self.btn_page_2.setStyleSheet(
            "QPushButton {\n"
            "    color: rgb(255, 255, 255);\n"
            "    background-color: rgb(35, 35, 35);\n"
            "    border: 0px solid;\n"
            "}\n"
            "QPushButton:hover {\n"
            "    background-color: rgb(85, 170, 255);\n"
            "}")
        self.btn_page_2.setObjectName("btn_page_2")
        self.verticalLayout_4.addWidget(self.btn_page_2)
        self.btn_page_3 = QtWidgets.QPushButton(self.frame_top_menus)
        self.btn_page_3.setMinimumSize(QtCore.QSize(0, 40))
        self.btn_page_3.setStyleSheet(
            "QPushButton {\n"
            "    color: rgb(255, 255, 255);\n"
            "    background-color: rgb(35, 35, 35);\n"
            "    border: 0px solid;\n"
            "}\n"
            "QPushButton:hover {\n"
            "    background-color: rgb(85, 170, 255);\n"
            "}")
        self.btn_page_3.setObjectName("btn_page_3")
        self.verticalLayout_4.addWidget(self.btn_page_3)
        self.verticalLayout_3.addWidget(self.frame_top_menus, 0,
                                        QtCore.Qt.AlignTop)
        self.horizontalLayout_2.addWidget(self.frame_left_menu)
        self.frame_pages = QtWidgets.QFrame(self.Content)
        self.frame_pages.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_pages.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_pages.setObjectName("frame_pages")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.frame_pages)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.stackedWidget = QtWidgets.QStackedWidget(self.frame_pages)
        self.stackedWidget.setObjectName("stackedWidget")
        self.page_1 = QtWidgets.QWidget()
        self.page_1.setObjectName("page_1")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.page_1)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.label_1 = QtWidgets.QLabel(self.page_1)
        font = QtGui.QFont()
        font.setPointSize(40)
        self.label_1.setFont(font)
        self.label_1.setStyleSheet("color: #FFF;")
        self.label_1.setAlignment(QtCore.Qt.AlignCenter)
        self.label_1.setObjectName("label_1")
        self.verticalLayout_7.addWidget(self.label_1)
        self.stackedWidget.addWidget(self.page_1)
        self.page_2 = QtWidgets.QWidget()
        self.page_2.setObjectName("page_2")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.page_2)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.label_2 = QtWidgets.QTextEdit(self.page_2)
        font = QtGui.QFont()
        font.setPointSize(40)
        self.label_2.setFont(font)
        self.label_2.setStyleSheet("color: #FFF;")
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_6.addWidget(self.label_2)
        self.stackedWidget.addWidget(self.page_2)
        self.page_3 = QtWidgets.QWidget()
        self.page_3.setObjectName("page_3")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.page_3)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.label = QtWidgets.QTextEdit(self.page_3)
        font = QtGui.QFont()
        font.setPointSize(40)
        self.label.setFont(font)
        self.label.setStyleSheet("color: #FFF;")
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.verticalLayout_8.addWidget(self.label)
        self.stackedWidget.addWidget(self.page_3)
        self.verticalLayout_5.addWidget(self.stackedWidget)
        self.horizontalLayout_2.addWidget(self.frame_pages)
        self.verticalLayout.addWidget(self.Content)
        MainWindow.setCentralWidget(self.centralwidget)
        self.retranslateUi(MainWindow)
        self.stackedWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

        ##connections
        self.lineEdit1 = QtWidgets.QLineEdit()
        self.lineEdit1.setEchoMode(
            QtWidgets.QLineEdit.EchoMode.Password)  #password mode
        self.lineEdit1.setStyleSheet("color: #FFF")
        self.button1 = QtWidgets.QPushButton()
        self.verticalLayout_7.addWidget(self.lineEdit1)
        self.verticalLayout_7.addWidget(self.button1)

        self.lineEdit2 = QtWidgets.QLineEdit(
            "Enter site name and then the password next to it or generate")
        self.lineEdit2.setStyleSheet("color: #FFF")
        self.lineEdit3 = QtWidgets.QLineEdit()
        self.lineEdit3.setStyleSheet("color: #FFF")
        self.lineEdit3.setEchoMode(QtWidgets.QLineEdit.EchoMode.Password)
        self.sublayout1 = QtWidgets.QHBoxLayout()
        self.sublayout2 = QtWidgets.QHBoxLayout()
        self.sublayout1.addWidget(self.lineEdit2)
        self.sublayout1.addWidget(self.lineEdit3)
        self.button2 = QtWidgets.QPushButton("Save")
        self.button4 = QtWidgets.QPushButton("Generate")
        self.sublayout2.addWidget(self.button2)
        self.sublayout2.addWidget(self.button4)
        self.verticalLayout_6.addLayout(self.sublayout1)
        self.verticalLayout_6.addLayout(self.sublayout2)

        self.lineEdit4 = QtWidgets.QLineEdit(
            "Enter the site name to get password")
        self.lineEdit4.setStyleSheet("color: #FFF")
        self.button3 = QtWidgets.QPushButton()
        self.verticalLayout_8.addWidget(self.lineEdit4)
        self.verticalLayout_8.addWidget(self.button3)

        ##connections
        self.redis_manager = redismodel.PasswordManager()

        self.button1.clicked.connect(self.getMasterPassword)
        self.button2.clicked.connect(self.setPassword)
        self.button3.clicked.connect(self.getPassword)
        self.button4.clicked.connect(self.generatePassword)
Beispiel #13
0
    def __init__(
        self,
        flight_sim_handle: flight_sim,
        parent: QtWidgets.QWidget = None,
        appctxt: ApplicationContext = None,
    ) -> None:
        """Info widget/dialog for displaying mod info."""
        QtWidgets.QWidget.__init__(self)
        self.flight_sim = flight_sim_handle
        self.parent = parent  # type: ignore
        self.appctxt = appctxt

        # self.setWindowTitle("Info")
        self.setWindowFlags(
            QtCore.Qt.WindowSystemMenuHint  # type: ignore
            | QtCore.Qt.WindowTitleHint  # type: ignore
            | QtCore.Qt.WindowMinimizeButtonHint
            | QtCore.Qt.WindowMaximizeButtonHint
            | QtCore.Qt.WindowCloseButtonHint
        )
        # self.setWindowModality(QtCore.Qt.ApplicationModal)

        self.layout = QtWidgets.QVBoxLayout()  # type: ignore

        self.top_group = QtWidgets.QGroupBox()  # type: ignore
        self.top_layout = QtWidgets.QFormLayout()

        self.content_type_field = QtWidgets.QLineEdit(self)
        self.content_type_field.setReadOnly(True)
        self.top_layout.addRow("Content Type", self.content_type_field)  # type: ignore

        self.title_field = QtWidgets.QLineEdit(self)
        self.title_field.setReadOnly(True)
        self.top_layout.addRow("Title", self.title_field)  # type: ignore

        self.manufacturer_field = QtWidgets.QLineEdit(self)
        self.manufacturer_field.setReadOnly(True)
        self.top_layout.addRow("Manufacturer", self.manufacturer_field)  # type: ignore

        self.creator_field = QtWidgets.QLineEdit(self)
        self.creator_field.setReadOnly(True)
        self.top_layout.addRow("Creator", self.creator_field)  # type: ignore

        self.package_version_field = QtWidgets.QLineEdit(self)
        self.package_version_field.setReadOnly(True)
        self.top_layout.addRow("Package Version", self.package_version_field)  # type: ignore

        self.minimum_game_version_field = QtWidgets.QLineEdit(self)
        self.minimum_game_version_field.setReadOnly(True)
        self.top_layout.addRow("Minimum Game Version", self.minimum_game_version_field)  # type: ignore

        self.total_size_field = QtWidgets.QLineEdit(self)
        self.total_size_field.setReadOnly(True)
        self.top_layout.addRow("Total Size", self.total_size_field)  # type: ignore

        self.top_group.setLayout(self.top_layout)
        self.layout.addWidget(self.top_group)

        self.open_folder_button = QtWidgets.QPushButton("Open Folder", self)
        self.layout.addWidget(self.open_folder_button)

        self.files_table = files_table(self)
        self.files_table.setAccessibleName("info_files")
        self.layout.addWidget(self.files_table)

        self.setLayout(self.layout)

        self.open_folder_button.clicked.connect(self.open_folder)  # type: ignore
    def setFormFornecedor(self, ct_FormFornecedor):
        ct_FormFornecedor.setObjectName("ct_FormFornecedor")
        ct_FormFornecedor.resize(1000, 500)
        ct_FormFornecedor.setFrameShape(QtWidgets.QFrame.StyledPanel)
        ct_FormFornecedor.setFrameShadow(QtWidgets.QFrame.Raised)
        self.fr_FormFornecedor = QtWidgets.QFrame(ct_FormFornecedor)
        self.fr_FormFornecedor.setGeometry(QtCore.QRect(0, 0, 1000, 500))
        self.fr_FormFornecedor.setStyleSheet("background: #FFF;\n"
                                             "border: none")
        self.fr_FormFornecedor.setObjectName("fr_FormFornecedor")
        self.lb_FormFornecedor = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor.setGeometry(QtCore.QRect(100, 10, 880, 30))
        self.lb_FormFornecedor.setStyleSheet(
            "QLabel{\n"
            "font-size: 14px;\n"
            "font-family: \"Arial\";\n"
            "font-weight: bold;\n"
            "\n"
            "border-bottom: 2px solid #A2A2A2\n"
            "}")
        self.lb_FormFornecedor.setObjectName("lb_FormFornecedor")
        self.tx_Id = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_Id.setEnabled(False)
        self.tx_Id.setGeometry(QtCore.QRect(20, 10, 50, 30))
        self.tx_Id.setStyleSheet("QLineEdit{\n"
                                 "background: #CFCFCF;\n"
                                 "border: 1px solid #A2A2A2;\n"
                                 "color: #000;\n"
                                 "font-size: 14px;\n"
                                 "font-family: \"Arial\";\n"
                                 "font-weight: bold;\n"
                                 "\n"
                                 "}")
        self.tx_Id.setText("")
        self.tx_Id.setAlignment(QtCore.Qt.AlignCenter)
        self.tx_Id.setObjectName("tx_Id")
        self.lb_FormFornecedor_2 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_2.setGeometry(QtCore.QRect(20, 60, 150, 20))
        self.lb_FormFornecedor_2.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_2.setObjectName("lb_FormFornecedor_2")
        self.tx_NomeFantasia = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_NomeFantasia.setGeometry(QtCore.QRect(20, 85, 305, 25))
        self.tx_NomeFantasia.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.tx_NomeFantasia.setStyleSheet("QLineEdit{\n"
                                           "background: #CFCFCF;\n"
                                           "border-radius: 2px;\n"
                                           "color: #000;\n"
                                           "font: 13px \"Arial\" ;\n"
                                           "text-transform: uppercase;\n"
                                           "}\n"
                                           "QLineEdit:Focus {\n"
                                           "border: 1px solid red;\n"
                                           "}")
        self.tx_NomeFantasia.setObjectName("tx_NomeFantasia")
        self.lb_FormFornecedor_3 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_3.setGeometry(QtCore.QRect(20, 120, 190, 20))
        self.lb_FormFornecedor_3.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_3.setObjectName("lb_FormFornecedor_3")
        self.lb_FormFornecedor_4 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_4.setGeometry(QtCore.QRect(236, 120, 190, 20))
        self.lb_FormFornecedor_4.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_4.setObjectName("lb_FormFornecedor_4")
        self.lb_FormFornecedor_5 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_5.setGeometry(QtCore.QRect(20, 180, 196, 20))
        self.lb_FormFornecedor_5.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_5.setObjectName("lb_FormFornecedor_5")
        self.tx_Telefone = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_Telefone.setGeometry(QtCore.QRect(20, 205, 196, 25))
        self.tx_Telefone.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.tx_Telefone.setStyleSheet("QLineEdit{\n"
                                       "background: #CFCFCF;\n"
                                       "border-radius: 2px;\n"
                                       "color: #000;\n"
                                       "font: 13px \"Arial\" \n"
                                       "}\n"
                                       "QLineEdit:Focus {\n"
                                       "border: 1px solid red;\n"
                                       "}")
        self.tx_Telefone.setPlaceholderText("")
        self.tx_Telefone.setObjectName("tx_Telefone")
        self.tx_InscEstadual = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_InscEstadual.setGeometry(QtCore.QRect(236, 145, 196, 25))
        self.tx_InscEstadual.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.tx_InscEstadual.setStyleSheet("QLineEdit{\n"
                                           "background: #CFCFCF;\n"
                                           "border-radius: 2px;\n"
                                           "color: #000;\n"
                                           "font: 13px \"Arial\" \n"
                                           "}\n"
                                           "QLineEdit:Focus {\n"
                                           "border: 1px solid red;\n"
                                           "}")
        self.tx_InscEstadual.setPlaceholderText("")
        self.tx_InscEstadual.setObjectName("tx_InscEstadual")
        self.tx_Obs = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_Obs.setGeometry(QtCore.QRect(20, 260, 630, 25))
        self.tx_Obs.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.tx_Obs.setStyleSheet("QLineEdit{\n"
                                  "background: #CFCFCF;\n"
                                  "border-radius: 2px;\n"
                                  "color: #000;\n"
                                  "font: 13px \"Arial\" ;\n"
                                  "text-transform: uppercase\n"
                                  "}\n"
                                  "QLineEdit:Focus {\n"
                                  "border: 1px solid red;\n"
                                  "}")
        self.tx_Obs.setObjectName("tx_Obs")
        self.lb_FormFornecedor_7 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_7.setGeometry(QtCore.QRect(20, 235, 150, 20))
        self.lb_FormFornecedor_7.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_7.setObjectName("lb_FormFornecedor_7")
        self.lb_FormFornecedor_8 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_8.setGeometry(QtCore.QRect(20, 290, 630, 30))
        self.lb_FormFornecedor_8.setStyleSheet(
            "QLabel{\n"
            "font-size: 14px;\n"
            "font-family: \"Arial\";\n"
            "font-weight: normal;\n"
            "\n"
            "border-bottom: 2px solid #A2A2A2;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_8.setObjectName("lb_FormFornecedor_8")
        self.tb_Historico = QtWidgets.QTableWidget(self.fr_FormFornecedor)
        self.tb_Historico.setGeometry(QtCore.QRect(680, 90, 310, 320))
        self.tb_Historico.setStyleSheet("QTableView{\n"
                                        "color: #797979;\n"
                                        "font-family: \"Arial\";\n"
                                        "font-weight: bold;\n"
                                        "font-size: 12px;\n"
                                        "background: #FFF;\n"
                                        "}\n"
                                        "QHeaderView:section{\n"
                                        "background: #FFF;\n"
                                        "font-size: 12px;\n"
                                        "font-family: \"Arial\";\n"
                                        "font-weight: bold;\n"
                                        "color: #797979;\n"
                                        "border: none;\n"
                                        "border-bottom: 1px solid #CCC;\n"
                                        "height: 25px;\n"
                                        "}\n"
                                        "")
        self.tb_Historico.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.tb_Historico.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.tb_Historico.setShowGrid(False)
        self.tb_Historico.setObjectName("tb_Historico")
        self.tb_Historico.setColumnCount(3)
        self.tb_Historico.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.tb_Historico.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tb_Historico.setHorizontalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        self.tb_Historico.setHorizontalHeaderItem(2, item)
        self.tb_Historico.verticalHeader().setVisible(False)
        self.tb_Historico.verticalHeader().setHighlightSections(False)
        self.lb_FormFornecedor_9 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_9.setGeometry(QtCore.QRect(670, 60, 310, 20))
        self.lb_FormFornecedor_9.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_9.setObjectName("lb_FormFornecedor_9")
        self.tx_Cep = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_Cep.setGeometry(QtCore.QRect(20, 360, 100, 25))
        self.tx_Cep.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.tx_Cep.setStyleSheet("QLineEdit{\n"
                                  "background: #CFCFCF;\n"
                                  "border-radius: 2px;\n"
                                  "color: #000;\n"
                                  "font: 13px \"Arial\" ;\n"
                                  "text-transform: uppercase\n"
                                  "}\n"
                                  "QLineEdit:Focus {\n"
                                  "border: 1px solid red;\n"
                                  "}")
        self.tx_Cep.setAlignment(QtCore.Qt.AlignCenter)
        self.tx_Cep.setObjectName("tx_Cep")
        self.lb_FormFornecedor_10 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_10.setGeometry(QtCore.QRect(20, 335, 50, 20))
        self.lb_FormFornecedor_10.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_10.setObjectName("lb_FormFornecedor_10")
        self.fr_BotoesFormFornecedor = QtWidgets.QFrame(self.fr_FormFornecedor)
        self.fr_BotoesFormFornecedor.setGeometry(QtCore.QRect(
            0, 470, 1000, 30))
        self.fr_BotoesFormFornecedor.setStyleSheet("background:#E1DFE0;\n"
                                                   "border: none;")
        self.fr_BotoesFormFornecedor.setObjectName("fr_BotoesFormFornecedor")
        self.bt_Voltar = QtWidgets.QPushButton(self.fr_BotoesFormFornecedor)
        self.bt_Voltar.setGeometry(QtCore.QRect(880, 0, 120, 30))
        font = QtGui.QFont()
        font.setFamily("Tahoma")
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.bt_Voltar.setFont(font)
        self.bt_Voltar.setCursor(QtCore.Qt.PointingHandCursor)
        self.bt_Voltar.setFocusPolicy(QtCore.Qt.NoFocus)
        self.bt_Voltar.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.bt_Voltar.setStyleSheet("QPushButton {\n"
                                     "background-color: #1E87F0;\n"
                                     "color: #FFF\n"
                                     " }\n"
                                     "QPushButton:hover{\n"
                                     "background-color: #40a286\n"
                                     "}")
        self.bt_Voltar.setIconSize(QtCore.QSize(75, 35))
        self.bt_Voltar.setObjectName("bt_Voltar")
        self.bt_Salvar = QtWidgets.QPushButton(self.fr_BotoesFormFornecedor)
        self.bt_Salvar.setGeometry(QtCore.QRect(750, 0, 120, 30))
        font = QtGui.QFont()
        font.setFamily("Tahoma")
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.bt_Salvar.setFont(font)
        self.bt_Salvar.setCursor(QtCore.Qt.PointingHandCursor)
        self.bt_Salvar.setFocusPolicy(QtCore.Qt.NoFocus)
        self.bt_Salvar.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.bt_Salvar.setStyleSheet("QPushButton {\n"
                                     "background-color: #7AB32E;\n"
                                     "color: #FFF\n"
                                     " }\n"
                                     "QPushButton:hover{\n"
                                     "background-color: #40a286\n"
                                     "}")
        self.bt_Salvar.setIconSize(QtCore.QSize(75, 35))
        self.bt_Salvar.setObjectName("bt_Salvar")
        self.lb_FormFornecedor_21 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_21.setGeometry(QtCore.QRect(345, 60, 150, 20))
        self.lb_FormFornecedor_21.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_21.setObjectName("lb_FormFornecedor_21")
        self.tx_RazaoSocial = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_RazaoSocial.setGeometry(QtCore.QRect(345, 85, 305, 25))
        self.tx_RazaoSocial.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.tx_RazaoSocial.setStyleSheet("QLineEdit{\n"
                                          "background: #CFCFCF;\n"
                                          "border-radius: 2px;\n"
                                          "color: #000;\n"
                                          "font: 13px \"Arial\" ;\n"
                                          "text-transform: uppercase;\n"
                                          "}\n"
                                          "QLineEdit:Focus {\n"
                                          "border: 1px solid red;\n"
                                          "}")
        self.tx_RazaoSocial.setObjectName("tx_RazaoSocial")
        self.tx_cnpj = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_cnpj.setGeometry(QtCore.QRect(20, 145, 196, 25))
        self.tx_cnpj.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.tx_cnpj.setStyleSheet("QLineEdit{\n"
                                   "background: #CFCFCF;\n"
                                   "border-radius: 2px;\n"
                                   "color: #000;\n"
                                   "font: 13px \"Arial\" \n"
                                   "}\n"
                                   "QLineEdit:Focus {\n"
                                   "border: 1px solid red;\n"
                                   "}")
        self.tx_cnpj.setText("")
        self.tx_cnpj.setPlaceholderText("")
        self.tx_cnpj.setObjectName("tx_cnpj")
        self.lb_FormFornecedor_23 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_23.setGeometry(QtCore.QRect(452, 180, 190, 20))
        self.lb_FormFornecedor_23.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_23.setObjectName("lb_FormFornecedor_23")
        self.lb_FormFornecedor_24 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_24.setGeometry(QtCore.QRect(236, 180, 190, 20))
        self.lb_FormFornecedor_24.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_24.setObjectName("lb_FormFornecedor_24")
        self.tx_Email = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_Email.setGeometry(QtCore.QRect(452, 205, 196, 25))
        self.tx_Email.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.tx_Email.setStyleSheet("QLineEdit{\n"
                                    "background: #CFCFCF;\n"
                                    "border-radius: 2px;\n"
                                    "color: #000;\n"
                                    "font: 13px \"Arial\" \n"
                                    "}\n"
                                    "QLineEdit:Focus {\n"
                                    "border: 1px solid red;\n"
                                    "}")
        self.tx_Email.setPlaceholderText("")
        self.tx_Email.setObjectName("tx_Email")
        self.tx_Site = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_Site.setGeometry(QtCore.QRect(236, 205, 196, 25))
        self.tx_Site.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.tx_Site.setStyleSheet("QLineEdit{\n"
                                   "background: #CFCFCF;\n"
                                   "border-radius: 2px;\n"
                                   "color: #000;\n"
                                   "font: 13px \"Arial\" \n"
                                   "}\n"
                                   "QLineEdit:Focus {\n"
                                   "border: 1px solid red;\n"
                                   "}")
        self.tx_Site.setPlaceholderText("")
        self.tx_Site.setObjectName("tx_Site")
        self.lb_FormFornecedor_11 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_11.setGeometry(QtCore.QRect(160, 335, 250, 20))
        self.lb_FormFornecedor_11.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_11.setObjectName("lb_FormFornecedor_11")
        self.tx_Endereco = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_Endereco.setGeometry(QtCore.QRect(160, 360, 400, 25))
        self.tx_Endereco.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.tx_Endereco.setStyleSheet("QLineEdit{\n"
                                       "background: #CFCFCF;\n"
                                       "border-radius: 2px;\n"
                                       "color: #000;\n"
                                       "font: 13px \"Arial\" ;\n"
                                       "text-transform: uppercase\n"
                                       "}\n"
                                       "QLineEdit:Focus {\n"
                                       "border: 1px solid red;\n"
                                       "}")
        self.tx_Endereco.setInputMask("")
        self.tx_Endereco.setAlignment(QtCore.Qt.AlignLeading
                                      | QtCore.Qt.AlignLeft
                                      | QtCore.Qt.AlignVCenter)
        self.tx_Endereco.setPlaceholderText("")
        self.tx_Endereco.setObjectName("tx_Endereco")
        self.lb_FormFornecedor_12 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_12.setGeometry(QtCore.QRect(580, 335, 50, 20))
        self.lb_FormFornecedor_12.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_12.setObjectName("lb_FormFornecedor_12")
        self.tx_Numero = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_Numero.setGeometry(QtCore.QRect(580, 360, 70, 25))
        self.tx_Numero.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.tx_Numero.setStyleSheet("QLineEdit{\n"
                                     "background: #CFCFCF;\n"
                                     "border-radius: 2px;\n"
                                     "color: #000;\n"
                                     "font: 13px \"Arial\" ;\n"
                                     "text-transform: uppercase\n"
                                     "}\n"
                                     "QLineEdit:Focus {\n"
                                     "border: 1px solid red;\n"
                                     "}")
        self.tx_Numero.setInputMask("")
        self.tx_Numero.setAlignment(QtCore.Qt.AlignLeading
                                    | QtCore.Qt.AlignLeft
                                    | QtCore.Qt.AlignVCenter)
        self.tx_Numero.setPlaceholderText("")
        self.tx_Numero.setObjectName("tx_Numero")
        self.tx_Bairro = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_Bairro.setGeometry(QtCore.QRect(20, 415, 260, 25))
        self.tx_Bairro.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.tx_Bairro.setStyleSheet("QLineEdit{\n"
                                     "background: #CFCFCF;\n"
                                     "border-radius: 2px;\n"
                                     "color: #000;\n"
                                     "font: 13px \"Arial\" ;\n"
                                     "text-transform: uppercase\n"
                                     "}\n"
                                     "QLineEdit:Focus {\n"
                                     "border: 1px solid red;\n"
                                     "}")
        self.tx_Bairro.setInputMask("")
        self.tx_Bairro.setAlignment(QtCore.Qt.AlignLeading
                                    | QtCore.Qt.AlignLeft
                                    | QtCore.Qt.AlignVCenter)
        self.tx_Bairro.setPlaceholderText("")
        self.tx_Bairro.setObjectName("tx_Bairro")
        self.lb_FormFornecedor_13 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_13.setGeometry(QtCore.QRect(20, 390, 120, 20))
        self.lb_FormFornecedor_13.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_13.setObjectName("lb_FormFornecedor_13")
        self.tx_Cidade = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_Cidade.setGeometry(QtCore.QRect(300, 415, 260, 25))
        self.tx_Cidade.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.tx_Cidade.setStyleSheet("QLineEdit{\n"
                                     "background: #CFCFCF;\n"
                                     "border-radius: 2px;\n"
                                     "color: #000;\n"
                                     "font: 13px \"Arial\" ;\n"
                                     "text-transform: uppercase\n"
                                     "}\n"
                                     "QLineEdit:Focus {\n"
                                     "border: 1px solid red;\n"
                                     "}")
        self.tx_Cidade.setInputMask("")
        self.tx_Cidade.setAlignment(QtCore.Qt.AlignLeading
                                    | QtCore.Qt.AlignLeft
                                    | QtCore.Qt.AlignVCenter)
        self.tx_Cidade.setPlaceholderText("")
        self.tx_Cidade.setObjectName("tx_Cidade")
        self.lb_FormFornecedor_14 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_14.setGeometry(QtCore.QRect(300, 390, 120, 20))
        self.lb_FormFornecedor_14.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_14.setObjectName("lb_FormFornecedor_14")
        self.lb_FormFornecedor_15 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormFornecedor_15.setGeometry(QtCore.QRect(580, 390, 70, 20))
        self.lb_FormFornecedor_15.setStyleSheet(
            "QLabel{\n"
            "font-size: 12px;\n"
            "font-family: \"Arial Unicode MS\";\n"
            "font-weight: bold;\n"
            "color: #797979\n"
            "}")
        self.lb_FormFornecedor_15.setObjectName("lb_FormFornecedor_15")
        self.tx_Estado = QtWidgets.QLineEdit(self.fr_FormFornecedor)
        self.tx_Estado.setGeometry(QtCore.QRect(580, 415, 70, 25))
        self.tx_Estado.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.tx_Estado.setStyleSheet("QLineEdit{\n"
                                     "background: #CFCFCF;\n"
                                     "border-radius: 2px;\n"
                                     "color: #000;\n"
                                     "font: 13px \"Arial\" ;\n"
                                     "text-transform: uppercase\n"
                                     "}\n"
                                     "QLineEdit:Focus {\n"
                                     "border: 1px solid red;\n"
                                     "}")
        self.tx_Estado.setInputMask("")
        self.tx_Estado.setAlignment(QtCore.Qt.AlignLeading
                                    | QtCore.Qt.AlignLeft
                                    | QtCore.Qt.AlignVCenter)
        self.tx_Estado.setPlaceholderText("")
        self.tx_Estado.setObjectName("tx_Estado")
        self.bt_BuscaCep = QtWidgets.QPushButton(self.fr_FormFornecedor)
        self.bt_BuscaCep.setGeometry(QtCore.QRect(120, 360, 25, 25))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(16)
        font.setWeight(75)
        font.setBold(True)
        self.bt_BuscaCep.setFont(font)
        self.bt_BuscaCep.setStyleSheet("QPushButton{\n"
                                       "background: #7AB32E;\n"
                                       "color: #FFF\n"
                                       "}\n"
                                       "QPushButton:hover{\n"
                                       "background-color: #40a286\n"
                                       "}")
        self.bt_BuscaCep.setText("")
        self.bt_BuscaCep.setObjectName("bt_BuscaCep")
        self.lb_FormVenda_11 = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_FormVenda_11.setGeometry(QtCore.QRect(680, 415, 211, 25))
        self.lb_FormVenda_11.setStyleSheet("QLabel{\n"
                                           "font-size: 15px;\n"
                                           "font-family: \"Arial\";\n"
                                           "font-weight: bold;\n"
                                           "color: #277298;\n"
                                           "border: none\n"
                                           "}")
        self.lb_FormVenda_11.setAlignment(QtCore.Qt.AlignRight
                                          | QtCore.Qt.AlignTrailing
                                          | QtCore.Qt.AlignVCenter)
        self.lb_FormVenda_11.setObjectName("lb_FormVenda_11")
        self.lb_TotalHistorico = QtWidgets.QLabel(self.fr_FormFornecedor)
        self.lb_TotalHistorico.setGeometry(QtCore.QRect(910, 415, 81, 25))
        self.lb_TotalHistorico.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.lb_TotalHistorico.setStyleSheet("QLabel{\n"
                                             "font-size: 20px;\n"
                                             "font-family: \"Arial\";\n"
                                             "font-weight: bold;\n"
                                             "color: #277298;\n"
                                             "border: none\n"
                                             "}")
        self.lb_TotalHistorico.setAlignment(QtCore.Qt.AlignCenter)
        self.lb_TotalHistorico.setObjectName("lb_TotalHistorico")

        self.tradFormFornecedor(ct_FormFornecedor)
        QtCore.QMetaObject.connectSlotsByName(ct_FormFornecedor)
Beispiel #15
0
    def setupUi(self, wg_Export):
        wg_Export.setObjectName("wg_Export")
        wg_Export.resize(340, 712)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            wg_Export.sizePolicy().hasHeightForWidth())
        wg_Export.setSizePolicy(sizePolicy)
        wg_Export.setMinimumSize(QtCore.QSize(340, 0))
        wg_Export.setMaximumSize(QtCore.QSize(340, 16777215))
        self.verticalLayout = QtWidgets.QVBoxLayout(wg_Export)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.w_name = QtWidgets.QWidget(wg_Export)
        self.w_name.setObjectName("w_name")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.w_name)
        self.horizontalLayout_5.setContentsMargins(9, 0, 18, 0)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.l_name = QtWidgets.QLabel(self.w_name)
        self.l_name.setObjectName("l_name")
        self.horizontalLayout_5.addWidget(self.l_name)
        self.e_name = QtWidgets.QLineEdit(self.w_name)
        self.e_name.setMinimumSize(QtCore.QSize(0, 0))
        self.e_name.setMaximumSize(QtCore.QSize(9999, 16777215))
        self.e_name.setObjectName("e_name")
        self.horizontalLayout_5.addWidget(self.e_name)
        self.l_class = QtWidgets.QLabel(self.w_name)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.l_class.setFont(font)
        self.l_class.setObjectName("l_class")
        self.horizontalLayout_5.addWidget(self.l_class)
        self.verticalLayout.addWidget(self.w_name)
        self.gb_export = QtWidgets.QGroupBox(wg_Export)
        self.gb_export.setObjectName("gb_export")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.gb_export)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.w_taskname = QtWidgets.QWidget(self.gb_export)
        self.w_taskname.setObjectName("w_taskname")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.w_taskname)
        self.horizontalLayout_4.setContentsMargins(9, 0, 9, 0)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.l_tasklabel = QtWidgets.QLabel(self.w_taskname)
        self.l_tasklabel.setObjectName("l_tasklabel")
        self.horizontalLayout_4.addWidget(self.l_tasklabel)
        self.l_taskName = QtWidgets.QLabel(self.w_taskname)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.l_taskName.sizePolicy().hasHeightForWidth())
        self.l_taskName.setSizePolicy(sizePolicy)
        self.l_taskName.setText("")
        self.l_taskName.setAlignment(QtCore.Qt.AlignCenter)
        self.l_taskName.setObjectName("l_taskName")
        self.horizontalLayout_4.addWidget(self.l_taskName)
        self.b_changeTask = QtWidgets.QPushButton(self.w_taskname)
        self.b_changeTask.setEnabled(True)
        self.b_changeTask.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_changeTask.setObjectName("b_changeTask")
        self.horizontalLayout_4.addWidget(self.b_changeTask)
        self.verticalLayout_2.addWidget(self.w_taskname)
        self.w_range = QtWidgets.QWidget(self.gb_export)
        self.w_range.setObjectName("w_range")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.w_range)
        self.horizontalLayout_6.setSpacing(0)
        self.horizontalLayout_6.setContentsMargins(9, 0, 9, 0)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.label_3 = QtWidgets.QLabel(self.w_range)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_6.addWidget(self.label_3)
        spacerItem = QtWidgets.QSpacerItem(37, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem)
        self.cb_rangeType = QtWidgets.QComboBox(self.w_range)
        self.cb_rangeType.setObjectName("cb_rangeType")
        self.horizontalLayout_6.addWidget(self.cb_rangeType)
        self.verticalLayout_2.addWidget(self.w_range)
        self.f_frameRange_2 = QtWidgets.QWidget(self.gb_export)
        self.f_frameRange_2.setObjectName("f_frameRange_2")
        self.gridLayout = QtWidgets.QGridLayout(self.f_frameRange_2)
        self.gridLayout.setContentsMargins(-1, 0, -1, 0)
        self.gridLayout.setObjectName("gridLayout")
        self.l_rangeEnd = QtWidgets.QLabel(self.f_frameRange_2)
        self.l_rangeEnd.setMinimumSize(QtCore.QSize(30, 0))
        self.l_rangeEnd.setAlignment(QtCore.Qt.AlignRight
                                     | QtCore.Qt.AlignTrailing
                                     | QtCore.Qt.AlignVCenter)
        self.l_rangeEnd.setObjectName("l_rangeEnd")
        self.gridLayout.addWidget(self.l_rangeEnd, 1, 5, 1, 1)
        self.sp_rangeEnd = QtWidgets.QSpinBox(self.f_frameRange_2)
        self.sp_rangeEnd.setMaximumSize(QtCore.QSize(55, 16777215))
        self.sp_rangeEnd.setMaximum(99999)
        self.sp_rangeEnd.setProperty("value", 1100)
        self.sp_rangeEnd.setObjectName("sp_rangeEnd")
        self.gridLayout.addWidget(self.sp_rangeEnd, 1, 6, 1, 1)
        self.sp_rangeStart = QtWidgets.QSpinBox(self.f_frameRange_2)
        self.sp_rangeStart.setMaximumSize(QtCore.QSize(55, 16777215))
        self.sp_rangeStart.setMaximum(99999)
        self.sp_rangeStart.setProperty("value", 1001)
        self.sp_rangeStart.setObjectName("sp_rangeStart")
        self.gridLayout.addWidget(self.sp_rangeStart, 0, 6, 1, 1)
        self.l_rangeStart = QtWidgets.QLabel(self.f_frameRange_2)
        self.l_rangeStart.setMinimumSize(QtCore.QSize(30, 0))
        self.l_rangeStart.setAlignment(QtCore.Qt.AlignRight
                                       | QtCore.Qt.AlignTrailing
                                       | QtCore.Qt.AlignVCenter)
        self.l_rangeStart.setObjectName("l_rangeStart")
        self.gridLayout.addWidget(self.l_rangeStart, 0, 5, 1, 1)
        self.l_rangeStartInfo = QtWidgets.QLabel(self.f_frameRange_2)
        self.l_rangeStartInfo.setObjectName("l_rangeStartInfo")
        self.gridLayout.addWidget(self.l_rangeStartInfo, 0, 0, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem1, 0, 4, 1, 1)
        self.l_rangeEndInfo = QtWidgets.QLabel(self.f_frameRange_2)
        self.l_rangeEndInfo.setObjectName("l_rangeEndInfo")
        self.gridLayout.addWidget(self.l_rangeEndInfo, 1, 0, 1, 1)
        self.verticalLayout_2.addWidget(self.f_frameRange_2)
        self.w_outPath = QtWidgets.QWidget(self.gb_export)
        self.w_outPath.setObjectName("w_outPath")
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.w_outPath)
        self.horizontalLayout_11.setSpacing(0)
        self.horizontalLayout_11.setContentsMargins(9, 0, 9, 0)
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.l_outPath = QtWidgets.QLabel(self.w_outPath)
        self.l_outPath.setObjectName("l_outPath")
        self.horizontalLayout_11.addWidget(self.l_outPath)
        spacerItem2 = QtWidgets.QSpacerItem(113, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_11.addItem(spacerItem2)
        self.cb_outPath = QtWidgets.QComboBox(self.w_outPath)
        self.cb_outPath.setMinimumSize(QtCore.QSize(124, 0))
        self.cb_outPath.setObjectName("cb_outPath")
        self.horizontalLayout_11.addWidget(self.cb_outPath)
        self.verticalLayout_2.addWidget(self.w_outPath)
        self.w_outType = QtWidgets.QWidget(self.gb_export)
        self.w_outType.setObjectName("w_outType")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.w_outType)
        self.horizontalLayout_9.setSpacing(0)
        self.horizontalLayout_9.setContentsMargins(9, 0, 9, 0)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.l_outType = QtWidgets.QLabel(self.w_outType)
        self.l_outType.setObjectName("l_outType")
        self.horizontalLayout_9.addWidget(self.l_outType)
        spacerItem3 = QtWidgets.QSpacerItem(113, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_9.addItem(spacerItem3)
        self.cb_outType = QtWidgets.QComboBox(self.w_outType)
        self.cb_outType.setMinimumSize(QtCore.QSize(124, 0))
        self.cb_outType.setObjectName("cb_outType")
        self.horizontalLayout_9.addWidget(self.cb_outType)
        self.verticalLayout_2.addWidget(self.w_outType)
        self.w_cam = QtWidgets.QWidget(self.gb_export)
        self.w_cam.setObjectName("w_cam")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.w_cam)
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setContentsMargins(9, 0, 9, 0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.l_cam = QtWidgets.QLabel(self.w_cam)
        self.l_cam.setMinimumSize(QtCore.QSize(40, 0))
        self.l_cam.setMaximumSize(QtCore.QSize(95, 16777215))
        self.l_cam.setObjectName("l_cam")
        self.horizontalLayout_3.addWidget(self.l_cam)
        self.cb_cam = QtWidgets.QComboBox(self.w_cam)
        self.cb_cam.setObjectName("cb_cam")
        self.horizontalLayout_3.addWidget(self.cb_cam)
        self.verticalLayout_2.addWidget(self.w_cam)
        self.w_sCamShot = QtWidgets.QWidget(self.gb_export)
        self.w_sCamShot.setObjectName("w_sCamShot")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.w_sCamShot)
        self.horizontalLayout_7.setSpacing(0)
        self.horizontalLayout_7.setContentsMargins(9, 0, 9, 0)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.l_sCamShot = QtWidgets.QLabel(self.w_sCamShot)
        self.l_sCamShot.setMinimumSize(QtCore.QSize(40, 0))
        self.l_sCamShot.setMaximumSize(QtCore.QSize(95, 16777215))
        self.l_sCamShot.setObjectName("l_sCamShot")
        self.horizontalLayout_7.addWidget(self.l_sCamShot)
        self.cb_sCamShot = QtWidgets.QComboBox(self.w_sCamShot)
        self.cb_sCamShot.setObjectName("cb_sCamShot")
        self.horizontalLayout_7.addWidget(self.cb_sCamShot)
        self.verticalLayout_2.addWidget(self.w_sCamShot)
        self.w_selectCam = QtWidgets.QWidget(self.gb_export)
        self.w_selectCam.setObjectName("w_selectCam")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.w_selectCam)
        self.horizontalLayout_2.setSpacing(0)
        self.horizontalLayout_2.setContentsMargins(9, 0, 9, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.b_selectCam = QtWidgets.QPushButton(self.w_selectCam)
        self.b_selectCam.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_selectCam.setObjectName("b_selectCam")
        self.horizontalLayout_2.addWidget(self.b_selectCam)
        self.verticalLayout_2.addWidget(self.w_selectCam)
        self.w_convertExport = QtWidgets.QWidget(self.gb_export)
        self.w_convertExport.setObjectName("w_convertExport")
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout(self.w_convertExport)
        self.horizontalLayout_14.setContentsMargins(9, 0, 9, 0)
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        self.l_convertExport = QtWidgets.QLabel(self.w_convertExport)
        self.l_convertExport.setObjectName("l_convertExport")
        self.horizontalLayout_14.addWidget(self.l_convertExport)
        spacerItem4 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_14.addItem(spacerItem4)
        self.chb_convertExport = QtWidgets.QCheckBox(self.w_convertExport)
        self.chb_convertExport.setText("")
        self.chb_convertExport.setChecked(False)
        self.chb_convertExport.setObjectName("chb_convertExport")
        self.horizontalLayout_14.addWidget(self.chb_convertExport)
        self.verticalLayout_2.addWidget(self.w_convertExport)
        self.w_additionalOptions = QtWidgets.QWidget(self.gb_export)
        self.w_additionalOptions.setObjectName("w_additionalOptions")
        self.horizontalLayout_15 = QtWidgets.QHBoxLayout(
            self.w_additionalOptions)
        self.horizontalLayout_15.setContentsMargins(9, 0, 9, 0)
        self.horizontalLayout_15.setObjectName("horizontalLayout_15")
        self.l_additionalOptions = QtWidgets.QLabel(self.w_additionalOptions)
        self.l_additionalOptions.setObjectName("l_additionalOptions")
        self.horizontalLayout_15.addWidget(self.l_additionalOptions)
        spacerItem5 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_15.addItem(spacerItem5)
        self.chb_additionalOptions = QtWidgets.QCheckBox(
            self.w_additionalOptions)
        self.chb_additionalOptions.setText("")
        self.chb_additionalOptions.setChecked(False)
        self.chb_additionalOptions.setObjectName("chb_additionalOptions")
        self.horizontalLayout_15.addWidget(self.chb_additionalOptions)
        self.verticalLayout_2.addWidget(self.w_additionalOptions)
        self.w_wholeScene = QtWidgets.QWidget(self.gb_export)
        self.w_wholeScene.setObjectName("w_wholeScene")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.w_wholeScene)
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setContentsMargins(9, 0, 9, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.l_wholeScene = QtWidgets.QLabel(self.w_wholeScene)
        self.l_wholeScene.setObjectName("l_wholeScene")
        self.horizontalLayout.addWidget(self.l_wholeScene)
        spacerItem6 = QtWidgets.QSpacerItem(185, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem6)
        self.chb_wholeScene = QtWidgets.QCheckBox(self.w_wholeScene)
        self.chb_wholeScene.setText("")
        self.chb_wholeScene.setChecked(False)
        self.chb_wholeScene.setObjectName("chb_wholeScene")
        self.horizontalLayout.addWidget(self.chb_wholeScene)
        self.verticalLayout_2.addWidget(self.w_wholeScene)
        self.gb_objects = QtWidgets.QGroupBox(self.gb_export)
        self.gb_objects.setEnabled(True)
        self.gb_objects.setObjectName("gb_objects")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.gb_objects)
        self.verticalLayout_3.setContentsMargins(9, 9, 9, 9)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.f_objectList = QtWidgets.QFrame(self.gb_objects)
        self.f_objectList.setObjectName("f_objectList")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.f_objectList)
        self.horizontalLayout_8.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.lw_objects = QtWidgets.QListWidget(self.f_objectList)
        self.lw_objects.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.lw_objects.setSelectionMode(
            QtWidgets.QAbstractItemView.ExtendedSelection)
        self.lw_objects.setVerticalScrollMode(
            QtWidgets.QAbstractItemView.ScrollPerPixel)
        self.lw_objects.setHorizontalScrollMode(
            QtWidgets.QAbstractItemView.ScrollPerPixel)
        self.lw_objects.setObjectName("lw_objects")
        self.horizontalLayout_8.addWidget(self.lw_objects)
        self.verticalLayout_3.addWidget(self.f_objectList)
        self.b_add = QtWidgets.QPushButton(self.gb_objects)
        self.b_add.setMinimumSize(QtCore.QSize(0, 0))
        self.b_add.setMaximumSize(QtCore.QSize(99999, 16777215))
        self.b_add.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_add.setObjectName("b_add")
        self.verticalLayout_3.addWidget(self.b_add)
        self.verticalLayout_2.addWidget(self.gb_objects)
        self.groupBox = QtWidgets.QGroupBox(self.gb_export)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_4.setContentsMargins(9, 9, 9, 9)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.l_pathLast = QtWidgets.QLabel(self.groupBox)
        self.l_pathLast.setObjectName("l_pathLast")
        self.verticalLayout_4.addWidget(self.l_pathLast)
        self.widget = QtWidgets.QWidget(self.groupBox)
        self.widget.setObjectName("widget")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.widget)
        self.horizontalLayout_10.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.b_openLast = QtWidgets.QPushButton(self.widget)
        self.b_openLast.setEnabled(False)
        self.b_openLast.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_openLast.setObjectName("b_openLast")
        self.horizontalLayout_10.addWidget(self.b_openLast)
        self.b_copyLast = QtWidgets.QPushButton(self.widget)
        self.b_copyLast.setEnabled(False)
        self.b_copyLast.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_copyLast.setObjectName("b_copyLast")
        self.horizontalLayout_10.addWidget(self.b_copyLast)
        self.verticalLayout_4.addWidget(self.widget)
        self.verticalLayout_2.addWidget(self.groupBox)
        self.verticalLayout.addWidget(self.gb_export)

        self.retranslateUi(wg_Export)
        QtCore.QMetaObject.connectSlotsByName(wg_Export)
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(419, 737)
        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)
        self.ik0RefArray_groupBox = QtWidgets.QGroupBox(Form)
        self.ik0RefArray_groupBox.setObjectName("ik0RefArray_groupBox")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.ik0RefArray_groupBox)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.ik0RefArray_horizontalLayout = QtWidgets.QHBoxLayout()
        self.ik0RefArray_horizontalLayout.setObjectName(
            "ik0RefArray_horizontalLayout")
        self.ik0RefArray_verticalLayout_1 = QtWidgets.QVBoxLayout()
        self.ik0RefArray_verticalLayout_1.setObjectName(
            "ik0RefArray_verticalLayout_1")
        self.ik0RefArray_listWidget = QtWidgets.QListWidget(
            self.ik0RefArray_groupBox)
        self.ik0RefArray_listWidget.setDragDropOverwriteMode(True)
        self.ik0RefArray_listWidget.setDragDropMode(
            QtWidgets.QAbstractItemView.InternalMove)
        self.ik0RefArray_listWidget.setDefaultDropAction(QtCore.Qt.MoveAction)
        self.ik0RefArray_listWidget.setAlternatingRowColors(True)
        self.ik0RefArray_listWidget.setSelectionMode(
            QtWidgets.QAbstractItemView.ExtendedSelection)
        self.ik0RefArray_listWidget.setSelectionRectVisible(False)
        self.ik0RefArray_listWidget.setObjectName("ik0RefArray_listWidget")
        self.ik0RefArray_verticalLayout_1.addWidget(
            self.ik0RefArray_listWidget)
        self.ik0RefArray_horizontalLayout.addLayout(
            self.ik0RefArray_verticalLayout_1)
        self.ik0RefArray_verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.ik0RefArray_verticalLayout_2.setObjectName(
            "ik0RefArray_verticalLayout_2")
        self.ik0RefArrayAdd_pushButton = QtWidgets.QPushButton(
            self.ik0RefArray_groupBox)
        self.ik0RefArrayAdd_pushButton.setObjectName(
            "ik0RefArrayAdd_pushButton")
        self.ik0RefArray_verticalLayout_2.addWidget(
            self.ik0RefArrayAdd_pushButton)
        self.ik0RefArrayRemove_pushButton = QtWidgets.QPushButton(
            self.ik0RefArray_groupBox)
        self.ik0RefArrayRemove_pushButton.setObjectName(
            "ik0RefArrayRemove_pushButton")
        self.ik0RefArray_verticalLayout_2.addWidget(
            self.ik0RefArrayRemove_pushButton)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.ik0RefArray_verticalLayout_2.addItem(spacerItem)
        self.ik0RefArray_horizontalLayout.addLayout(
            self.ik0RefArray_verticalLayout_2)
        self.gridLayout_3.addLayout(self.ik0RefArray_horizontalLayout, 0, 0, 1,
                                    1)
        self.verticalLayout.addWidget(self.ik0RefArray_groupBox)
        self.ik1RefArray_groupBox = QtWidgets.QGroupBox(Form)
        self.ik1RefArray_groupBox.setObjectName("ik1RefArray_groupBox")
        self.gridLayout_31 = QtWidgets.QGridLayout(self.ik1RefArray_groupBox)
        self.gridLayout_31.setObjectName("gridLayout_31")
        self.ik1RefArray_horizontalLayout = QtWidgets.QHBoxLayout()
        self.ik1RefArray_horizontalLayout.setObjectName(
            "ik1RefArray_horizontalLayout")
        self.ik1RefArray_verticalLayout_1 = QtWidgets.QVBoxLayout()
        self.ik1RefArray_verticalLayout_1.setObjectName(
            "ik1RefArray_verticalLayout_1")
        self.ik1RefArray_listWidget = QtWidgets.QListWidget(
            self.ik1RefArray_groupBox)
        self.ik1RefArray_listWidget.setDragDropOverwriteMode(True)
        self.ik1RefArray_listWidget.setDragDropMode(
            QtWidgets.QAbstractItemView.InternalMove)
        self.ik1RefArray_listWidget.setDefaultDropAction(QtCore.Qt.MoveAction)
        self.ik1RefArray_listWidget.setAlternatingRowColors(True)
        self.ik1RefArray_listWidget.setSelectionMode(
            QtWidgets.QAbstractItemView.ExtendedSelection)
        self.ik1RefArray_listWidget.setSelectionRectVisible(False)
        self.ik1RefArray_listWidget.setObjectName("ik1RefArray_listWidget")
        self.ik1RefArray_verticalLayout_1.addWidget(
            self.ik1RefArray_listWidget)
        self.ik1RefArray_horizontalLayout.addLayout(
            self.ik1RefArray_verticalLayout_1)
        self.ik1RefArray_verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.ik1RefArray_verticalLayout_2.setObjectName(
            "ik1RefArray_verticalLayout_2")
        self.ik1RefArrayAdd_pushButton = QtWidgets.QPushButton(
            self.ik1RefArray_groupBox)
        self.ik1RefArrayAdd_pushButton.setObjectName(
            "ik1RefArrayAdd_pushButton")
        self.ik1RefArray_verticalLayout_2.addWidget(
            self.ik1RefArrayAdd_pushButton)
        self.ik1RefArrayRemove_pushButton = QtWidgets.QPushButton(
            self.ik1RefArray_groupBox)
        self.ik1RefArrayRemove_pushButton.setObjectName(
            "ik1RefArrayRemove_pushButton")
        self.ik1RefArray_verticalLayout_2.addWidget(
            self.ik1RefArrayRemove_pushButton)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.ik1RefArray_verticalLayout_2.addItem(spacerItem1)
        self.ik1RefArray_horizontalLayout.addLayout(
            self.ik1RefArray_verticalLayout_2)
        self.gridLayout_31.addLayout(self.ik1RefArray_horizontalLayout, 0, 0,
                                     1, 1)
        self.verticalLayout.addWidget(self.ik1RefArray_groupBox)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem2)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Beispiel #17
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(898, 741)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setMinimumSize(QtCore.QSize(0, 50))
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setAutoFillBackground(False)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.browse_button = QtWidgets.QPushButton(self.centralwidget)
        self.browse_button.setObjectName("browse_button")
        self.gridLayout.addWidget(self.browse_button, 0, 2, 1, 1)
        self.label_file_path = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_file_path.sizePolicy().hasHeightForWidth())
        self.label_file_path.setSizePolicy(sizePolicy)
        self.label_file_path.setObjectName("label_file_path")
        self.gridLayout.addWidget(self.label_file_path, 0, 0, 1, 1)
        self.lineEdit_file_path = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_file_path.setDragEnabled(False)
        self.lineEdit_file_path.setObjectName("lineEdit_file_path")
        self.gridLayout.addWidget(self.lineEdit_file_path, 0, 1, 1, 1)
        self.splitter = QtWidgets.QSplitter(self.centralwidget)
        self.splitter.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.splitter.setFrameShadow(QtWidgets.QFrame.Plain)
        self.splitter.setLineWidth(0)
        self.splitter.setMidLineWidth(0)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setOpaqueResize(True)
        self.splitter.setHandleWidth(10)
        self.splitter.setChildrenCollapsible(False)
        self.splitter.setObjectName("splitter")
        self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.splitter)
        self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(
            self.verticalLayoutWidget_2)
        self.verticalLayout_2.setContentsMargins(-1, 0, -1, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_2 = QtWidgets.QLabel(self.verticalLayoutWidget_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        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.text_input = QtWidgets.QTextEdit(self.verticalLayoutWidget_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(10)
        sizePolicy.setHeightForWidth(
            self.text_input.sizePolicy().hasHeightForWidth())
        self.text_input.setSizePolicy(sizePolicy)
        self.text_input.setSizeAdjustPolicy(
            QtWidgets.QAbstractScrollArea.AdjustToContents)
        self.text_input.setAutoFormatting(QtWidgets.QTextEdit.AutoNone)
        self.text_input.setObjectName("text_input")
        self.verticalLayout_2.addWidget(self.text_input)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.text_button = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
        self.text_button.setObjectName("text_button")
        self.horizontalLayout_2.addWidget(self.text_button)
        self.firefox_button = QtWidgets.QPushButton(
            self.verticalLayoutWidget_2)
        self.firefox_button.setObjectName("firefox_button")
        self.horizontalLayout_2.addWidget(self.firefox_button)
        self.chrome_button = QtWidgets.QPushButton(self.verticalLayoutWidget_2)
        self.chrome_button.setObjectName("chrome_button")
        self.horizontalLayout_2.addWidget(self.chrome_button)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.table_dl = QtWidgets.QTableWidget(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(10)
        sizePolicy.setHeightForWidth(
            self.table_dl.sizePolicy().hasHeightForWidth())
        self.table_dl.setSizePolicy(sizePolicy)
        self.table_dl.setAutoFillBackground(False)
        self.table_dl.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.table_dl.setSizeAdjustPolicy(
            QtWidgets.QAbstractScrollArea.AdjustIgnored)
        self.table_dl.setEditTriggers(
            QtWidgets.QAbstractItemView.NoEditTriggers)
        self.table_dl.setSelectionMode(QtWidgets.QAbstractItemView.NoSelection)
        self.table_dl.setSelectionBehavior(
            QtWidgets.QAbstractItemView.SelectRows)
        self.table_dl.setGridStyle(QtCore.Qt.SolidLine)
        self.table_dl.setObjectName("table_dl")
        self.table_dl.setColumnCount(6)
        self.table_dl.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.table_dl.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.table_dl.setHorizontalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        self.table_dl.setHorizontalHeaderItem(2, item)
        item = QtWidgets.QTableWidgetItem()
        self.table_dl.setHorizontalHeaderItem(3, item)
        item = QtWidgets.QTableWidgetItem()
        self.table_dl.setHorizontalHeaderItem(4, item)
        item = QtWidgets.QTableWidgetItem()
        self.table_dl.setHorizontalHeaderItem(5, item)
        self.table_dl.horizontalHeader().setVisible(True)
        self.table_dl.horizontalHeader().setCascadingSectionResizes(False)
        self.table_dl.horizontalHeader().setStretchLastSection(True)
        self.table_dl.verticalHeader().setVisible(False)
        self.table_dl.verticalHeader().setStretchLastSection(False)
        self.verticalLayoutWidget = QtWidgets.QWidget(self.splitter)
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, -1, -1, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.terminal = QtWidgets.QPlainTextEdit(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(10)
        sizePolicy.setHeightForWidth(
            self.terminal.sizePolicy().hasHeightForWidth())
        self.terminal.setSizePolicy(sizePolicy)
        self.terminal.setMinimumSize(QtCore.QSize(0, 0))
        self.terminal.setSizeAdjustPolicy(
            QtWidgets.QAbstractScrollArea.AdjustIgnored)
        self.terminal.setTextInteractionFlags(
            QtCore.Qt.TextSelectableByKeyboard
            | QtCore.Qt.TextSelectableByMouse)
        self.terminal.setObjectName("terminal")
        self.verticalLayout.addWidget(self.terminal)
        self.gridLayout.addWidget(self.splitter, 1, 0, 1, 3)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 898, 21))
        self.menubar.setObjectName("menubar")
        self.menuTheme = QtWidgets.QMenu(self.menubar)
        self.menuTheme.setObjectName("menuTheme")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionLight_theme = QtWidgets.QAction(MainWindow)
        self.actionLight_theme.setCheckable(True)
        self.actionLight_theme.setChecked(True)
        self.actionLight_theme.setObjectName("actionLight_theme")
        self.dark_theme = QtWidgets.QAction(MainWindow)
        self.dark_theme.setCheckable(True)
        self.dark_theme.setObjectName("dark_theme")
        self.menuTheme.addAction(self.dark_theme)
        self.menubar.addAction(self.menuTheme.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Beispiel #18
0
    def setupUi(self, SearchWindow):
        SearchWindow.setObjectName("SearchWindow")
        SearchWindow.resize(800, 600)
        palette = QtGui.QPalette()
        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(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(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)
        SearchWindow.setPalette(palette)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icon/icon_trimmed.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        SearchWindow.setWindowIcon(icon)
        SearchWindow.setIconSize(QtCore.QSize(30, 30))
        self.centralwidget = QtWidgets.QWidget(SearchWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.search_box = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.search_box.sizePolicy().hasHeightForWidth())
        self.search_box.setSizePolicy(sizePolicy)
        self.search_box.setMinimumSize(QtCore.QSize(170, 25))
        self.search_box.setMaximumSize(QtCore.QSize(300, 16777215))
        font = QtGui.QFont()
        font.setFamily("Segoe UI Symbol")
        font.setPointSize(10)
        self.search_box.setFont(font)
        self.search_box.setFrame(True)
        self.search_box.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.search_box.setObjectName("search_box")
        self.horizontalLayout.addWidget(self.search_box)
        self.add_to_fridge_btn = QtWidgets.QPushButton(self.centralwidget)
        self.add_to_fridge_btn.setEnabled(False)
        font = QtGui.QFont()
        font.setFamily("Segoe UI Semilight")
        font.setPointSize(10)
        self.add_to_fridge_btn.setFont(font)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/icon/plus.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.add_to_fridge_btn.setIcon(icon1)
        self.add_to_fridge_btn.setObjectName("add_to_fridge_btn")
        self.horizontalLayout.addWidget(self.add_to_fridge_btn)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.search_view = QtWidgets.QTableView(self.centralwidget)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(218, 236, 249))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Highlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.HighlightedText, brush)
        brush = QtGui.QBrush(QtGui.QColor(218, 236, 249))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Highlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.HighlightedText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 120, 215))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Highlight, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.HighlightedText, brush)
        self.search_view.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily("Segoe UI")
        font.setPointSize(10)
        self.search_view.setFont(font)
        self.search_view.setStyleSheet("")
        self.search_view.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.search_view.setEditTriggers(QtWidgets.QAbstractItemView.DoubleClicked|QtWidgets.QAbstractItemView.EditKeyPressed|QtWidgets.QAbstractItemView.SelectedClicked)
        self.search_view.setTabKeyNavigation(False)
        self.search_view.setAlternatingRowColors(False)
        self.search_view.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.search_view.setShowGrid(False)
        self.search_view.setWordWrap(True)
        self.search_view.setObjectName("search_view")
        self.search_view.horizontalHeader().setVisible(False)
        self.search_view.horizontalHeader().setStretchLastSection(True)
        self.search_view.verticalHeader().setVisible(False)
        self.verticalLayout.addWidget(self.search_view)
        self.horizontalLayout_2.addLayout(self.verticalLayout)
        SearchWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(SearchWindow)
        QtCore.QMetaObject.connectSlotsByName(SearchWindow)
        SearchWindow.setTabOrder(self.search_box, self.search_view)
        SearchWindow.setTabOrder(self.search_view, self.add_to_fridge_btn)
Beispiel #19
0
    def _ui_settings_params_checks_ffv9(self, vbox: QtWidgets.QVBoxLayout,
                                        min_group_box: int) -> None:
        hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(hbox)
        hbox.addStretch()

        set_checks_ffv9 = QtWidgets.QGroupBox("Checks")
        set_checks_ffv9.setMinimumWidth(min_group_box)
        hbox.addWidget(set_checks_ffv9)
        chk_vbox = QtWidgets.QVBoxLayout()
        set_checks_ffv9.setLayout(chk_vbox)

        # set height
        height_hbox = QtWidgets.QHBoxLayout()
        chk_vbox.addLayout(height_hbox)
        self.set_height_label_ffv9 = QtWidgets.QLabel("Force flier heights to")
        self.set_height_label_ffv9.setDisabled(True)
        height_hbox.addWidget(self.set_height_label_ffv9)
        self.set_height_label_ffv9.setFixedHeight(
            GuiSettings.single_line_height())
        self.set_height_ffv9 = QtWidgets.QLineEdit("")
        height_hbox.addWidget(self.set_height_ffv9)
        self.set_height_ffv9.setFixedHeight(GuiSettings.single_line_height())
        # self.set_height_ffv9.setValidator(QtGui.QDoubleValidator(0.00001, 9999, 5, self.set_height_ffv9))
        # noinspection PyUnresolvedReferences
        self.set_height_ffv9.setAlignment(QtCore.Qt.AlignRight
                                          | QtCore.Qt.AlignVCenter)
        self.set_height_ffv9.setReadOnly(False)
        self.set_height_ffv9.setFont(GuiSettings.console_font())
        self.set_height_ffv9.setFixedWidth(60)
        self.set_height_ffv9.setDisabled(True)
        self.set_height_label2_ffv9 = QtWidgets.QLabel("meters")
        self.set_height_label2_ffv9.setDisabled(True)
        height_hbox.addWidget(self.set_height_label2_ffv9)
        height_hbox.addStretch()

        chk_vbox.addSpacing(6)

        self.set_check_laplacian_ffv9 = QtWidgets.QCheckBox(
            "#1: Laplacian Operator")
        self.set_check_laplacian_ffv9.setDisabled(True)
        self.set_check_laplacian_ffv9.setChecked(
            self.settings.value("survey/ff9_laplacian", 0) == 1)
        chk_vbox.addWidget(self.set_check_laplacian_ffv9)

        self.set_check_curv_ffv9 = QtWidgets.QCheckBox(
            "#2: Gaussian Curvature")
        self.set_check_curv_ffv9.setDisabled(True)
        self.set_check_curv_ffv9.setChecked(
            self.settings.value("survey/ff9_gaussian", 1) == 1)
        chk_vbox.addWidget(self.set_check_curv_ffv9)

        self.set_check_adjacent_ffv9 = QtWidgets.QCheckBox(
            "#3: Adjacent Cells")
        self.set_check_adjacent_ffv9.setDisabled(True)
        self.set_check_adjacent_ffv9.setChecked(
            self.settings.value("survey/ff9_adjacent", 1) == 1)
        chk_vbox.addWidget(self.set_check_adjacent_ffv9)

        self.set_check_slivers_ffv9 = QtWidgets.QCheckBox("#4: Edge Slivers")
        self.set_check_slivers_ffv9.setDisabled(True)
        self.set_check_slivers_ffv9.setChecked(
            self.settings.value("survey/ff9_slivers", 1) == 1)
        chk_vbox.addWidget(self.set_check_slivers_ffv9)

        self.set_check_isolated_ffv9 = QtWidgets.QCheckBox(
            "#5: Isolated Nodes")
        self.set_check_isolated_ffv9.setDisabled(True)
        self.set_check_isolated_ffv9.setChecked(
            self.settings.value("survey/ff9_orphans", 0) == 1)
        chk_vbox.addWidget(self.set_check_isolated_ffv9)

        self.set_check_edges_ffv9 = QtWidgets.QCheckBox("#6: Noisy Edges")
        self.set_check_edges_ffv9.setDisabled(True)
        self.set_check_edges_ffv9.setChecked(
            self.settings.value("survey/ff9_edges", 0) == 1)
        chk_vbox.addWidget(self.set_check_edges_ffv9)

        self.set_check_margins_ffv9 = QtWidgets.QCheckBox(
            "#7: Noisy Margins [Experimental]")
        self.set_check_margins_ffv9.setStyleSheet(
            "QCheckBox { color: rgba(200, 100, 0, 110) }")
        self.set_check_margins_ffv9.setDisabled(True)
        self.set_check_margins_ffv9.setChecked(
            self.settings.value("survey/ff9_margins", 0) == 1)
        chk_vbox.addWidget(self.set_check_margins_ffv9)

        slider_pct_gbox = QtWidgets.QGridLayout()
        chk_vbox.addLayout(slider_pct_gbox)

        hbox.addStretch()
Beispiel #20
0
    def initUI(self):
        self.labelNoSession = QtWidgets.QLabel(
            '新用户吗? 为了连接一个MySQL服务器, 首先你得创建一个“会话”。只需要单击左下方的“新建”按钮来创建一个新的会话。\n\n给它起一个友好的名称(比如:“本地数据库服务器”)。这样你就能在下次启动HeidiSQL时能想起来。'
        )
        self.labelNoSession.setWordWrap(True)

        # Setup input fields for settings tab
        checkCompressProtocol = QtWidgets.QCheckBox(
            'Compressed client/server protocol')
        checkCompressProtocol.setEnabled(False)
        checkPasswordPrompt = QtWidgets.QCheckBox("Prompt")
        checkPasswordPrompt.setEnabled(False)
        comboDatabases = QtWidgets.QComboBox()
        comboDatabases.setEditable(True)
        comboDatabases.setEditText('Separated by semicolon')
        comboDatabases.setDisabled(True)
        self.comboNetworkType = QtWidgets.QComboBox(self)
        self.comboNetworkType.addItem('TCP/IP')
        self.spinPort = QtWidgets.QSpinBox()
        self.spinPort.setRange(0, 65535)
        self.spinPort.setMinimumWidth(65)
        self.textHostname = QtWidgets.QLineEdit()
        self.textPassword = QtWidgets.QLineEdit()
        self.textPassword.setEchoMode(QtWidgets.QLineEdit.Password)
        textStartupScript = QtWidgets.QLineEdit()
        textStartupScript.setDisabled(True)
        self.textUser = QtWidgets.QLineEdit()

        # 创建服务器管理树
        self.treeServerManager = QtWidgets.QTreeWidget(self)
        self.treeServerManager.header().close()
        self.treeServerManager.setRootIsDecorated(False)
        self.treeServerManager.currentItemChanged.connect(
            self.slotServerSelectionChanged)  # 当前项改变时读取配置

        # Layout for password text field and password check box
        layoutH6 = QtWidgets.QHBoxLayout()
        layoutH6.addWidget(self.textPassword)
        layoutH6.addWidget(checkPasswordPrompt)

        # Layout to smallimize the port input field
        layoutH7 = QtWidgets.QHBoxLayout()
        layoutH7.addWidget(self.spinPort)
        layoutH7.addStretch(1)

        # Setup the tab widget
        self.tabWidget = QtWidgets.QTabWidget(self)
        tabSettings = QtWidgets.QWidget()
        tabSettings.tabSettingsLayout = QtWidgets.QFormLayout(tabSettings)
        tabSettings.tabSettingsLayout.addRow('网络类型:', self.comboNetworkType)
        tabSettings.tabSettingsLayout.addRow('主机名 / IP:', self.textHostname)
        tabSettings.tabSettingsLayout.addRow('用户名:', self.textUser)
        tabSettings.tabSettingsLayout.addRow('密码:', layoutH6)
        tabSettings.tabSettingsLayout.addRow('端口:', layoutH7)
        tabSettings.tabSettingsLayout.addRow('', checkCompressProtocol)
        tabSettings.tabSettingsLayout.addRow('数据库:', comboDatabases)
        tabSettings.tabSettingsLayout.addRow('启动脚本:', textStartupScript)

        self.tabWidget.addTab(tabSettings,
                              QtGui.QIcon("../resources/icons/wrench.png"),
                              "设置")
        self.tabWidget.setVisible(False)

        # 创建按钮
        buttonNew = QtWidgets.QPushButton('新建')
        self.buttonSave = QtWidgets.QPushButton('保存')
        self.buttonSave.setDisabled(True)
        self.buttonDelete = QtWidgets.QPushButton('删除')
        self.buttonDelete.setDisabled(True)
        self.buttonOpen = QtWidgets.QPushButton('打开')
        self.buttonOpen.setDisabled(True)
        self.buttonCancel = QtWidgets.QPushButton('取消')

        # 会话管理底部的按钮布局
        layoutH4 = QtWidgets.QHBoxLayout()
        layoutH4.addWidget(buttonNew)
        layoutH4.addWidget(self.buttonSave)
        layoutH4.addWidget(self.buttonDelete)

        # 左侧会话管理器面板的布局
        layoutV1 = QtWidgets.QVBoxLayout()
        layoutV1.addWidget(QtWidgets.QLabel('已保存会话:'))
        layoutV1.addWidget(self.treeServerManager)
        layoutV1.addLayout(layoutH4)

        layoutH1 = QtWidgets.QHBoxLayout()
        layoutH1.addLayout(layoutV1)

        # 页签下面的 打开/取消 按钮的布局
        layoutH5 = QtWidgets.QHBoxLayout()
        layoutH5.addStretch(1)
        layoutH5.addWidget(self.buttonOpen)
        layoutH5.addWidget(self.buttonCancel)

        self.layoutV2 = QtWidgets.QVBoxLayout()
        self.layoutV2.addWidget(self.labelNoSession)
        self.layoutV2.addStretch(1)
        self.layoutV2.addLayout(layoutH5)

        # 区分会话管理器与页签面板的布局
        layoutH3 = QtWidgets.QHBoxLayout(self)
        layoutH3.addLayout(layoutH1)
        layoutH3.addLayout(self.layoutV2)
        layoutH3.setStretch(0, 30)
        layoutH3.setStretch(1, 70)

        # 信号设置
        buttonNew.clicked.connect(self.slotButtonNewClicked)
        # buttonCancel.clicked.connect(self.slotButtonCancelClicked)
        self.buttonDelete.clicked.connect(self.slotButtonDeleteClicked)
        self.buttonOpen.clicked.connect(self.slotButtonOpenClicked)
        self.buttonSave.clicked.connect(self.slotButtonSaveClicked)

        self.textHostname.textEdited.connect(self.sessionModified)
        self.textUser.textEdited.connect(self.sessionModified)
        self.textPassword.textEdited.connect(self.sessionModified)
        self.spinPort.valueChanged.connect(self.sessionModified)

        # QShortcut("Ctrl+S", self, self.slotButtonSaveClicked)

        self.setLayout(layoutH3)

        self.setWindowTitle('会话管理器')
        self.setWindowIcon(QtGui.QIcon('../resources/icons/heidi.ico'))
        self.setModal(True)
        self.setGeometry(300, 300, 700, 400)
Beispiel #21
0
    def locationGroup(self):
        groupBox = QtWidgets.QGroupBox("Location")

        #Search Line
        searchLab = QtWidgets.QLabel("Search Place/Address", self)
        self.search = QtWidgets.QLineEdit(self)
        self.search.setText('Lange geldersekade Dordrecht')

        #Search Button
        searchbtn = QtWidgets.QPushButton("Search")
        searchbtn.clicked.connect(self.onSearch)

        #List of CRS
        cboCRSLab = QtWidgets.QLabel("Coordinate Reference System", self)
        self.cboCRS = QtWidgets.QComboBox(self)

        inputCRS = list(
            map(str.__add__, [i + " " for i in GIS2BIM_CRS.inputChars],
                GIS2BIM_CRS.inputNumbers))
        self.cboCRS.addItems(inputCRS)
        #completer = QtWidgets.QCompleter(inputCRS,self)
        #self.cboCRS.setCompleter(completer)
        try:
            self.index = GIS2BIM_CRS.indexOfCRS(self.CRS)
        except:
            self.index = 5523
        self.cboCRS.setCurrentIndex(self.index)

        #bbox Width
        bboxWidthLab = QtWidgets.QLabel("Boundingbox Width [m]")
        self.bboxWidth = QtWidgets.QLineEdit()
        self.bboxWidth.setText(str(self.bboxWidthStart))
        self.bboxWidth.editingFinished.connect(self.onbboxWidth)

        #bbox Height
        bboxHeightLab = QtWidgets.QLabel("Boundingbox Height [m]")
        self.bboxHeight = QtWidgets.QLineEdit()
        self.bboxHeight.setText(str(self.bboxHeightStart))
        self.bboxHeight.editingFinished.connect(self.onbboxHeight)

        # checkbox update Geo Origin
        self.CBGeoOrigin = QtWidgets.QCheckBox(
            "Create/Update GeoOrigin Object", self)
        self.CBGeoOrigin.toggle()

        # checkbox import map
        self.CBAerialphoto = QtWidgets.QCheckBox("Import Aerialphoto", self)

        grid = QtWidgets.QGridLayout()
        grid.addWidget(searchLab, 0, 0)
        grid.addWidget(self.search, 0, 1)
        grid.addWidget(searchbtn, 0, 2)
        grid.addWidget(cboCRSLab, 1, 0)
        grid.addWidget(self.cboCRS, 1, 1)
        grid.setRowStretch(1, 1)
        grid.addWidget(bboxWidthLab, 2, 0)
        grid.addWidget(self.bboxWidth, 2, 1)
        grid.addWidget(bboxHeightLab, 3, 0)
        grid.addWidget(self.bboxHeight, 3, 1)
        grid.addWidget(self.CBGeoOrigin, 4, 1)
        grid.addWidget(self.CBAerialphoto, 4, 2)

        groupBox.setLayout(grid)
        return groupBox
Beispiel #22
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1057, 830)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.lbl_rech = QtWidgets.QLabel(self.centralwidget)
        self.lbl_rech.setMouseTracking(False)
        self.lbl_rech.setFocusPolicy(QtCore.Qt.NoFocus)
        self.lbl_rech.setAcceptDrops(False)
        self.lbl_rech.setAutoFillBackground(False)
        self.lbl_rech.setObjectName("lbl_rech")
        self.verticalLayout_3.addWidget(self.lbl_rech)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.lineEdit_rech = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_rech.setDragEnabled(False)
        self.lineEdit_rech.setObjectName("lineEdit_rech")
        self.horizontalLayout_4.addWidget(self.lineEdit_rech)
        self.pb_lancer_rech = QtWidgets.QPushButton(self.centralwidget)
        self.pb_lancer_rech.setObjectName("pb_lancer_rech")
        self.horizontalLayout_4.addWidget(self.pb_lancer_rech)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.verticalLayout_4.addLayout(self.verticalLayout_3)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.lbl_cv_entree = QtWidgets.QLabel(self.centralwidget)
        self.lbl_cv_entree.setObjectName("lbl_cv_entree")
        self.verticalLayout.addWidget(self.lbl_cv_entree)
        self.listW_cv_entree = QtWidgets.QListWidget(self.centralwidget)
        self.listW_cv_entree.setDragDropOverwriteMode(False)
        self.listW_cv_entree.setDragDropMode(
            QtWidgets.QAbstractItemView.DropOnly)
        self.listW_cv_entree.setObjectName("listW_cv_entree")
        self.verticalLayout.addWidget(self.listW_cv_entree)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.lbl_bouton_add = QtWidgets.QLabel(self.centralwidget)
        self.lbl_bouton_add.setObjectName("lbl_bouton_add")
        self.horizontalLayout_2.addWidget(self.lbl_bouton_add)
        self.pb_ajouter = QtWidgets.QPushButton(self.centralwidget)
        self.pb_ajouter.setObjectName("pb_ajouter")
        self.horizontalLayout_2.addWidget(self.pb_ajouter)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_3.addWidget(self.label_2)
        self.pb_enlever = QtWidgets.QPushButton(self.centralwidget)
        self.pb_enlever.setObjectName("pb_enlever")
        self.horizontalLayout_3.addWidget(self.pb_enlever)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.lbl_cv_sortie = QtWidgets.QLabel(self.centralwidget)
        self.lbl_cv_sortie.setObjectName("lbl_cv_sortie")
        self.verticalLayout_2.addWidget(self.lbl_cv_sortie)
        self.listW_cv_sortie = QtWidgets.QListWidget(self.centralwidget)
        self.listW_cv_sortie.setObjectName("listW_cv_sortie")
        self.verticalLayout_2.addWidget(self.listW_cv_sortie)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.lbl_efacer_liste = QtWidgets.QLabel(self.centralwidget)
        self.lbl_efacer_liste.setObjectName("lbl_efacer_liste")
        self.horizontalLayout_5.addWidget(self.lbl_efacer_liste)
        self.pb_effacer_liste = QtWidgets.QPushButton(self.centralwidget)
        self.pb_effacer_liste.setObjectName("pb_effacer_liste")
        self.horizontalLayout_5.addWidget(self.pb_effacer_liste)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        spacerItem = QtWidgets.QSpacerItem(20, 24,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Maximum)
        self.verticalLayout_2.addItem(spacerItem)
        self.horizontalLayout.addLayout(self.verticalLayout_2)
        self.verticalLayout_4.addLayout(self.horizontalLayout)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1057, 21))
        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)
Beispiel #23
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(590, 477)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icon/system_monitor.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.top_bar = QtWidgets.QFrame(self.centralwidget)
        self.top_bar.setMinimumSize(QtCore.QSize(0, 25))
        self.top_bar.setMaximumSize(QtCore.QSize(16777215, 25))
        self.top_bar.setStyleSheet("background-color: rgb(26, 26, 46);")
        self.top_bar.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.top_bar.setFrameShadow(QtWidgets.QFrame.Raised)
        self.top_bar.setObjectName("top_bar")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.top_bar)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setSpacing(0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.frame_error = QtWidgets.QFrame(self.top_bar)
        self.frame_error.setMinimumSize(QtCore.QSize(250, 0))
        self.frame_error.setMaximumSize(QtCore.QSize(250, 16777215))
        self.frame_error.setStyleSheet("background-color: rgb(233, 69, 96);\n"
"border-radius: 3px;")
        self.frame_error.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_error.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_error.setObjectName("frame_error")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frame_error)
        self.horizontalLayout_3.setContentsMargins(15, 0, 5, 0)
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_error = QtWidgets.QLabel(self.frame_error)
        self.label_error.setAlignment(QtCore.Qt.AlignCenter)
        self.label_error.setObjectName("label_error")
        self.horizontalLayout_3.addWidget(self.label_error)
        self.btn_close_popup = QtWidgets.QPushButton(self.frame_error)
        self.btn_close_popup.setMaximumSize(QtCore.QSize(20, 20))
        self.btn_close_popup.setStyleSheet("QPushButton {\n"
"border-radius: 3px;\n"
"font: 75 10pt \"Ubuntu\";\n"
"}\n"
"\n"
"QPushButton:hover {\n"
"color: rgb(255, 255, 255);\n"
"background-color: rgb(26, 26, 46);\n"
"}\n"
"\n"
"QPushButton:pressed {\n"
"color: rgb(255, 255, 255);\n"
"background-color: rgb(15, 52, 96);\n"
"}")
        self.btn_close_popup.setObjectName("btn_close_popup")
        self.horizontalLayout_3.addWidget(self.btn_close_popup)
        self.horizontalLayout_2.addWidget(self.frame_error)
        self.verticalLayout.addWidget(self.top_bar)
        self.frame_content = QtWidgets.QFrame(self.centralwidget)
        self.frame_content.setStyleSheet("background-color: rgb(26, 26, 46);")
        self.frame_content.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_content.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_content.setObjectName("frame_content")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_content)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.frame_login = QtWidgets.QFrame(self.frame_content)
        self.frame_login.setMinimumSize(QtCore.QSize(250, 400))
        self.frame_login.setMaximumSize(QtCore.QSize(250, 400))
        self.frame_login.setStyleSheet("background-color: rgb(22, 33, 62);")
        self.frame_login.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_login.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_login.setObjectName("frame_login")
        self.frame = QtWidgets.QFrame(self.frame_login)
        self.frame.setGeometry(QtCore.QRect(50, 40, 150, 150))
        self.frame.setStyleSheet("border-image: url(:/system_monitor/system_monitor.png);\n"
"background-size: 10 px;\n"
"backgroud-position: center no-repeat;")
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.lineEdit_user = QtWidgets.QLineEdit(self.frame_login)
        self.lineEdit_user.setGeometry(QtCore.QRect(30, 200, 191, 45))
        self.lineEdit_user.setStyleSheet("QLineEdit {\n"
"    border: 2px solid rgb(26, 26, 46);\n"
"    border-radius: 3px;\n"
"    padding: 15px;\n"
"    background-color: rgb(26, 26, 46);\n"
"    color: rgb(100, 100, 100);\n"
"}\n"
"\n"
"QLineEdit:hover{\n"
"    border: 2px solid rgb(100, 100, 100);\n"
"}\n"
"\n"
"QLineEdit:focus{\n"
"    border: 2px solid rgb(255, 255, 255);\n"
"    color: rgb(255, 255, 255);\n"
"}")
        self.lineEdit_user.setInputMask("")
        self.lineEdit_user.setText("")
        self.lineEdit_user.setMaxLength(32)
        self.lineEdit_user.setObjectName("lineEdit_user")
        self.lineEdit_password = QtWidgets.QLineEdit(self.frame_login)
        self.lineEdit_password.setGeometry(QtCore.QRect(30, 250, 191, 45))
        self.lineEdit_password.setStyleSheet("QLineEdit {\n"
"    border: 2px solid rgb(26, 26, 46);\n"
"    border-radius: 3px;\n"
"    padding: 15px;\n"
"    background-color: rgb(26, 26, 46);\n"
"    color: rgb(100, 100, 100);\n"
"}\n"
"\n"
"QLineEdit:hover{\n"
"    border: 2px solid rgb(100, 100, 100);\n"
"}\n"
"\n"
"QLineEdit:focus{\n"
"    border: 2px solid rgb(255, 255, 255);\n"
"    color: rgb(255, 255, 255);\n"
"}")
        self.lineEdit_password.setInputMask("")
        self.lineEdit_password.setText("")
        self.lineEdit_password.setMaxLength(16)
        self.lineEdit_password.setEchoMode(QtWidgets.QLineEdit.Password)
        self.lineEdit_password.setObjectName("lineEdit_password")
        self.label_title = QtWidgets.QLabel(self.frame_login)
        self.label_title.setGeometry(QtCore.QRect(40, 9, 171, 31))
        font = QtGui.QFont()
        font.setFamily("Uroob")
        font.setPointSize(18)
        font.setBold(True)
        font.setWeight(75)
        self.label_title.setFont(font)
        self.label_title.setStyleSheet("color: rgb(255, 255, 255);")
        self.label_title.setAlignment(QtCore.Qt.AlignCenter)
        self.label_title.setObjectName("label_title")
        self.checkBox_user = QtWidgets.QCheckBox(self.frame_login)
        self.checkBox_user.setGeometry(QtCore.QRect(30, 302, 191, 22))
        self.checkBox_user.setStyleSheet("QCheckBox::indicator {\n"
"    border: 2px solid rgb(53, 53, 65);\n"
"    border-radius: 5px;\n"
"    background-color: rgb(26, 26, 46);\n"
"}\n"
"\n"
"QCheckBox::indicator:checked {\n"
"    border: 2px solid rgb(53, 53, 65);\n"
"    border-radius: 5px;\n"
"    background-color: rgb(255, 255, 255);\n"
"}\n"
"\n"
"QCheckBox {\n"
"    color: rgb(255, 255, 255);\n"
"}\n"
"")
        self.checkBox_user.setObjectName("checkBox_user")
        self.btn_connect = QtWidgets.QPushButton(self.frame_login)
        self.btn_connect.setGeometry(QtCore.QRect(30, 333, 191, 41))
        self.btn_connect.setStyleSheet("QPushButton {\n"
"    border: 2px solid rgb(26, 26, 46);\n"
"    border-radius: 3px;\n"
"    background-color: rgb(26, 26, 46);\n"
"    color: rgb(255, 255, 255);\n"
"}\n"
"QPushButton:hover{\n"
"    border: 2px solid rgb(100, 100, 100);\n"
"    background-color: rgb(15, 52, 96);\n"
"}\n"
"QPushButton:pressed{\n"
"    border: 2px solid rgb(255, 255, 255);\n"
"    background-color: rgb(15, 52, 96);\n"
"    color: rgb(100, 100, 100);\n"
"}")
        self.btn_connect.setObjectName("btn_connect")
        self.horizontalLayout.addWidget(self.frame_login)
        self.verticalLayout.addWidget(self.frame_content)
        self.buttom_bar = QtWidgets.QFrame(self.centralwidget)
        self.buttom_bar.setMinimumSize(QtCore.QSize(0, 25))
        self.buttom_bar.setMaximumSize(QtCore.QSize(16777215, 25))
        self.buttom_bar.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.buttom_bar.setStyleSheet("background-color: rgb(15, 52, 96);")
        self.buttom_bar.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.buttom_bar.setFrameShadow(QtWidgets.QFrame.Raised)
        self.buttom_bar.setObjectName("buttom_bar")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.buttom_bar)
        self.horizontalLayout_4.setContentsMargins(0, 0, 15, 0)
        self.horizontalLayout_4.setSpacing(0)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_credit = QtWidgets.QLabel(self.buttom_bar)
        self.label_credit.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label_credit.setStyleSheet("color: rgb(255, 255, 255);")
        self.label_credit.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_credit.setObjectName("label_credit")
        self.horizontalLayout_4.addWidget(self.label_credit)
        self.verticalLayout.addWidget(self.buttom_bar)
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
    def setupUi(self, mw_StateManager):
        mw_StateManager.setObjectName("mw_StateManager")
        mw_StateManager.resize(722, 1024)
        mw_StateManager.setFocusPolicy(QtCore.Qt.ClickFocus)
        self.centralwidget = QtWidgets.QWidget(mw_StateManager)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.scrollArea = QtWidgets.QScrollArea(self.centralwidget)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(
            0, 0, 720, 1001))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(
            self.scrollAreaWidgetContents)
        self.horizontalLayout_2.setSpacing(0)
        self.horizontalLayout_2.setContentsMargins(5, 0, 5, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.widget = QtWidgets.QWidget(self.scrollAreaWidgetContents)
        self.widget.setMinimumSize(QtCore.QSize(336, 0))
        self.widget.setMaximumSize(QtCore.QSize(99999, 16777215))
        self.widget.setObjectName("widget")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.widget)
        self.verticalLayout_5.setSpacing(10)
        self.verticalLayout_5.setContentsMargins(1, 10, 0, 5)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.groupBox = QtWidgets.QGroupBox(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(21)
        sizePolicy.setHeightForWidth(
            self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setMinimumSize(QtCore.QSize(0, 371))
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_3.setContentsMargins(5, 14, 5, 5)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.w_CreateImports = QtWidgets.QWidget(self.groupBox)
        self.w_CreateImports.setObjectName("w_CreateImports")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.w_CreateImports)
        self.horizontalLayout_3.setContentsMargins(0, -1, 0, 5)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.b_createImport = QtWidgets.QPushButton(self.w_CreateImports)
        self.b_createImport.setMinimumSize(QtCore.QSize(55, 25))
        self.b_createImport.setMaximumSize(QtCore.QSize(55, 25))
        self.b_createImport.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_createImport.setObjectName("b_createImport")
        self.horizontalLayout_3.addWidget(self.b_createImport)
        self.b_shotCam = QtWidgets.QPushButton(self.w_CreateImports)
        self.b_shotCam.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_shotCam.setObjectName("b_shotCam")
        self.horizontalLayout_3.addWidget(self.b_shotCam)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.b_showImportStates = QtWidgets.QPushButton(self.w_CreateImports)
        self.b_showImportStates.setMaximumSize(QtCore.QSize(25, 16777215))
        self.b_showImportStates.setObjectName("b_showImportStates")
        self.horizontalLayout_3.addWidget(self.b_showImportStates)
        self.verticalLayout_3.addWidget(self.w_CreateImports)
        self.f_import = QtWidgets.QFrame(self.groupBox)
        self.f_import.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.f_import.setFrameShadow(QtWidgets.QFrame.Raised)
        self.f_import.setObjectName("f_import")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.f_import)
        self.verticalLayout_7.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.tw_import = QtWidgets.QTreeWidget(self.f_import)
        self.tw_import.setFocusPolicy(QtCore.Qt.ClickFocus)
        self.tw_import.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.tw_import.setAcceptDrops(True)
        self.tw_import.setEditTriggers(
            QtWidgets.QAbstractItemView.NoEditTriggers)
        self.tw_import.setDragEnabled(True)
        self.tw_import.setDragDropMode(
            QtWidgets.QAbstractItemView.InternalMove)
        self.tw_import.setDefaultDropAction(QtCore.Qt.MoveAction)
        self.tw_import.setVerticalScrollMode(
            QtWidgets.QAbstractItemView.ScrollPerPixel)
        self.tw_import.setIndentation(20)
        self.tw_import.setObjectName("tw_import")
        self.tw_import.headerItem().setText(0, "1")
        self.tw_import.header().setVisible(False)
        self.verticalLayout_7.addWidget(self.tw_import)
        self.verticalLayout_3.addWidget(self.f_import)
        self.verticalLayout_5.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(30)
        sizePolicy.setHeightForWidth(
            self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_4.setContentsMargins(5, 14, 5, 5)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.w_CreateExports = QtWidgets.QWidget(self.groupBox_2)
        self.w_CreateExports.setObjectName("w_CreateExports")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.w_CreateExports)
        self.horizontalLayout_4.setContentsMargins(0, -1, 0, 5)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.b_createExport = QtWidgets.QPushButton(self.w_CreateExports)
        self.b_createExport.setMinimumSize(QtCore.QSize(50, 25))
        self.b_createExport.setMaximumSize(QtCore.QSize(50, 25))
        self.b_createExport.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_createExport.setObjectName("b_createExport")
        self.horizontalLayout_4.addWidget(self.b_createExport)
        self.b_createRender = QtWidgets.QPushButton(self.w_CreateExports)
        self.b_createRender.setMinimumSize(QtCore.QSize(50, 25))
        self.b_createRender.setMaximumSize(QtCore.QSize(50, 25))
        self.b_createRender.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_createRender.setObjectName("b_createRender")
        self.horizontalLayout_4.addWidget(self.b_createRender)
        self.b_createPlayblast = QtWidgets.QPushButton(self.w_CreateExports)
        self.b_createPlayblast.setMinimumSize(QtCore.QSize(60, 25))
        self.b_createPlayblast.setMaximumSize(QtCore.QSize(60, 25))
        self.b_createPlayblast.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_createPlayblast.setObjectName("b_createPlayblast")
        self.horizontalLayout_4.addWidget(self.b_createPlayblast)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem1)
        self.b_showExportStates = QtWidgets.QPushButton(self.w_CreateExports)
        self.b_showExportStates.setMaximumSize(QtCore.QSize(25, 16777215))
        self.b_showExportStates.setObjectName("b_showExportStates")
        self.horizontalLayout_4.addWidget(self.b_showExportStates)
        self.verticalLayout_4.addWidget(self.w_CreateExports)
        self.f_export = QtWidgets.QFrame(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.f_export.sizePolicy().hasHeightForWidth())
        self.f_export.setSizePolicy(sizePolicy)
        self.f_export.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.f_export.setFrameShadow(QtWidgets.QFrame.Raised)
        self.f_export.setLineWidth(1)
        self.f_export.setMidLineWidth(0)
        self.f_export.setObjectName("f_export")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.f_export)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tw_export = QtWidgets.QTreeWidget(self.f_export)
        self.tw_export.setFocusPolicy(QtCore.Qt.ClickFocus)
        self.tw_export.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.tw_export.setAcceptDrops(True)
        self.tw_export.setEditTriggers(
            QtWidgets.QAbstractItemView.NoEditTriggers)
        self.tw_export.setDragEnabled(True)
        self.tw_export.setDragDropMode(
            QtWidgets.QAbstractItemView.InternalMove)
        self.tw_export.setDefaultDropAction(QtCore.Qt.MoveAction)
        self.tw_export.setVerticalScrollMode(
            QtWidgets.QAbstractItemView.ScrollPerPixel)
        self.tw_export.setIndentation(20)
        self.tw_export.setObjectName("tw_export")
        self.tw_export.headerItem().setText(0, "1")
        self.tw_export.header().setVisible(False)
        self.verticalLayout.addWidget(self.tw_export)
        self.verticalLayout_4.addWidget(self.f_export)
        self.gb_publish = QtWidgets.QGroupBox(self.groupBox_2)
        self.gb_publish.setObjectName("gb_publish")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.gb_publish)
        self.verticalLayout_6.setContentsMargins(-1, 14, -1, -1)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.groupBox_3 = QtWidgets.QGroupBox(self.gb_publish)
        self.groupBox_3.setObjectName("groupBox_3")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_7.setContentsMargins(-1, 14, -1, -1)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.sp_rangeStart = QtWidgets.QSpinBox(self.groupBox_3)
        self.sp_rangeStart.setEnabled(True)
        self.sp_rangeStart.setMaximum(99999)
        self.sp_rangeStart.setObjectName("sp_rangeStart")
        self.horizontalLayout_7.addWidget(self.sp_rangeStart)
        spacerItem2 = QtWidgets.QSpacerItem(10, 20,
                                            QtWidgets.QSizePolicy.Fixed,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem2)
        self.label_6 = QtWidgets.QLabel(self.groupBox_3)
        self.label_6.setEnabled(True)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout_7.addWidget(self.label_6)
        self.sp_rangeEnd = QtWidgets.QSpinBox(self.groupBox_3)
        self.sp_rangeEnd.setEnabled(True)
        self.sp_rangeEnd.setSuffix("")
        self.sp_rangeEnd.setMinimum(0)
        self.sp_rangeEnd.setMaximum(99999)
        self.sp_rangeEnd.setProperty("value", 100)
        self.sp_rangeEnd.setObjectName("sp_rangeEnd")
        self.horizontalLayout_7.addWidget(self.sp_rangeEnd)
        spacerItem3 = QtWidgets.QSpacerItem(5, 20, QtWidgets.QSizePolicy.Fixed,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem3)
        self.b_getRange = QtWidgets.QPushButton(self.groupBox_3)
        self.b_getRange.setMaximumSize(QtCore.QSize(30, 16777215))
        self.b_getRange.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_getRange.setAutoDefault(False)
        self.b_getRange.setObjectName("b_getRange")
        self.horizontalLayout_7.addWidget(self.b_getRange)
        self.b_setRange = QtWidgets.QPushButton(self.groupBox_3)
        self.b_setRange.setMaximumSize(QtCore.QSize(30, 16777215))
        self.b_setRange.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_setRange.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.b_setRange.setAutoDefault(False)
        self.b_setRange.setObjectName("b_setRange")
        self.horizontalLayout_7.addWidget(self.b_setRange)
        self.verticalLayout_6.addWidget(self.groupBox_3)
        self.widget_2 = QtWidgets.QWidget(self.gb_publish)
        self.widget_2.setObjectName("widget_2")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.widget_2)
        self.horizontalLayout_5.setContentsMargins(-1, 5, -1, -1)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.l_comment = QtWidgets.QLabel(self.widget_2)
        self.l_comment.setObjectName("l_comment")
        self.horizontalLayout_5.addWidget(self.l_comment)
        self.e_comment = QtWidgets.QLineEdit(self.widget_2)
        self.e_comment.setObjectName("e_comment")
        self.horizontalLayout_5.addWidget(self.e_comment)
        self.b_description = QtWidgets.QPushButton(self.widget_2)
        self.b_description.setMinimumSize(QtCore.QSize(20, 25))
        self.b_description.setMaximumSize(QtCore.QSize(20, 25))
        self.b_description.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_description.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.b_description.setObjectName("b_description")
        self.horizontalLayout_5.addWidget(self.b_description)
        self.b_preview = QtWidgets.QPushButton(self.widget_2)
        self.b_preview.setMinimumSize(QtCore.QSize(20, 25))
        self.b_preview.setMaximumSize(QtCore.QSize(20, 25))
        self.b_preview.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_preview.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.b_preview.setObjectName("b_preview")
        self.horizontalLayout_5.addWidget(self.b_preview)
        self.verticalLayout_6.addWidget(self.widget_2)
        self.b_publish = QtWidgets.QPushButton(self.gb_publish)
        self.b_publish.setEnabled(False)
        self.b_publish.setFocusPolicy(QtCore.Qt.NoFocus)
        self.b_publish.setAutoDefault(False)
        self.b_publish.setObjectName("b_publish")
        self.verticalLayout_6.addWidget(self.b_publish)
        self.verticalLayout_4.addWidget(self.gb_publish)
        self.verticalLayout_5.addWidget(self.groupBox_2)
        self.horizontalLayout_2.addWidget(self.widget)
        self.widget_3 = QtWidgets.QWidget(self.scrollAreaWidgetContents)
        self.widget_3.setMinimumSize(QtCore.QSize(358, 0))
        self.widget_3.setMaximumSize(QtCore.QSize(358, 16777215))
        self.widget_3.setObjectName("widget_3")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.widget_3)
        self.verticalLayout_8.setSpacing(0)
        self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.w_stateUi = QtWidgets.QWidget(self.widget_3)
        self.w_stateUi.setObjectName("w_stateUi")
        self.lo_stateUi = QtWidgets.QVBoxLayout(self.w_stateUi)
        self.lo_stateUi.setContentsMargins(9, 9, 9, 9)
        self.lo_stateUi.setObjectName("lo_stateUi")
        self.verticalLayout_8.addWidget(self.w_stateUi)
        spacerItem4 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_8.addItem(spacerItem4)
        spacerItem5 = QtWidgets.QSpacerItem(378, 1,
                                            QtWidgets.QSizePolicy.Fixed,
                                            QtWidgets.QSizePolicy.Minimum)
        self.verticalLayout_8.addItem(spacerItem5)
        self.horizontalLayout_2.addWidget(self.widget_3)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout_2.addWidget(self.scrollArea)
        mw_StateManager.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(mw_StateManager)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 722, 21))
        self.menubar.setObjectName("menubar")
        self.menuAbout = QtWidgets.QMenu(self.menubar)
        self.menuAbout.setObjectName("menuAbout")
        self.menuRecentProjects = QtWidgets.QMenu(self.menuAbout)
        self.menuRecentProjects.setObjectName("menuRecentProjects")
        mw_StateManager.setMenuBar(self.menubar)
        self.actionProjectBrowser = QtWidgets.QAction(mw_StateManager)
        self.actionProjectBrowser.setObjectName("actionProjectBrowser")
        self.actionPrismSettings = QtWidgets.QAction(mw_StateManager)
        self.actionPrismSettings.setObjectName("actionPrismSettings")
        self.actionZu = QtWidgets.QAction(mw_StateManager)
        self.actionZu.setObjectName("actionZu")
        self.actionCopyStates = QtWidgets.QAction(mw_StateManager)
        self.actionCopyStates.setObjectName("actionCopyStates")
        self.actionPasteStates = QtWidgets.QAction(mw_StateManager)
        self.actionPasteStates.setObjectName("actionPasteStates")
        self.actionRemoveStates = QtWidgets.QAction(mw_StateManager)
        self.actionRemoveStates.setObjectName("actionRemoveStates")
        self.menuAbout.addAction(self.actionCopyStates)
        self.menuAbout.addAction(self.actionPasteStates)
        self.menuAbout.addAction(self.actionRemoveStates)
        self.menuAbout.addSeparator()
        self.menuAbout.addAction(self.actionProjectBrowser)
        self.menuAbout.addAction(self.actionPrismSettings)
        self.menuAbout.addSeparator()
        self.menuAbout.addAction(self.menuRecentProjects.menuAction())
        self.menubar.addAction(self.menuAbout.menuAction())

        self.retranslateUi(mw_StateManager)
        QtCore.QMetaObject.connectSlotsByName(mw_StateManager)
Beispiel #25
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(844, 625)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.device_list = QtWidgets.QComboBox(self.centralwidget)
        self.device_list.setMinimumSize(QtCore.QSize(400, 0))
        self.device_list.setObjectName("device_list")
        self.horizontalLayout_3.addWidget(self.device_list)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        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.horizontalLayout_3.addWidget(self.label_4)
        self.brightness = QtWidgets.QSlider(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.brightness.sizePolicy().hasHeightForWidth())
        self.brightness.setSizePolicy(sizePolicy)
        self.brightness.setMinimumSize(QtCore.QSize(200, 0))
        self.brightness.setOrientation(QtCore.Qt.Horizontal)
        self.brightness.setObjectName("brightness")
        self.horizontalLayout_3.addWidget(self.brightness)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(-1, 20, -1, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.pages = QtWidgets.QTabWidget(self.centralwidget)
        self.pages.setAutoFillBackground(False)
        self.pages.setStyleSheet("b")
        self.pages.setObjectName("pages")
        self.page_1 = QtWidgets.QWidget()
        self.page_1.setObjectName("page_1")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.page_1)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.pages.addTab(self.page_1, "")
        self.page_2 = QtWidgets.QWidget()
        self.page_2.setObjectName("page_2")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.page_2)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.pages.addTab(self.page_2, "")
        self.page_3 = QtWidgets.QWidget()
        self.page_3.setObjectName("page_3")
        self.gridLayout_11 = QtWidgets.QGridLayout(self.page_3)
        self.gridLayout_11.setObjectName("gridLayout_11")
        self.pages.addTab(self.page_3, "")
        self.page_4 = QtWidgets.QWidget()
        self.page_4.setObjectName("page_4")
        self.gridLayout_10 = QtWidgets.QGridLayout(self.page_4)
        self.gridLayout_10.setObjectName("gridLayout_10")
        self.pages.addTab(self.page_4, "")
        self.page_5 = QtWidgets.QWidget()
        self.page_5.setObjectName("page_5")
        self.gridLayout_9 = QtWidgets.QGridLayout(self.page_5)
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.pages.addTab(self.page_5, "")
        self.page_6 = QtWidgets.QWidget()
        self.page_6.setObjectName("page_6")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.page_6)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.pages.addTab(self.page_6, "")
        self.page_7 = QtWidgets.QWidget()
        self.page_7.setObjectName("page_7")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.page_7)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.pages.addTab(self.page_7, "")
        self.page_8 = QtWidgets.QWidget()
        self.page_8.setObjectName("page_8")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.page_8)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.pages.addTab(self.page_8, "")
        self.page_9 = QtWidgets.QWidget()
        self.page_9.setObjectName("page_9")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.page_9)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.pages.addTab(self.page_9, "")
        self.tab_10 = QtWidgets.QWidget()
        self.tab_10.setObjectName("tab_10")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_10)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.pages.addTab(self.tab_10, "")
        self.horizontalLayout.addWidget(self.pages)
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setMinimumSize(QtCore.QSize(250, 0))
        self.groupBox.setMaximumSize(QtCore.QSize(250, 16777215))
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(self.groupBox)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.label)
        self.imageButton = QtWidgets.QPushButton(self.groupBox)
        self.imageButton.setObjectName("imageButton")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.imageButton)
        self.label_2 = QtWidgets.QLabel(self.groupBox)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                  self.label_2)
        self.text = QtWidgets.QLineEdit(self.groupBox)
        self.text.setObjectName("text")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                  self.text)
        self.label_3 = QtWidgets.QLabel(self.groupBox)
        self.label_3.setObjectName("label_3")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole,
                                  self.label_3)
        self.command = QtWidgets.QLineEdit(self.groupBox)
        self.command.setObjectName("command")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole,
                                  self.command)
        self.label_5 = QtWidgets.QLabel(self.groupBox)
        self.label_5.setObjectName("label_5")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole,
                                  self.label_5)
        self.keys = QtWidgets.QLineEdit(self.groupBox)
        self.keys.setObjectName("keys")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole,
                                  self.keys)
        self.label_6 = QtWidgets.QLabel(self.groupBox)
        self.label_6.setObjectName("label_6")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole,
                                  self.label_6)
        self.write = QtWidgets.QPlainTextEdit(self.groupBox)
        self.write.setObjectName("write")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole,
                                  self.write)
        self.label_8 = QtWidgets.QLabel(self.groupBox)
        self.label_8.setObjectName("label_8")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole,
                                  self.label_8)
        self.switch_page = QtWidgets.QSpinBox(self.groupBox)
        self.switch_page.setMinimum(0)
        self.switch_page.setMaximum(10)
        self.switch_page.setProperty("value", 0)
        self.switch_page.setObjectName("switch_page")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole,
                                  self.switch_page)
        self.label_7 = QtWidgets.QLabel(self.groupBox)
        self.label_7.setObjectName("label_7")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole,
                                  self.label_7)
        self.change_brightness = QtWidgets.QSpinBox(self.groupBox)
        self.change_brightness.setMinimum(-99)
        self.change_brightness.setObjectName("change_brightness")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole,
                                  self.change_brightness)
        self.verticalLayout_3.addLayout(self.formLayout)
        self.horizontalLayout.addWidget(self.groupBox)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_2.addLayout(self.verticalLayout)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 844, 30))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionImport = QtWidgets.QAction(MainWindow)
        self.actionImport.setObjectName("actionImport")
        self.actionExport = QtWidgets.QAction(MainWindow)
        self.actionExport.setObjectName("actionExport")
        self.menuFile.addAction(self.actionImport)
        self.menuFile.addAction(self.actionExport)
        self.menubar.addAction(self.menuFile.menuAction())

        self.retranslateUi(MainWindow)
        self.pages.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
 def create_widgets(self):
     self.group = QtWidgets.QGroupBox(self.title)
     self.line_edit = QtWidgets.QLineEdit(self.default_dir)
     self.browse_button = QtWidgets.QPushButton("Browse...")
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(952, 823)
        MainWindow.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setMinimumSize(QtCore.QSize(100, 0))
        self.label.setMaximumSize(QtCore.QSize(300, 16777215))
        font = QtGui.QFont()
        font.setFamily("Showcard Gothic")
        font.setPointSize(21)
        self.label.setFont(font)
        self.label.setStyleSheet("background-color: rgb(81, 197, 255);")
        self.label.setObjectName("label")
        self.horizontalLayout_3.addWidget(self.label)
        self.label_7 = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setFamily("Showcard Gothic")
        font.setPointSize(10)
        self.label_7.setFont(font)
        self.label_7.setStyleSheet("background-color: rgb(81, 197, 255);")
        self.label_7.setObjectName("label_7")
        self.horizontalLayout_3.addWidget(self.label_7)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Minimum)
        self.verticalLayout_2.addItem(spacerItem1)
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.verticalLayout_2.addWidget(self.label_3)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.pBAjoutCV = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pBAjoutCV.sizePolicy().hasHeightForWidth())
        self.pBAjoutCV.setSizePolicy(sizePolicy)
        self.pBAjoutCV.setMinimumSize(QtCore.QSize(180, 0))
        self.pBAjoutCV.setMaximumSize(QtCore.QSize(180, 16777215))
        font = QtGui.QFont()
        font.setPointSize(9)
        self.pBAjoutCV.setFont(font)
        self.pBAjoutCV.setCursor(QtCore.Qt.PointingHandCursor)
        self.pBAjoutCV.setStyleSheet(
            "background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 255), stop:0.894472 rgba(0, 170, 255, 255));"
        )
        self.pBAjoutCV.setObjectName("pBAjoutCV")
        self.horizontalLayout_5.addWidget(self.pBAjoutCV)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem2)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.tableWidget = QtWidgets.QTableWidget(self.centralwidget)
        self.tableWidget.setObjectName("tableWidget")
        self.tableWidget.setColumnCount(0)
        self.tableWidget.setRowCount(0)
        self.verticalLayout_2.addWidget(self.tableWidget)
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_2.addWidget(self.label_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lEKeyWord = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lEKeyWord.sizePolicy().hasHeightForWidth())
        self.lEKeyWord.setSizePolicy(sizePolicy)
        self.lEKeyWord.setMinimumSize(QtCore.QSize(200, 0))
        self.lEKeyWord.setText("")
        self.lEKeyWord.setObjectName("lEKeyWord")
        self.horizontalLayout.addWidget(self.lEKeyWord)
        self.pBAddKeyWord = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pBAddKeyWord.sizePolicy().hasHeightForWidth())
        self.pBAddKeyWord.setSizePolicy(sizePolicy)
        self.pBAddKeyWord.setMinimumSize(QtCore.QSize(100, 0))
        self.pBAddKeyWord.setMaximumSize(QtCore.QSize(100, 16777215))
        font = QtGui.QFont()
        font.setPointSize(9)
        self.pBAddKeyWord.setFont(font)
        self.pBAddKeyWord.setCursor(QtCore.Qt.PointingHandCursor)
        self.pBAddKeyWord.setStyleSheet(
            "background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 255), stop:0.894472 rgba(0, 170, 255, 255));"
        )
        self.pBAddKeyWord.setObjectName("pBAddKeyWord")
        self.horizontalLayout.addWidget(self.pBAddKeyWord)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem3)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.tWKeyWord = QtWidgets.QTableWidget(self.centralwidget)
        self.tWKeyWord.setObjectName("tWKeyWord")
        self.tWKeyWord.setColumnCount(0)
        self.tWKeyWord.setRowCount(0)
        self.verticalLayout_2.addWidget(self.tWKeyWord)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.label_4.setFont(font)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_3.addWidget(self.label_4)
        self.label_5 = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.label_5.setFont(font)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_3.addWidget(self.label_5)
        self.pBResearch = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pBResearch.sizePolicy().hasHeightForWidth())
        self.pBResearch.setSizePolicy(sizePolicy)
        self.pBResearch.setMinimumSize(QtCore.QSize(180, 0))
        self.pBResearch.setMaximumSize(QtCore.QSize(180, 16777215))
        font = QtGui.QFont()
        font.setPointSize(9)
        self.pBResearch.setFont(font)
        self.pBResearch.setCursor(QtCore.Qt.PointingHandCursor)
        self.pBResearch.setStyleSheet(
            "background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 255), stop:0.894472 rgba(0, 170, 255, 255));"
        )
        self.pBResearch.setObjectName("pBResearch")
        self.verticalLayout_3.addWidget(self.pBResearch)
        self.horizontalLayout_2.addLayout(self.verticalLayout_3)
        spacerItem4 = QtWidgets.QSpacerItem(300, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem4)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        spacerItem5 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem5)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.pBClearKW = QtWidgets.QPushButton(self.centralwidget)
        self.pBClearKW.setMinimumSize(QtCore.QSize(180, 0))
        self.pBClearKW.setMaximumSize(QtCore.QSize(180, 16777215))
        font = QtGui.QFont()
        font.setPointSize(9)
        self.pBClearKW.setFont(font)
        self.pBClearKW.setCursor(QtCore.Qt.PointingHandCursor)
        self.pBClearKW.setStyleSheet(
            "background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 255), stop:0.894472 rgba(0, 170, 255, 255));"
        )
        self.pBClearKW.setObjectName("pBClearKW")
        self.horizontalLayout_6.addWidget(self.pBClearKW)
        spacerItem6 = QtWidgets.QSpacerItem(300, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem6)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)
        spacerItem7 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem7)
        self.horizontalLayout_7.addLayout(self.verticalLayout_2)
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout_7.addWidget(self.line)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label_6 = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setFamily("Showcard Gothic")
        font.setPointSize(11)
        self.label_6.setFont(font)
        self.label_6.setObjectName("label_6")
        self.verticalLayout.addWidget(self.label_6)
        self.tWResults = QtWidgets.QTableWidget(self.centralwidget)
        self.tWResults.setMinimumSize(QtCore.QSize(400, 0))
        self.tWResults.setObjectName("tWResults")
        self.tWResults.setColumnCount(0)
        self.tWResults.setRowCount(0)
        self.verticalLayout.addWidget(self.tWResults)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.pBNewRequest = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pBNewRequest.sizePolicy().hasHeightForWidth())
        self.pBNewRequest.setSizePolicy(sizePolicy)
        self.pBNewRequest.setMinimumSize(QtCore.QSize(150, 0))
        self.pBNewRequest.setMaximumSize(QtCore.QSize(150, 16777215))
        font = QtGui.QFont()
        font.setPointSize(9)
        self.pBNewRequest.setFont(font)
        self.pBNewRequest.setCursor(QtCore.Qt.PointingHandCursor)
        self.pBNewRequest.setStyleSheet(
            "background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 255), stop:0.894472 rgba(0, 170, 255, 255));"
        )
        self.pBNewRequest.setObjectName("pBNewRequest")
        self.horizontalLayout_4.addWidget(self.pBNewRequest)
        spacerItem8 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem8)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_7.addLayout(self.verticalLayout)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 952, 21))
        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)
Beispiel #28
0
    def _ui_parameters_fsv9(self):
        hbox = QtWidgets.QHBoxLayout()
        self.setParametersFSv9.setLayout(hbox)
        hbox.addStretch()

        vbox = QtWidgets.QVBoxLayout()
        hbox.addLayout(vbox)
        vbox.addStretch()

        # FIRST ROW OF KNOBS

        label_up_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(label_up_hbox)
        # stretch
        label_up_hbox.addStretch()
        # profile
        text_field_empty = QtWidgets.QLabel("")
        text_field_empty.setAlignment(QtCore.Qt.AlignCenter)
        text_field_empty.setFixedWidth(30)
        label_up_hbox.addWidget(text_field_empty)
        text_office_empty = QtWidgets.QLabel("")
        text_office_empty.setAlignment(QtCore.Qt.AlignCenter)
        text_office_empty.setFixedWidth(35)
        label_up_hbox.addWidget(text_office_empty)
        # space
        label_up_hbox.addSpacing(15)
        # specs
        text_2018 = QtWidgets.QLabel("2018")
        text_2018.setAlignment(QtCore.Qt.AlignCenter)
        text_2018.setFixedWidth(25)
        label_up_hbox.addWidget(text_2018)
        # space
        label_up_hbox.addSpacing(20)
        # specs
        text_2019 = QtWidgets.QLabel("2019")
        text_2019.setAlignment(QtCore.Qt.AlignCenter)
        text_2019.setFixedWidth(25)
        label_up_hbox.addWidget(text_2019)

        # stretch
        label_up_hbox.addStretch()

        toggle_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(toggle_hbox)
        # stretch
        toggle_hbox.addStretch()
        # profile
        self.toggle_profile_v9 = QtWidgets.QDial()
        self.toggle_profile_v9.setNotchesVisible(True)
        self.toggle_profile_v9.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.toggle_profile_v9.setRange(0, 1)
        self.toggle_profile_v9.setFixedSize(QtCore.QSize(50, 50))
        self.toggle_profile_v9.setInvertedAppearance(False)
        toggle_hbox.addWidget(self.toggle_profile_v9)
        # noinspection PyUnresolvedReferences
        self.toggle_profile_v9.valueChanged.connect(self.click_set_profile_v9)
        # space
        toggle_hbox.addSpacing(35)
        # specs
        self.toggle_specs_v9 = QtWidgets.QDial()
        self.toggle_specs_v9.setNotchesVisible(True)
        self.toggle_specs_v9.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.toggle_specs_v9.setRange(2017, 2020)
        self.toggle_specs_v9.setValue(2019)
        self.toggle_specs_v9.setFixedSize(QtCore.QSize(50, 50))
        self.toggle_specs_v9.setInvertedAppearance(False)
        toggle_hbox.addWidget(self.toggle_specs_v9)
        # noinspection PyUnresolvedReferences
        self.toggle_specs_v9.valueChanged.connect(self.click_set_specs_v9)
        # stretch
        toggle_hbox.addStretch()

        label_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(label_hbox)
        # stretch
        label_hbox.addStretch()
        # profile
        text_office = QtWidgets.QLabel("Office")
        text_office.setAlignment(QtCore.Qt.AlignRight)
        text_office.setFixedWidth(45)
        label_hbox.addWidget(text_office)
        text_field = QtWidgets.QLabel("Field")
        text_field.setAlignment(QtCore.Qt.AlignRight)
        text_field.setFixedWidth(35)
        label_hbox.addWidget(text_field)
        # space
        label_hbox.addSpacing(20)
        # specs
        text_2017 = QtWidgets.QLabel("2017")
        text_2017.setAlignment(QtCore.Qt.AlignCenter)
        text_2017.setFixedWidth(25)
        label_hbox.addWidget(text_2017)
        text_2020 = QtWidgets.QLabel("2020 test")
        text_2020.setAlignment(QtCore.Qt.AlignRight)
        text_2020.setFixedWidth(70)
        text_2020.setStyleSheet("QLabel { color :  rgb(200, 0, 0, 200); }")
        label_hbox.addWidget(text_2020)
        # stretch
        label_hbox.addStretch()

        vbox.addSpacing(12)

        # SECOND ROW OF KNOBS

        label_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(label_hbox)
        # stretch
        label_hbox.addStretch()
        # specs
        self.text_lakes_v9 = QtWidgets.QLabel("Great Lakes")
        self.text_lakes_v9.setAlignment(QtCore.Qt.AlignCenter)
        self.text_lakes_v9.setFixedWidth(120)
        self.text_lakes_v9.setDisabled(True)
        label_hbox.addWidget(self.text_lakes_v9)
        # stretch
        label_hbox.addStretch()

        toggle_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(toggle_hbox)
        # stretch
        toggle_hbox.addStretch()
        # specs
        self.toggle_area_v9 = QtWidgets.QDial()
        self.toggle_area_v9.setNotchesVisible(True)
        self.toggle_area_v9.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.toggle_area_v9.setRange(0, 2)
        self.toggle_area_v9.setValue(0)
        self.toggle_area_v9.setFixedSize(QtCore.QSize(50, 50))
        self.toggle_area_v9.setInvertedAppearance(False)
        self.toggle_area_v9.setDisabled(True)
        # noinspection PyUnresolvedReferences
        # self.toggle_area.valueChanged.connect(self.on_settings_changed)
        toggle_hbox.addWidget(self.toggle_area_v9)
        # stretch
        toggle_hbox.addStretch()

        label2_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(label2_hbox)
        # stretch
        label2_hbox.addStretch()
        # specs
        self.text_pacific_v9 = QtWidgets.QLabel("Pacific Coast")
        self.text_pacific_v9.setAlignment(QtCore.Qt.AlignCenter)
        self.text_pacific_v9.setFixedWidth(80)
        self.text_pacific_v9.setDisabled(True)
        label2_hbox.addWidget(self.text_pacific_v9)
        self.text_atlantic_v9 = QtWidgets.QLabel("Atlantic Coast")
        self.text_atlantic_v9.setAlignment(QtCore.Qt.AlignCenter)
        self.text_atlantic_v9.setFixedWidth(80)
        self.text_atlantic_v9.setDisabled(True)
        label2_hbox.addWidget(self.text_atlantic_v9)
        # stretch
        label2_hbox.addStretch()

        vbox.addSpacing(12)

        # THIRD ROW

        label_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(label_hbox)
        # stretch
        label_hbox.addStretch()
        # spacing
        label_hbox.addSpacing(100)
        # stretch
        label_hbox.addStretch()

        left_spacing = 20
        text_spacing = 180
        editor_spacing = 120

        toggle_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(toggle_hbox)
        # stretch
        toggle_hbox.addSpacing(left_spacing)
        self.ask_multimedia_folder_v9 = QtWidgets.QCheckBox("")
        self.ask_multimedia_folder_v9.setChecked(True)
        toggle_hbox.addWidget(self.ask_multimedia_folder_v9)
        self.amf_text_v9 = QtWidgets.QLabel("Select the path to the images folder")
        self.amf_text_v9.setFixedWidth(text_spacing)
        toggle_hbox.addWidget(self.amf_text_v9)
        # stretch
        toggle_hbox.addStretch()

        toggle_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(toggle_hbox)
        # stretch
        toggle_hbox.addSpacing(left_spacing)
        self.use_mhw_v9 = QtWidgets.QCheckBox("")
        self.use_mhw_v9.setChecked(True)
        # noinspection PyUnresolvedReferences
        self.use_mhw_v9.stateChanged.connect(self.change_use_mhw_v9)
        toggle_hbox.addWidget(self.use_mhw_v9)
        self.mhw_text_v9 = QtWidgets.QLabel("MHW [m] for WATLEV check: ")
        self.mhw_text_v9.setFixedWidth(text_spacing)
        self.mhw_text_v9.setDisabled(False)
        toggle_hbox.addWidget(self.mhw_text_v9)
        self.mhw_value_v9 = QtWidgets.QLineEdit()
        self.mhw_value_v9.setFixedWidth(editor_spacing)
        self.mhw_value_v9.setValidator(QtGui.QDoubleValidator(-9999, 9999, 5, self.mhw_value_v9))
        self.mhw_value_v9.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
        self.mhw_value_v9.setText("")
        self.mhw_value_v9.setDisabled(False)
        toggle_hbox.addWidget(self.mhw_value_v9)
        # stretch
        toggle_hbox.addStretch()

        toggle_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(toggle_hbox)
        # stretch
        toggle_hbox.addSpacing(left_spacing)
        self.check_sorind_v9 = QtWidgets.QCheckBox("")
        self.check_sorind_v9.setChecked(False)
        # noinspection PyUnresolvedReferences
        self.check_sorind_v9.stateChanged.connect(self.change_check_sorind_v9)
        toggle_hbox.addWidget(self.check_sorind_v9)
        self.sorind_text_v9 = QtWidgets.QLabel("SORIND (US,US,graph,HXXXXX): ")
        self.sorind_text_v9.setDisabled(True)
        self.sorind_text_v9.setFixedWidth(text_spacing)
        toggle_hbox.addWidget(self.sorind_text_v9)
        self.sorind_value_v9 = QtWidgets.QLineEdit()
        self.sorind_value_v9.setFixedWidth(editor_spacing)
        # self.sorind_value_v9.setValidator(QtGui.QDoubleValidator(-9999, 9999, 5, self.mhw_value_v9))
        self.sorind_value_v9.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
        self.sorind_value_v9.setText("")
        self.sorind_value_v9.setDisabled(True)
        toggle_hbox.addWidget(self.sorind_value_v9)
        # stretch
        toggle_hbox.addStretch()

        toggle_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(toggle_hbox)
        # stretch
        toggle_hbox.addSpacing(left_spacing)
        self.check_sordat_v9 = QtWidgets.QCheckBox("")
        self.check_sordat_v9.setChecked(False)
        # noinspection PyUnresolvedReferences
        self.check_sordat_v9.stateChanged.connect(self.change_check_sordat_v9)
        toggle_hbox.addWidget(self.check_sordat_v9)
        self.sordat_text_v9 = QtWidgets.QLabel("SORDAT (YYYYMMDD): ")
        self.sordat_text_v9.setDisabled(True)
        self.sordat_text_v9.setFixedWidth(text_spacing)
        toggle_hbox.addWidget(self.sordat_text_v9)
        self.sordat_value_v9 = QtWidgets.QLineEdit()
        self.sordat_value_v9.setFixedWidth(editor_spacing)
        # self.sordat_value_v9.setValidator(QtGui.QDoubleValidator(-9999, 9999, 5, self.mhw_value_v9))
        self.sordat_value_v9.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
        self.sordat_value_v9.setText("")
        self.sordat_value_v9.setDisabled(True)
        toggle_hbox.addWidget(self.sordat_value_v9)
        # stretch
        toggle_hbox.addStretch()

        label2_hbox = QtWidgets.QHBoxLayout()
        vbox.addLayout(label2_hbox)
        # stretch
        label2_hbox.addStretch()
        # spacing
        label2_hbox.addSpacing(100)
        # stretch
        label2_hbox.addStretch()

        vbox.addStretch()

        hbox.addStretch()
Beispiel #29
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(640, 480)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(-1, 0, -1, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.findConanfilePushButton = QtWidgets.QPushButton(self.centralwidget)
        self.findConanfilePushButton.setObjectName("findConanfilePushButton")
        self.horizontalLayout.addWidget(self.findConanfilePushButton)
        self.conanfilePathLineEdit = QtWidgets.QLineEdit(self.centralwidget)
        self.conanfilePathLineEdit.setObjectName("conanfilePathLineEdit")
        self.horizontalLayout.addWidget(self.conanfilePathLineEdit)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.recipeVerticalLayout = QtWidgets.QVBoxLayout()
        self.recipeVerticalLayout.setObjectName("recipeVerticalLayout")
        self.staticConfig = QtWidgets.QWidget(self.centralwidget)
        self.staticConfig.setObjectName("staticConfig")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.staticConfig)
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.settingsGroupBox = QtWidgets.QGroupBox(self.staticConfig)
        self.settingsGroupBox.setCheckable(False)
        self.settingsGroupBox.setObjectName("settingsGroupBox")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.settingsGroupBox)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
        self.horizontalLayout_2.setContentsMargins(-1, -1, -1, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.profilePushButton = QtWidgets.QPushButton(self.settingsGroupBox)
        self.profilePushButton.setObjectName("profilePushButton")
        self.horizontalLayout_2.addWidget(self.profilePushButton)
        self.profileLineEdit = QtWidgets.QLineEdit(self.settingsGroupBox)
        self.profileLineEdit.setObjectName("profileLineEdit")
        self.horizontalLayout_2.addWidget(self.profileLineEdit)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.settingsTreeView = QtWidgets.QTreeView(self.settingsGroupBox)
        self.settingsTreeView.setObjectName("settingsTreeView")
        self.verticalLayout_2.addWidget(self.settingsTreeView)
        self.horizontalLayout_3.addWidget(self.settingsGroupBox)
        self.dependenciesGroupBox = QtWidgets.QGroupBox(self.staticConfig)
        self.dependenciesGroupBox.setObjectName("dependenciesGroupBox")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.dependenciesGroupBox)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.dependenciesTreeView = QtWidgets.QTreeView(self.dependenciesGroupBox)
        self.dependenciesTreeView.setObjectName("dependenciesTreeView")
        self.horizontalLayout_5.addWidget(self.dependenciesTreeView)
        self.horizontalLayout_3.addWidget(self.dependenciesGroupBox)
        self.recipeVerticalLayout.addWidget(self.staticConfig)
        self.optionsGroupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.optionsGroupBox.setObjectName("optionsGroupBox")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.optionsGroupBox)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.optionsListView = QtWidgets.QListView(self.optionsGroupBox)
        self.optionsListView.setObjectName("optionsListView")
        self.horizontalLayout_4.addWidget(self.optionsListView)
        self.recipeVerticalLayout.addWidget(self.optionsGroupBox)
        self.verticalLayout.addLayout(self.recipeVerticalLayout)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem)
        self.generatePushButton = QtWidgets.QPushButton(self.centralwidget)
        self.generatePushButton.setToolTip("")
        self.generatePushButton.setStatusTip("")
        self.generatePushButton.setWhatsThis("")
        self.generatePushButton.setObjectName("generatePushButton")
        self.horizontalLayout_6.addWidget(self.generatePushButton)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem1)
        self.verticalLayout.addLayout(self.horizontalLayout_6)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar()
        self.menubar.setGeometry(QtCore.QRect(0, 0, 640, 22))
        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 __init__(self, main_win, lib, parent=None):
        AbstractDialog.__init__(self,
                                main_win=main_win,
                                lib=lib,
                                parent=parent)

        settings = QtCore.QSettings()

        self.setWindowTitle("Profile metadata")
        self.setMinimumWidth(400)

        lbl_width = 90

        # outline ui
        self.mainLayout = QtWidgets.QVBoxLayout()
        self.setLayout(self.mainLayout)

        # types
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("Data type:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.sensor_type = QtWidgets.QLineEdit()
        self.sensor_type.setDisabled(True)
        self.sensor_type.setText(self.lib.cur.meta.sensor)
        hbox.addWidget(self.sensor_type)
        self.probe_type = QtWidgets.QLineEdit()
        self.probe_type.setDisabled(True)
        self.probe_type.setText(self.lib.cur.meta.probe)
        hbox.addWidget(self.probe_type)

        # original path
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("Path:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.original_path = QtWidgets.QLineEdit()
        self.original_path.setDisabled(True)
        self.original_path.setText(self.lib.cur.meta.original_path)
        hbox.addWidget(self.original_path)

        # location
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("Location:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.latitude = QtWidgets.QLineEdit()
        self.latitude.setDisabled(True)
        self.latitude.setText("%s" % self.lib.cur.meta.latitude)
        hbox.addWidget(self.latitude)
        # noinspection PyUnresolvedReferences
        self.latitude.textChanged.connect(self.changed_latitude)
        self.longitude = QtWidgets.QLineEdit()
        self.longitude.setDisabled(True)
        self.longitude.setText("%s" % self.lib.cur.meta.longitude)
        hbox.addWidget(self.longitude)
        # noinspection PyUnresolvedReferences
        self.longitude.textChanged.connect(self.changed_longitude)

        # datetime
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("Timestamp:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.timestamp = QtWidgets.QLineEdit()
        self.timestamp.setDisabled(True)
        self.timestamp.setText(
            self.lib.cur.meta.utc_time.strftime("%d/%m/%y %H:%M:%S.%f"))
        hbox.addWidget(self.timestamp)
        # noinspection PyUnresolvedReferences
        self.timestamp.textChanged.connect(self.changed_timestamp)

        # last edit
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("Last edit:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.proc_time = QtWidgets.QLineEdit()
        self.proc_time.setDisabled(True)
        self.proc_time.setText(
            self.lib.cur.meta.proc_time.strftime("%d/%m/%y %H:%M:%S.%f"))
        hbox.addWidget(self.proc_time)

        # proc info
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("Proc. info:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.proc_info = QtWidgets.QLineEdit()
        self.proc_info.setDisabled(True)
        self.proc_info.setText("%s" % self.lib.cur.meta.proc_info)
        hbox.addWidget(self.proc_info)

        # institution
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("Institution:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.institution = QtWidgets.QLineEdit()
        self.institution.setDisabled(True)
        self.institution.setText("%s" % self.lib.cur.meta.institution)
        hbox.addWidget(self.institution)
        self.institution.setAutoFillBackground(True)
        # noinspection PyUnresolvedReferences
        self.institution.textChanged.connect(self.changed_institution)

        # survey
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("Survey:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.survey = QtWidgets.QLineEdit()
        self.survey.setDisabled(True)
        self.survey.setText("%s" % self.lib.cur.meta.survey)
        hbox.addWidget(self.survey)
        self.survey.setAutoFillBackground(True)
        # noinspection PyUnresolvedReferences
        self.survey.textChanged.connect(self.changed_survey)

        # vessel
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("Vessel:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.vessel = QtWidgets.QComboBox()
        self.vessel.setDisabled(True)
        if not lib.setup.noaa_tools:
            self.vessel.setEditable(True)
        self.vessel.addItems(vessel_list)
        if self.lib.cur.meta.vessel and self.vessel.findText(
                self.lib.cur.meta.vessel) < 0:
            self.vessel.insertItem(0, self.lib.cur.meta.vessel)
        self.vessel.setCurrentIndex(
            self.vessel.findText(self.lib.cur.meta.vessel))
        hbox.addWidget(self.vessel)
        self.vessel.setAutoFillBackground(True)
        # noinspection PyUnresolvedReferences
        self.vessel.editTextChanged.connect(self.changed_vessel)
        # noinspection PyUnresolvedReferences
        self.vessel.currentIndexChanged.connect(self.changed_vessel)

        # serial number
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("S/N:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.sn = QtWidgets.QLineEdit()
        self.sn.setDisabled(True)
        self.sn.setText("%s" % self.lib.cur.meta.sn)
        hbox.addWidget(self.sn)
        self.sn.setAutoFillBackground(True)
        # noinspection PyUnresolvedReferences
        self.sn.textChanged.connect(self.changed_sn)

        # surveylines
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("Surveylines:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.surveylines = QtWidgets.QTextEdit()
        self.surveylines.setMinimumHeight(24)
        self.surveylines.setMaximumHeight(60)
        self.surveylines.setDisabled(True)
        self.surveylines.setText("%s" % self.lib.cur.meta.surveylines)
        hbox.addWidget(self.surveylines)
        self.surveylines.setAutoFillBackground(True)
        # noinspection PyUnresolvedReferences
        self.surveylines.textChanged.connect(self.changed_surveylines)

        # comments
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("Comments:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.comments = QtWidgets.QTextEdit()
        self.comments.setMinimumHeight(24)
        self.comments.setMaximumHeight(60)
        self.comments.setDisabled(True)
        self.comments.setText("%s" % self.lib.cur.meta.comments)
        hbox.addWidget(self.comments)
        self.comments.setAutoFillBackground(True)
        # noinspection PyUnresolvedReferences
        self.comments.textChanged.connect(self.changed_comments)

        # pressure uom
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("Pressure UoM:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.pressure_uom = QtWidgets.QLineEdit()
        self.pressure_uom.setDisabled(True)
        self.pressure_uom.setText("%s" % self.lib.cur.meta.pressure_uom)
        hbox.addWidget(self.pressure_uom)
        self.pressure_uom.setAutoFillBackground(True)
        # noinspection PyUnresolvedReferences
        self.pressure_uom.textChanged.connect(self.changed_pressure_uom)

        # depth uom
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("depth UoM:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.depth_uom = QtWidgets.QLineEdit()
        self.depth_uom.setDisabled(True)
        self.depth_uom.setText("%s" % self.lib.cur.meta.depth_uom)
        hbox.addWidget(self.depth_uom)
        self.depth_uom.setAutoFillBackground(True)
        # noinspection PyUnresolvedReferences
        self.depth_uom.textChanged.connect(self.changed_depth_uom)

        # speed uom
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("speed UoM:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.speed_uom = QtWidgets.QLineEdit()
        self.speed_uom.setDisabled(True)
        self.speed_uom.setText("%s" % self.lib.cur.meta.speed_uom)
        hbox.addWidget(self.speed_uom)
        self.speed_uom.setAutoFillBackground(True)
        # noinspection PyUnresolvedReferences
        self.speed_uom.textChanged.connect(self.changed_speed_uom)

        # temperature uom
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("temperature UoM:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.temperature_uom = QtWidgets.QLineEdit()
        self.temperature_uom.setDisabled(True)
        self.temperature_uom.setText("%s" % self.lib.cur.meta.temperature_uom)
        hbox.addWidget(self.temperature_uom)
        self.temperature_uom.setAutoFillBackground(True)
        # noinspection PyUnresolvedReferences
        self.temperature_uom.textChanged.connect(self.changed_temperature_uom)

        # conductivity uom
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("conductivity UoM:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.conductivity_uom = QtWidgets.QLineEdit()
        self.conductivity_uom.setDisabled(True)
        self.conductivity_uom.setText("%s" %
                                      self.lib.cur.meta.conductivity_uom)
        hbox.addWidget(self.conductivity_uom)
        self.conductivity_uom.setAutoFillBackground(True)
        # noinspection PyUnresolvedReferences
        self.conductivity_uom.textChanged.connect(
            self.changed_conductivity_uom)

        # salinity uom
        hbox = QtWidgets.QHBoxLayout()
        self.mainLayout.addLayout(hbox)
        label = QtWidgets.QLabel("salinity UoM:")
        label.setFixedWidth(lbl_width)
        hbox.addWidget(label)
        self.salinity_uom = QtWidgets.QLineEdit()
        self.salinity_uom.setDisabled(True)
        self.salinity_uom.setText("%s" % self.lib.cur.meta.salinity_uom)
        hbox.addWidget(self.salinity_uom)
        self.salinity_uom.setAutoFillBackground(True)
        # noinspection PyUnresolvedReferences
        self.salinity_uom.textChanged.connect(self.changed_salinity_uom)

        self.mainLayout.addStretch()

        # edit/apply
        hbox = QtWidgets.QHBoxLayout()
        hbox.addStretch()
        self.editable = QtWidgets.QPushButton()
        self.editable.setIconSize(QtCore.QSize(30, 30))
        self.editable.setFixedHeight(34)
        edit_icon = QtGui.QIcon()
        edit_icon.addFile(os.path.join(self.media, 'lock.png'),
                          state=QtGui.QIcon.Off)
        edit_icon.addFile(os.path.join(self.media, 'unlock.png'),
                          state=QtGui.QIcon.On)
        self.editable.setIcon(edit_icon)
        self.editable.setCheckable(True)
        # noinspection PyUnresolvedReferences
        self.editable.clicked.connect(self.on_editable)
        self.editable.setToolTip("Unlock metadata editing")
        hbox.addWidget(self.editable)
        # --
        self.load_default = QtWidgets.QPushButton("Load default")
        self.load_default.setFixedHeight(self.editable.height())
        self.load_default.setDisabled(True)
        # noinspection PyUnresolvedReferences
        self.load_default.clicked.connect(self.on_load_default)
        self.load_default.setToolTip("Load default metadata (if any)")
        hbox.addWidget(self.load_default)
        # --
        if self.lib.ssp.loaded_from_db:
            self.apply = QtWidgets.QPushButton("Apply and save")
        else:
            self.apply = QtWidgets.QPushButton("Apply")
        self.apply.setFixedHeight(self.editable.height())
        self.apply.setDisabled(True)
        # noinspection PyUnresolvedReferences
        self.apply.clicked.connect(self.on_apply)
        if self.lib.ssp.loaded_from_db:
            self.apply.setToolTip(
                "Apply changes (if any) and store them in the database")
        else:
            self.apply.setToolTip("Apply changes (if any)")
        hbox.addWidget(self.apply)
        # --
        self.show_at_import = QtWidgets.QPushButton("Show at Import")
        self.show_at_import.setFixedHeight(self.editable.height())
        self.show_at_import.setCheckable(True)
        if settings.value("show_metadata_at_import") == 'true':
            self.show_at_import.setChecked(True)
        else:
            self.show_at_import.setChecked(False)
        # noinspection PyUnresolvedReferences
        self.show_at_import.clicked.connect(self.on_show_at_import)
        self.show_at_import.setToolTip("Show metadata at each cast import")
        hbox.addWidget(self.show_at_import)
        hbox.addStretch()
        self.mainLayout.addLayout(hbox)