Esempio n. 1
0
	def __init__(self, parent = None):
		if INMAYA:
			if uiH.USEPYQT:
				super(base, self).__init__(uiH.getMayaWindow())
			else:
				super(Thomdo, self).__init__(uiH.getMayaWindow())
		else:
			if uiH.USEPYQT:
				super(base, self).__init__(parent)
			else:
				super(Thomdo, self).__init__(parent)
		self.setupUi(self)
		self.setObjectName( 'Thomdo' )
		self.entryField.returnPressed.connect(self.return_pressed)
		self.clearButton.clicked.connect(self.clear)
		#self.saveButton.clicked.connect(self.save)
		#self.loadButton.clicked.connect(self.load)
		self.taskList.itemClicked.connect(self.itemClicked)
		self.taskList.itemChanged.connect( self.save )
		self.load()
		self.settings = sti.Settings()
		gen = self.settings.General
		if gen:
			skin = gen[ "skin" ]
			if skin:
				uiH.loadSkin( self, skin )
Esempio n. 2
0
	def __init__(self):
		if uiH.USEPYQT:
			super(base, self).__init__(uiH.getMayaWindow())
		else:
			super(TransferSkinWeightsUi, self).__init__(uiH.getMayaWindow())
		self.setupUi(self)
		self._makeConnections()
		self.setObjectName( 'TransferSkinWeightsUi' )
		uiH.loadSkin( self, 'QTDarkGreen' )
Esempio n. 3
0
	def __init__(self, parent = None):
		if uiH.USEPYQT:
			super(base, self).__init__(uiH.getMayaWindow())
		else:
			super(ControlsUi, self).__init__(uiH.getMayaWindow())
		self.setupUi(self)
		self.setObjectName( 'ControlsUi' )
		self.settings = sti.Settings()
		gen = self.settings.General
		if gen:
			skin = gen[ "skin" ]
			if skin:
				uiH.loadSkin( self, skin )
		self.create_btn.clicked.connect(self.create)
Esempio n. 4
0
	def __init__(self, parent  = uiH.getMayaWindow(), *args ):
		if uiH.USEPYQT:
			super(base, self).__init__(parent)
		else:
			super(MultiAttributeUI, self).__init__(parent)
		self.setupUi(self)
		self.fillByTypeCMB()
		self.attribute_le.setFocus()
		self.setObjectName( 'multiAttr_WIN' )
		self.attribute_le.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
		self.attribute_le.customContextMenuRequested.connect(self.showAttributes)
		self.completer = TagsCompleter( self.attribute_le )
		self.completer.setCaseSensitivity(QtCore.Qt.CaseInsensitive)
		self.completer.setWidget( self.attribute_le )
		self.fromCompleter = TagsCompleter( self.fromAttr_le )
		self.fromCompleter.setCaseSensitivity(QtCore.Qt.CaseInsensitive)
		self.fromCompleter.setWidget( self.fromAttr_le )
		self.toCompleter = TagsCompleter( self.toAttr_le )
		self.toCompleter.setCaseSensitivity(QtCore.Qt.CaseInsensitive)
		self.toCompleter.setWidget( self.toAttr_le )
		self._makeConnections()
		self.settings = sti.Settings()
		gen = self.settings.General
		if gen:
			skin = gen[ "skin" ]
			if skin:
				uiH.loadSkin( self, skin )
		#fill list to create CMB
		typs = ['cluster', 'polyCube', 'polySphere','polyCylinder','polyCone',
				'polyPipe','spaceLocator', 'joint']
		self.listToCreate_cmb.addItems(typs)
