Skip to content
Permalink
Browse files

Removed view menu actions

  • Loading branch information
TurboGraphxBeige authored and nyalldawson committed Jan 5, 2021
1 parent 69154c2 commit b2af412b060f547523f29c0f808f5809314565d0
Showing with 0 additions and 47 deletions.
  1. +0 −21 src/app/qgisapp.cpp
  2. +0 −6 src/app/qgisapp.h
  3. +0 −20 src/ui/qgisapp.ui
@@ -2705,7 +2705,6 @@ void QgisApp::createActions()
// View Menu Items
connect( mActionPan, &QAction::triggered, this, &QgisApp::pan );
connect( mActionPanToSelected, &QAction::triggered, this, &QgisApp::panToSelected );
connect( mActionPanToAllSelected, &QAction::triggered, this, &QgisApp::panToAllSelected );
connect( mActionZoomIn, &QAction::triggered, this, &QgisApp::zoomIn );
connect( mActionZoomOut, &QAction::triggered, this, &QgisApp::zoomOut );
connect( mActionSelectFeatures, &QAction::triggered, this, &QgisApp::selectFeatures );
@@ -2741,7 +2740,6 @@ void QgisApp::createActions()
connect( mActionZoomToLayer, &QAction::triggered, this, &QgisApp::zoomToLayerExtent );
connect( mActionZoomToLayers, &QAction::triggered, this, &QgisApp::zoomToLayerExtent );
connect( mActionZoomToSelected, &QAction::triggered, this, &QgisApp::zoomToSelected );
connect( mActionZoomToAllSelected, &QAction::triggered, this, &QgisApp::zoomToAllSelected );
connect( mActionZoomLast, &QAction::triggered, this, &QgisApp::zoomToPrevious );
connect( mActionZoomNext, &QAction::triggered, this, &QgisApp::zoomToNext );
connect( mActionZoomActualSize, &QAction::triggered, this, &QgisApp::zoomActualSize );
@@ -4097,12 +4095,10 @@ void QgisApp::setTheme( const QString &themeName )
mActionZoomOut->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionZoomOut.svg" ) ) );
mActionZoomFullExtent->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionZoomFullExtent.svg" ) ) );
mActionZoomToSelected->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionZoomToSelected.svg" ) ) );
mActionZoomToAllSelected->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionZoomToSelected.svg" ) ) );
mActionShowRasterCalculator->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionShowRasterCalculator.png" ) ) );
mActionShowMeshCalculator->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionShowMeshCalculator.png" ) ) );
mActionPan->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionPan.svg" ) ) );
mActionPanToSelected->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionPanToSelected.svg" ) ) );
mActionPanToAllSelected->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionPanToSelected.svg" ) ) );
mActionZoomLast->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionZoomLast.svg" ) ) );
mActionZoomNext->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionZoomNext.svg" ) ) );
mActionZoomToLayer->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionZoomToLayer.svg" ) ) );
@@ -8205,12 +8201,6 @@ void QgisApp::zoomToSelected()

}

void QgisApp::zoomToAllSelected()
{
const QList<QgsMapLayer *> layers = mMapCanvas->layers();
mMapCanvas->zoomToAllSelected( &layers );
}

void QgisApp::panToSelected()
{
QList<QgsMapLayer *> layers = mLayerTreeView->selectedLayers();
@@ -8222,12 +8212,6 @@ void QgisApp::panToSelected()
mMapCanvas->panToSelected();
}

void QgisApp::panToAllSelected()
{
const QList<QgsMapLayer *> layers = mMapCanvas->layers();
mMapCanvas->panToAllSelected( &layers );
}

