Skip to content

Commit

Permalink
[FEATURE] layers now unified to one toolbar and removed hide show all…
Browse files Browse the repository at this point in the history
… layers and add to overview icons from toolbar (as discussed at hackfest)

git-svn-id: http://svn.osgeo.org/qgis/trunk@12073 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Nov 10, 2009
1 parent 5256e57 commit 49e26fa
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
25 changes: 13 additions & 12 deletions src/app/qgisapp.cpp
Expand Up @@ -1374,26 +1374,27 @@ void QgisApp::createToolBars()
mFileToolBar->addAction( mActionSaveProject );
mFileToolBar->addAction( mActionSaveProjectAs );
mFileToolBar->addAction( mActionNewPrintComposer );
mFileToolBar->addAction( mActionAddOgrLayer );
mFileToolBar->addAction( mActionAddRasterLayer );
#ifdef HAVE_POSTGRESQL
mFileToolBar->addAction( mActionAddPgLayer );
#endif
#ifdef HAVE_SPATIALITE
mFileToolBar->addAction( mActionAddSpatiaLiteLayer );
#endif
mFileToolBar->addAction( mActionAddWmsLayer );
mToolbarMenu->addAction( mFileToolBar->toggleViewAction() );
//
// Layer Toolbar
mLayerToolBar = addToolBar( tr( "Manage Layers" ) );
mLayerToolBar->setIconSize( myIconSize );
mLayerToolBar->setObjectName( "LayerToolBar" );
mLayerToolBar->addAction( mActionAddOgrLayer );
mLayerToolBar->addAction( mActionAddRasterLayer );
#ifdef HAVE_POSTGRESQL
mLayerToolBar->addAction( mActionAddPgLayer );
#endif
#ifdef HAVE_SPATIALITE
mLayerToolBar->addAction( mActionAddSpatiaLiteLayer );
#endif
mLayerToolBar->addAction( mActionAddWmsLayer );
mLayerToolBar->addAction( mActionNewVectorLayer );
mLayerToolBar->addAction( mActionRemoveLayer );
mLayerToolBar->addAction( mActionAddToOverview );
mLayerToolBar->addAction( mActionShowAllLayers );
mLayerToolBar->addAction( mActionHideAllLayers );
//commented out for QGIS 1.4 by Tim
//mLayerToolBar->addAction( mActionAddToOverview );
//mLayerToolBar->addAction( mActionShowAllLayers );
//mLayerToolBar->addAction( mActionHideAllLayers );
mToolbarMenu->addAction( mLayerToolBar->toggleViewAction() );
//
// Digitizing Toolbar
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/gps_importer/qgsgpsplugin.cpp
Expand Up @@ -96,7 +96,7 @@ void QgsGPSPlugin::initGui()
connect( mQActionPointer, SIGNAL( triggered() ), this, SLOT( run() ) );
connect( mCreateGPXAction, SIGNAL( triggered() ), this, SLOT( createGPX() ) );

mQGisInterface->fileToolBar()->addAction( mQActionPointer );
mQGisInterface->layerToolBar()->addAction( mQActionPointer );
mQGisInterface->addPluginToMenu( tr( "&Gps" ), mQActionPointer );
mQGisInterface->addPluginToMenu( tr( "&Gps" ), mCreateGPXAction );

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/wfs/qgswfsplugin.cpp
Expand Up @@ -51,7 +51,7 @@ void QgsWFSPlugin::initGui()
mWfsDialogAction = new QAction( QIcon(), tr( "&Add WFS layer" ), 0 );
setCurrentTheme( "" );
QObject::connect( mWfsDialogAction, SIGNAL( triggered() ), this, SLOT( showSourceDialog() ) );
mIface->fileToolBar()->addAction( mWfsDialogAction );
mIface->layerToolBar()->addAction( mWfsDialogAction );
mIface->addPluginToMenu( tr( "&Add WFS layer" ), mWfsDialogAction );
// this is called when the icon theme is changed
connect( mIface, SIGNAL( currentThemeChanged( QString ) ), this, SLOT( setCurrentTheme( QString ) ) );
Expand Down

0 comments on commit 49e26fa

Please sign in to comment.