Esempio n. 5
0
	def __init__(self,projectName, user = '', parent  = uiH.getMayaWindow() ):
		if INMAYA:
			if uiH.USEPYQT:
				super(base, self).__init__(parent)
			else:
				super(NewTaskUi, self).__init__(parent)
		else:
			if uiH.USEPYQT:
				super(base, self).__init__(parent)
			else:
				super(NewTaskUi, self).__init__(parent)
		self.setupUi(self)
		self._user = user
		self.setObjectName( 'NewTaskUi' )
		self._makeConnections()
		self.settings = sti.Settings()
		self.projectName = projectName
		self.fillProjects()
		self.dataBase = db.ProjectDataBase( self.projectName )
		self.taskName_le.setVisible( False )
		self.fillUsers()
		self.fillTasks()
		self.fillStatus()
		self.settings = sti.Settings()
		skin = self.settings.General[ "skin" ]
		if skin:
			uiH.loadSkin( self, skin )
Esempio n. 6
0
	def __init__(self, parent  = uiH.getMayaWindow(), *args ):
		if uiH.USEPYQT:
			super(base, self).__init__(parent)
		else:
			super(LighterHelperUI, self).__init__(parent)
		self.setupUi(self)
		#load arnold if it is not loaded
		self.loadArnold()
		self.setObjectName( 'ligther_Helper_WIN' )
		self._makeConnections()
		#self._addAllAovs()
		#create an scriptjob thats update the UI on renderlayer change
		mc.scriptJob( e = ["renderLayerManagerChange", partial( self.updateLighterUI )], p = 'ligther_Helper_WIN' )
		self.updateLighterUI()
		#set icons for toolbar
		self.actionSpot.setIcon(QtGui.QIcon(":/spotlight.png"))
		self.actionDirectional.setIcon(QtGui.QIcon(":/directionallight.png"))
		self.actionPoint.setIcon(QtGui.QIcon(":/pointlight.png"))
		self.actionAmbient.setIcon(QtGui.QIcon(":/ambientlight.png"))
		self.actionArea.setIcon(QtGui.QIcon(":/arealight.png"))
		self.actionVolume.setIcon(QtGui.QIcon(":/volumelight.png"))
		self.actionRenderGlobals.setIcon(QtGui.QIcon(":/renderGlobals.png"))
		self.actionRenderView.setIcon(QtGui.QIcon(":/render.png"))
		self.actionLookThrough.setIcon(QtGui.QIcon(":/fileTextureView.png"))
		#internal variables
		self.isolatedLights = [] #lights that are beign turn off when we want to isolate others!
		self.isolatedObjects = [] #objects that are beign turn off when we one to isolate others!
		uiH.loadSkin( self, 'QTDarkGreen' )
Esempio n. 7
0
	def __init__(self, parent = uiH.getMayaWindow() ):
		if INMAYA:
			if uiH.USEPYQT:
				super(base, self).__init__(parent)
			else:
				super(ManagerUI, self).__init__(parent)
		else:
			if uiH.USEPYQT:
				super(base, self).__init__(parent)
			else:
				super(ManagerUI, self).__init__(parent)
		self.setupUi(self)
		self.serverPath = ''
		self.settings = sti.Settings()
		if not self.settings.exists:
			self.loadSettingsUi()
		self.changeInternalPaths = False
		self.autoMakeTx = False
		self.loadProjectsPath()
		self.fillProjectsCombo()
		self.fillAssetsTable()
		self._makeConnections()
		self.loadTaksUi()
		self._loadConfig()
		self.serverHelp_wg.hide()
		self.assets_tw.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
		self.assets_tw.customContextMenuRequested.connect(self.showMenu)

		self.shots_tw.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
		self.shots_tw.customContextMenuRequested.connect(self.showMenu)
		self.setObjectName( 'ManagerUI' )
