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")
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")
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)
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)
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 = []
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 = []
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]