def showLayerProperties(self, layer): from propertiesdialog import PropertiesDialog dialog = PropertiesDialog(layer) dialog.horizontalSlider_Transparency.valueChanged.connect(layer.transparencyChanged) dialog.spinBox_Transparency.valueChanged.connect(layer.transparencyChanged) dialog.exec_() dialog.horizontalSlider_Transparency.valueChanged.disconnect(layer.transparencyChanged) dialog.spinBox_Transparency.valueChanged.disconnect(layer.transparencyChanged) return True
def showLayerProperties(self, layer): from propertiesdialog import PropertiesDialog dialog = PropertiesDialog(layer) dialog.horizontalSlider_Transparency.valueChanged.connect( layer.transparencyChanged) dialog.spinBox_Transparency.valueChanged.connect( layer.transparencyChanged) dialog.exec_() dialog.horizontalSlider_Transparency.valueChanged.disconnect( layer.transparencyChanged) dialog.spinBox_Transparency.valueChanged.disconnect( layer.transparencyChanged) return True
def showLayerProperties(self, layer): from propertiesdialog import PropertiesDialog dialog = PropertiesDialog(layer) dialog.applyClicked.connect(self.applyClicked) dialog.show() accepted = dialog.exec_() if accepted: self.applyProperties(dialog) return True
def showLayerProperties(self, layer): from propertiesdialog import PropertiesDialog dialog = PropertiesDialog(layer) QObject.connect(dialog, SIGNAL("applyClicked()"), self.applyClicked) dialog.show() accepted = dialog.exec_() if accepted: self.applyProperties(dialog) return True
def showLayerProperties(self, layer): from propertiesdialog import PropertiesDialog dialog = PropertiesDialog(layer) dialog.show() accepted = dialog.exec_() if accepted: layer.setTransparency(dialog.ui.spinBox_Transparency.value()) layer.setBlendModeByName(dialog.ui.comboBox_BlendingMode.currentText()) layer.setCreditVisibility(dialog.ui.checkBox_CreditVisibility.isChecked()) layer.emit(SIGNAL("repaintRequested()")) return True
def showLayerProperties(self, layer): from propertiesdialog import PropertiesDialog dialog = PropertiesDialog(layer) dialog.show() accepted = dialog.exec_() if accepted: layer.setTransparency(dialog.ui.spinBox_Transparency.value()) layer.setBlendModeByName( dialog.ui.comboBox_BlendingMode.currentText()) layer.setCreditVisibility( dialog.ui.checkBox_CreditVisibility.isChecked()) layer.emit(SIGNAL("repaintRequested()")) return True