Esempio n. 8
0
	def __init__(self, project, pose = None, parent  = uiH.getMayaWindow() ):
		if uiH.USEPYQT:
			super(base, self).__init__(parent)
		else:
			super(PoseThumbnailCreatorUi, self).__init__(parent)
		self.setupUi(self)
		self.project = project
		self.pose = pose
		layout = mui.MQtUtil.fullName(long(shiboken.getCppPointer(self.viewport_lay)[0]))
		self.cam = mn.Node( 'Capture_Pose' )
		if not self.cam.exists:
			self.camShape = mn.createNode( 'camera', ss = True )
			self.camShape.parent.name = 'Capture_Pose'
			mc.viewSet( self.cam.name, p = True )
			self.cam.shape.a.focalLength.v = 100
			self.cam.a.v.v = 0
		self.executer = mc.modelPanel( mbv = False, camera = self.cam.name, p = layout )
		mc.modelEditor(self.executer, e = True, grid = 0, da = "smoothShaded", allObjects = 0, nurbsSurfaces = 1, polymeshes = 1, subdivSurfaces = 1 )
		#self.viewport_lay.addWidget( uiH.toQtObject( self.executer ) )
		self.setObjectName( 'PoseThumbnailCreatorUi' )
		self._makeConnections()
		self.saveCameraPreset = 0 #READ, 1.. WRITE
		self.settings = sti.Settings()
		gen = self.settings.General
		skin = gen[ "skin" ]
		if skin:
			uiH.loadSkin( self, skin )
		if pose:
			self.poseName_le.setText( pose.name )
		self.fillSections()
Esempio n. 9
0
 def __init__(self, project, parent=uiH.getMayaWindow()):
     if uiH.USEPYQT:
         super(baseSec, self).__init__(parent)
     else:
         super(NewSection, self).__init__(parent)
     self.setupUi(self)
     self.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), self.create)
     self.project = project
Esempio n. 10
0
	def __init__(self, parent  = uiH.getMayaWindow(), *args):
		if uiH.USEPYQT:
			super(base, self).__init__(parent)
		else:
			super(SetupOccUI, self).__init__(parent)
		self.setupUi(self)
		self.setObjectName( 'SetupOccUI' )
		self.makeConnections()
Esempio n. 11
0
 def __init__(self, parent=uiH.getMayaWindow()):
     super(MainWindow, self).__init__(parent)
     w = QtGui.QWidget()
     lay = QtGui.QHBoxLayout()
     lay.addWidget(PyDateEdit())
     lay.addWidget(PyDateTimeEdit())
     w.setLayout(lay)
     self.setCentralWidget(w)
Esempio n. 12
0
	def __init__(self, parent = None ):
		if INMAYA:
			super(VoxelizerUI, self).__init__(uiH.getMayaWindow())
		else:
			super(VoxelizerUI, self).__init__(parent)
		self.setupUi(self)
		self.setObjectName( 'VoxelizerUI' )
		self.makeConnections()
Esempio n. 13
0
	def __init__(self, parent = uiH.getMayaWindow()):
		super(MainWindow, self).__init__(parent)
		w = QtGui.QWidget()
		lay = QtGui.QHBoxLayout()
		lay.addWidget(PyDateEdit())
		lay.addWidget(PyDateTimeEdit())
		w.setLayout(lay)
		self.setCentralWidget( w )
Esempio n. 14
0
	def __init__(self, project, parent  = uiH.getMayaWindow() ):
		if uiH.USEPYQT:
			super(baseSec, self).__init__(parent)
		else:
			super(NewSection, self).__init__(parent)
		self.setupUi(self)
		self.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), self.create)
		self.project = project
Esempio n. 15
0
	def __init__(self, parent  = uiH.getMayaWindow(), *args ):
		if uiH.USEPYQT:
			super(base, self).__init__(parent)
		else:
			super(SkinTestUI, self).__init__(parent)
		self.setupUi(self)
		self.setObjectName( 'SkinTestUI' )
		uiH.loadSkin( self, 'QTDarkGreen' )
Esempio n. 16
0
	def __init__(self, parent = uiH.getMayaWindow()  ):
		super(LibraryUI, self).__init__(parent)
		self.setupUi(self)
		self._fillHistory()
		self._makeConnections()
		self._setupBanner()
		self._createAccordion()
		self._createLibUI()
		self.setObjectName( 'LibraryUI' )
Esempio n. 17
0
	def __init__(self, parent  = uiH.getMayaWindow(), *args ):
		if uiH.USEPYQT:
			super(base, self).__init__(parent)
		else:
			super(hairUi, self).__init__(parent)
		self.setupUi(self)
		self._makeConnections()
		self.setObjectName( 'hairUi' )
		uiH.loadSkin( self, 'QTDarkGreen' )
