diff --git a/python/plugins/fTools/tools/doGeometry.py b/python/plugins/fTools/tools/doGeometry.py index fa3344df0d7..79c681cd4c3 100644 --- a/python/plugins/fTools/tools/doGeometry.py +++ b/python/plugins/fTools/tools/doGeometry.py @@ -281,14 +281,13 @@ class GeometryDialog( QDialog, Ui_Dialog ): QObject.disconnect( self.cancel_close, SIGNAL( "clicked()" ), self.cancelThread ) if success: if ( self.myFunction == 5 and self.chkWriteShapefile.isChecked() ) or self.myFunction != 5: - addToTOC = QMessageBox.question( self, self.tr("Geometry"), - self.tr( "Created output shapefile:\n{0}\n{1}\n\nWould you like to add the new layer to the TOC?" ).format( self.shapefileName, extra ), - QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton ) - if addToTOC == QMessageBox.Yes: - if not ftools_utils.addShapeToCanvas( unicode( self.shapefileName ) ): - QMessageBox.warning( self, self.tr( "Geometry"), - self.tr( "Error loading output shapefile:\n{0}" ).format( self.shapefileName ) ) + if self.addToCanvasCheck.isChecked(): + addCanvasCheck = ftools_utils.addShapeToCanvas(unicode(self.shapefileName)) + if not addCanvasCheck: + QMessageBox.warning( self, self.tr("Geometry"), self.tr( "Error loading output shapefile:\n%s" ) % ( unicode( self.shapefileName ) )) self.populateLayers() + else: + QMessageBox.information(self, self.tr("Geometry"),self.tr("Created output shapefile:\n%s\n%s" ) % ( unicode( self.shapefileName ), extra )) else: QMessageBox.information( self, self.tr( "Geometry" ), self.tr( "Layer '{0}' updated" ).format( self.inShape.currentText() ) ) diff --git a/python/plugins/fTools/tools/doGeoprocessing.py b/python/plugins/fTools/tools/doGeoprocessing.py index 9ff2f56b732..cf5f39ee78f 100644 --- a/python/plugins/fTools/tools/doGeoprocessing.py +++ b/python/plugins/fTools/tools/doGeoprocessing.py @@ -247,8 +247,8 @@ class GeoprocessingDialog( QDialog, Ui_Dialog ): out_text = self.tr( "\nWarnings:" ) end_text = self.tr( "\nSome output geometries may be missing or invalid.\n\nWould you like to add the new layer anyway?" ) else: - out_text = "\n" - end_text = self.tr( "\n\nWould you like to add the new layer to the TOC?" ) + out_text = "" + end_text = "" if not results[2] is None: if not results[2]: out_text = out_text + self.tr( "\nInput CRS error: Different input coordinate reference systems detected, results may not be as expected.") @@ -258,11 +258,13 @@ class GeoprocessingDialog( QDialog, Ui_Dialog ): out_text = out_text + self.tr( "\nFeature geometry error: One or more output features ignored due to invalid geometry.") if not results[0]: out_text = out_text + self.tr( "\nGEOS geoprocessing error: One or more input features have invalid geometry.") - addToTOC = QMessageBox.question( self, self.tr("Geoprocessing"), self.tr( "Created output shapefile:\n%s\n%s%s" ) % ( unicode( self.shapefileName ), out_text, end_text ), QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton ) - if addToTOC == QMessageBox.Yes: - if not ftools_utils.addShapeToCanvas( unicode( self.shapefileName ) ): - QMessageBox.warning( self, self.tr("Geoprocessing"), self.tr( "Error loading output shapefile:\n%s" ) % ( unicode( self.shapefileName ) )) + if self.addToCanvasCheck.isChecked(): + addCanvasCheck = ftools_utils.addShapeToCanvas(unicode(self.shapefileName)) + if not addCanvasCheck: + QMessageBox.warning( self, self.tr("Geoprocessing"), self.tr( "Error loading output shapefile:\n%s" ) % ( unicode( self.shapefileName ) )) self.populateLayers() + else: + QMessageBox.information(self, self.tr("Geoprocessing"),self.tr("Created output shapefile:\n%s\n%s%s" ) % ( unicode( self.shapefileName ), out_text, end_text )) def runStatusFromThread( self, status ): self.progressBar.setValue( status ) diff --git a/python/plugins/fTools/tools/doIntersectLines.py b/python/plugins/fTools/tools/doIntersectLines.py index 9ed65e77204..c4f6176a177 100644 --- a/python/plugins/fTools/tools/doIntersectLines.py +++ b/python/plugins/fTools/tools/doIntersectLines.py @@ -95,11 +95,13 @@ class Dialog(QDialog, Ui_Dialog): self.outShape.clear() self.compute(line1, line2, field1, field2, outPath, self.progressBar) self.progressBar.setValue(100) - addToTOC = QMessageBox.question(self, self.tr("Generate Centroids"), self.tr("Created output point shapefile:\n%s\n\nWould you like to add the new layer to the TOC?") % ( outPath ), QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton) - if addToTOC == QMessageBox.Yes: - if not ftools_utils.addShapeToCanvas( unicode( outPath ) ): + if self.addToCanvasCheck.isChecked(): + addCanvasCheck = ftools_utils.addShapeToCanvas(unicode(outPath)) + if not addCanvasCheck: QMessageBox.warning( self, self.tr("Geoprocessing"), self.tr( "Error loading output shapefile:\n%s" ) % ( unicode( outPath ) )) self.populateLayers() + else: + QMessageBox.information(self, self.tr("Generate Centroids"),self.tr("Created output shapefile:\n%s" ) % ( unicode( outPath ))) self.progressBar.setValue(0) self.buttonOk.setEnabled( True ) diff --git a/python/plugins/fTools/tools/doMeanCoords.py b/python/plugins/fTools/tools/doMeanCoords.py index 6ba5e6cac09..265ea62597e 100644 --- a/python/plugins/fTools/tools/doMeanCoords.py +++ b/python/plugins/fTools/tools/doMeanCoords.py @@ -90,11 +90,13 @@ class Dialog(QDialog, Ui_Dialog): self.compute(inName, outPath, self.weightField.currentText(), self.sizeValue.value(), self.uniqueField.currentText()) self.progressBar.setValue(100) self.outShape.clear() - addToTOC = QMessageBox.question(self, self.tr("Coordinate statistics"), self.tr("Created output point shapefile:\n%s\n\nWould you like to add the new layer to the TOC?") % ( outPath ), QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton) - if addToTOC == QMessageBox.Yes: - vlayer = QgsVectorLayer(outPath, unicode(outName), "ogr") - QgsMapLayerRegistry.instance().addMapLayers([vlayer]) + if self.addToCanvasCheck.isChecked(): + addCanvasCheck = ftools_utils.addShapeToCanvas(unicode(outPath)) + if not addCanvasCheck: + QMessageBox.warning( self, self.tr("Coordinate statistics"), self.tr( "Error loading output shapefile:\n%s" ) % ( unicode( outPath ) )) self.populateLayers() + else: + QMessageBox.information(self, self.tr("Coordinate statistics"),self.tr("Created output shapefile:\n%s" ) % ( unicode( outPath ))) self.progressBar.setValue(0) self.buttonOk.setEnabled( True ) diff --git a/python/plugins/fTools/tools/doPointsInPolygon.py b/python/plugins/fTools/tools/doPointsInPolygon.py index 6782b1ba3be..66a9125b14f 100644 --- a/python/plugins/fTools/tools/doPointsInPolygon.py +++ b/python/plugins/fTools/tools/doPointsInPolygon.py @@ -112,16 +112,13 @@ class Dialog(QDialog, Ui_Dialog): def processFinished(self): self.stopProcessing() - - addToTOC = QMessageBox.question(self, self.tr("Count Points in Polygon"), - self.tr("Created output shapefile:\n%s\n\nWould you like to add the new layer to the TOC?") % (self.outShape.text()), - QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton) - if addToTOC == QMessageBox.Yes: - fileInfo = QFileInfo( self.outShape.text() ) - layerName = fileInfo.completeBaseName() - layer = QgsVectorLayer(self.outShape.text(), layerName, "ogr") - QgsMapLayerRegistry.instance().addMapLayers([layer]) + if self.addToCanvasCheck.isChecked(): + addCanvasCheck = ftools_utils.addShapeToCanvas(unicode(self.outShape.text())) + if not addCanvasCheck: + QMessageBox.warning( self, self.tr("Count Points in Polygon"), self.tr( "Error loading output shapefile:\n%s" ) % ( unicode( outPath ) )) self.populateLayers() + else: + QMessageBox.information(self, self.tr("Count Points in Polygon"),self.tr("Created output shapefile:\n%s" ) % ( unicode( self.outShape.text() ))) self.restoreGui() diff --git a/python/plugins/fTools/tools/doRandPoints.py b/python/plugins/fTools/tools/doRandPoints.py index c1da9922f9e..d680e082699 100644 --- a/python/plugins/fTools/tools/doRandPoints.py +++ b/python/plugins/fTools/tools/doRandPoints.py @@ -119,12 +119,13 @@ class Dialog(QDialog, Ui_Dialog): if self.randomize(inLayer, outPath, minimum, design, value): self.progressBar.setValue(100) self.outShape.clear() - addToTOC = QMessageBox.question(self, self.tr("Random Points"), - self.tr("Created output point shapefile:\n%s\n\nWould you like to add the new layer to the TOC?") % (outPath), QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton) - if addToTOC == QMessageBox.Yes: - self.vlayer = QgsVectorLayer(outPath, unicode(outName), "ogr") - QgsMapLayerRegistry.instance().addMapLayers([self.vlayer]) - self.populateLayers() + if self.addToCanvasCheck.isChecked(): + addCanvasCheck = ftools_utils.addShapeToCanvas(unicode(outPath)) + if not addCanvasCheck: + QMessageBox.warning( self, self.tr("Random Points"), self.tr( "Error loading output shapefile:\n%s" ) % ( unicode( outPath ) )) + self.populateLayers() + else: + QMessageBox.information(self, self.tr("Random Points"),self.tr("Created output shapefile:\n%s" ) % ( unicode( outPath ))) self.progressBar.setValue(0) self.buttonOk.setEnabled( True ) diff --git a/python/plugins/fTools/tools/doRegPoints.py b/python/plugins/fTools/tools/doRegPoints.py index 6533c375c67..94433660408 100644 --- a/python/plugins/fTools/tools/doRegPoints.py +++ b/python/plugins/fTools/tools/doRegPoints.py @@ -84,11 +84,13 @@ class Dialog(QDialog, Ui_Dialog): print crs.isValid() if not crs.isValid(): crs = None self.regularize(boundBox, outPath, offset, value, self.rdoSpacing.isChecked(), self.spnInset.value(), crs) - addToTOC = QMessageBox.question(self, self.tr("Generate Regular Points"), self.tr("Created output point shapefile:\n%s\n\nWould you like to add the new layer to the TOC?") % ( outPath ), QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton) - if addToTOC == QMessageBox.Yes: - self.vlayer = QgsVectorLayer(outPath, unicode(outName), "ogr") - QgsMapLayerRegistry.instance().addMapLayers([self.vlayer]) + if self.addToCanvasCheck.isChecked(): + addCanvasCheck = ftools_utils.addShapeToCanvas(unicode(outPath)) + if not addCanvasCheck: + QMessageBox.warning( self, self.tr("Generate Regular Points"), self.tr( "Error loading output shapefile:\n%s" ) % ( unicode( outPath ) )) self.populateLayers() + else: + QMessageBox.information(self, self.tr("Generate Regular Points"),self.tr("Created output shapefile:\n%s" ) % ( unicode( outPath ))) self.progressBar.setValue(0) self.buttonOk.setEnabled( True ) diff --git a/python/plugins/fTools/tools/doSumLines.py b/python/plugins/fTools/tools/doSumLines.py index 2490408a6a3..9e7c8141ff9 100644 --- a/python/plugins/fTools/tools/doSumLines.py +++ b/python/plugins/fTools/tools/doSumLines.py @@ -73,11 +73,13 @@ class Dialog(QDialog, Ui_Dialog): outName = ftools_utils.getShapefileName( outPath ) self.compute(inPoly, inLns, inField, outPath, self.progressBar) self.outShape.clear() - addToTOC = QMessageBox.question(self, self.tr("Sum line lengths"), self.tr("Created output shapefile:\n%s\n\nWould you like to add the new layer to the TOC?") % (unicode(outPath)), QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton) - if addToTOC == QMessageBox.Yes: - self.vlayer = QgsVectorLayer(outPath, unicode(outName), "ogr") - QgsMapLayerRegistry.instance().addMapLayers([self.vlayer]) + if self.addToCanvasCheck.isChecked(): + addCanvasCheck = ftools_utils.addShapeToCanvas(unicode(outPath)) + if not addCanvasCheck: + QMessageBox.warning( self, self.tr("Sum line lengths"), self.tr( "Error loading output shapefile:\n%s" ) % ( unicode( outPath ) )) self.populateLayers() + else: + QMessageBox.information(self, self.tr("Sum line lengths"),self.tr("Created output shapefile:\n%s" ) % ( unicode( outPath ))) self.progressBar.setValue(0) self.buttonOk.setEnabled( True ) diff --git a/python/plugins/fTools/tools/doValidate.py b/python/plugins/fTools/tools/doValidate.py index 33724b775a4..ea30317f8fb 100644 --- a/python/plugins/fTools/tools/doValidate.py +++ b/python/plugins/fTools/tools/doValidate.py @@ -135,6 +135,7 @@ class ValidateDialog( QDialog, Ui_Dialog ): if self.ckBoxShpError.isChecked(): self.lineEditShpError.setEnabled( True ) self.browseShpError.setEnabled( True ) + self.addToCanvasCheck.setEnabled(True) self.tblUnique.setEnabled( False ) self.lstCount.setEnabled( False ) self.label_2.setEnabled( False ) @@ -143,6 +144,7 @@ class ValidateDialog( QDialog, Ui_Dialog ): else: self.lineEditShpError.setEnabled( False ) self.browseShpError.setEnabled( False ) + self.addToCanvasCheck.setEnabled(False) self.tblUnique.setEnabled( True ) self.lstCount.setEnabled( True ) self.label_2.setEnabled( True ) @@ -227,13 +229,12 @@ class ValidateDialog( QDialog, Ui_Dialog ): self.buttonOk.setEnabled( True ) if success == "writeShape": extra = "" - addToTOC = QMessageBox.question( self, self.tr("Geometry"), - self.tr( "Created output shapefile:\n%s\n%s\n\nWould you like to add the new layer to the TOC?" ) % ( unicode( self.shapefileName ), extra ), - QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton ) - if addToTOC == QMessageBox.Yes: - if not ftools_utils.addShapeToCanvas( unicode( self.shapefileName ) ): - QMessageBox.warning( self, self.tr( "Geometry"), - self.tr( "Error loading output shapefile:\n%s" ) % ( unicode( self.shapefileName ) ) ) + if self.addToCanvasCheck.isChecked(): + addCanvasCheck = ftools_utils.addShapeToCanvas(unicode(self.shapefileName)) + if not addCanvasCheck: + QMessageBox.warning( self, self.tr("Geometry"), self.tr( "Error loading output shapefile:\n%s" ) % ( unicode( self.shapefileName ) )) + else: + QMessageBox.information(self, self.tr("Geometry"),self.tr("Created output shapefile:\n%s\n%s" ) % ( unicode( self.shapefileName ), extra)) else: self.tblUnique.setColumnCount( 2 ) count = 0 diff --git a/python/plugins/fTools/tools/doVectorGrid.py b/python/plugins/fTools/tools/doVectorGrid.py index 04558d1aa69..e6a9a24e791 100644 --- a/python/plugins/fTools/tools/doVectorGrid.py +++ b/python/plugins/fTools/tools/doVectorGrid.py @@ -146,10 +146,13 @@ class Dialog(QDialog, Ui_Dialog): QApplication.setOverrideCursor(Qt.WaitCursor) self.compute( boundBox, xSpace, ySpace, polygon ) QApplication.restoreOverrideCursor() - addToTOC = QMessageBox.question(self, self.tr("Generate Vector Grid"), self.tr("Created output shapefile:\n%s\n\nWould you like to add the new layer to the TOC?") % (unicode(self.shapefileName)), QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton) - if addToTOC == QMessageBox.Yes: - ftools_utils.addShapeToCanvas( self.shapefileName ) + if self.addToCanvasCheck.isChecked(): + addCanvasCheck = ftools_utils.addShapeToCanvas(unicode(self.shapefileName)) + if not addCanvasCheck: + QMessageBox.warning( self, self.tr("Generate Vector Grid"), self.tr( "Error loading output shapefile:\n%s" ) % ( unicode( self.shapefileName ) )) self.populateLayers() + else: + QMessageBox.information(self, self.tr("Generate Vector Grid"),self.tr("Created output shapefile:\n%s" ) % ( unicode( self.shapefileName ))) self.progressBar.setValue( 0 ) self.buttonOk.setEnabled( True ) diff --git a/python/plugins/fTools/tools/doVisual.py b/python/plugins/fTools/tools/doVisual.py index c427b1b88e2..58b5aa26101 100644 --- a/python/plugins/fTools/tools/doVisual.py +++ b/python/plugins/fTools/tools/doVisual.py @@ -48,6 +48,7 @@ class VisualDialog( QDialog, Ui_Dialog ): self.lineEditShpError.hide() self.label_6.hide() self.line.hide() + self.addToCanvasCheck.hide() self.buttonBox_2.setOrientation(Qt.Horizontal) if self.myFunction == 2 or self.myFunction == 3: diff --git a/python/plugins/fTools/tools/frmEliminate.ui b/python/plugins/fTools/tools/frmEliminate.ui index 4b4fe44eda6..34a4a6f6c24 100644 --- a/python/plugins/fTools/tools/frmEliminate.ui +++ b/python/plugins/fTools/tools/frmEliminate.ui @@ -7,7 +7,7 @@ 0 0 436 - 218 + 242 @@ -38,7 +38,7 @@ - + Browse diff --git a/python/plugins/fTools/tools/frmGeometry.ui b/python/plugins/fTools/tools/frmGeometry.ui index 591cf507dca..d485b191e03 100644 --- a/python/plugins/fTools/tools/frmGeometry.ui +++ b/python/plugins/fTools/tools/frmGeometry.ui @@ -10,7 +10,7 @@ 0 0 390 - 331 + 420 @@ -20,7 +20,7 @@ true - + @@ -34,105 +34,7 @@ - - - - Qt::Horizontal - - - - Unique ID field - - - - - - - - - Qt::Vertical - - - - 20 - 21 - - - - - - - - - - Save to new shapefile - - - - - - - Output point shapefile - - - - - - - - - true - - - - - - - Browse - - - - - - - - - - - Qt::Vertical - - - - 20 - 21 - - - - - - - - 0 - - - Qt::AlignCenter - - - true - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Close|QDialogButtonBox::Ok - - - - + @@ -175,7 +77,20 @@ - + + + + Qt::Horizontal + + + + Unique ID field + + + + + + @@ -189,20 +104,116 @@ - + + + + Use only selected features + + + + Calculate extent for each feature separately - - + + + + Qt::Vertical + + + + 20 + 21 + + + + + + + + + + Save to new shapefile + + + + + + + Output point shapefile + + + + + + + + + true + + + + + + + Browse + + + + + + + + + + + Qt::Vertical + + + + 20 + 21 + + + + + + - Use only selected features + Add result to canvas + + + + + + 0 + + + Qt::AlignCenter + + + true + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Close|QDialogButtonBox::Ok + + + + + diff --git a/python/plugins/fTools/tools/frmGeoprocessing.ui b/python/plugins/fTools/tools/frmGeoprocessing.ui index 4195230a471..ac483deecc6 100644 --- a/python/plugins/fTools/tools/frmGeoprocessing.ui +++ b/python/plugins/fTools/tools/frmGeoprocessing.ui @@ -7,7 +7,7 @@ 0 0 422 - 448 + 497 @@ -20,7 +20,7 @@ Geoprocessing - + @@ -41,7 +41,7 @@ - + @@ -52,7 +52,7 @@ - + @@ -73,7 +73,7 @@ - + @@ -84,7 +84,28 @@ - + + + + + + Segments to approximate + + + + + + + 5 + + + 5 + + + + + + @@ -124,7 +145,7 @@ - + @@ -172,7 +193,7 @@ - + 6 @@ -192,7 +213,7 @@ - + Qt::Vertical @@ -205,7 +226,7 @@ - + @@ -234,42 +255,32 @@ - - - - 0 - - - Qt::AlignCenter - - - Qt::Horizontal + + + + Add result to canvas - - - - QDialogButtonBox::Close|QDialogButtonBox::Ok - - - - - + + - - - Segments to approximate + + + 0 + + + Qt::AlignCenter + + + Qt::Horizontal - - - 5 - - - 5 + + + QDialogButtonBox::Close|QDialogButtonBox::Ok diff --git a/python/plugins/fTools/tools/frmIntersectLines.ui b/python/plugins/fTools/tools/frmIntersectLines.ui index b139f5165e6..a7ea55f5bbd 100644 --- a/python/plugins/fTools/tools/frmIntersectLines.ui +++ b/python/plugins/fTools/tools/frmIntersectLines.ui @@ -1,86 +1,87 @@ - + + Dialog - - + + Qt::NonModal - + 0 0 382 - 369 + 411 - + Locate Line Intersections - + true - - - + + + - - + + Input line layer - + - - + + - - + + Input unique ID field - + - - + + - - + + Intersect line layer - + - - + + - - + + Intersect unique ID field - + - + - + Qt::Vertical - + 20 12 @@ -88,27 +89,27 @@ - - + + - - + + Output Shapefile - + - - + + true - - + + Browse @@ -117,28 +118,39 @@ - - - - 0 - - - Qt::AlignCenter - - - true + + + + Add result to canvas - - - - Qt::Horizontal - - - QDialogButtonBox::Close|QDialogButtonBox::Ok - - + + + + + + 0 + + + Qt::AlignCenter + + + true + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Close|QDialogButtonBox::Ok + + + + @@ -150,11 +162,11 @@ Dialog accept() - + 133 512 - + 215 290 @@ -166,11 +178,11 @@ Dialog close() - + 59 512 - + 132 239 diff --git a/python/plugins/fTools/tools/frmMeanCoords.ui b/python/plugins/fTools/tools/frmMeanCoords.ui index b6a1398716f..2be91e556a4 100644 --- a/python/plugins/fTools/tools/frmMeanCoords.ui +++ b/python/plugins/fTools/tools/frmMeanCoords.ui @@ -1,111 +1,125 @@ - + + Dialog - - + + Qt::NonModal - + 0 0 374 - 346 + 390 - + Generate Centroids - + true - - - + + + - - + + Input vector layer - + - - + + - - + + Weight field - + - - + + - - + + Unique ID field - + - - + + - - + + Number of standard deviations - - + + Std. Dev. - + 1 - + 3 - - + + + + Qt::Vertical + + + + 20 + 40 + + + + + + - - + + Output shapefile - + - - + + true - - + + Browse @@ -114,28 +128,39 @@ - - - - 0 - - - Qt::AlignCenter - - - true + + + + Add result to canvas - - - - Qt::Horizontal - - - QDialogButtonBox::Close|QDialogButtonBox::Ok - - + + + + + + 0 + + + Qt::AlignCenter + + + true + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Close|QDialogButtonBox::Ok + + + + @@ -147,11 +172,11 @@ Dialog accept() - + 124 355 - + 215 290 @@ -163,11 +188,11 @@ Dialog close() - + 50 350 - + 132 239 diff --git a/python/plugins/fTools/tools/frmPointDistance.ui b/python/plugins/fTools/tools/frmPointDistance.ui index 9ab72c0178b..3810f1af648 100644 --- a/python/plugins/fTools/tools/frmPointDistance.ui +++ b/python/plugins/fTools/tools/frmPointDistance.ui @@ -1,126 +1,127 @@ - + + Dialog - - + + Qt::NonModal - + 0 0 382 - 529 + 497 - + Create Distance Matrix - + true - - - + + + - - + + Input point layer - + - - + + - - + + Input unique ID field - + - - + + - - + + Target point layer - + - - + + - - + + Target unique ID field - + - - - + + + Output matrix type - - - - + + + + Linear (N*k x 3) distance matrix - + true - - - + + + Standard (N x T) distance matrix - - - + + + Summary distance matrix (mean, std. dev., min, max) - - - + + + Use only the nearest (k) target points - - - + + + false - + 1 - + 9999 @@ -128,12 +129,12 @@ - + - + Qt::Vertical - + 20 16 @@ -141,27 +142,27 @@ - - + + - - + + Output distance matrix - + - - + + true - - + + Browse @@ -170,25 +171,25 @@ - - - + + + 0 - + Qt::AlignCenter - + true - - - + + + Qt::Horizontal - + QDialogButtonBox::Close|QDialogButtonBox::Ok @@ -203,11 +204,11 @@ Dialog accept() - + 142 543 - + 215 290 @@ -219,11 +220,11 @@ Dialog close() - + 68 543 - + 132 239 @@ -235,11 +236,11 @@ spnNearest setEnabled(bool) - + 138 370 - + 361 370 @@ -251,11 +252,11 @@ chkNearest setDisabled(bool) - + 87 298 - + 78 359 @@ -267,11 +268,11 @@ spnNearest setDisabled(bool) - + 99 305 - + 304 356 diff --git a/python/plugins/fTools/tools/frmPointsInPolygon.ui b/python/plugins/fTools/tools/frmPointsInPolygon.ui index 408c0da51fd..ea5400b1bf9 100644 --- a/python/plugins/fTools/tools/frmPointsInPolygon.ui +++ b/python/plugins/fTools/tools/frmPointsInPolygon.ui @@ -7,14 +7,14 @@ 0 0 400 - 300 + 351 Count Points In Polygons - + @@ -28,7 +28,7 @@ - + @@ -42,7 +42,7 @@ - + @@ -76,7 +76,7 @@ - + @@ -95,7 +95,7 @@ - + Browse @@ -106,27 +106,38 @@ - - - 0 - - - Qt::AlignCenter - - - true + + + Add result to canvas - - - - Qt::Horizontal - - - QDialogButtonBox::Close|QDialogButtonBox::Ok - - + + + + + + 0 + + + Qt::AlignCenter + + + true + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Close|QDialogButtonBox::Ok + + + + diff --git a/python/plugins/fTools/tools/frmRandPoints.ui b/python/plugins/fTools/tools/frmRandPoints.ui index 5e766e06af0..407c33f37cd 100644 --- a/python/plugins/fTools/tools/frmRandPoints.ui +++ b/python/plugins/fTools/tools/frmRandPoints.ui @@ -10,7 +10,7 @@ 0 0 384 - 435 + 470 @@ -33,10 +33,10 @@ - + - + Sample Size @@ -176,6 +176,19 @@ + + + Qt::Vertical + + + + 20 + 40 + + + + + @@ -188,7 +201,7 @@ - + @@ -198,7 +211,7 @@ - + Browse @@ -206,28 +219,39 @@ - - - - 24 - - - Qt::AlignCenter - - - true + + + + Add result to canvas - - - - Qt::Horizontal - - - QDialogButtonBox::Close|QDialogButtonBox::Ok - - + + + + + + 24 + + + Qt::AlignCenter + + + true + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Close|QDialogButtonBox::Ok + + + + diff --git a/python/plugins/fTools/tools/frmRandom.ui b/python/plugins/fTools/tools/frmRandom.ui index 2ee4232c01b..61f77282a0d 100644 --- a/python/plugins/fTools/tools/frmRandom.ui +++ b/python/plugins/fTools/tools/frmRandom.ui @@ -7,7 +7,7 @@ 0 0 374 - 287 + 233 diff --git a/python/plugins/fTools/tools/frmReProject.ui b/python/plugins/fTools/tools/frmReProject.ui index bf00065856e..bdc0d939b6c 100644 --- a/python/plugins/fTools/tools/frmReProject.ui +++ b/python/plugins/fTools/tools/frmReProject.ui @@ -1,112 +1,121 @@ - + + Dialog - - + + Qt::WindowModal - + 0 0 377 - 473 + 476 - + Projection Management Tool - + true - - - - - Input vector layer - - + + + + + + + Input vector layer + + + + + + + - - + + + + + + Input spatial reference system + + + + + + + true + + + + - - - - Input spatial reference system - - - - - - - true - - - - - - + + + Output spatial reference system - - - - + + + + Use predefined spatial reference system - + true - - + + - - + + true - - + + Choose - - - + + + Import spatial reference system from existing layer - - - + + + false - - - + + + false - + Import spatial reference system - - - + + + false - + true @@ -114,53 +123,74 @@ - - - - Output Shapefile - - - - - + + - - + + + Output Shapefile + + + + + + + + + true + + + + + + + Browse + + + + + + + + + + + + + 0 + + + Qt::AlignCenter + + true - - - Browse + + + Qt::Horizontal + + + QDialogButtonBox::Close|QDialogButtonBox::Ok - - - - 0 + + + + Qt::Vertical - - Qt::AlignCenter + + + 20 + 40 + - - true - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Close|QDialogButtonBox::Ok - - + @@ -172,11 +202,11 @@ Dialog accept() - + 133 470 - + 215 290 @@ -188,11 +218,11 @@ Dialog close() - + 59 470 - + 132 239 @@ -204,43 +234,27 @@ txtProjection setEnabled(bool) - + 122 170 - + 127 202 - - rdoProjection - toggled(bool) - btnProjection - setEnabled(bool) - - - 228 - 170 - - - 355 - 204 - - - radioButton_2 toggled(bool) cmbLayer setEnabled(bool) - + 94 235 - + 95 265 @@ -252,11 +266,11 @@ label_5 setEnabled(bool) - + 37 232 - + 46 281 @@ -268,11 +282,11 @@ outRef setEnabled(bool) - + 24 226 - + 30 306 diff --git a/python/plugins/fTools/tools/frmRegPoints.ui b/python/plugins/fTools/tools/frmRegPoints.ui index 60b325116b4..e27ebd43511 100644 --- a/python/plugins/fTools/tools/frmRegPoints.ui +++ b/python/plugins/fTools/tools/frmRegPoints.ui @@ -10,7 +10,7 @@ 0 0 373 - 451 + 485 @@ -20,7 +20,7 @@ true - + Area @@ -105,7 +105,7 @@ - + Grid Spacing @@ -208,7 +208,7 @@ - + @@ -218,7 +218,7 @@ - + Browse @@ -227,27 +227,38 @@ - - - 0 - - - Qt::AlignCenter - - - true + + + Add result to canvas - - - - Qt::Horizontal - - - QDialogButtonBox::Close|QDialogButtonBox::Ok - - + + + + + + 0 + + + Qt::AlignCenter + + + true + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Close|QDialogButtonBox::Ok + + + + diff --git a/python/plugins/fTools/tools/frmSpatialJoin.ui b/python/plugins/fTools/tools/frmSpatialJoin.ui index 4db7c2acab6..82a7b432507 100644 --- a/python/plugins/fTools/tools/frmSpatialJoin.ui +++ b/python/plugins/fTools/tools/frmSpatialJoin.ui @@ -10,7 +10,7 @@ 0 0 439 - 466 + 525 @@ -172,7 +172,7 @@ - + Browse @@ -208,6 +208,19 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + diff --git a/python/plugins/fTools/tools/frmSumLines.ui b/python/plugins/fTools/tools/frmSumLines.ui index 1ee138224de..5fafddde95d 100644 --- a/python/plugins/fTools/tools/frmSumLines.ui +++ b/python/plugins/fTools/tools/frmSumLines.ui @@ -1,51 +1,80 @@ - + + Dialog - - + + Qt::NonModal - + 0 0 382 - 303 + 335 - + Sum Line Length In Polygons - + true - - - + + + - - + + + Input polygon vector layer + + + + + + + + + + + + + + Input line vector layer + + + + + + + + + + + + + Output summed length field name - - + + LENGTH - + 10 - + - + Qt::Vertical - + 20 21 @@ -53,27 +82,27 @@ - - + + - - + + Output Shapefile - + - - + + true - - + + Browse @@ -82,55 +111,38 @@ - - + + + + Add result to canvas + + + + + - - - Input polygon vector layer + + + 24 + + + Qt::AlignCenter + + + true - - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Close|QDialogButtonBox::Ok - - - - - - - 24 - - - Qt::AlignCenter - - - true - - - - - - - - - Input line vector layer + + + Qt::Horizontal + + + QDialogButtonBox::Close|QDialogButtonBox::Ok - - - @@ -138,6 +150,7 @@ progressBar + addToCanvasCheck @@ -147,11 +160,11 @@ Dialog accept() - + 133 512 - + 215 290 @@ -163,11 +176,11 @@ Dialog close() - + 59 512 - + 132 239 diff --git a/python/plugins/fTools/tools/frmVectorGrid.ui b/python/plugins/fTools/tools/frmVectorGrid.ui index 2b899b3c007..cf0d1b9280a 100644 --- a/python/plugins/fTools/tools/frmVectorGrid.ui +++ b/python/plugins/fTools/tools/frmVectorGrid.ui @@ -10,7 +10,7 @@ 0 0 489 - 475 + 507 @@ -20,7 +20,7 @@ true - + Grid extent @@ -173,7 +173,7 @@ - + Parameters @@ -304,6 +304,19 @@ + + + Qt::Vertical + + + + 20 + 40 + + + + + @@ -316,7 +329,7 @@ - + @@ -326,7 +339,7 @@ - + Browse @@ -334,28 +347,39 @@ - - - - 0 - - - Qt::AlignCenter - - - true + + + + Add result to canvas - - - - Qt::Horizontal - - - QDialogButtonBox::Close|QDialogButtonBox::Ok - - + + + + + + 0 + + + Qt::AlignCenter + + + true + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Close|QDialogButtonBox::Ok + + + + diff --git a/python/plugins/fTools/tools/frmVectorSplit.ui b/python/plugins/fTools/tools/frmVectorSplit.ui index f87a8b316b5..c5e46d7b6f9 100644 --- a/python/plugins/fTools/tools/frmVectorSplit.ui +++ b/python/plugins/fTools/tools/frmVectorSplit.ui @@ -30,7 +30,7 @@ - + Browse @@ -88,7 +88,7 @@ - + Qt::Vertical diff --git a/python/plugins/fTools/tools/frmVisual.ui b/python/plugins/fTools/tools/frmVisual.ui index 3d2b21c172f..0cd75c76e63 100644 --- a/python/plugins/fTools/tools/frmVisual.ui +++ b/python/plugins/fTools/tools/frmVisual.ui @@ -10,7 +10,7 @@ 0 0 370 - 484 + 531 @@ -34,6 +34,17 @@ + + + + + + Use only selected features + + + + + @@ -114,6 +125,20 @@ + + + + Press Ctrl+C to copy results to the clipboard + + + + + + + Qt::Horizontal + + + @@ -121,10 +146,10 @@ - - + + - Press Ctrl+C to copy results to the clipboard + Output point shapefile @@ -146,25 +171,14 @@ - - + + - Output point shapefile + Add result to canvas - - - - - - Use only selected features - - - - - - + @@ -199,13 +213,6 @@ - - - - Qt::Horizontal - - -