Skip to content

Commit 8769369

Browse files
committedSep 12, 2017
Rollback changes to app
There's no need for a dedicated 'Add GeoNode layer' menu entry, as the unified data source manager has been designed to replace all these specific provider based actions.
1 parent 46b1e7d commit 8769369

File tree

4 files changed

+0
-25
lines changed

4 files changed

+0
-25
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ Q_GUI_EXPORT extern int qt_defaultDpiX();
294294
#include "qgsuserprofile.h"
295295

296296
#include "qgssublayersdialog.h"
297-
#include "geonode/qgsgeonodesourceselect.h"
298297
#include "ogr/qgsvectorlayersaveasdialog.h"
299298

300299
#include "qgsosmdownloaddialog.h"
@@ -1022,11 +1021,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
10221021
mActionInstallFromZip = nullptr;
10231022
}
10241023

1025-
// add geonode menu under web menu
1026-
addPluginToWebMenu( mGeonodeMenu->title(), mActionAddGeonodeLayer );
1027-
mActionAddGeonodeLayer = new QAction( tr( "Add GeoNode Layers..." ), this );
1028-
mGeonodeMenu->addAction( mActionAddGeonodeLayer );
1029-
10301024
// Set icon size of toolbars
10311025
if ( settings.contains( QStringLiteral( "IconSize" ) ) )
10321026
{
@@ -1795,8 +1789,6 @@ void QgisApp::createActions()
17951789
connect( mActionLabeling, &QAction::triggered, this, &QgisApp::labeling );
17961790
connect( mActionStatisticalSummary, &QAction::triggered, this, &QgisApp::showStatisticsDockWidget );
17971791

1798-
// Web Menu Items
1799-
18001792
// Layer Menu Items
18011793

18021794
connect( mActionDataSourceManager, &QAction::triggered, this, [ = ]() { dataSourceManager(); } );
@@ -1822,7 +1814,6 @@ void QgisApp::createActions()
18221814
connect( mActionAddAmsLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "arcgismapserver" ) ); } );
18231815
connect( mActionAddDelimitedText, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "delimitedtext" ) ); } );
18241816
connect( mActionAddVirtualLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "virtual" ) ); } );
1825-
connect( mActionAddGeonodeLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "geonode" ) ); } );
18261817
connect( mActionOpenTable, &QAction::triggered, this, &QgisApp::attributeTable );
18271818
connect( mActionOpenFieldCalc, &QAction::triggered, this, &QgisApp::fieldCalculator );
18281819
connect( mActionToggleEditing, &QAction::triggered, this, [ = ] { toggleEditing(); } );
@@ -2098,12 +2089,6 @@ void QgisApp::createMenus()
20982089
mToolbarMenu = new QMenu( tr( "Toolbars" ), this );
20992090
mToolbarMenu->setObjectName( QStringLiteral( "mToolbarMenu" ) );
21002091

2101-
// Geonode Submenu
2102-
mGeonodeMenu = new QMenu( tr( "GeoNode" ), this );
2103-
mGeonodeMenu->setObjectName( QStringLiteral( "mGeonodeMenu" ) );
2104-
// Geonode Action
2105-
mActionAddGeonodeLayer = new QAction( tr( "Add GeoNode Layers..." ), this );
2106-
21072092
// Get platform for menu layout customization (Gnome, Kde, Mac, Win)
21082093
QDialogButtonBox::ButtonLayout layout =
21092094
QDialogButtonBox::ButtonLayout( style()->styleHint( QStyle::SH_DialogButtonLayout, nullptr, this ) );

‎src/app/qgisapp.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,6 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
439439
QAction *actionShowBookmarks() { return mActionShowBookmarks; }
440440
QAction *actionDraw() { return mActionDraw; }
441441

442-
QAction *actionAddGeonodeLayer() { return mActionAddGeonodeLayer; }
443-
444442
QAction *actionDataSourceManager() { return mActionDataSourceManager; }
445443
QAction *actionNewVectorLayer() { return mActionNewVectorLayer; }
446444
QAction *actionNewSpatialLiteLayer() { return mActionNewSpatiaLiteLayer; }
@@ -1748,7 +1746,6 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
17481746
QAction *mActionPluginSeparator1 = nullptr;
17491747
QAction *mActionPluginSeparator2 = nullptr;
17501748
QAction *mActionRasterSeparator = nullptr;
1751-
QAction *mActionAddGeonodeLayer = nullptr;
17521749

17531750
// action groups ----------------------------------
17541751
QActionGroup *mMapToolGroup = nullptr;
@@ -1761,7 +1758,6 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
17611758
#endif
17621759
QMenu *mPanelMenu = nullptr;
17631760
QMenu *mToolbarMenu = nullptr;
1764-
QMenu *mGeonodeMenu = nullptr;
17651761

17661762
// docks ------------------------------------------
17671763
QgsDockWidget *mLayerTreeDock = nullptr;

‎src/app/qgisappinterface.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,9 +652,6 @@ QAction *QgisAppInterface::actionNewBookmark() { return qgis->actionNewBookmark(
652652
QAction *QgisAppInterface::actionShowBookmarks() { return qgis->actionShowBookmarks(); }
653653
QAction *QgisAppInterface::actionDraw() { return qgis->actionDraw(); }
654654

655-
//! Web menu actions
656-
QAction *QgisAppInterface::actionAddGeonodeLayer() { return qgis->actionAddGeonodeLayer(); }
657-
658655
//! Layer menu actions
659656
QAction *QgisAppInterface::actionNewVectorLayer() { return qgis->actionNewVectorLayer(); }
660657
QAction *QgisAppInterface::actionAddOgrLayer() { return qgis->actionAddOgrLayer(); }

‎src/app/qgisappinterface.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,6 @@ class APP_EXPORT QgisAppInterface : public QgisInterface
399399
virtual QAction *actionShowBookmarks() override;
400400
virtual QAction *actionDraw() override;
401401

402-
//! Web menu actions
403-
virtual QAction *actionAddGeonodeLayer();
404-
405402
//! Layer menu actions
406403
virtual QAction *actionNewVectorLayer() override;
407404
virtual QAction *actionAddOgrLayer() override;

0 commit comments

Comments
 (0)
Please sign in to comment.