Esempio n. 18
0
 def __init__(self, parent=uiH.getMayaWindow(), *args):
     if uiH.USEPYQT:
         super(base, self).__init__(parent)
     else:
         super(spiderWebCreatorUi, self).__init__(parent)
     self.setupUi(self)
     self._makeConnections()
     self.setObjectName("spiderWebCreatorUi_WIN")
     uiH.loadSkin(self, "QTDarkGreen")
Esempio n. 19
0
 def __init__(self, parent=uiH.getMayaWindow(), *args):
     if uiH.USEPYQT:
         super(base, self).__init__(parent)
     else:
         super(hairUi, self).__init__(parent)
     self.setupUi(self)
     self._makeConnections()
     self.setObjectName('hairUi')
     uiH.loadSkin(self, 'QTDarkGreen')
Esempio n. 20
0
	def __init__(self, parent  = uiH.getMayaWindow(), *args ):
		if uiH.USEPYQT:
			super(base, self).__init__(parent)
		else:
			super(LightRigUi, self).__init__(parent)
		self.setupUi(self)
		self.connect( self.default_btn, QtCore.SIGNAL("clicked()") , self.default )
		self.connect( self.project_btn, QtCore.SIGNAL("clicked()") , self.project )
		self.setObjectName( 'LightRigUi' )
Esempio n. 21
0
	def __init__(self, parent  = uiH.getMayaWindow(), *args ):
		if uiH.USEPYQT:
			super(base, self).__init__(parent)
		else:
			super(MirrorCurveUi, self).__init__(parent)
		self.setupUi(self)
		self.setObjectName( 'MirrorCurveUi' )
		self.connect(self.mirror_btn, QtCore.SIGNAL("clicked()"), self.mirror)
		uiH.loadSkin( self, 'QTDarkGreen' )
Esempio n. 22
0
	def __init__(self, parent  = uiH.getMayaWindow(), *args ):
		if uiH.USEPYQT:
			super(base, self).__init__(parent)
		else:
			super(checkModelSceneUi, self).__init__(parent)
		self.setupUi(self)
		self._makeConnections()
		self.checkScene()
		self.setObjectName( 'modelSceneCheck_WIN' )
		uiH.loadSkin( self, 'QTDarkGreen' )
Esempio n. 23
0
	def __init__(self, parent  = uiH.getMayaWindow(), *args ):
		if uiH.USEPYQT:
			super(base, self).__init__(parent)
		else:
			super(RenderManagerUI, self).__init__(parent)
		self.setupUi(self)
		self._makeConnections()
		self.setObjectName( 'RenderManagerUI' )
		self._fillUi()
		uiH.loadSkin( self, 'QTDarkGreen' )
Esempio n. 24
0
	def __init__(self, parent = None ):
		if INMAYA:
			if uiH.USEPYQT:
				super(base, self).__init__(uiH.getMayaWindow())
			else:
				super(PlayblastUi, self).__init__(uiH.getMayaWindow())
		else:
			if uiH.USEPYQT:
				super(base, self).__init__(parent)
			else:
				super(PlayblastUi, self).__init__(parent)
		self.setupUi(self)
		self._makeConnections()
		self.setObjectName( 'PlayblastUi' )
		if INMAYA:
			dead = dl.Deadline()
			self.group_cmb.addItems( dead.groups )
			#set settings icon
			settIcon = QtGui.QIcon(  ':/cmdWndIcon.png' )
			self.settings_btn.setIcon(settIcon)
Esempio n. 25
0
 def __init__(self, parent=None):
     if INMAYA:
         if uiH.USEPYQT:
             super(base, self).__init__(uiH.getMayaWindow())
         else:
             super(PlayblastUi, self).__init__(uiH.getMayaWindow())
     else:
         if uiH.USEPYQT:
             super(base, self).__init__(parent)
         else:
             super(PlayblastUi, self).__init__(parent)
     self.setupUi(self)
     self._makeConnections()
     self.setObjectName('PlayblastUi')
     if INMAYA:
         dead = dl.Deadline()
         self.group_cmb.addItems(dead.groups)
         #set settings icon
         settIcon = QtGui.QIcon(':/cmdWndIcon.png')
         self.settings_btn.setIcon(settIcon)
