Skip to content

Commit

Permalink
[Globe] Remove python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed May 30, 2016
1 parent 0050262 commit 2297ade
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 318 deletions.
1 change: 0 additions & 1 deletion python/core/core.sip
Expand Up @@ -104,7 +104,6 @@
%Include qgsowsconnection.sip %Include qgsowsconnection.sip
%Include qgspaintenginehack.sip %Include qgspaintenginehack.sip
%Include qgspallabeling.sip %Include qgspallabeling.sip
%Include qgsplugininterface.sip
%Include qgspluginlayer.sip %Include qgspluginlayer.sip
%Include qgspluginlayerregistry.sip %Include qgspluginlayerregistry.sip
%Include qgspoint.sip %Include qgspoint.sip
Expand Down
28 changes: 0 additions & 28 deletions python/core/qgsplugininterface.sip

This file was deleted.

2 changes: 0 additions & 2 deletions src/core/CMakeLists.txt
Expand Up @@ -168,7 +168,6 @@ SET(QGIS_CORE_SRCS
qgspallabeling.cpp qgspallabeling.cpp
qgspluginlayer.cpp qgspluginlayer.cpp
qgspluginlayerregistry.cpp qgspluginlayerregistry.cpp
qgsplugininterface.cpp
qgspoint.cpp qgspoint.cpp
qgspointlocator.cpp qgspointlocator.cpp
qgsproject.cpp qgsproject.cpp
Expand Down Expand Up @@ -482,7 +481,6 @@ SET(QGIS_CORE_MOC_HDRS
qgsofflineediting.h qgsofflineediting.h
qgsowsconnection.h qgsowsconnection.h
qgspluginlayer.h qgspluginlayer.h
qgsplugininterface.h
qgspointlocator.h qgspointlocator.h
qgsproject.h qgsproject.h
qgsrelationmanager.h qgsrelationmanager.h
Expand Down
Empty file removed src/core/qgsplugininterface.cpp
Empty file.
33 changes: 0 additions & 33 deletions src/core/qgsplugininterface.h

This file was deleted.

8 changes: 0 additions & 8 deletions src/plugins/globe/CMakeLists.txt
Expand Up @@ -12,7 +12,6 @@ SET (GLOBE_PLUGIN_SRCS
globe_plugin.cpp globe_plugin.cpp
qgsglobetilesource.cpp qgsglobetilesource.cpp
qgsglobeplugindialog.cpp qgsglobeplugindialog.cpp
qgsglobeinterface.cpp
qgsglobevectorlayerproperties.cpp qgsglobevectorlayerproperties.cpp
qgsglobefeatureidentify.cpp qgsglobefeatureidentify.cpp
qgsglobefrustumhighlight.cpp qgsglobefrustumhighlight.cpp
Expand All @@ -27,14 +26,12 @@ SET (GLOBE_PLUGIN_UIS
SET (GLOBE_PLUGIN_MOC_HDRS SET (GLOBE_PLUGIN_MOC_HDRS
globe_plugin.h globe_plugin.h
qgsglobeplugindialog.h qgsglobeplugindialog.h
qgsglobeinterface.h
qgsglobevectorlayerproperties.h qgsglobevectorlayerproperties.h
qgsglobetilesource.h qgsglobetilesource.h
qgsglobewidget.h qgsglobewidget.h
) )


SET (GLOBE_PLUGIN_HDRS SET (GLOBE_PLUGIN_HDRS
qgsglobeinterface.h
qgsglobevectorlayerproperties.h qgsglobevectorlayerproperties.h
qgsglobefeatureidentify.h qgsglobefeatureidentify.h
qgsglobefrustumhighlight.h qgsglobefrustumhighlight.h
Expand Down Expand Up @@ -92,11 +89,6 @@ TARGET_LINK_LIBRARIES(globeplugin
${OPENTHREADS_LIBRARY} ${OPENTHREADS_LIBRARY}
) )


IF (WITH_BINDINGS)
# Restore default CXX flags (without visibility=hidden, which breaks python bindings)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_OLD}")
ADD_SUBDIRECTORY(python)
ENDIF (WITH_BINDINGS)
ADD_SUBDIRECTORY(featuresource) ADD_SUBDIRECTORY(featuresource)


######################################################## ########################################################
Expand Down
8 changes: 0 additions & 8 deletions src/plugins/globe/globe_plugin.cpp
Expand Up @@ -18,8 +18,6 @@


// Include this first to avoid _POSIX_C_SOURCE redefined warnings // Include this first to avoid _POSIX_C_SOURCE redefined warnings
// see http://bytes.com/topic/python/answers/30009-warning-_posix_c_source-redefined // see http://bytes.com/topic/python/answers/30009-warning-_posix_c_source-redefined
#include "qgsglobeinterface.h"

#include "globe_plugin.h" #include "globe_plugin.h"
#include "qgsglobeplugindialog.h" #include "qgsglobeplugindialog.h"
#include "qgsglobefeatureidentify.h" #include "qgsglobefeatureidentify.h"
Expand Down Expand Up @@ -238,7 +236,6 @@ GlobePlugin::GlobePlugin( QgisInterface* theQgisInterface )
, mViewerWidget( 0 ) , mViewerWidget( 0 )
, mDockWidget( 0 ) , mDockWidget( 0 )
, mSettingsDialog( 0 ) , mSettingsDialog( 0 )
, mGlobeInterface( this )
, mSelectedLat( 0. ) , mSelectedLat( 0. )
, mSelectedLon( 0. ) , mSelectedLon( 0. )
, mSelectedElevation( 0. ) , mSelectedElevation( 0. )
Expand Down Expand Up @@ -1295,8 +1292,3 @@ QGISEXTERN void unload( QgisPlugin * thePluginPointer )
{ {
delete thePluginPointer; delete thePluginPointer;
} }

QgsPluginInterface* GlobePlugin::pluginInterface()
{
return &mGlobeInterface;
}
6 changes: 0 additions & 6 deletions src/plugins/globe/globe_plugin.h
Expand Up @@ -24,7 +24,6 @@
#include <osg/ref_ptr> #include <osg/ref_ptr>
#include <osgEarth/Version> #include <osgEarth/Version>


#include "qgsglobeinterface.h"
#include "qgsglobeplugindialog.h" #include "qgsglobeplugindialog.h"
#include "qgsrectangle.h" #include "qgsrectangle.h"


Expand All @@ -35,7 +34,6 @@ class QgsAnnotationItem;
class QgsBillBoardItem; class QgsBillBoardItem;
class QgsGlobeAnnotation; class QgsGlobeAnnotation;
class QgsGlobeLayerPropertiesFactory; class QgsGlobeLayerPropertiesFactory;
class QgsGlobeInterface;
class QgsGlobePluginDialog; class QgsGlobePluginDialog;
class QgsGlobeWidget; class QgsGlobeWidget;
class QgsMapLayer; class QgsMapLayer;
Expand Down Expand Up @@ -85,8 +83,6 @@ class GLOBE_EXPORT GlobePlugin : public QObject, public QgisPlugin
GlobePlugin( QgisInterface* theQgisInterface ); GlobePlugin( QgisInterface* theQgisInterface );
~GlobePlugin(); ~GlobePlugin();


//! offer an interface for python plugins
virtual QgsPluginInterface* pluginInterface();
//! init the gui //! init the gui
virtual void initGui() override; virtual void initGui() override;
//! unload the plugin //! unload the plugin
Expand Down Expand Up @@ -130,8 +126,6 @@ class GLOBE_EXPORT GlobePlugin : public QObject, public QgisPlugin
osgEarth::QtGui::ViewerWidget* mViewerWidget; osgEarth::QtGui::ViewerWidget* mViewerWidget;
QgsGlobeWidget* mDockWidget; QgsGlobeWidget* mDockWidget;
QgsGlobePluginDialog* mSettingsDialog; QgsGlobePluginDialog* mSettingsDialog;

QgsGlobeInterface mGlobeInterface;
QString mBaseLayerUrl; QString mBaseLayerUrl;
QList<QgsGlobePluginDialog::LayerDataSource> mImagerySources; QList<QgsGlobePluginDialog::LayerDataSource> mImagerySources;
QList<QgsGlobePluginDialog::LayerDataSource> mElevationSources; QList<QgsGlobePluginDialog::LayerDataSource> mElevationSources;
Expand Down
38 changes: 0 additions & 38 deletions src/plugins/globe/python/CMakeLists.txt

This file was deleted.

24 changes: 0 additions & 24 deletions src/plugins/globe/python/__init__.py

This file was deleted.

16 changes: 0 additions & 16 deletions src/plugins/globe/python/globe.sip

This file was deleted.

16 changes: 0 additions & 16 deletions src/plugins/globe/python/qgsglobefeatureutils.sip

This file was deleted.

44 changes: 0 additions & 44 deletions src/plugins/globe/python/qgsglobeinterface.sip

This file was deleted.

48 changes: 0 additions & 48 deletions src/plugins/globe/qgsglobeinterface.cpp

This file was deleted.

0 comments on commit 2297ade

Please sign in to comment.