mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-15 00:04:37 -04:00
Move GeoNode data items from OWS provider to app
This commit is contained in:
parent
973ba7bdfc
commit
b657c1ace6
@ -154,6 +154,7 @@ SET(QGIS_APP_SRCS
|
|||||||
composer/qgsatlascompositionwidget.cpp
|
composer/qgsatlascompositionwidget.cpp
|
||||||
|
|
||||||
geocms/qgsgeocmsproviderregistry.cpp
|
geocms/qgsgeocmsproviderregistry.cpp
|
||||||
|
geocms/geonode/qgsgeonodedataitems.cpp
|
||||||
geocms/geonode/qgsgeonodesourceselect.cpp
|
geocms/geonode/qgsgeonodesourceselect.cpp
|
||||||
|
|
||||||
layout/qgslayoutaddpagesdialog.cpp
|
layout/qgslayoutaddpagesdialog.cpp
|
||||||
@ -336,6 +337,7 @@ SET (QGIS_APP_MOC_HDRS
|
|||||||
composer/qgscompositionwidget.h
|
composer/qgscompositionwidget.h
|
||||||
composer/qgsatlascompositionwidget.h
|
composer/qgsatlascompositionwidget.h
|
||||||
|
|
||||||
|
geocms/geonode/qgsgeonodedataitems.h
|
||||||
geocms/geonode/qgsgeonodesourceselect.h
|
geocms/geonode/qgsgeonodesourceselect.h
|
||||||
|
|
||||||
layout/qgslayoutaddpagesdialog.h
|
layout/qgslayoutaddpagesdialog.h
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
* *
|
* *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "qgsowsdataitems.h"
|
|
||||||
#include "qgslogger.h"
|
#include "qgslogger.h"
|
||||||
#include "qgsgeonodedataitems.h"
|
#include "qgsgeonodedataitems.h"
|
||||||
#include "qgsproviderregistry.h"
|
#include "qgsproviderregistry.h"
|
@ -14,9 +14,11 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "qgsgeocmsproviderregistry.h"
|
#include "qgsgeocmsproviderregistry.h"
|
||||||
|
#include "qgsdataitemproviderregistry.h"
|
||||||
#include "qgsgui.h"
|
#include "qgsgui.h"
|
||||||
#include "qgssourceselectproviderregistry.h"
|
#include "qgssourceselectproviderregistry.h"
|
||||||
#include "geocms/geonode/qgsgeonodesourceselect.h"
|
#include "geocms/geonode/qgsgeonodesourceselect.h"
|
||||||
|
#include "geocms/geonode/qgsgeonodedataitems.h"
|
||||||
|
|
||||||
QgsGeoCmsProviderRegistry::QgsGeoCmsProviderRegistry()
|
QgsGeoCmsProviderRegistry::QgsGeoCmsProviderRegistry()
|
||||||
{
|
{
|
||||||
@ -25,5 +27,9 @@ QgsGeoCmsProviderRegistry::QgsGeoCmsProviderRegistry()
|
|||||||
|
|
||||||
void QgsGeoCmsProviderRegistry::init()
|
void QgsGeoCmsProviderRegistry::init()
|
||||||
{
|
{
|
||||||
|
// source select providers
|
||||||
QgsGui::sourceSelectProviderRegistry()->addProvider( new QgsGeoNodeSourceSelectProvider() );
|
QgsGui::sourceSelectProviderRegistry()->addProvider( new QgsGeoNodeSourceSelectProvider() );
|
||||||
|
|
||||||
|
// data item providers
|
||||||
|
QgsApplication::dataItemProviderRegistry()->addProvider( new QgsGeoNodeDataItemProvider() );
|
||||||
}
|
}
|
||||||
|
@ -1081,6 +1081,10 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
|
|||||||
QgsStyle::defaultStyle();
|
QgsStyle::defaultStyle();
|
||||||
endProfile();
|
endProfile();
|
||||||
|
|
||||||
|
startProfile( QStringLiteral( "Loading GeoCMS providers" ) );
|
||||||
|
mGeoCmsProviderRegistry.reset( new QgsGeoCmsProviderRegistry() );
|
||||||
|
endProfile();
|
||||||
|
|
||||||
mSplash->showMessage( tr( "QGIS Ready!" ), Qt::AlignHCenter | Qt::AlignBottom );
|
mSplash->showMessage( tr( "QGIS Ready!" ), Qt::AlignHCenter | Qt::AlignBottom );
|
||||||
|
|
||||||
QgsMessageLog::logMessage( QgsApplication::showSettings(), QString(), QgsMessageLog::INFO );
|
QgsMessageLog::logMessage( QgsApplication::showSettings(), QString(), QgsMessageLog::INFO );
|
||||||
@ -1166,8 +1170,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
|
|||||||
connect( QgsApplication::taskManager(), &QgsTaskManager::allTasksFinished, taskProgress, &QWinTaskbarProgress::hide );
|
connect( QgsApplication::taskManager(), &QgsTaskManager::allTasksFinished, taskProgress, &QWinTaskbarProgress::hide );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mGeoCmsProviderRegistry.reset( new QgsGeoCmsProviderRegistry() );
|
|
||||||
|
|
||||||
// supposedly all actions have been added, now register them to the shortcut manager
|
// supposedly all actions have been added, now register them to the shortcut manager
|
||||||
QgsGui::shortcutsManager()->registerAllChildren( this );
|
QgsGui::shortcutsManager()->registerAllChildren( this );
|
||||||
|
|
||||||
|
@ -1,19 +1,16 @@
|
|||||||
SET(OWS_SRCS
|
SET(OWS_SRCS
|
||||||
qgsowsprovider.cpp
|
qgsowsprovider.cpp
|
||||||
qgsowsdataitems.cpp
|
qgsowsdataitems.cpp
|
||||||
qgsgeonodedataitems.cpp)
|
)
|
||||||
SET(OWS_MOC_HDRS
|
SET(OWS_MOC_HDRS
|
||||||
qgsowsprovider.h
|
qgsowsprovider.h
|
||||||
qgsowsdataitems.h
|
qgsowsdataitems.h
|
||||||
qgsgeonodedataitems.h
|
|
||||||
)
|
)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES (
|
INCLUDE_DIRECTORIES (
|
||||||
${CMAKE_SOURCE_DIR}/src/gui/geonode
|
|
||||||
${CMAKE_SOURCE_DIR}/src/core
|
${CMAKE_SOURCE_DIR}/src/core
|
||||||
${CMAKE_SOURCE_DIR}/src/core/expression
|
${CMAKE_SOURCE_DIR}/src/core/expression
|
||||||
${CMAKE_SOURCE_DIR}/src/core/geometry
|
${CMAKE_SOURCE_DIR}/src/core/geometry
|
||||||
${CMAKE_SOURCE_DIR}/src/core/geocms/geonode
|
|
||||||
${CMAKE_SOURCE_DIR}/src/core/auth
|
${CMAKE_SOURCE_DIR}/src/core/auth
|
||||||
${CMAKE_SOURCE_DIR}/src/core/metadata
|
${CMAKE_SOURCE_DIR}/src/core/metadata
|
||||||
${CMAKE_SOURCE_DIR}/src/gui
|
${CMAKE_SOURCE_DIR}/src/gui
|
||||||
|
@ -23,9 +23,6 @@
|
|||||||
#include "qgsnewhttpconnection.h"
|
#include "qgsnewhttpconnection.h"
|
||||||
#include "qgsowssourceselect.h"
|
#include "qgsowssourceselect.h"
|
||||||
#endif
|
#endif
|
||||||
#include "qgsgeonodeconnection.h"
|
|
||||||
#include "qgsgeonodenewconnection.h"
|
|
||||||
#include "qgsgeonodedataitems.h"
|
|
||||||
|
|
||||||
#include "qgsapplication.h"
|
#include "qgsapplication.h"
|
||||||
|
|
||||||
@ -267,8 +264,7 @@ QGISEXTERN QList<QgsDataItemProvider *> *dataItemProviders()
|
|||||||
QList<QgsDataItemProvider *> *providers = new QList<QgsDataItemProvider *>();
|
QList<QgsDataItemProvider *> *providers = new QList<QgsDataItemProvider *>();
|
||||||
|
|
||||||
*providers
|
*providers
|
||||||
<< new QgsOwsDataItemProvider
|
<< new QgsOwsDataItemProvider;
|
||||||
<< new QgsGeoNodeDataItemProvider;
|
|
||||||
|
|
||||||
return providers;
|
return providers;
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
#include "qgsdataitemprovider.h"
|
#include "qgsdataitemprovider.h"
|
||||||
#include "qgsdataprovider.h"
|
#include "qgsdataprovider.h"
|
||||||
#include "qgsdatasourceuri.h"
|
#include "qgsdatasourceuri.h"
|
||||||
#include "qgsgeonodeconnection.h"
|
|
||||||
|
|
||||||
class QgsOWSConnectionItem : public QgsDataCollectionItem
|
class QgsOWSConnectionItem : public QgsDataCollectionItem
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user