def toolButtonClicked(self): from layerselectdialog import LayerSelectDialog dialog = LayerSelectDialog(self.widget) dialog.initTree(self.layerIds) dialog.setMapSettings(self.mapSettings) if not dialog.exec_(): return layers = dialog.visibleLayers() self.layerIds = [layer.id() for layer in layers] self.updateLineEdit()
def selectLayerClicked(self): if QGis.QGIS_VERSION_INT < 20400: QMessageBox.warning( self, "Qgis2threejs", "Sorry, newer QGIS version (>= 2.4) is required.") return from layerselectdialog import LayerSelectDialog dialog = LayerSelectDialog(self) dialog.initTree(self.layerImageIds) dialog.setMapSettings(self.dialog.iface.mapCanvas().mapSettings()) if not dialog.exec_(): return layers = dialog.visibleLayers() self.layerImageIds = [layer.id() for layer in layers] self.updateLayerImageLabel()
def toolButtonClicked(self): itemData = self.widget.comboBox.itemData( self.widget.comboBox.currentIndex()) if itemData == ColorWidgetFunc.RGB: ColorWidgetFunc.toolButtonClicked(self) return # ColorTextureWidgetFunc.LAYER from layerselectdialog import LayerSelectDialog dialog = LayerSelectDialog(self.widget) dialog.initTree(self.layerIds) dialog.setMapSettings(self.mapSettings) if not dialog.exec_(): return layers = dialog.visibleLayers() self.layerIds = [layer.id() for layer in layers] self.updateLineEdit()
def selectLayerClicked(self): if QGis.QGIS_VERSION_INT < 20400: QMessageBox.warning(self, "Qgis2threejs", "Sorry, newer QGIS version (>= 2.4) is required.") return from layerselectdialog import LayerSelectDialog dialog = LayerSelectDialog(self) dialog.initTree(self.layerImageIds) dialog.setMapSettings(self.dialog.iface.mapCanvas().mapSettings()) if not dialog.exec_(): return layers = dialog.visibleLayers() self.layerImageIds = [layer.id() for layer in layers] self.updateLayerImageLabel()
def toolButtonClicked(self): itemData = self.widget.comboBox.itemData(self.widget.comboBox.currentIndex()) if itemData == ColorWidgetFunc.RGB: ColorWidgetFunc.toolButtonClicked(self) return # ColorTextureWidgetFunc.LAYER from layerselectdialog import LayerSelectDialog dialog = LayerSelectDialog(self.widget) dialog.initTree(self.layerIds) dialog.setMapSettings(self.mapSettings) if not dialog.exec_(): return layers = dialog.visibleLayers() self.layerIds = [layer.id() for layer in layers] self.updateLineEdit()