void QgisApp::pan()
{
mMapCanvas->setMapTool( mMapTools.mPan );
mActionZoomToLayer->setEnabled( isSpatial );
mActionZoomToLayers->setEnabled( isSpatial );
mActionZoomToSelected->setEnabled( isSpatial );
mActionZoomToAllSelected->setEnabled( true );
mActionLabeling->setEnabled( isSpatial );
mActionDiagramProperties->setEnabled( isSpatial );
mActionReverseLine->setEnabled( false );
mActionZoomToLayer->setEnabled( true );
mActionZoomToLayers->setEnabled( true );
mActionZoomToSelected->setEnabled( false );
mActionZoomToAllSelected->setEnabled( true );
mActionOpenTable->setEnabled( false );
mActionSelectAll->setEnabled( false );
mActionReselect->setEnabled( false );
mActionZoomToLayer->setEnabled( true );
mActionZoomToLayers->setEnabled( true );
mActionZoomToSelected->setEnabled( false );
mActionZoomToAllSelected->setEnabled( true );
mActionOpenTable->setEnabled( false );
mActionSelectAll->setEnabled( false );
mActionReselect->setEnabled( false );
mActionZoomToLayer->setEnabled( true );
mActionZoomToLayers->setEnabled( true );
mActionZoomToSelected->setEnabled( false );
mActionZoomToAllSelected->setEnabled( true );
mActionOpenTable->setEnabled( false );
mActionSelectAll->setEnabled( false );
mActionReselect->setEnabled( false );
mActionZoomToLayer->setEnabled( true );
mActionZoomToLayers->setEnabled( true );
mActionZoomToSelected->setEnabled( false );
mActionZoomToAllSelected->setEnabled( true );
mActionOpenTable->setEnabled( false );
mActionSelectAll->setEnabled( false );
mActionReselect->setEnabled( false );
@@ -497,7 +497,6 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
QAction *actionOffsetCurve() { return mActionOffsetCurve; }
QAction *actionPan() { return mActionPan; }
QAction *actionPanToSelected() { return mActionPanToSelected; }
QAction *actionPanToAllSelected() { return mActionPanToAllSelected; }
QAction *actionZoomIn() { return mActionZoomIn; }
QAction *actionZoomOut() { return mActionZoomOut; }
QAction *actionSelect() { return mActionSelectFeatures; }
@@ -513,7 +512,6 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
QAction *actionZoomToLayer() { return mActionZoomToLayer; }
QAction *actionZoomToLayers() { return mActionZoomToLayers; }
QAction *actionZoomToSelected() { return mActionZoomToSelected; }
QAction *actionZoomToAllSelected() { return mActionZoomToAllSelected; }
QAction *actionZoomLast() { return mActionZoomLast; }
QAction *actionZoomNext() { return mActionZoomNext; }
QAction *actionZoomActualSize() { return mActionZoomActualSize; }
@@ -896,12 +894,8 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
void zoomToNext();
//! Zoom to selected features
void zoomToSelected();
//! Zoom to selected features from multiple layers
void zoomToAllSelected();
//! Pan map to selected features
void panToSelected();
//! Pan map to selected features from multiple layers
void panToAllSelected();

//! open the properties dialog for the currently selected layer
void layerProperties();
@@ -138,7 +138,6 @@
<addaction name="mActionNew3DMapCanvas"/>
<addaction name="mActionPan"/>
<addaction name="mActionPanToSelected"/>
<addaction name="mActionPanToAllSelected"/>
<addaction name="mActionZoomIn"/>
<addaction name="mActionZoomOut"/>
<addaction name="separator"/>
@@ -148,7 +147,6 @@
<addaction name="separator"/>
<addaction name="mActionZoomFullExtent"/>
<addaction name="mActionZoomToSelected"/>
<addaction name="mActionZoomToAllSelected"/>
<addaction name="mActionZoomToLayers"/>
<addaction name="mActionZoomActualSize"/>
<addaction name="mActionZoomLast"/>
@@ -1394,15 +1392,6 @@
<string>Ctrl+J</string>
</property>
</action>
<action name="mActionZoomToAllSelected">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionZoomToSelected.svg</normaloff>:/images/themes/default/mActionZoomToSelected.svg</iconset>
</property>
<property name="text">
<string>Zoom to Selection from All Layers</string>
</property>
</action>
<action name="mActionZoomLast">
<property name="icon">
<iconset resource="../../images/images.qrc">
@@ -2203,15 +2192,6 @@ Acts on all layers.</string>
<string>Pan Map to Selection</string>
</property>
</action>
<action name="mActionPanToAllSelected">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionPanToSelected.svg</normaloff>:/images/themes/default/mActionPanToSelected.svg</iconset>
</property>
<property name="text">
<string>Pan Map to Selection from All Layers</string>
</property>
</action>
<action name="mActionOffsetCurve">
<property name="checkable">
<bool>true</bool>

0 comments on commit b2af412

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