Esempio n. 26
0
	def __init__(self, pose, parent  = uiH.getMayaWindow() ):
		if uiH.USEPYQT:
			super(baseSlid, self).__init__(parent)
		else:
			super(PoseSliderUi, self).__init__(parent)
		self.setupUi(self)
		self.poseTargetData = pose.controlsDataFromFile
		pose.controls.select()
		basePose = Pose( pose.project, pose.section, pose.name + 'base' )
		self.poseName_lbl.setText( pose.section + ' ' + pose.name )
		self.basePoseData = basePose.controlsData
		self.connect( self.poseSlider_sld, QtCore.SIGNAL("valueChanged(int)") , self.mixPose )
Esempio n. 27
0
	def __init__(self, parent  = uiH.getMayaWindow(), *args ):
		if uiH.USEPYQT:
			super(base, self).__init__(parent)
		else:
			super(ExporterUI, self).__init__(parent)
		self.setupUi(self)
		self._projectData()
		self._fillData()
		self._makeConnections()
		self.exporter = ''
		self.setObjectName( 'exporter_WIN' )
		uiH.loadSkin( self, 'QTDarkGreen' )
Esempio n. 28
0
	def __init__(self, parent = None):
		if INMAYA:
			if uiH.USEPYQT:
				super(base, self).__init__(uiH.getMayaWindow())
			else:
				super(CacheManagerUI, self).__init__(uiH.getMayaWindow())
		else:
			if uiH.USEPYQT:
				super(base, self).__init__(parent)
			else:
				super(CacheManagerUI, self).__init__(parent)
		self.setupUi(self)
		if not INHOU:
			self.connectToGlobalScale_chb.setVisible( False )
		self._makeConnections()
		self.settings = sti.Settings()
		gen = self.settings.General
		self.serverPath = ''
		if gen:
			basePath = gen[ "basepath" ]
			if basePath:
				prj.BASE_PATH = basePath.replace( '\\', '/' )
			useMayaSubFolder = gen[ "usemayasubfolder" ]
			if useMayaSubFolder == 'True':
				prj.USE_MAYA_SUBFOLDER = True
			else:
				prj.USE_MAYA_SUBFOLDER = False
			self.serverPath = gen[ "serverpath" ]
			self.sendMail = gen[ "sendmail" ]
			self.mailServer = gen[ "mailserver" ]
			self.mailPort = gen[ "mailport" ]
			self.mailsPath = gen[ "departmentspath" ]
		self._fillUi()
		self._loadConfig()
		self.setObjectName( 'cacheManager_WIN' )
		cfl.USE_EXOCORTEX = self.useExocortex_chb.isChecked()
		if gen:
			skin = gen[ "skin" ]
			if skin:
				uiH.loadSkin( self, skin )
Esempio n. 29
0
	def __init__(self, parent  = uiH.getMayaWindow(), *args ):
		if uiH.USEPYQT:
			super(base, self).__init__(parent)
		else:
			super(eyeLidsRigUi, self).__init__(parent)
		self.setupUi(self)
		self.setObjectName( 'eyeLidsRigUi' )
		self.connect(self.fillUpperLidsVerteces_btn, QtCore.SIGNAL("clicked()"), self.fillUpperLidsVerteces)
		self.connect(self.selectUpperLids_btn, QtCore.SIGNAL("clicked()"), self.selectUpperLids)
		self.connect(self.fillLowerLidsVerteces_btn, QtCore.SIGNAL("clicked()"), self.fillLowerLidsVerteces)
		self.connect(self.selectLowerLids_btn, QtCore.SIGNAL("clicked()"), self.selectLowerLids)
		self.connect(self.fillCenterPivot_btn, QtCore.SIGNAL("clicked()"), self.fillCenterPivot)
		self.connect(self.create_btn, QtCore.SIGNAL("clicked()"), self.create)
