def __init__(self, parent=None): super(UpdateDialog, self).__init__(parent) self.lay_main = QVBoxLayout() self.setLayout(self.lay_main) self.groupBox = QGroupBox() self.lay_groupBox = QVBoxLayout() self.groupBox.setLayout(self.lay_groupBox) # ====================== WIDGETS =============================== self.mainUpdateLable = QLabel(" Main Update") self.mainUpdateCheckBox = QCheckBox() self.mainUpdateCheckBox.setChecked(True) self.lay_mainUpdate = wdg_utils.getHorizontalBlockLayout( self.mainUpdateLable, self.mainUpdateCheckBox) self.lay_groupBox.addLayout(self.lay_mainUpdate) self.nukeModuleUpdateLable = QLabel(" Nuke Module") self.nukeModuleUpdateCheckBox = QCheckBox() self.lay_nukeModuleUpdate = wdg_utils.getHorizontalBlockLayout( self.nukeModuleUpdateLable, self.nukeModuleUpdateCheckBox) self.lay_groupBox.addLayout(self.lay_nukeModuleUpdate) self.houdiniModueUpdateLable = QLabel("Houdini Module") self.houdiniModueUpdateCheckBox = QCheckBox() self.lay_houdiniModueUpdate = wdg_utils.getHorizontalBlockLayout( self.houdiniModueUpdateLable, self.houdiniModueUpdateCheckBox) self.lay_groupBox.addLayout(self.lay_houdiniModueUpdate) self.pythonModuleUpdateLable = QLabel("Python Module") self.pythonModuleUpdateCheckBox = QCheckBox() self.lay_pythonModuleUpdate = wdg_utils.getHorizontalBlockLayout( self.pythonModuleUpdateLable, self.pythonModuleUpdateCheckBox) self.lay_groupBox.addLayout(self.lay_pythonModuleUpdate) # ====================== BUTTONS =============================== self.btnUdate = QPushButton("Update") self.btnCancel = QPushButton("Cancel") self.lay_btns = wdg_utils.getHorizontalBlockLayout( self.btnUdate, self.btnCancel) self.btnUdate.clicked.connect(self.update) self.btnCancel.clicked.connect(self.reject) self.lay_main.addWidget(self.groupBox) self.lay_main.addLayout(self.lay_btns)
def __init__(self, parent=None): super(MainItnputDataWidget, self).__init__(parent) self.workBook = None self.treeData = [] self.lay_main = QVBoxLayout() # ==================== Path block ================================== # - lable self.pathLable = QLabel("Excel file") # - field self.pathField = QLineEdit() self.pathField.setMinimumSize(300, 0) # - button self.pathButton = QPushButton("...") self.pathButton.setMaximumWidth(25) # - layout pathWidgets_list = [self.pathLable, self.pathField, self.pathButton] self.lay_pathWidgets = wdg_utils.getHorizontalBlockLayout(*pathWidgets_list) # ==================== Sheets block ================================== # - lable self.sheetLable = QLabel("Available sheets:") self.sheetLable.setFixedSize(100, 50) # - list self.availableSheetsList = QListWidget() self.availableSheetsList.setSizeAdjustPolicy(QAbstractScrollArea.AdjustToContents) self.availableSheetsList.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding) # - button self.sheetsDialogButton = QPushButton("Setup") self.sheetsDialogButton.setFixedWidth(50) # - layout self.lay_sheetsBlock = wdg_utils.getHorizontalBlockLayout(self.sheetLable, self.availableSheetsList, self.sheetsDialogButton) # ==================== Tree widget ================================== self.treeDataWidget = treeExcelDataWidget.TreeDataWidget(self) # =================== CONNECTS ============================== self.pathButton.clicked.connect(self.defineExcelFile) self.sheetsDialogButton.clicked.connect(self.openSheetsDialog) # self.availableSheetsList.currentItemChanged.connect(self.test) # =================== LAYOUTS ============================== self.lay_main.addLayout(self.lay_pathWidgets) self.lay_main.addLayout(self.lay_sheetsBlock) self.lay_main.addWidget(self.treeDataWidget)
def __init__(self, parent, userServerCore): super(NewProjectDialog, self).__init__(parent) self.userServerCore = userServerCore self.server = self.userServerCore.server self.prjCode = "" self.episodeSType = "" self.shotSType = "" self.processes = [configUtils.tctProcessElements.get('comp')] self.setMinimumSize(720, 480) self.lay_main = QVBoxLayout() self.setLayout(self.lay_main) # ====================== WIDGETS =============================== # - project name, etc self.headersFields = headerProjectWidget.HeaderProjectFields(self, self.userServerCore) # - PRM Path self.prmPathLable = QLabel('PRM folder') self.prmPathField = QLineEdit() self.prmPathButton = QPushButton("...") self.prmPathButton.setMaximumWidth(25) prmWidgetsList = [self.prmPathLable, self.prmPathField, self.prmPathButton] self.lay_prmPath = wdg_utils.getHorizontalBlockLayout(*prmWidgetsList) # - ecxel parser block self.parserExcelDataWidget = ParserExcelDataWidget.MainItnputDataWidget(self) self.createProjectButton = QPushButton('Create project') self.cancelButton = QPushButton('Cancel') # ===================== CONNECTS ================================ self.prmPathButton.clicked.connect(self.selectPrmFolder) self.createProjectButton.clicked.connect(self.projectCreatioinProcess) self.cancelButton.clicked.connect(self.reject) # ============================================================== self.lay_main.addLayout(self.headersFields.lay_main) self.lay_main.addLayout(self.lay_prmPath) self.lay_main.addLayout(self.parserExcelDataWidget.lay_main) self.lay_main.addWidget(self.createProjectButton) self.lay_main.addWidget(self.cancelButton)
def __init__(self, parent, userServerCore): super(HeaderProjectFields, self).__init__(parent) self.userServerCore = userServerCore # ====================== WIDGETS =============================== self.lay_main = QVBoxLayout() self.nameLable = QLabel("Project name") self.nameField = QLineEdit(self) self.templateLable = QLabel("Template") self.templateList = QComboBox(self) self.esеimateLable = QLabel("Estimate") self.estimateChackbox = QCheckBox(self) horizontalWidgets_list = [self.nameLable, self.nameField, self.templateLable, self.templateList, self.esеimateLable, self.estimateChackbox] self.lay_header_01 = wdg_utils.getHorizontalBlockLayout(*horizontalWidgets_list) self.lay_header_01.addStretch(1000) self.lay_main.addLayout(self.lay_header_01) self.setTemplateList_comboBox()
def __init__(self, parent=None): super(ProjectStructureDialog, self).__init__(parent) self.resize(500, 500) self.lay_main = QVBoxLayout() self.setLayout(self.lay_main) self.treeStructureWdg = treeStructureWidget.TreeStructureWidget(self) self.saveButton = QPushButton("Save") self.acceptButton = QPushButton("Accept") self.discardButton = QPushButton("Discard") self.lay_buttons = wdg_utils.getHorizontalBlockLayout( self.saveButton, self.acceptButton, self.discardButton) self.saveButton.clicked.connect(self.saveProjectStructure) self.acceptButton.clicked.connect(self.saveAndAccept) self.discardButton.clicked.connect(self.reject) self.lay_main.addWidget(self.treeStructureWdg) self.lay_main.addLayout(self.lay_buttons) self.initialize()
def __init__(self, taskManagerWdg): super(FiltersBlockWidget, self).__init__(taskManagerWdg) self.taskManagerWdg = taskManagerWdg self.lay_main = QVBoxLayout() # - main layout levels self.lay_filters_horizontal_l0 = QHBoxLayout() self.lay_filters_horizontal_l1 = QHBoxLayout() # ===================== WIDGETS ================================= # - filter prject self.filterProject_comboBox = QComboBox(self) self.filterProject_comboBox.setMinimumSize(150, 20) # - filter shot field - self.filterShot_Lable = QLabel(self) self.filterShot_Lable.setText(" Shot:") self.filterShotField = QLineEdit(self) self.filterShotField.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) self.filterShot_blockLayout = wdg_utils.getHorizontalBlockLayout( self.filterShot_Lable, self.filterShotField) # - filter process - self.filterProcess_Lable = QLabel(self) self.filterProcess_Lable.setText("Process:") self.filterProcess_comboBox = QComboBox(self) self.filterProcess_comboBox.setMinimumSize(150, 25) self.filterProcess_blockLayout = wdg_utils.getHorizontalBlockLayout( self.filterProcess_Lable, self.filterProcess_comboBox) # - filter status - self.filterStatus_Lable = QLabel(self) self.filterStatus_Lable.setText("Status:") self.filterStatus_comboBox = QComboBox(self) self.filterStatus_comboBox.setMinimumSize(150, 25) self.filterStatus_blockLayout = wdg_utils.getHorizontalBlockLayout( self.filterStatus_Lable, self.filterStatus_comboBox) # - filter user - self.filterUser_Lable = QLabel(self) self.filterUser_Lable.setText("User:"******"user") self.refreshButton = QPushButton('Refresh') # ======================= CONNECTS =============================== self.userButton.clicked.connect(self.changeUserButton) self.refreshButton.clicked.connect(self.refreshTaskDataButton) self.filterProject_comboBox.currentIndexChanged.connect( self.filter_ProjectProcess) self.filterStatus_comboBox.currentTextChanged.connect( self.filter_StatusProcess) self.filterShotField.textChanged.connect(self.filter_ShotProcess) self.filterUser_comboBox.currentTextChanged.connect( self.filter_UserProcess) self.filterProcess_comboBox.currentTextChanged.connect( self.filter_ProcessCallback) # ===================== LAYOUTS ================================= self.filterProject_blockLayout = wdg_utils.getHorizontalBlockLayout( self.filterProject_comboBox, self.refreshButton) self.lay_filters_horizontal_l0.addLayout(self.filterShot_blockLayout) self.lay_filters_horizontal_l0.addLayout( self.filterProject_blockLayout) self.lay_filters_horizontal_l0.addWidget(self.userButton) # self.lay_filters_horizontal_l0.addStretch() self.lay_filters_horizontal_l1.addLayout( self.filterProcess_blockLayout) self.lay_filters_horizontal_l1.addLayout(self.filterStatus_blockLayout) self.lay_filters_horizontal_l1.addWidget(self.filterUser_blockWidget) # self.lay_filters_horizontal_l1.addStretch() self.lay_main.addLayout(self.lay_filters_horizontal_l0) self.lay_main.addLayout(self.lay_filters_horizontal_l1)
def __init__(self, parent, sheet): super(SheetDataWidget, self).__init__(parent) # self.newProject = newProject self.sheet = sheet self.treeData = [] self.lay_main = QVBoxLayout() self.setLayout(self.lay_main) # ======================== WIDGETS ============================= # - title row number self.titleRowNumber_Lable = QLabel("Title row number:") self.titleRowNumber = QSpinBox() self.titleRowNumber.setFixedSize(50, 25) self.titleRowNumber.setValue(1) self.lay_titelRowNumber = wdg_utils.getHorizontalBlockLayout( self.titleRowNumber_Lable, self.titleRowNumber) self.lay_titelRowNumber.addStretch() # - add/remove buttons self.addRowButton = QPushButton('+') self.addRowButton.setFixedSize(25, 25) self.removeRowButton = QPushButton('-') self.removeRowButton.setFixedSize(25, 25) self.lay_rowButtons = wdg_utils.getHorizontalBlockLayout( self.addRowButton, self.removeRowButton) self.lay_rowButtons.addLayout(self.lay_titelRowNumber) self.lay_rowButtons.addStretch() # - regexp field self.regexpLable = QLabel('regexp:') self.regexpField = QLineEdit() self.regexpField.setFixedWidth(250) # self.regexpField.setAlignment(Qt.AlignLeft) # self.regexpField.setText(pattern_01) self.regexpPreset_comboBox = QComboBox() self.lay_regexp = wdg_utils.getHorizontalBlockLayout( self.regexpLable, self.regexpField, self.regexpPreset_comboBox) self.lay_rowButtons.addLayout(self.lay_regexp) # - list data self.listData = QListWidget() # - get data button self.getDataButton = QPushButton('Get Data') self.getDataButton.setFixedSize(150, 40) # - test Collect Button # self.testCollectButton = QPushButton("Collect") # - tree data Widget self.treeDataWidget = treeExcelDataWidget.TreeDataWidget(self) # ======================== CONNECTS ============================= self.titleRowNumber.valueChanged.connect(self.updateListItem) self.addRowButton.clicked.connect(self.addlistItem) self.removeRowButton.clicked.connect(self.removeListItem) self.getDataButton.clicked.connect(self.getTreeDataButton) # self.testCollectButton.clicked.connect(self.collectAllTreeData) self.regexpPreset_comboBox.currentIndexChanged.connect( self.setRegexpPreset) # ======================== LAYOUTS ============================= self.lay_main.addLayout(self.lay_rowButtons) self.lay_main.addWidget(self.listData) self.lay_main.addWidget(self.getDataButton) self.lay_main.addWidget(self.treeDataWidget) # ===================================================== self.addlistItem("name", True) self.addlistItem("description", True) self.addlistItem("frames_count", True) self.setRegexpPresets()