Пример #1
0
    def setup_ui(self):
        self.MainLayout.addWidget(self.LeftWidget)
        self.MainLayout.addLayout(self.RightLayout)

        self.RightLayout.addWidget(self.EntityLabel)
        self.RightLayout.addWidget(self.TaskLabel)

        self.RightLayout.addWidget(QtWidgets.QLabel())
        horizontal_line = dy.MDivider()
        horizontal_line.setMaximumHeight(2)
        self.RightLayout.addWidget(horizontal_line)
        self.RightLayout.addWidget(self.menu)
        horizontal_line = dy.MDivider()
        horizontal_line.setMaximumHeight(2)
        self.RightLayout.addWidget(horizontal_line)
        self.RightLayout.addWidget(self.menuStack)
        self.RightLayout.addLayout(self.buttonLayout)

        self.menuStack.addWidget(self.infoWidget)
        self.menuStack.addWidget(self.feedbackWidget)
        self.menuStack.addWidget(self.existingVersionWidget)
        self.menuStack.addWidget(self.publishVersionWidget)

        self.buttonLayout.addStretch()
        self.buttonLayout.addWidget(self.start_task_button)
        self.buttonLayout.addWidget(self.publish_task_button)
        self.buttonLayout.addStretch()
    def setup_ui(self):
        self.mainLayout.addWidget(self.ScrollAreaWidget)
        self.mainLayout.addWidget(dy.MLabel())
        self.mainLayout.addLayout(self.modifyLayout)
        self.mainLayout.addWidget(dy.MLabel())

        self.ScrollLayout.addLayout(self.previewLayout)
        self.ScrollLayout.addWidget(dy.MDivider(""))

        self.previewLayout.addStretch()
        self.previewLayout.addWidget(self.previewLabel)
        self.previewLayout.addStretch()

        self.ScrollLayout.addWidget(self.Label)
        self.ScrollLayout.addLayout(self.previewNameLayout)
        self.ScrollLayout.addWidget(self.Label)
        self.ScrollLayout.addWidget(dy.MDivider(""))
        self.ScrollLayout.addWidget(self.assetsInformation)

        self.previewNameLayout.addWidget(self.Label)
        self.previewNameLayout.addWidget(self.previewNameLabel)
        self.previewNameLayout.addStretch()

        self.modifyLayout.addStretch()
        self.modifyLayout.addWidget(self.modifyButton)
        self.modifyLayout.addStretch()
Пример #3
0
 def setup_ui(self):
     self.mainLayout.addWidget(self.importMayaButton)
     self.mainLayout.addWidget(dy.MDivider(""))
     self.mainLayout.addWidget(self.importZbButton)
     self.mainLayout.addWidget(self.importSpButton)
     self.mainLayout.addWidget(dy.MDivider(""))
     self.mainLayout.addWidget(self.openDirButton)
     self.mainLayout.addWidget(self.removeCardButton)
     self.mainLayout.addWidget(self.setProjectButton)
