Skip to content
Permalink
Browse files

change shortcut for vector menu from V to e (conflict with View)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14676 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
cfarmer
cfarmer committed Nov 15, 2010
1 parent 091cbd0 commit 3add806c94e671d05983286d583422c3f522e9e8
Showing with 11 additions and 4 deletions.
  1. +11 −4 python/plugins/fTools/fTools.py
@@ -46,7 +46,7 @@
import doIntersectLines, doJoinAttributes, doSelectByLocation, doVectorSplit, doMeanCoords
import doPointDistance, doPointsInPolygon, doRandom, doRandPoints, doRegPoints, doDefineProj
import doReProject, doSpatialJoin, doSubsetSelect, doSumLines, doVectorGrid, doMergeShapes
import doAbout, doValidate
import doAbout, doValidate, doSimplify

class fToolsPlugin:
def __init__( self,iface ):
@@ -103,6 +103,7 @@ def updateThemeIcons( self, theme ):
self.checkGeom.setIcon( QIcon( self.getThemeIcon( "check_geometry.png") ) )
self.centroids.setIcon( QIcon( self.getThemeIcon( "centroids.png") ) )
self.delaunay.setIcon( QIcon( self.getThemeIcon( "delaunay.png") ) )
self.voronoi.setIcon( QIcon( self.getThemeIcon( "delaunay.png") ) )
self.extNodes.setIcon( QIcon( self.getThemeIcon( "extract_nodes.png") ) )
self.simplify.setIcon( QIcon( self.getThemeIcon( "simplify.png") ) )
self.multiToSingle.setIcon( QIcon( self.getThemeIcon( "multi_to_single.png") ) )
@@ -126,7 +127,7 @@ def initGui( self ):
return None
QObject.connect( self.iface, SIGNAL( "currentThemeChanged ( QString )" ), self.updateThemeIcons )
self.menu = QMenu()
self.menu.setTitle( QCoreApplication.translate( "fTools", "&Vector" ) )
self.menu.setTitle( QCoreApplication.translate( "fTools", "V&ector" ) )

self.analysisMenu = QMenu( QCoreApplication.translate( "fTools", "&Analysis Tools" ) )
self.distMatrix = QAction( QCoreApplication.translate( "fTools", "Distance matrix" ),self.iface.mainWindow( ) )
@@ -168,12 +169,13 @@ def initGui( self ):
self.checkGeom = QAction( QCoreApplication.translate( "fTools", "Check geometry validity" ),self.iface.mainWindow() )
self.centroids = QAction( QCoreApplication.translate( "fTools", "Polygon centroids" ),self.iface.mainWindow() )
self.delaunay = QAction( QCoreApplication.translate( "fTools", "Delaunay triangulation" ),self.iface.mainWindow() )
self.voronoi = QAction( QCoreApplication.translate( "fTools", "Voronoi Polygons" ),self.iface.mainWindow() )
self.extNodes = QAction( QCoreApplication.translate( "fTools", "Extract nodes" ),self.iface.mainWindow() )
self.simplify = QAction( QCoreApplication.translate( "fTools", "Simplify geometries" ),self.iface.mainWindow() )
self.multiToSingle = QAction( QCoreApplication.translate( "fTools", "Multipart to singleparts" ),self.iface.mainWindow() )
self.singleToMulti = QAction( QCoreApplication.translate( "fTools", "Singleparts to multipart" ),self.iface.mainWindow() )
self.polysToLines = QAction( QCoreApplication.translate( "fTools", "Polygons to lines" ),self.iface.mainWindow() )
self.conversionMenu.addActions( [ self.checkGeom, self.compGeo, self.centroids, self.delaunay,
self.conversionMenu.addActions( [ self.checkGeom, self.compGeo, self.centroids, self.delaunay, self.voronoi,
self.simplify, self.multiToSingle, self.singleToMulti, self.polysToLines, self.extNodes] )

self.dataManageMenu = QMenu( QCoreApplication.translate( "fTools", "&Data Management Tools") )
@@ -232,6 +234,7 @@ def initGui( self ):
QObject.connect( self.simplify, SIGNAL("triggered()"), self.dosimplify )
QObject.connect( self.centroids, SIGNAL("triggered()"), self.docentroids )
QObject.connect( self.delaunay, SIGNAL("triggered()"), self.dodelaunay )
QObject.connect( self.voronoi, SIGNAL("triggered()"), self.dovoronoi )
QObject.connect( self.polysToLines, SIGNAL("triggered()"), self.dopolysToLines )
QObject.connect( self.compGeo, SIGNAL("triggered()"), self.docompGeo )
QObject.connect( self.extNodes, SIGNAL("triggered()"), self.doextNodes )
@@ -249,7 +252,7 @@ def unload( self ):
pass

def dosimplify( self ):
d = doGeometry.GeometryDialog( self.iface, 6 )
d = doSimplify.Dialog( self.iface )
d.exec_()

def dopolysToLines( self ):
@@ -324,6 +327,10 @@ def docentroids( self ):
def dodelaunay( self ):
d = doGeometry.GeometryDialog( self.iface, 8 )
d.exec_()

def dovoronoi( self ):
d = doGeometry.GeometryDialog( self.iface, 10 )
d.exec_()

def doextent( self ):
d = doGeometry.GeometryDialog( self.iface, 9 )

0 comments on commit 3add806

Please sign in to comment.
You can’t perform that action at this time.