Skip to content

Commit b89c16e

Browse files
committed
Move QgsGeoNodeSourceSelect to app
1 parent 8769369 commit b89c16e

7 files changed

+19
-75
lines changed

python/gui/geonode/qgsgeonodesourceselect.sip

-56
This file was deleted.

python/gui/gui_auto.sip

+1-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
%Include auth/qgsauthtrustedcasdialog.sip
4343
%Include editorwidgets/core/qgseditorwidgetfactory.sip
4444
%Include editorwidgets/core/qgseditorwidgetautoconf.sip
45-
%Include geonode/qgsgeonodenewconnection.sip
46-
%Include geonode/qgsgeonodesourceselect.sip
4745
%Include layertree/qgslayertreeembeddedconfigwidget.sip
4846
%Include layertree/qgslayertreeembeddedwidgetregistry.sip
4947
%Include layout/qgslayoutviewmouseevent.sip
@@ -278,6 +276,7 @@
278276
%Include editorwidgets/qgsspinbox.sip
279277
%Include editorwidgets/qgsvaluemapsearchwidgetwrapper.sip
280278
%Include editorwidgets/qgsvaluerelationsearchwidgetwrapper.sip
279+
%Include geonode/qgsgeonodenewconnection.sip
281280
%Include layertree/qgscustomlayerorderwidget.sip
282281
%Include layertree/qgslayertreemapcanvasbridge.sip
283282
%Include layertree/qgslayertreeview.sip

