mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
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.
This commit is contained in:
parent
46b1e7d3bb
commit
876936900b
@ -294,7 +294,6 @@ Q_GUI_EXPORT extern int qt_defaultDpiX();
|
|||||||
#include "qgsuserprofile.h"
|
#include "qgsuserprofile.h"
|
||||||
|
|
||||||
#include "qgssublayersdialog.h"
|
#include "qgssublayersdialog.h"
|
||||||
#include "geonode/qgsgeonodesourceselect.h"
|
|
||||||
#include "ogr/qgsvectorlayersaveasdialog.h"
|
#include "ogr/qgsvectorlayersaveasdialog.h"
|
||||||
|
|
||||||
#include "qgsosmdownloaddialog.h"
|
#include "qgsosmdownloaddialog.h"
|
||||||
@ -1022,11 +1021,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
|
|||||||
mActionInstallFromZip = nullptr;
|
mActionInstallFromZip = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
// add geonode menu under web menu
|
|
||||||
addPluginToWebMenu( mGeonodeMenu->title(), mActionAddGeonodeLayer );
|
|
||||||
mActionAddGeonodeLayer = new QAction( tr( "Add GeoNode Layers..." ), this );
|
|
||||||
mGeonodeMenu->addAction( mActionAddGeonodeLayer );
|
|
||||||
|
|
||||||
// Set icon size of toolbars
|
// Set icon size of toolbars
|
||||||
if ( settings.contains( QStringLiteral( "IconSize" ) ) )
|
if ( settings.contains( QStringLiteral( "IconSize" ) ) )
|
||||||
{
|
{
|
||||||
@ -1795,8 +1789,6 @@ void QgisApp::createActions()
|
|||||||
connect( mActionLabeling, &QAction::triggered, this, &QgisApp::labeling );
|
connect( mActionLabeling, &QAction::triggered, this, &QgisApp::labeling );
|
||||||
connect( mActionStatisticalSummary, &QAction::triggered, this, &QgisApp::showStatisticsDockWidget );
|
connect( mActionStatisticalSummary, &QAction::triggered, this, &QgisApp::showStatisticsDockWidget );
|
||||||
|
|
||||||
// Web Menu Items
|
|
||||||
|
|
||||||
// Layer Menu Items
|
// Layer Menu Items
|
||||||
|
|
||||||
connect( mActionDataSourceManager, &QAction::triggered, this, [ = ]() { dataSourceManager(); } );
|
connect( mActionDataSourceManager, &QAction::triggered, this, [ = ]() { dataSourceManager(); } );
|
||||||
@ -1822,7 +1814,6 @@ void QgisApp::createActions()
|
|||||||
connect( mActionAddAmsLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "arcgismapserver" ) ); } );
|
connect( mActionAddAmsLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "arcgismapserver" ) ); } );
|
||||||
connect( mActionAddDelimitedText, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "delimitedtext" ) ); } );
|
connect( mActionAddDelimitedText, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "delimitedtext" ) ); } );
|
||||||
connect( mActionAddVirtualLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "virtual" ) ); } );
|
connect( mActionAddVirtualLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "virtual" ) ); } );
|
||||||
connect( mActionAddGeonodeLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "geonode" ) ); } );
|
|
||||||
connect( mActionOpenTable, &QAction::triggered, this, &QgisApp::attributeTable );
|
connect( mActionOpenTable, &QAction::triggered, this, &QgisApp::attributeTable );
|
||||||
connect( mActionOpenFieldCalc, &QAction::triggered, this, &QgisApp::fieldCalculator );
|
connect( mActionOpenFieldCalc, &QAction::triggered, this, &QgisApp::fieldCalculator );
|
||||||
connect( mActionToggleEditing, &QAction::triggered, this, [ = ] { toggleEditing(); } );
|
connect( mActionToggleEditing, &QAction::triggered, this, [ = ] { toggleEditing(); } );
|
||||||
@ -2098,12 +2089,6 @@ void QgisApp::createMenus()
|
|||||||
mToolbarMenu = new QMenu( tr( "Toolbars" ), this );
|
mToolbarMenu = new QMenu( tr( "Toolbars" ), this );
|
||||||
mToolbarMenu->setObjectName( QStringLiteral( "mToolbarMenu" ) );
|
mToolbarMenu->setObjectName( QStringLiteral( "mToolbarMenu" ) );
|
||||||
|
|
||||||
// Geonode Submenu
|
|
||||||
mGeonodeMenu = new QMenu( tr( "GeoNode" ), this );
|
|
||||||
mGeonodeMenu->setObjectName( QStringLiteral( "mGeonodeMenu" ) );
|
|
||||||
// Geonode Action
|
|
||||||
mActionAddGeonodeLayer = new QAction( tr( "Add GeoNode Layers..." ), this );
|
|
||||||
|
|
||||||
// Get platform for menu layout customization (Gnome, Kde, Mac, Win)
|
// Get platform for menu layout customization (Gnome, Kde, Mac, Win)
|
||||||
QDialogButtonBox::ButtonLayout layout =
|
QDialogButtonBox::ButtonLayout layout =
|
||||||
QDialogButtonBox::ButtonLayout( style()->styleHint( QStyle::SH_DialogButtonLayout, nullptr, this ) );
|
QDialogButtonBox::ButtonLayout( style()->styleHint( QStyle::SH_DialogButtonLayout, nullptr, this ) );
|
||||||
|
@ -439,8 +439,6 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
|
|||||||
QAction *actionShowBookmarks() { return mActionShowBookmarks; }
|
QAction *actionShowBookmarks() { return mActionShowBookmarks; }
|
||||||
QAction *actionDraw() { return mActionDraw; }
|
QAction *actionDraw() { return mActionDraw; }
|
||||||
|
|
||||||
QAction *actionAddGeonodeLayer() { return mActionAddGeonodeLayer; }
|
|
||||||
|
|
||||||
QAction *actionDataSourceManager() { return mActionDataSourceManager; }
|
QAction *actionDataSourceManager() { return mActionDataSourceManager; }
|
||||||
QAction *actionNewVectorLayer() { return mActionNewVectorLayer; }
|
QAction *actionNewVectorLayer() { return mActionNewVectorLayer; }
|
||||||
QAction *actionNewSpatialLiteLayer() { return mActionNewSpatiaLiteLayer; }
|
QAction *actionNewSpatialLiteLayer() { return mActionNewSpatiaLiteLayer; }
|
||||||
@ -1748,7 +1746,6 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
|
|||||||
QAction *mActionPluginSeparator1 = nullptr;
|
QAction *mActionPluginSeparator1 = nullptr;
|
||||||
QAction *mActionPluginSeparator2 = nullptr;
|
QAction *mActionPluginSeparator2 = nullptr;
|
||||||
QAction *mActionRasterSeparator = nullptr;
|
QAction *mActionRasterSeparator = nullptr;
|
||||||
QAction *mActionAddGeonodeLayer = nullptr;
|
|
||||||
|
|
||||||
// action groups ----------------------------------
|
// action groups ----------------------------------
|
||||||
QActionGroup *mMapToolGroup = nullptr;
|
QActionGroup *mMapToolGroup = nullptr;
|
||||||
@ -1761,7 +1758,6 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
|
|||||||
#endif
|
#endif
|
||||||
QMenu *mPanelMenu = nullptr;
|
QMenu *mPanelMenu = nullptr;
|
||||||
QMenu *mToolbarMenu = nullptr;
|
QMenu *mToolbarMenu = nullptr;
|
||||||
QMenu *mGeonodeMenu = nullptr;
|
|
||||||
|
|
||||||
// docks ------------------------------------------
|
// docks ------------------------------------------
|
||||||
QgsDockWidget *mLayerTreeDock = nullptr;
|
QgsDockWidget *mLayerTreeDock = nullptr;
|
||||||
|
@ -652,9 +652,6 @@ QAction *QgisAppInterface::actionNewBookmark() { return qgis->actionNewBookmark(
|
|||||||
QAction *QgisAppInterface::actionShowBookmarks() { return qgis->actionShowBookmarks(); }
|
QAction *QgisAppInterface::actionShowBookmarks() { return qgis->actionShowBookmarks(); }
|
||||||
QAction *QgisAppInterface::actionDraw() { return qgis->actionDraw(); }
|
QAction *QgisAppInterface::actionDraw() { return qgis->actionDraw(); }
|
||||||
|
|
||||||
//! Web menu actions
|
|
||||||
QAction *QgisAppInterface::actionAddGeonodeLayer() { return qgis->actionAddGeonodeLayer(); }
|
|
||||||
|
|
||||||
//! Layer menu actions
|
//! Layer menu actions
|
||||||
QAction *QgisAppInterface::actionNewVectorLayer() { return qgis->actionNewVectorLayer(); }
|
QAction *QgisAppInterface::actionNewVectorLayer() { return qgis->actionNewVectorLayer(); }
|
||||||
QAction *QgisAppInterface::actionAddOgrLayer() { return qgis->actionAddOgrLayer(); }
|
QAction *QgisAppInterface::actionAddOgrLayer() { return qgis->actionAddOgrLayer(); }
|
||||||
|
@ -399,9 +399,6 @@ class APP_EXPORT QgisAppInterface : public QgisInterface
|
|||||||
virtual QAction *actionShowBookmarks() override;
|
virtual QAction *actionShowBookmarks() override;
|
||||||
virtual QAction *actionDraw() override;
|
virtual QAction *actionDraw() override;
|
||||||
|
|
||||||
//! Web menu actions
|
|
||||||
virtual QAction *actionAddGeonodeLayer();
|
|
||||||
|
|
||||||
//! Layer menu actions
|
//! Layer menu actions
|
||||||
virtual QAction *actionNewVectorLayer() override;
|
virtual QAction *actionNewVectorLayer() override;
|
||||||
virtual QAction *actionAddOgrLayer() override;
|
virtual QAction *actionAddOgrLayer() override;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user