Skip to content
Permalink
Browse files

apply patch #2938

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14820 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty
borysiasty committed Dec 1, 2010
1 parent 0c2af2f commit 557f4655f9c08a047964358bd5dcbd13614c45b2
Showing with 10 additions and 6 deletions.
  1. +10 −6 src/app/qgisapp.cpp
@@ -894,33 +894,37 @@ void QgisApp::createActions()
mActionZoomOut->setStatusTip( tr( "Zoom Out" ) );
connect( mActionZoomOut, SIGNAL( triggered() ), this, SLOT( zoomOut() ) );

mActionSelect = new QAction( getThemeIcon( "mActionSelect.png" ), tr( "Select Features" ) , this );
QString singleSelectOptTip( tr( ", hold ctrl to add/subtract current selection" ) );

mActionSelect = new QAction( getThemeIcon( "mActionSelect.png" ), tr( "Select single feature" ) , this );
shortcuts->registerAction( mActionSelect );
mActionSelect->setStatusTip( tr( "Select Features" ) );
mActionSelect->setStatusTip( tr( "Select single features" ) + singleSelectOptTip );
connect( mActionSelect, SIGNAL( triggered() ), this, SLOT( select() ) );
mActionSelect->setEnabled( false );

QString selectOptionTip( tr( ", hold shift to select by containment" ) + singleSelectOptTip );

mActionSelectRectangle = new QAction( getThemeIcon( "mActionSelectRectangle.png" ), tr( "Select features by rectangle" ), this );
shortcuts->registerAction( mActionSelectRectangle );
mActionSelectRectangle->setStatusTip( tr( "Select features by rectangle" ) );
mActionSelectRectangle->setStatusTip( tr( "Select features by rectangle" ) + selectOptionTip );
connect( mActionSelectRectangle, SIGNAL( triggered() ), this, SLOT( selectByRectangle() ) );
mActionSelectRectangle->setEnabled( false );

mActionSelectPolygon = new QAction( getThemeIcon( "mActionSelectPolygon.png" ), tr( "Select features by polygon" ), this );
shortcuts->registerAction( mActionSelectPolygon );
mActionSelectPolygon->setStatusTip( tr( "Select features by polygon" ) );
mActionSelectPolygon->setStatusTip( tr( "Select features by polygon" ) + selectOptionTip );
connect( mActionSelectPolygon, SIGNAL( triggered() ), this, SLOT( selectByPolygon() ) );
mActionSelectPolygon->setEnabled( false );

mActionSelectFreehand = new QAction( getThemeIcon( "mActionSelectFreehand.png" ), tr( "Select features by freehand" ), this );
shortcuts->registerAction( mActionSelectFreehand );
mActionSelectFreehand->setStatusTip( tr( "Select features by freehand" ) );
mActionSelectFreehand->setStatusTip( tr( "Select features by freehand" ) + selectOptionTip );
connect( mActionSelectFreehand, SIGNAL( triggered() ), this, SLOT( selectByFreehand() ) );
mActionSelectFreehand->setEnabled( false );

mActionSelectRadius = new QAction( getThemeIcon( "mActionSelectRadius.png" ), tr( "Select features by radius" ), this );
shortcuts->registerAction( mActionSelectRadius );
mActionSelectRadius->setStatusTip( tr( "Select features by radius" ) );
mActionSelectRadius->setStatusTip( tr( "Select features by radius" ) + selectOptionTip );
connect( mActionSelectRadius, SIGNAL( triggered() ), this, SLOT( selectByRadius() ) );
mActionSelectRadius->setEnabled( false );

0 comments on commit 557f465

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