Skip to content

Commit

Permalink
Add 'Panel' to some panels, to make them distinguisable in context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
rduivenvoorde authored and m-kuhn committed Jul 24, 2015
1 parent 3d3d008 commit e4dac07
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/app/qgisapp.cpp
Expand Up @@ -640,12 +640,12 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
mSnappingDialog = new QgsSnappingDialog( this, mMapCanvas ); mSnappingDialog = new QgsSnappingDialog( this, mMapCanvas );
mSnappingDialog->setObjectName( "SnappingOption" ); mSnappingDialog->setObjectName( "SnappingOption" );


mBrowserWidget = new QgsBrowserDockWidget( tr( "Browser" ), this ); mBrowserWidget = new QgsBrowserDockWidget( tr( "Browser Panel" ), this );
mBrowserWidget->setObjectName( "Browser" ); mBrowserWidget->setObjectName( "Browser" );
addDockWidget( Qt::LeftDockWidgetArea, mBrowserWidget ); addDockWidget( Qt::LeftDockWidgetArea, mBrowserWidget );
mBrowserWidget->hide(); mBrowserWidget->hide();


mBrowserWidget2 = new QgsBrowserDockWidget( tr( "Browser (2)" ), this ); mBrowserWidget2 = new QgsBrowserDockWidget( tr( "Browser Panel (2)" ), this );
mBrowserWidget2->setObjectName( "Browser2" ); mBrowserWidget2->setObjectName( "Browser2" );
addDockWidget( Qt::LeftDockWidgetArea, mBrowserWidget2 ); addDockWidget( Qt::LeftDockWidgetArea, mBrowserWidget2 );
mBrowserWidget2->hide(); mBrowserWidget2->hide();
Expand All @@ -665,7 +665,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
// create the GPS tool on starting QGIS - this is like the browser // create the GPS tool on starting QGIS - this is like the browser
mpGpsWidget = new QgsGPSInformationWidget( mMapCanvas ); mpGpsWidget = new QgsGPSInformationWidget( mMapCanvas );
//create the dock widget //create the dock widget
mpGpsDock = new QDockWidget( tr( "GPS Information" ), this ); mpGpsDock = new QDockWidget( tr( "GPS Information Panel" ), this );
mpGpsDock->setObjectName( "GPSInformation" ); mpGpsDock->setObjectName( "GPSInformation" );
mpGpsDock->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea ); mpGpsDock->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );
addDockWidget( Qt::LeftDockWidgetArea, mpGpsDock ); addDockWidget( Qt::LeftDockWidgetArea, mpGpsDock );
Expand All @@ -678,7 +678,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,


mLogViewer = new QgsMessageLogViewer( statusBar(), this ); mLogViewer = new QgsMessageLogViewer( statusBar(), this );


mLogDock = new QDockWidget( tr( "Log Messages" ), this ); mLogDock = new QDockWidget( tr( "Log Messages Panel" ), this );
mLogDock->setObjectName( "MessageLog" ); mLogDock->setObjectName( "MessageLog" );
mLogDock->setAllowedAreas( Qt::BottomDockWidgetArea | Qt::TopDockWidgetArea ); mLogDock->setAllowedAreas( Qt::BottomDockWidgetArea | Qt::TopDockWidgetArea );
addDockWidget( Qt::BottomDockWidgetArea, mLogDock ); addDockWidget( Qt::BottomDockWidgetArea, mLogDock );
Expand Down Expand Up @@ -2365,7 +2365,7 @@ void QgisApp::createOverview()
// QVBoxLayout *myOverviewLayout = new QVBoxLayout; // QVBoxLayout *myOverviewLayout = new QVBoxLayout;
// myOverviewLayout->addWidget(overviewCanvas); // myOverviewLayout->addWidget(overviewCanvas);
// overviewFrame->setLayout(myOverviewLayout); // overviewFrame->setLayout(myOverviewLayout);
mOverviewDock = new QDockWidget( tr( "Overview" ), this ); mOverviewDock = new QDockWidget( tr( "Overview Panel" ), this );
mOverviewDock->setObjectName( "Overview" ); mOverviewDock->setObjectName( "Overview" );
mOverviewDock->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea ); mOverviewDock->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );
mOverviewDock->setWidget( overviewCanvas ); mOverviewDock->setWidget( overviewCanvas );
Expand Down Expand Up @@ -2464,7 +2464,7 @@ void QgisApp::initLayerTreeView()
{ {
mLayerTreeView->setWhatsThis( tr( "Map legend that displays all the layers currently on the map canvas. Click on the check box to turn a layer on or off. Double click on a layer in the legend to customize its appearance and set other properties." ) ); mLayerTreeView->setWhatsThis( tr( "Map legend that displays all the layers currently on the map canvas. Click on the check box to turn a layer on or off. Double click on a layer in the legend to customize its appearance and set other properties." ) );


mLayerTreeDock = new QDockWidget( tr( "Layers" ), this ); mLayerTreeDock = new QDockWidget( tr( "Layers Panel" ), this );
mLayerTreeDock->setObjectName( "Layers" ); mLayerTreeDock->setObjectName( "Layers" );
mLayerTreeDock->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea ); mLayerTreeDock->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );


Expand Down Expand Up @@ -2550,7 +2550,7 @@ void QgisApp::initLayerTreeView()
mMapLayerOrder->setObjectName( "theMapLayerOrder" ); mMapLayerOrder->setObjectName( "theMapLayerOrder" );


mMapLayerOrder->setWhatsThis( tr( "Map layer list that displays all layers in drawing order." ) ); mMapLayerOrder->setWhatsThis( tr( "Map layer list that displays all layers in drawing order." ) );
mLayerOrderDock = new QDockWidget( tr( "Layer order" ), this ); mLayerOrderDock = new QDockWidget( tr( "Layer Order Panel" ), this );
mLayerOrderDock->setObjectName( "LayerOrder" ); mLayerOrderDock->setObjectName( "LayerOrder" );
mLayerOrderDock->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea ); mLayerOrderDock->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );


Expand Down

0 comments on commit e4dac07

Please sign in to comment.