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
示例#2
0
    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
示例#3
0
 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
示例#4
0
 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
示例#5
0
 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
示例#6
0
 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