Skip to content

Commit

Permalink
Move all app/ogr and datasource manager dialog to GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jun 23, 2017
1 parent 5c6e794 commit f3fe558
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 17 deletions.
14 changes: 2 additions & 12 deletions src/app/CMakeLists.txt
Expand Up @@ -61,7 +61,6 @@ SET(QGIS_APP_SRCS
qgsversioninfo.cpp
qgswelcomepageitemsmodel.cpp
qgswelcomepage.cpp
qgsdatasourcemanagerdialog.cpp

qgsmaptooladdfeature.cpp
qgsmaptooladdpart.cpp
Expand Down Expand Up @@ -159,11 +158,6 @@ SET(QGIS_APP_SRCS
locator/qgsinbuiltlocatorfilters.cpp
locator/qgslocatoroptionswidget.cpp

ogr/qgsogrhelperfunctions.cpp
ogr/qgsopenvectorlayerdialog.cpp
ogr/qgsnewogrconnection.cpp
ogr/qgsvectorlayersaveasdialog.cpp

gps/qgsgpsinformationwidget.cpp
gps/qgsgpsmarker.cpp

Expand Down Expand Up @@ -248,7 +242,6 @@ SET (QGIS_APP_MOC_HDRS
qgsversioninfo.h
qgswelcomepageitemsmodel.h
qgswelcomepage.h
qgsdatasourcemanagerdialog.h

qgsmaptooladdfeature.h
qgsmaptoolannotation.h
Expand Down Expand Up @@ -340,10 +333,6 @@ SET (QGIS_APP_MOC_HDRS
locator/qgsinbuiltlocatorfilters.h
locator/qgslocatoroptionswidget.h

ogr/qgsopenvectorlayerdialog.h
ogr/qgsnewogrconnection.h
ogr/qgsvectorlayersaveasdialog.h

gps/qgsgpsinformationwidget.h

openstreetmap/qgsosmdownloaddialog.h
Expand Down Expand Up @@ -510,6 +499,7 @@ INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/src/gui/symbology-ng
${CMAKE_SOURCE_DIR}/src/gui/attributetable
${CMAKE_SOURCE_DIR}/src/gui/auth
${CMAKE_SOURCE_DIR}/src/gui/ogr
${CMAKE_SOURCE_DIR}/src/gui/raster
${CMAKE_SOURCE_DIR}/src/gui/editorwidgets
${CMAKE_SOURCE_DIR}/src/gui/editorwidgets/core
Expand Down Expand Up @@ -554,14 +544,14 @@ INCLUDE_DIRECTORIES(
../gui/symbology-ng
../gui/attributetable
../gui/auth
../gui/ogr
../gui/raster
../gui/editorwidgets
../gui/editorwidgets/core
../gui/layertree
../plugins
../python
gps
ogr
openstreetmap
dwg
dwg/libdxfrw
Expand Down
23 changes: 23 additions & 0 deletions src/gui/CMakeLists.txt
Expand Up @@ -162,6 +162,12 @@ SET(QGIS_GUI_SRCS
locator/qgslocatorfilter.cpp
locator/qgslocatorwidget.cpp

ogr/qgsopenvectorlayerdialog.cpp
ogr/qgsogrhelperfunctions.cpp
ogr/qgsnewogrconnection.cpp
ogr/qgsopenvectorlayerdialog.cpp
ogr/qgsvectorlayersaveasdialog.cpp

qgisinterface.cpp
qgsactionmenu.cpp
qgsadvanceddigitizingcanvasitem.cpp
Expand Down Expand Up @@ -324,6 +330,7 @@ SET(QGIS_GUI_SRCS
qgsvariableeditorwidget.cpp
qgsvertexmarker.cpp
qgsfiledownloader.cpp
qgsdatasourcemanagerdialog.cpp
)

SET(QGIS_GUI_MOC_HDRS
Expand Down Expand Up @@ -474,6 +481,13 @@ SET(QGIS_GUI_MOC_HDRS
qgsuserinputdockwidget.h
qgsvariableeditorwidget.h
qgsfiledownloader.h
qgsdatasourcemanagerdialog.h

ogr/qgsopenvectorlayerdialog.h
ogr/qgsogrhelperfunctions.h
ogr/qgsnewogrconnection.h
ogr/qgsvectorlayersaveasdialog.h


raster/qgsmultibandcolorrendererwidget.h
raster/qgspalettedrendererwidget.h
Expand Down Expand Up @@ -661,6 +675,13 @@ SET(QGIS_GUI_HDRS
qgsbrowserdockwidget_p.h
qgsvertexmarker.h
qgsfiledownloader.h
qgsdatasourcemanagerdialog.h

ogr/qgsopenvectorlayerdialog.h
ogr/qgsogrhelperfunctions.h
ogr/qgsnewogrconnection.h
ogr/qgsvectorlayersaveasdialog.h


attributetable/qgsfeaturemodel.h

Expand Down Expand Up @@ -749,6 +770,7 @@ SET(QGIS_GUI_UI_HDRS
${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgssqlcomposerdialogbase.h
${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgssublayersdialogbase.h
${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgstablewidgetuibase.h
${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgsopenvectorlayerdialogbase.h
)

IF(ENABLE_MODELTEST)
Expand All @@ -767,6 +789,7 @@ INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/src/gui/editorwidgets/core
${CMAKE_SOURCE_DIR}/src/gui/layertree
${CMAKE_SOURCE_DIR}/src/gui/effects
${CMAKE_SOURCE_DIR}/src/gui/ogr
${CMAKE_SOURCE_DIR}/src/core
${CMAKE_SOURCE_DIR}/src/core/annotations
${CMAKE_SOURCE_DIR}/src/core/auth
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -489,5 +489,3 @@ void QgsOpenVectorLayerDialog::on_cmbConnections_currentIndexChanged( const QStr
setSelectedConnection();
}
//********************end auto connected slots *****************/


File renamed without changes.
File renamed without changes.
Expand Up @@ -23,14 +23,14 @@
#include "qgshelp.h"
#include "qgsfields.h"
#include "qgsvectorfilewriter.h"
#include "qgis_app.h"
#include "qgis_gui.h"

class QgsVectorLayer;

/**
* Class to select destination file, type and CRS for ogr layers
*/
class APP_EXPORT QgsVectorLayerSaveAsDialog : public QDialog, private Ui::QgsVectorLayerSaveAsDialogBase
class GUI_EXPORT QgsVectorLayerSaveAsDialog : public QDialog, private Ui::QgsVectorLayerSaveAsDialogBase
{
Q_OBJECT

Expand Down
File renamed without changes.
Expand Up @@ -23,6 +23,7 @@
#include "qgsguiutils.h"
#include "qgsmimedatautils.h"
#include "qgshelp.h"
#include "qgis_gui.h"

class QgsBrowserDockWidget;
class QgsRasterLayer;
Expand All @@ -33,7 +34,7 @@ namespace Ui
class QgsDataSourceManagerDialog;
}

class QgsDataSourceManagerDialog : public QgsOptionsDialogBase
class GUI_EXPORT QgsDataSourceManagerDialog : public QgsOptionsDialogBase
{
Q_OBJECT

Expand Down

0 comments on commit f3fe558

Please sign in to comment.