示例#1
0
 def __init__(self, newLayerMode):
     BaseDialog.__init__(self)
     self.title = "New Layer" if newLayerMode else "Layer Properties"
     self.buttons = [self.BUTTON_OK, self.BUTTON_CANCEL]
     self.layerNameValue = ValueModel()
     self.layerOpacityValue = ValueModel()
     self.newLayerMode = newLayerMode
     self.onOpacityChange = Signal("Layer Opacity changed")
示例#2
0
 def __init__(self,newLayerMode):
     BaseDialog.__init__(self)
     self.title = "New Layer" if newLayerMode else "Layer Properties"
     self.buttons = [self.BUTTON_OK,self.BUTTON_CANCEL]
     self.layerNameValue = ValueModel()
     self.layerOpacityValue = ValueModel()
     self.newLayerMode = newLayerMode
     self.onOpacityChange = Signal("Layer Opacity changed")
示例#3
0
 def closeDialogWithResult(self, button):
     if button==self.BUTTON_OK:
         self.controls.name.setValue(self.controls.name.getValue().strip())
         
         
         # check if valid layer name was entered
         # new layer mode should allow empty value
         if not self.newLayerMode and self.layerNameValue.get().strip()=='':
             utils.confirmDialog( title='Validation Error', message="layer name cannot be blank", button=['Ok'], defaultButton='Ok')
             return
     
     
     BaseDialog.closeDialogWithResult(self, button)
示例#4
0
 def closeDialogWithResult(self, buttonID):
     if buttonID==self.BUTTON_OK:
         self.controls.name.setValue(self.controls.name.getValue().strip())
         
         
         # check if valid layer name was entered
         # new layer mode should allow empty value
         if not self.newLayerMode and self.layerNameValue.get().strip()=='':
             Utils.confirmDialog( title='Validation Error', message="layer name cannot be blank", button=['Ok'], defaultButton='Ok')
             return
     
     
     BaseDialog.closeDialogWithResult(self, buttonID)
示例#5
0
 def __init__(self):
     BaseDialog.__init__(self)
     self.title = "About ngSkinTools"
     self.buttons = [self.BUTTON_CLOSE]
示例#6
0
 def __init__(self):
     BaseDialog.__init__(self)
     self.title = "Import influences from another skin cluster"
     self.buttons = [self.BUTTON_OK, self.BUTTON_CANCEL]
     self.importer = None
     self.selectedInfluences = []
示例#7
0
 def __init__(self):
     BaseDialog.__init__(self)
     self.title = "About ngSkinTools"
     self.buttons = [self.BUTTON_CLOSE]
 def __init__(self):
     BaseDialog.__init__(self)
     self.title = "Import influences from another skin cluster"
     self.buttons = [self.BUTTON_OK,self.BUTTON_CANCEL]
     self.importer = None
     self.selectedInfluences = []
示例#9
0
 def __init__(self):
     BaseDialog.__init__(self)
     self.title = "Add Influences Association"
     self.sourceValue = ValueModel()
     self.destinationValue = ValueModel()
     self.buttons = [self.BUTTON_OK, self.BUTTON_CANCEL]
 def __init__(self):
     BaseDialog.__init__(self)
     self.title = "Add Influences Association"
     self.sourceValue = ValueModel()
     self.destinationValue = ValueModel()
     self.buttons = [self.BUTTON_OK,self.BUTTON_CANCEL]