Пример #4
0
    def setup_ui(self):
        self.mainLayout.addLayout(self.tabletLayout)
        self.mainLayout.addWidget(self.resetStacked)

        self.tabletLayout.addStretch()
        self.tabletLayout.addWidget(self.PublishCheck_menu)
        self.tabletLayout.addStretch()
        self.tabletLayout.addWidget(self.PublishSett_menu)
        self.tabletLayout.addStretch()

        self.resetStacked.addWidget(self.uploadScrollArea)
        self.resetStacked.addWidget(self.assetScrollArea)

        self.assetLayout.addLayout(self.assetsNameLayout)

        self.assetLayout.addLayout(self.TopCategoryLayout)

        self.assetLayout.addLayout(self.SecondaryCategoryLayout)

        self.assetLayout.addLayout(self.MapResolutionLayout)

        self.assetLayout.addWidget(self.describeText)

        self.uploadLayout.addLayout(self.previewLayout)
        self.uploadLayout.addWidget(dy.MDivider(""))
        self.uploadLayout.addLayout(self.zbLayout)
        self.uploadLayout.addWidget(dy.MDivider(""))
        self.uploadLayout.addLayout(self.spLayout)
        self.uploadLayout.addWidget(dy.MDivider(""))
        self.uploadLayout.addLayout(self.textureLayout)
        self.uploadLayout.addStretch()

        self.previewLayout.addWidget(self.previewCheckBox)
        self.previewLayout.addWidget(self.previewCheckBoxLabel)
        self.previewLayout.addStretch()
        self.previewLayout.addWidget(self.previewLabel)
        self.previewLayout.addStretch()

        self.zbLayout.addWidget(self.zbCheckBox)
        self.zbLayout.addWidget(self.zbCheckBoxLabel)
        self.zbLayout.addStretch()
        self.zbLayout.addWidget(self.zbLabel)
        self.zbLayout.addStretch()

        self.spLayout.addWidget(self.spCheckBox)
        self.spLayout.addWidget(self.spCheckBoxLabel)
        self.spLayout.addStretch()
        self.spLayout.addWidget(self.spLabel)
        self.spLayout.addStretch()

        self.textureLayout.addWidget(self.textureCheckBox)
        self.textureLayout.addWidget(self.textureCheckBoxLabel)
        self.textureLayout.addStretch()
        self.textureLayout.addWidget(self.textureLabel)
        self.textureLayout.addStretch()
Пример #5
0
    def setup_ui(self):
        self.mainLayout.addLayout(self.closeLayout)
        self.mainLayout.addLayout(self.userAvatarLayout)
        self.mainLayout.addWidget(dy.MLabel("\n"))
        self.mainLayout.addLayout(self.userNameLayout)
        self.mainLayout.addLayout(self.passwordLayout)
        self.mainLayout.addWidget(dy.MDivider("login"))
        self.mainLayout.addWidget(self.loginButton)

        self.closeLayout.addStretch()
        self.closeLayout.addWidget(self.closeButton)

        self.userAvatarLayout.addStretch()
        self.userAvatarLayout.addWidget(self.userAvatar)
        self.userAvatarLayout.addStretch()

        self.userNameLayout.addStretch()
        self.userNameLayout.addWidget(self.userNameLabel)
        self.userNameLayout.addWidget(self.userNameLine)
        self.userNameLayout.addStretch()

        self.passwordLayout.addStretch()
        self.passwordLayout.addWidget(self.passwordLabel)
        self.passwordLayout.addWidget(self.passwordLine)
        self.passwordLayout.addStretch()
Пример #6
0
    def setup_ui(self):
        self.MainLayout.addWidget(dy.MDivider())
        self.MainLayout.addLayout(self.taskLayout)

        self.taskLayout.addStretch()
        self.taskLayout.addLayout(self.taskContactLayout)
        self.taskLayout.addStretch()

        self.MainLayout.addStretch()
Пример #7
0
    def setup_ui(self):
        self.mainLayout.addLayout(self.menuLayout)
        self.mainLayout.addLayout(self.SpliterLayout)

        self.SpliterLayout.addWidget(self.toolbar)

        self.SpliterLayout.addWidget(self.mainSplitter)

        self.menuLayout.addWidget(self.avatar)
        self.menuLayout.addWidget(self.loginButton)
        self.menuLayout.addWidget(self.inforButton)
        self.menuLayout.addStretch()
        self.menuLayout.addWidget(self.projectCombobox)
        self.menuLayout.addWidget(self.hideButton)
        self.menuLayout.addWidget(self.closeButton)
        self.menuLayout.addWidget(self.uploadButotn)

        self.listLayout.addLayout(self.searchLayout)
        self.listLayout.addWidget(self.ListScrollArea)

        self.searchLayout.addWidget(self.listSearchLine)
        self.searchLayout.addWidget(self.tagButton)

        self.exportLayout.addWidget(self.screenShot)
        self.exportLayout.addWidget(dy.MDivider(""))
        self.exportLayout.addLayout(self.dragLayout)
        self.exportLayout.addWidget(dy.MDivider(""))
        self.exportLayout.addWidget(self.informationWidget)
        self.exportLayout.addWidget(dy.MLabel(""))
        self.exportLayout.addLayout(self.updateLayout)
        self.exportLayout.addWidget(dy.MLabel(""))

        self.dragLayout.addWidget(self.zbDragButton)
        self.dragLayout.addWidget(self.spDragButton)
        self.dragLayout.addWidget(self.textureDragButton)

        self.updateLayout.addStretch()
        self.updateLayout.addWidget(self.updateButton)
        self.updateLayout.addStretch()

        self.mainSplitter.addWidget(self.listFrame)
        self.mainSplitter.addWidget(self.exportFrame)
        self.mainSplitter.addWidget(self.introdiction)
        self.mainSplitter.addWidget(self.tagFrame)