src/app/CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ SET(QGIS_APP_SRCS
153153
composer/qgscompositionwidget.cpp
154154
composer/qgsatlascompositionwidget.cpp
155155

156+
geocms/geonode/qgsgeonodesourceselect.cpp
157+
156158
layout/qgslayoutaddpagesdialog.cpp
157159
layout/qgslayoutdesignerdialog.cpp
158160
layout/qgslayoutguidewidget.cpp
@@ -333,6 +335,8 @@ SET (QGIS_APP_MOC_HDRS
333335
composer/qgscompositionwidget.h
334336
composer/qgsatlascompositionwidget.h
335337

338+
geocms/geonode/qgsgeonodesourceselect.h
339+
336340
layout/qgslayoutaddpagesdialog.h
337341
layout/qgslayoutappmenuprovider.h
338342
layout/qgslayoutdesignerdialog.h
@@ -498,6 +502,7 @@ INCLUDE_DIRECTORIES(
498502
${CMAKE_SOURCE_DIR}/src/app/openstreetmap
499503
${CMAKE_SOURCE_DIR}/src/app/dwg
500504
${CMAKE_SOURCE_DIR}/src/app/dwg/libdxfrw
505+
${CMAKE_SOURCE_DIR}/src/app/geocms/geonode
501506
${CMAKE_SOURCE_DIR}/src/app/locator
502507
${CMAKE_SOURCE_DIR}/src/analysis/raster
503508
${CMAKE_SOURCE_DIR}/src/analysis/openstreetmap
@@ -509,6 +514,7 @@ INCLUDE_DIRECTORIES(
509514
${CMAKE_SOURCE_DIR}/src/core/composer
510515
${CMAKE_SOURCE_DIR}/src/core/dxf
511516
${CMAKE_SOURCE_DIR}/src/core/geometry
517+
${CMAKE_SOURCE_DIR}/src/core/geonode
512518
${CMAKE_SOURCE_DIR}/src/core/metadata
513519
${CMAKE_SOURCE_DIR}/src/core/layertree
514520
${CMAKE_SOURCE_DIR}/src/core/providers/memory
@@ -555,6 +561,7 @@ INCLUDE_DIRECTORIES(
555561
../core/composer
556562
../core/dxf
557563
../core/geometry
564+
../core/geonode
558565
../core/layout
559566
../core/metadata
560567
../core/layertree

src/gui/geonode/qgsgeonodesourceselect.h src/app/geocms/geonode/qgsgeonodesourceselect.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
#include "ui_qgsgeonodesourceselectbase.h"
2626
#include "qgis_gui.h"
2727

28-
class GUI_EXPORT QgsGeonodeItemDelegate : public QItemDelegate
28+
class QgsGeonodeItemDelegate : public QItemDelegate
2929
{
3030
Q_OBJECT
3131

3232
public:
3333
explicit QgsGeonodeItemDelegate( QObject *parent = nullptr ) : QItemDelegate( parent ) { }
3434
};
3535

36-
class GUI_EXPORT QgsGeoNodeSourceSelect: public QgsAbstractDataSourceWidget, private Ui::QgsGeonodeSourceSelectBase
36+
class QgsGeoNodeSourceSelect: public QgsAbstractDataSourceWidget, private Ui::QgsGeonodeSourceSelectBase
3737
{
3838
Q_OBJECT
3939

src/gui/CMakeLists.txt

-6
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ SET(QGIS_GUI_SRCS
151151
editorwidgets/qgsvaluerelationwidgetfactory.cpp
152152

153153
geonode/qgsgeonodenewconnection.cpp
154-
geonode/qgsgeonodesourceselect.cpp
155154

156155
layertree/qgscustomlayerorderwidget.cpp
157156
layertree/qgslayertreeembeddedconfigwidget.cpp
@@ -648,7 +647,6 @@ SET(QGIS_GUI_MOC_HDRS
648647
editorwidgets/qgsvaluerelationwidgetwrapper.h
649648

650649
geonode/qgsgeonodenewconnection.h
651-
geonode/qgsgeonodesourceselect.h
652650

653651
layertree/qgscustomlayerorderwidget.h
654652
layertree/qgslayertreeembeddedconfigwidget.h
@@ -769,9 +767,6 @@ SET(QGIS_GUI_HDRS
769767
editorwidgets/qgsvaluemapwidgetfactory.h
770768
editorwidgets/qgsvaluerelationwidgetfactory.h
771769

772-
geonode/qgsgeonodenewconnection.h
773-
geonode/qgsgeonodesourceselect.h
774-
775770
layertree/qgslayertreeembeddedconfigwidget.h
776771
layertree/qgslayertreeembeddedwidgetregistry.h
777772

@@ -822,7 +817,6 @@ SET(QGIS_GUI_UI_HDRS
822817
${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgssqlcomposerdialogbase.h
823818
${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgssublayersdialogbase.h
824819
${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgstablewidgetuibase.h
825-
${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgsgeonodesourceselectbase.h
826820
)
827821

828822
IF(ENABLE_MODELTEST)

src/gui/qgsdatasourcemanagerdialog.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "qgsmapcanvas.h"
2828
#include "qgsmessagelog.h"
2929
#include "qgsgui.h"
30-
#include "qgsgeonodesourceselect.h"
30+
//#include "qgsgeonodesourceselect.h"
3131

3232
QgsDataSourceManagerDialog::QgsDataSourceManagerDialog( QgsBrowserModel *browserModel, QWidget *parent, QgsMapCanvas *canvas, Qt::WindowFlags fl ) :
3333
QgsOptionsDialogBase( QStringLiteral( "Data Source Manager" ), parent, fl ),
@@ -72,15 +72,15 @@ QgsDataSourceManagerDialog::QgsDataSourceManagerDialog( QgsBrowserModel *browser
7272
addProviderDialog( dlg, provider->providerKey(), provider->text(), provider->icon( ), provider->toolTip( ) );
7373
}
7474

75+
/*
76+
QDialog *geonodeDialog = new QgsGeoNodeSourceSelect( this, Qt::Widget, QgsProviderRegistry::WidgetMode::Embedded );
77+
QDialog *dlg = addDialog( geonodeDialog, QStringLiteral( "geonode" ), tr( "GeoNode" ), QStringLiteral( "/mActionAddGeonodeLayer.svg" ) );
7578
76-
QDialog *geonodeDialog = new QgsGeoNodeSourceSelect( this, Qt::Widget, QgsProviderRegistry::WidgetMode::Embedded );
77-
QDialog *dlg = addDialog( geonodeDialog, QStringLiteral( "geonode" ), tr( "GeoNode" ), QStringLiteral( "/mActionAddGeonodeLayer.svg" ) );
78-
79-
if ( dlg )
80-
{
81-
connect( dlg, SIGNAL( addRasterLayer( QString, QString, QString ) ), this, SLOT( rasterLayerAdded( QString, QString, QString ) ) );
82-
connect( dlg, SIGNAL( addWfsLayer( QString, QString, QString ) ), this, SLOT( vectorLayerAdded( QString, QString, QString ) ) );
83-
}
79+
if ( dlg )
80+
{
81+
connect( dlg, SIGNAL( addRasterLayer( QString, QString, QString ) ), this, SLOT( rasterLayerAdded( QString, QString, QString ) ) );
82+
connect( dlg, SIGNAL( addWfsLayer( QString, QString, QString ) ), this, SLOT( vectorLayerAdded( QString, QString, QString ) ) );
83+
}*/
8484
}
8585

8686
QgsDataSourceManagerDialog::~QgsDataSourceManagerDialog()

0 commit comments

Comments
 (0)