Esempio n. 30
0
 def __init__(self, pose, parent=uiH.getMayaWindow()):
     if uiH.USEPYQT:
         super(baseSlid, self).__init__(parent)
     else:
         super(PoseSliderUi, self).__init__(parent)
     self.setupUi(self)
     self.poseTargetData = pose.controlsDataFromFile
     pose.controls.select()
     basePose = Pose(pose.project, pose.section, pose.name + 'base')
     self.poseName_lbl.setText(pose.section + ' ' + pose.name)
     self.basePoseData = basePose.controlsData
     self.connect(self.poseSlider_sld, QtCore.SIGNAL("valueChanged(int)"),
                  self.mixPose)
Esempio n. 31
0
	def __init__(self, parent  = uiH.getMayaWindow(), *args ):
		if uiH.USEPYQT:
			super(base, self).__init__(parent)
		else:
			super(CurveScatterUI, self).__init__(parent)
		self.setupUi(self)
		self.connect(self.curveIn_btn, QtCore.SIGNAL("clicked()"), self.fillCurveLE)
		self.connect(self.addObject_btn, QtCore.SIGNAL("clicked()"), self.addObject)
		self.connect(self.removeObject_btn, QtCore.SIGNAL("clicked()"), self.removeObject)
		self.connect(self.cleanList_btn, QtCore.SIGNAL("clicked()"), self.cleanList)
		self.connect(self.createScatter_btn, QtCore.SIGNAL("clicked()"), self.createScatter)
		self.setObjectName( 'curveScatter_WIN' )
		uiH.loadSkin( self, 'QTDarkGreen' )
Esempio n. 32
0
	def __init__(self, pose, parent  = uiH.getMayaWindow() ):
		if uiH.USEPYQT:
			super(baseThum, self).__init__(parent)
		else:
			super(PoseThumbnailUi, self).__init__(parent)
		self.setupUi(self)
		self.pose    = pose
		self.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
		self.customContextMenuRequested.connect(self.showMenu)
		self.pose_btn.setText( self.pose.name )
		self.connect( self.pose_btn, QtCore.SIGNAL("clicked()") , self.applyPose )
		self.setObjectName( 'PoseThumbnailUi' )
		myIcon = QtGui.QIcon( self.pose.poseThumbPath )
		self.pose_btn.setIcon(myIcon)
Esempio n. 33
0
	def __init__(self, source, destination, parent = None):
		QtGui.QProgressDialog.__init__(self, uiH.getMayaWindow())
		self.parent = parent
		self.source = source
		self.destination = destination

		self.setLabelText("Copying: %s" % (self.source))

		self.setMinimum(0)
		self.setMaximum(100)
		self.setValue(0)

		self.show()
		self.copy()
Esempio n. 34
0
	def __init__(self, parent  = uiH.getMayaWindow(), *args):
		if uiH.USEPYQT:
			super(base, self).__init__(parent)
		else:
			super(BlendShapeUI, self).__init__(parent)
		self.setupUi(self)
		self.setObjectName( 'BlendShapeUI' )
		self.settings = sti.Settings()
		gen = self.settings.General
		self.makeConnections()
		if gen:
			skin = gen[ "skin" ]
			if skin:
				uiH.loadSkin( self, skin )
Esempio n. 35
0
 def __init__(self, pose, parent=uiH.getMayaWindow()):
     if uiH.USEPYQT:
         super(baseThum, self).__init__(parent)
     else:
         super(PoseThumbnailUi, self).__init__(parent)
     self.setupUi(self)
     self.pose = pose
     self.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
     self.customContextMenuRequested.connect(self.showMenu)
     self.pose_btn.setText(self.pose.name)
     self.connect(self.pose_btn, QtCore.SIGNAL("clicked()"), self.applyPose)
     self.setObjectName('PoseThumbnailUi')
     myIcon = QtGui.QIcon(self.pose.poseThumbPath)
     self.pose_btn.setIcon(myIcon)