Пример #8
0
    def __init__(self, name, index):
        super(MenuItem, self).__init__()
        self.index = index
        self.setMinimumWidth(100)
        self.MainLayout = QtWidgets.QVBoxLayout(self)
        self.itemLabel = LabelButton(name)
        self.itemLabel.setAlignment(QtCore.Qt.AlignHCenter)
        self.blank = QtWidgets.QLabel()
        self.blank.setMaximumHeight(1)

        self.itemLine = dy.MDivider()
        self.itemLine.hide()

        self.setup_ui()
Пример #9
0
    def setup_ui(self):
        self.MainLayout.addLayout(self.RootPathLayout)
        self.MainLayout.addWidget(dy.MDivider(""))
        self.MainLayout.addLayout(self.CategoryLayout)

        self.RootPathLayout.addWidget(self.RootPathLabel)
        self.RootPathLayout.addWidget(self.RootPathLine)
        self.RootPathLayout.addWidget(self.RootPathButton)

        self.CategoryLayout.addLayout(self.CHLayout)
        self.CategoryLayout.addLayout(self.PropLayout)
        self.CategoryLayout.addLayout(self.SCLayout)

        self.CHLayout.addWidget(self.CHLabel)
        self.PropLayout.addWidget(self.PropLabel)
        self.SCLayout.addWidget(self.SCLabel)
    def setup_ui(self):
        self.mainLayout.addLayout(self.tabletLayout)
        self.mainLayout.addWidget(self.resetStacked)

        self.tabletLayout.addStretch()
        self.tabletLayout.addWidget(self.AssetInfo_menu)
        self.tabletLayout.setContentsMargins(0, 0, 0, 0)
        self.tabletLayout.addStretch()
        self.tabletLayout.addWidget(self.DownSet_menu)
        self.tabletLayout.addStretch()

        self.assetScroll = QtWidgets.QScrollArea()
        self.assetScroll.setWidgetResizable(True)

        self.assetInfo = QtWidgets.QWidget()
        self.assetInfo.setObjectName("assetInfo")
        self.assetScroll.setWidget(self.assetInfo)

        self.assetLayout = QtWidgets.QVBoxLayout(self.assetInfo)
        self.assetLayout.setContentsMargins(0, 0, 0, 0)

        self.assetText = dy.MTextEdit()
        self.assetText.setObjectName("assetText")
        self.assetText.setMinimumHeight(150)
        self.assetText.setReadOnly(True)

        self.mayaLayout = QtWidgets.QHBoxLayout()
        self.mayaLabel = dy.MLabel("Maya File:").strong()
        self.mayaPath = dy.MLabel("").strong()
        self.mayaButton = dy.MPushButton("打开").warning()
        self.mayaButton.setMaximumWidth(60)
        self.mayaButton.setStyleSheet("")

        self.mayaLayout.addWidget(self.mayaLabel)
        self.mayaLayout.addWidget(self.mayaPath)
        self.mayaLayout.addWidget(self.mayaButton)

        self.zbLayout = QtWidgets.QHBoxLayout()
        self.zbLabel = dy.MLabel("Zbrush File:").strong()
        self.zbPath = dy.MLabel("").strong()
        self.zbButton = dy.MPushButton("打开").warning()
        self.zbButton.setMaximumWidth(60)
        self.zbButton.setStyleSheet("")

        self.zbLayout.addWidget(self.zbLabel)
        self.zbLayout.addWidget(self.zbPath)
        self.zbLayout.addWidget(self.zbButton)

        self.spLayout = QtWidgets.QHBoxLayout()
        self.spLabel = dy.MLabel("Substance File:").strong()
        self.spPath = dy.MLabel("").strong()
        self.spButton = dy.MPushButton("打开", ).warning()
        self.spButton.setMaximumWidth(60)
        self.spButton.setStyleSheet("")

        self.spLayout.addWidget(self.spLabel)
        self.spLayout.addWidget(self.spPath)
        self.spLayout.addWidget(self.spButton)

        self.assetLayout.addWidget(self.assetText)
        self.assetLayout.addWidget(dy.MDivider(""))
        self.assetLayout.addLayout(self.mayaLayout)
        self.assetLayout.addWidget(dy.MDivider(""))
        self.assetLayout.addLayout(self.zbLayout)
        self.assetLayout.addWidget(dy.MDivider(""))
        self.assetLayout.addLayout(self.spLayout)
        self.assetLayout.addWidget(dy.MDivider(""))

        self.textureScroll = QtWidgets.QScrollArea()
        self.textureScroll.setObjectName("textureScroll")
        self.textureScroll.setWidgetResizable(True)

        self.textureInfo = QtWidgets.QWidget()
        self.textureInfo.setObjectName("textureInfo")

        self.textureScroll.setWidget(self.textureInfo)

        self.textureLayout = QtWidgets.QVBoxLayout(self.textureInfo)
        self.textureLayout.setContentsMargins(0, 0, 0, 0)

        self.texture_resolutionLayout = QtWidgets.QHBoxLayout()
        self.texture_resolutionLabel = dy.MLabel(u"贴图分辨率").strong()
        self.texture_resolutionCombobox = dy.MComboBox()
        self.texture_resolutionCombobox.setMinimumWidth(250)

        menu = dy.MMenu()
        menu.set_data(["8K", "4K", "2K"])
        self.texture_resolutionCombobox.set_menu(menu)
        self.texture_resolutionCombobox.set_value("8K")

        self.texture_resolutionLayout.addWidget(dy.MLabel())
        self.texture_resolutionLayout.addWidget(self.texture_resolutionLabel)
        self.texture_resolutionLayout.addStretch()
        self.texture_resolutionLayout.addWidget(
            self.texture_resolutionCombobox)
        self.texture_resolutionLayout.addWidget(dy.MLabel())

        self.texture_type_Layout = QtWidgets.QHBoxLayout()
        self.texture_type_leftLayout = QtWidgets.QVBoxLayout()
        self.texture_type_rightLayout = QtWidgets.QVBoxLayout()

        self.texture_type_Layout.addLayout(self.texture_type_leftLayout)
        self.texture_type_Layout.addLayout(self.texture_type_rightLayout)

        self.textureLayout.addWidget(dy.MLabel(""))
        self.textureLayout.addLayout(self.texture_resolutionLayout)
        self.textureLayout.addWidget(dy.MLabel(""))
        self.textureLayout.addWidget(dy.MDivider(""))
        self.textureLayout.addLayout(self.texture_type_Layout)

        self.resetStacked.addWidget(self.assetScroll)
        self.resetStacked.addWidget(self.textureScroll)
Пример #11
0
 def setup_ui(self):
     self.MainLayout.addWidget(dy.MDivider("Work File"))
     self.MainLayout.addWidget(self.work_list)
Пример #12
0
 def setup_ui(self):
     self.mainLayout.addWidget(self.loginButton)
     self.mainLayout.addWidget(self.logoutButton)
     self.mainLayout.addWidget(dy.MDivider(""))
     self.mainLayout.addWidget(self.setRootPath)
     self.mainLayout.addWidget(self.importButton)