Esempio n. 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")
Esempio n. 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")
Esempio n. 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)
Esempio n. 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)
Esempio n. 5
0
 def __init__(self):
     BaseDialog.__init__(self)
     self.title = "About ngSkinTools"
     self.buttons = [self.BUTTON_CLOSE]
Esempio n. 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 = []
Esempio n. 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 = []
Esempio n. 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]
Esempio n. 10
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]