Esempio n. 36
0
    def __init__(self, parent=uiH.getMayaWindow()):
        super(MainWindow, self).__init__(parent)

        self.selectedDate = QtCore.QDate.currentDate()
        self.fontSize = 10

        centralWidget = QtGui.QWidget()

        dateLabel = QtGui.QLabel("Date:")
        monthCombo = QtGui.QComboBox()

        for month in range(1, 13):
            monthCombo.addItem(QtCore.QDate.longMonthName(month))

        yearEdit = QtGui.QDateTimeEdit()
        yearEdit.setDisplayFormat('yyyy')
        yearEdit.setDateRange(QtCore.QDate(1753, 1, 1),
                              QtCore.QDate(8000, 1, 1))

        monthCombo.setCurrentIndex(self.selectedDate.month() - 1)
        yearEdit.setDate(self.selectedDate)

        self.fontSizeLabel = QtGui.QLabel("Font size:")
        self.fontSizeSpinBox = QtGui.QSpinBox()
        self.fontSizeSpinBox.setRange(1, 64)
        self.fontSizeSpinBox.setValue(10)

        self.editor = QtGui.QTextBrowser()
        self.insertCalendar()

        monthCombo.activated[int].connect(self.setMonth)
        yearEdit.dateChanged.connect(self.setYear)
        self.fontSizeSpinBox.valueChanged.connect(self.setfontSize)

        controlsLayout = QtGui.QHBoxLayout()
        controlsLayout.addWidget(dateLabel)
        controlsLayout.addWidget(monthCombo)
        controlsLayout.addWidget(yearEdit)
        controlsLayout.addSpacing(24)
        controlsLayout.addWidget(self.fontSizeLabel)
        controlsLayout.addWidget(self.fontSizeSpinBox)
        controlsLayout.addStretch(1)

        centralLayout = QtGui.QVBoxLayout()
        centralLayout.addLayout(controlsLayout)
        centralLayout.addWidget(self.editor, 1)
        centralWidget.setLayout(centralLayout)

        self.setCentralWidget(centralWidget)
Esempio n. 37
0
    def __init__(self, parent = uiH.getMayaWindow()):
        super(MainWindow, self).__init__(parent)

        self.selectedDate = QtCore.QDate.currentDate()
        self.fontSize = 10

        centralWidget = QtGui.QWidget()

        dateLabel = QtGui.QLabel("Date:")
        monthCombo = QtGui.QComboBox()

        for month in range(1, 13):
            monthCombo.addItem(QtCore.QDate.longMonthName(month))

        yearEdit = QtGui.QDateTimeEdit()
        yearEdit.setDisplayFormat('yyyy')
        yearEdit.setDateRange(QtCore.QDate(1753, 1, 1),
                QtCore.QDate(8000, 1, 1))

        monthCombo.setCurrentIndex(self.selectedDate.month() - 1)
        yearEdit.setDate(self.selectedDate)

        self.fontSizeLabel = QtGui.QLabel("Font size:")
        self.fontSizeSpinBox = QtGui.QSpinBox()
        self.fontSizeSpinBox.setRange(1, 64)
        self.fontSizeSpinBox.setValue(10)

        self.editor = QtGui.QTextBrowser()
        self.insertCalendar()

        monthCombo.activated[int].connect(self.setMonth)
        yearEdit.dateChanged.connect(self.setYear)
        self.fontSizeSpinBox.valueChanged.connect(self.setfontSize)

        controlsLayout = QtGui.QHBoxLayout()
        controlsLayout.addWidget(dateLabel)
        controlsLayout.addWidget(monthCombo)
        controlsLayout.addWidget(yearEdit)
        controlsLayout.addSpacing(24)
        controlsLayout.addWidget(self.fontSizeLabel)
        controlsLayout.addWidget(self.fontSizeSpinBox)
        controlsLayout.addStretch(1)

        centralLayout = QtGui.QVBoxLayout()
        centralLayout.addLayout(controlsLayout)
        centralLayout.addWidget(self.editor, 1)
        centralWidget.setLayout(centralLayout)

        self.setCentralWidget(centralWidget)
