Skip to content

Commit

Permalink
apply patch #2938
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@14820 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty committed Dec 1, 2010
1 parent 9a0b14f commit 2d67c05
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 2d67c05

Please sign in to comment.