Skip to content
Permalink
Browse files

Globe is now visible to other (python as well) plugins. signals from …

…globe can be catched.
  • Loading branch information
mbernasocchi authored and pka committed Feb 20, 2011
1 parent c64de21 commit 78097a7888e293a6ebab315bd0da6e06d526df67
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/plugins/globe/globe_plugin.cpp
@@ -80,6 +80,10 @@ GlobePlugin::GlobePlugin( QgisInterface* theQgisInterface )
mObjectPlacer( NULL )
{
mIsGlobeRunning = false;
//needed to be "seen" by other plugins by doing
//iface.mainWindow().findChild( QObject, "globePlugin" )
this->setObjectName("globePlugin");
this->setParent(theQgisInterface->mainWindow());
}

//destructor
@@ -198,10 +202,7 @@ void GlobePlugin::initGui()
connect( &mQDockWidget, SIGNAL( globeClosed() ), this,
SLOT( setGlobeNotRunning() ) );
connect( this, SIGNAL( xyCoordinates( const QgsPoint & ) ),
mQGisIface->mainWindow(), SLOT( showMouseCoordinate( const QgsPoint & ) ) );
// connect( this, SIGNAL( xyCoordinates( const QgsPoint & ) ),
// this, SLOT( showSelectedCoordinates() ) );

mQGisIface->mapCanvas(), SIGNAL( xyCoordinates( const QgsPoint & ) ) );
}

void GlobePlugin::run()

0 comments on commit 78097a7

Please sign in to comment.
You can’t perform that action at this time.