Esempio n. 38
0
 def __init__(self, parent=uiH.getMayaWindow()):
     if uiH.USEPYQT:
         super(baseBase, self).__init__(parent)
     else:
         super(PoseManUi, self).__init__(parent)
     self.setupUi(self)
     self.setObjectName('PoseManUi')
     self.settings = sti.Settings()
     self.loadSettings()
     self.fillProjects()
     self.loadLastProject()
     self.catLayout = cgroup.AccordionWidget(None)
     self.library_lay.addWidget(self.catLayout)
     self._makeConnections()
     self.fillSections()
     self.poses = []
Esempio n. 39
0
 def __init__(self, parent=uiH.getMayaWindow(), *args):
     if uiH.USEPYQT:
         super(base, self).__init__(parent)
     else:
         super(CurveScatterUI, self).__init__(parent)
     self.setupUi(self)
     self.connect(self.curveIn_btn, QtCore.SIGNAL("clicked()"),
                  self.fillCurveLE)
     self.connect(self.addObject_btn, QtCore.SIGNAL("clicked()"),
                  self.addObject)
     self.connect(self.removeObject_btn, QtCore.SIGNAL("clicked()"),
                  self.removeObject)
     self.connect(self.cleanList_btn, QtCore.SIGNAL("clicked()"),
                  self.cleanList)
     self.connect(self.createScatter_btn, QtCore.SIGNAL("clicked()"),
                  self.createScatter)
     self.setObjectName('curveScatter_WIN')
     uiH.loadSkin(self, 'QTDarkGreen')
Esempio n. 40
0
 def __init__(self, project, pose=None, parent=uiH.getMayaWindow()):
     if uiH.USEPYQT:
         super(base, self).__init__(parent)
     else:
         super(PoseThumbnailCreatorUi, self).__init__(parent)
     self.setupUi(self)
     self.project = project
     self.pose = pose
     layout = mui.MQtUtil.fullName(
         long(shiboken.getCppPointer(self.viewport_lay)[0]))
     self.cam = mn.Node('Capture_Pose')
     if not self.cam.exists:
         self.camShape = mn.createNode('camera', ss=True)
         self.camShape.parent.name = 'Capture_Pose'
         mc.viewSet(self.cam.name, p=True)
         self.cam.shape.a.focalLength.v = 100
         self.cam.a.v.v = 0
     self.executer = mc.modelPanel(mbv=False,
                                   camera=self.cam.name,
                                   p=layout)
     mc.modelEditor(self.executer,
                    e=True,
                    grid=0,
                    da="smoothShaded",
                    allObjects=0,
                    nurbsSurfaces=1,
                    polymeshes=1,
                    subdivSurfaces=1)
     #self.viewport_lay.addWidget( uiH.toQtObject( self.executer ) )
     self.setObjectName('PoseThumbnailCreatorUi')
     self._makeConnections()
     self.saveCameraPreset = 0  #READ, 1.. WRITE
     self.settings = sti.Settings()
     gen = self.settings.General
     skin = gen["skin"]
     if skin:
         uiH.loadSkin(self, skin)
     if pose:
         self.poseName_le.setText(pose.name)
     self.fillSections()
Esempio n. 41
0
        lay = QtGui.QHBoxLayout()
        lay.addWidget(PyDateEdit())
        lay.addWidget(PyDateTimeEdit())
        w.setLayout(lay)
        self.setCentralWidget(w)


def main():
    PyForm = MainWindow()
    PyForm.show()


if __name__ == "__main__":

    app = QtGui.QApplication(sys.argv)

    w = QtGui.QWidget(uiH.getMayaWindow())
    lay = QtGui.QHBoxLayout()

    lay.addWidget(PyDateEdit())
    lay.addWidget(PyDateTimeEdit())

    w.setLayout(lay)
    w.show()

    sys.exit(app.exec_())

#============================================================================#
# EOF                                                                        #
#----------------------------------------------------------------------------#